[2025-01-17 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:00:06 [end_date_ymd] => 2025-01-17 00:00:06 [RateCDR] => 1 ) [2025-01-17 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-16 21:00:06' and `end` < '2025-01-17 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-17 00:00:20] Production.INFO: count ==549 [2025-01-17 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-16 21:00:06 - End Time 2025-01-17 00:00:06 [2025-01-17 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264481', 'tblTempUsageDetail_20' ) start [2025-01-17 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264481', 'tblTempUsageDetail_20' ) end [2025-01-17 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264481', 'tblTempVendorCDR_20' ) start [2025-01-17 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264481', 'tblTempVendorCDR_20' ) end [2025-01-17 00:00:20] Production.INFO: ProcessCDR(1,14264481,1,1,2) [2025-01-17 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264481', 'tblTempUsageDetail_20' ) start [2025-01-17 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264481', 'tblTempUsageDetail_20' ) end [2025-01-17 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:00:25] Production.INFO: ==32431== Releasing lock... [2025-01-17 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:00:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-17 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:01:04 [end_date_ymd] => 2025-01-17 00:01:04 [RateCDR] => 1 ) [2025-01-17 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:01:04' and `end` < '2025-01-17 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:01:25] Production.INFO: count ==538 [2025-01-17 00:01:25] Production.ERROR: pbx CDR StartTime 2025-01-16 21:01:04 - End Time 2025-01-17 00:01:04 [2025-01-17 00:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264486', 'tblTempUsageDetail_20' ) start [2025-01-17 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264486', 'tblTempUsageDetail_20' ) end [2025-01-17 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264486', 'tblTempVendorCDR_20' ) start [2025-01-17 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264486', 'tblTempVendorCDR_20' ) end [2025-01-17 00:01:25] Production.INFO: ProcessCDR(1,14264486,1,1,2) [2025-01-17 00:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264486', 'tblTempUsageDetail_20' ) start [2025-01-17 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264486', 'tblTempUsageDetail_20' ) end [2025-01-17 00:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:01:28] Production.INFO: ==32516== Releasing lock... [2025-01-17 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:01:28] Production.INFO: 31.25 MB #Memory Used# [2025-01-17 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:02:05 [end_date_ymd] => 2025-01-17 00:02:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:02:05' and `end` < '2025-01-17 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-17 00:02:32] Production.INFO: count ==124 [2025-01-17 00:02:32] Production.ERROR: pbx CDR StartTime 2025-01-16 21:02:05 - End Time 2025-01-17 00:02:05 [2025-01-17 00:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264491', 'tblTempUsageDetail_20' ) start [2025-01-17 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264491', 'tblTempUsageDetail_20' ) end [2025-01-17 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264491', 'tblTempVendorCDR_20' ) start [2025-01-17 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264491', 'tblTempVendorCDR_20' ) end [2025-01-17 00:02:32] Production.INFO: ProcessCDR(1,14264491,1,1,2) [2025-01-17 00:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264491', 'tblTempUsageDetail_20' ) start [2025-01-17 00:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264491', 'tblTempUsageDetail_20' ) end [2025-01-17 00:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:02:35] Production.INFO: ==32587== Releasing lock... [2025-01-17 00:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:02:35] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:03:05 [end_date_ymd] => 2025-01-17 00:03:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:03:05' and `end` < '2025-01-17 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-17 00:03:28] Production.INFO: count ==124 [2025-01-17 00:03:28] Production.ERROR: pbx CDR StartTime 2025-01-16 21:03:05 - End Time 2025-01-17 00:03:05 [2025-01-17 00:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264496', 'tblTempUsageDetail_20' ) start [2025-01-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264496', 'tblTempUsageDetail_20' ) end [2025-01-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264496', 'tblTempVendorCDR_20' ) start [2025-01-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264496', 'tblTempVendorCDR_20' ) end [2025-01-17 00:03:28] Production.INFO: ProcessCDR(1,14264496,1,1,2) [2025-01-17 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264496', 'tblTempUsageDetail_20' ) start [2025-01-17 00:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264496', 'tblTempUsageDetail_20' ) end [2025-01-17 00:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:03:32] Production.INFO: ==32656== Releasing lock... [2025-01-17 00:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:03:32] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:04:05 [end_date_ymd] => 2025-01-17 00:04:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:04:05' and `end` < '2025-01-17 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-17 00:04:32] Production.INFO: count ==119 [2025-01-17 00:04:32] Production.ERROR: pbx CDR StartTime 2025-01-16 21:04:05 - End Time 2025-01-17 00:04:05 [2025-01-17 00:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264501', 'tblTempUsageDetail_20' ) start [2025-01-17 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264501', 'tblTempUsageDetail_20' ) end [2025-01-17 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264501', 'tblTempVendorCDR_20' ) start [2025-01-17 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264501', 'tblTempVendorCDR_20' ) end [2025-01-17 00:04:32] Production.INFO: ProcessCDR(1,14264501,1,1,2) [2025-01-17 00:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264501', 'tblTempUsageDetail_20' ) start [2025-01-17 00:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264501', 'tblTempUsageDetail_20' ) end [2025-01-17 00:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:04:36] Production.INFO: ==32729== Releasing lock... [2025-01-17 00:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:04:36] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:05:04 [end_date_ymd] => 2025-01-17 00:05:04 [RateCDR] => 1 ) [2025-01-17 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:05:04' and `end` < '2025-01-17 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:05:30] Production.INFO: count ==119 [2025-01-17 00:05:30] Production.ERROR: pbx CDR StartTime 2025-01-16 21:05:04 - End Time 2025-01-17 00:05:04 [2025-01-17 00:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264506', 'tblTempUsageDetail_20' ) start [2025-01-17 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264506', 'tblTempUsageDetail_20' ) end [2025-01-17 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264506', 'tblTempVendorCDR_20' ) start [2025-01-17 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264506', 'tblTempVendorCDR_20' ) end [2025-01-17 00:05:31] Production.INFO: ProcessCDR(1,14264506,1,1,2) [2025-01-17 00:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264506', 'tblTempUsageDetail_20' ) start [2025-01-17 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264506', 'tblTempUsageDetail_20' ) end [2025-01-17 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:05:34] Production.INFO: ==355== Releasing lock... [2025-01-17 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:05:34] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:06:05 [end_date_ymd] => 2025-01-17 00:06:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:06:05' and `end` < '2025-01-17 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-17 00:06:31] Production.INFO: count ==119 [2025-01-17 00:06:31] Production.ERROR: pbx CDR StartTime 2025-01-16 21:06:05 - End Time 2025-01-17 00:06:05 [2025-01-17 00:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264511', 'tblTempUsageDetail_20' ) start [2025-01-17 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264511', 'tblTempUsageDetail_20' ) end [2025-01-17 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264511', 'tblTempVendorCDR_20' ) start [2025-01-17 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264511', 'tblTempVendorCDR_20' ) end [2025-01-17 00:06:31] Production.INFO: ProcessCDR(1,14264511,1,1,2) [2025-01-17 00:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264511', 'tblTempUsageDetail_20' ) start [2025-01-17 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264511', 'tblTempUsageDetail_20' ) end [2025-01-17 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:06:34] Production.INFO: ==425== Releasing lock... [2025-01-17 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:06:34] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:07:05 [end_date_ymd] => 2025-01-17 00:07:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:07:05' and `end` < '2025-01-17 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-17 00:07:26] Production.INFO: count ==119 [2025-01-17 00:07:27] Production.ERROR: pbx CDR StartTime 2025-01-16 21:07:05 - End Time 2025-01-17 00:07:05 [2025-01-17 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264516', 'tblTempUsageDetail_20' ) start [2025-01-17 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264516', 'tblTempUsageDetail_20' ) end [2025-01-17 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264516', 'tblTempVendorCDR_20' ) start [2025-01-17 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264516', 'tblTempVendorCDR_20' ) end [2025-01-17 00:07:27] Production.INFO: ProcessCDR(1,14264516,1,1,2) [2025-01-17 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264516', 'tblTempUsageDetail_20' ) start [2025-01-17 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264516', 'tblTempUsageDetail_20' ) end [2025-01-17 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:07:30] Production.INFO: ==539== Releasing lock... [2025-01-17 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:07:30] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:08:05 [end_date_ymd] => 2025-01-17 00:08:05 [RateCDR] => 1 ) [2025-01-17 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:08:05' and `end` < '2025-01-17 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:08:24] Production.INFO: count ==123 [2025-01-17 00:08:24] Production.ERROR: pbx CDR StartTime 2025-01-16 21:08:05 - End Time 2025-01-17 00:08:05 [2025-01-17 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264521', 'tblTempUsageDetail_20' ) start [2025-01-17 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264521', 'tblTempUsageDetail_20' ) end [2025-01-17 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264521', 'tblTempVendorCDR_20' ) start [2025-01-17 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264521', 'tblTempVendorCDR_20' ) end [2025-01-17 00:08:24] Production.INFO: ProcessCDR(1,14264521,1,1,2) [2025-01-17 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264521', 'tblTempUsageDetail_20' ) start [2025-01-17 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264521', 'tblTempUsageDetail_20' ) end [2025-01-17 00:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:08:28] Production.INFO: ==615== Releasing lock... [2025-01-17 00:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:08:28] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:09:05 [end_date_ymd] => 2025-01-17 00:09:05 [RateCDR] => 1 ) [2025-01-17 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:09:05' and `end` < '2025-01-17 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:09:22] Production.INFO: count ==122 [2025-01-17 00:09:22] Production.ERROR: pbx CDR StartTime 2025-01-16 21:09:05 - End Time 2025-01-17 00:09:05 [2025-01-17 00:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264526', 'tblTempUsageDetail_20' ) start [2025-01-17 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264526', 'tblTempUsageDetail_20' ) end [2025-01-17 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264526', 'tblTempVendorCDR_20' ) start [2025-01-17 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264526', 'tblTempVendorCDR_20' ) end [2025-01-17 00:09:23] Production.INFO: ProcessCDR(1,14264526,1,1,2) [2025-01-17 00:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264526', 'tblTempUsageDetail_20' ) start [2025-01-17 00:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264526', 'tblTempUsageDetail_20' ) end [2025-01-17 00:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:09:26] Production.INFO: ==712== Releasing lock... [2025-01-17 00:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:09:26] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:10:06 [end_date_ymd] => 2025-01-17 00:10:06 [RateCDR] => 1 ) [2025-01-17 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:10:06' and `end` < '2025-01-17 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:10:18] Production.INFO: count ==132 [2025-01-17 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:10:06 - End Time 2025-01-17 00:10:06 [2025-01-17 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264532', 'tblTempUsageDetail_20' ) start [2025-01-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264532', 'tblTempUsageDetail_20' ) end [2025-01-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264532', 'tblTempVendorCDR_20' ) start [2025-01-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264532', 'tblTempVendorCDR_20' ) end [2025-01-17 00:10:18] Production.INFO: ProcessCDR(1,14264532,1,1,2) [2025-01-17 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264532', 'tblTempUsageDetail_20' ) start [2025-01-17 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264532', 'tblTempUsageDetail_20' ) end [2025-01-17 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:10:22] Production.INFO: ==789== Releasing lock... [2025-01-17 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:11:05 [end_date_ymd] => 2025-01-17 00:11:05 [RateCDR] => 1 ) [2025-01-17 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:11:05' and `end` < '2025-01-17 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:11:19] Production.INFO: count ==132 [2025-01-17 00:11:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:11:05 - End Time 2025-01-17 00:11:05 [2025-01-17 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264537', 'tblTempUsageDetail_20' ) start [2025-01-17 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264537', 'tblTempUsageDetail_20' ) end [2025-01-17 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264537', 'tblTempVendorCDR_20' ) start [2025-01-17 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264537', 'tblTempVendorCDR_20' ) end [2025-01-17 00:11:19] Production.INFO: ProcessCDR(1,14264537,1,1,2) [2025-01-17 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264537', 'tblTempUsageDetail_20' ) start [2025-01-17 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264537', 'tblTempUsageDetail_20' ) end [2025-01-17 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:11:23] Production.INFO: ==862== Releasing lock... [2025-01-17 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:11:23] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:12:04 [end_date_ymd] => 2025-01-17 00:12:04 [RateCDR] => 1 ) [2025-01-17 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:12:04' and `end` < '2025-01-17 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:12:29] Production.INFO: count ==124 [2025-01-17 00:12:29] Production.ERROR: pbx CDR StartTime 2025-01-16 21:12:04 - End Time 2025-01-17 00:12:04 [2025-01-17 00:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264542', 'tblTempUsageDetail_20' ) start [2025-01-17 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264542', 'tblTempUsageDetail_20' ) end [2025-01-17 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264542', 'tblTempVendorCDR_20' ) start [2025-01-17 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264542', 'tblTempVendorCDR_20' ) end [2025-01-17 00:12:29] Production.INFO: ProcessCDR(1,14264542,1,1,2) [2025-01-17 00:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264542', 'tblTempUsageDetail_20' ) start [2025-01-17 00:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264542', 'tblTempUsageDetail_20' ) end [2025-01-17 00:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:12:32] Production.INFO: ==934== Releasing lock... [2025-01-17 00:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:12:32] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:13:05 [end_date_ymd] => 2025-01-17 00:13:05 [RateCDR] => 1 ) [2025-01-17 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:13:05' and `end` < '2025-01-17 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:13:37] Production.INFO: count ==124 [2025-01-17 00:13:37] Production.ERROR: pbx CDR StartTime 2025-01-16 21:13:05 - End Time 2025-01-17 00:13:05 [2025-01-17 00:13:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264547', 'tblTempUsageDetail_20' ) start [2025-01-17 00:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264547', 'tblTempUsageDetail_20' ) end [2025-01-17 00:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264547', 'tblTempVendorCDR_20' ) start [2025-01-17 00:13:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264547', 'tblTempVendorCDR_20' ) end [2025-01-17 00:13:37] Production.INFO: ProcessCDR(1,14264547,1,1,2) [2025-01-17 00:13:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:13:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:13:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:13:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264547', 'tblTempUsageDetail_20' ) start [2025-01-17 00:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264547', 'tblTempUsageDetail_20' ) end [2025-01-17 00:13:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:13:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:13:40] Production.INFO: ==1005== Releasing lock... [2025-01-17 00:13:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:13:40] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:14:05 [end_date_ymd] => 2025-01-17 00:14:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:14:05' and `end` < '2025-01-17 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-17 00:14:22] Production.INFO: count ==128 [2025-01-17 00:14:23] Production.ERROR: pbx CDR StartTime 2025-01-16 21:14:05 - End Time 2025-01-17 00:14:05 [2025-01-17 00:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264552', 'tblTempUsageDetail_20' ) start [2025-01-17 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264552', 'tblTempUsageDetail_20' ) end [2025-01-17 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264552', 'tblTempVendorCDR_20' ) start [2025-01-17 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264552', 'tblTempVendorCDR_20' ) end [2025-01-17 00:14:23] Production.INFO: ProcessCDR(1,14264552,1,1,2) [2025-01-17 00:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264552', 'tblTempUsageDetail_20' ) start [2025-01-17 00:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264552', 'tblTempUsageDetail_20' ) end [2025-01-17 00:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:14:26] Production.INFO: ==1079== Releasing lock... [2025-01-17 00:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:14:26] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:15:05 [end_date_ymd] => 2025-01-17 00:15:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:15:05' and `end` < '2025-01-17 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-17 00:15:17] Production.INFO: count ==127 [2025-01-17 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:15:05 - End Time 2025-01-17 00:15:05 [2025-01-17 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264557', 'tblTempUsageDetail_20' ) start [2025-01-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264557', 'tblTempUsageDetail_20' ) end [2025-01-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264557', 'tblTempVendorCDR_20' ) start [2025-01-17 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264557', 'tblTempVendorCDR_20' ) end [2025-01-17 00:15:17] Production.INFO: ProcessCDR(1,14264557,1,1,2) [2025-01-17 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264557', 'tblTempUsageDetail_20' ) start [2025-01-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264557', 'tblTempUsageDetail_20' ) end [2025-01-17 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:15:21] Production.INFO: ==1155== Releasing lock... [2025-01-17 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:16:05 [end_date_ymd] => 2025-01-17 00:16:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:16:05' and `end` < '2025-01-17 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-17 00:16:17] Production.INFO: count ==128 [2025-01-17 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:16:05 - End Time 2025-01-17 00:16:05 [2025-01-17 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264562', 'tblTempUsageDetail_20' ) start [2025-01-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264562', 'tblTempUsageDetail_20' ) end [2025-01-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264562', 'tblTempVendorCDR_20' ) start [2025-01-17 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264562', 'tblTempVendorCDR_20' ) end [2025-01-17 00:16:17] Production.INFO: ProcessCDR(1,14264562,1,1,2) [2025-01-17 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264562', 'tblTempUsageDetail_20' ) start [2025-01-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264562', 'tblTempUsageDetail_20' ) end [2025-01-17 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:16:21] Production.INFO: ==1230== Releasing lock... [2025-01-17 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:17:05 [end_date_ymd] => 2025-01-17 00:17:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:17:05' and `end` < '2025-01-17 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-17 00:17:17] Production.INFO: count ==124 [2025-01-17 00:17:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:17:05 - End Time 2025-01-17 00:17:05 [2025-01-17 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264567', 'tblTempUsageDetail_20' ) start [2025-01-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264567', 'tblTempUsageDetail_20' ) end [2025-01-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264567', 'tblTempVendorCDR_20' ) start [2025-01-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264567', 'tblTempVendorCDR_20' ) end [2025-01-17 00:17:17] Production.INFO: ProcessCDR(1,14264567,1,1,2) [2025-01-17 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264567', 'tblTempUsageDetail_20' ) start [2025-01-17 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264567', 'tblTempUsageDetail_20' ) end [2025-01-17 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:17:21] Production.INFO: ==1312== Releasing lock... [2025-01-17 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:18:05 [end_date_ymd] => 2025-01-17 00:18:05 [RateCDR] => 1 ) [2025-01-17 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:18:05' and `end` < '2025-01-17 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:18:19] Production.INFO: count ==123 [2025-01-17 00:18:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:18:05 - End Time 2025-01-17 00:18:05 [2025-01-17 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264572', 'tblTempUsageDetail_20' ) start [2025-01-17 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264572', 'tblTempUsageDetail_20' ) end [2025-01-17 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264572', 'tblTempVendorCDR_20' ) start [2025-01-17 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264572', 'tblTempVendorCDR_20' ) end [2025-01-17 00:18:19] Production.INFO: ProcessCDR(1,14264572,1,1,2) [2025-01-17 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264572', 'tblTempUsageDetail_20' ) start [2025-01-17 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264572', 'tblTempUsageDetail_20' ) end [2025-01-17 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:18:22] Production.INFO: ==1396== Releasing lock... [2025-01-17 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:19:05 [end_date_ymd] => 2025-01-17 00:19:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:19:05' and `end` < '2025-01-17 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-17 00:19:18] Production.INFO: count ==122 [2025-01-17 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:19:05 - End Time 2025-01-17 00:19:05 [2025-01-17 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264577', 'tblTempUsageDetail_20' ) start [2025-01-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264577', 'tblTempUsageDetail_20' ) end [2025-01-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264577', 'tblTempVendorCDR_20' ) start [2025-01-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264577', 'tblTempVendorCDR_20' ) end [2025-01-17 00:19:18] Production.INFO: ProcessCDR(1,14264577,1,1,2) [2025-01-17 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264577', 'tblTempUsageDetail_20' ) start [2025-01-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264577', 'tblTempUsageDetail_20' ) end [2025-01-17 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:19:21] Production.INFO: ==1470== Releasing lock... [2025-01-17 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:20:06 [end_date_ymd] => 2025-01-17 00:20:06 [RateCDR] => 1 ) [2025-01-17 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:20:06' and `end` < '2025-01-17 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:20:18] Production.INFO: count ==130 [2025-01-17 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:20:06 - End Time 2025-01-17 00:20:06 [2025-01-17 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264583', 'tblTempUsageDetail_20' ) start [2025-01-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264583', 'tblTempUsageDetail_20' ) end [2025-01-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264583', 'tblTempVendorCDR_20' ) start [2025-01-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264583', 'tblTempVendorCDR_20' ) end [2025-01-17 00:20:18] Production.INFO: ProcessCDR(1,14264583,1,1,2) [2025-01-17 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264583', 'tblTempUsageDetail_20' ) start [2025-01-17 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264583', 'tblTempUsageDetail_20' ) end [2025-01-17 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:20:21] Production.INFO: ==1582== Releasing lock... [2025-01-17 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:21:05 [end_date_ymd] => 2025-01-17 00:21:05 [RateCDR] => 1 ) [2025-01-17 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:21:05' and `end` < '2025-01-17 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:21:17] Production.INFO: count ==155 [2025-01-17 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:21:05 - End Time 2025-01-17 00:21:05 [2025-01-17 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264588', 'tblTempUsageDetail_20' ) start [2025-01-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264588', 'tblTempUsageDetail_20' ) end [2025-01-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264588', 'tblTempVendorCDR_20' ) start [2025-01-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264588', 'tblTempVendorCDR_20' ) end [2025-01-17 00:21:17] Production.INFO: ProcessCDR(1,14264588,1,1,2) [2025-01-17 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264588', 'tblTempUsageDetail_20' ) start [2025-01-17 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264588', 'tblTempUsageDetail_20' ) end [2025-01-17 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:21:21] Production.INFO: ==1655== Releasing lock... [2025-01-17 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:22:05 [end_date_ymd] => 2025-01-17 00:22:05 [RateCDR] => 1 ) [2025-01-17 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:22:05' and `end` < '2025-01-17 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:22:18] Production.INFO: count ==154 [2025-01-17 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:22:05 - End Time 2025-01-17 00:22:05 [2025-01-17 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264593', 'tblTempUsageDetail_20' ) start [2025-01-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264593', 'tblTempUsageDetail_20' ) end [2025-01-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264593', 'tblTempVendorCDR_20' ) start [2025-01-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264593', 'tblTempVendorCDR_20' ) end [2025-01-17 00:22:18] Production.INFO: ProcessCDR(1,14264593,1,1,2) [2025-01-17 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264593', 'tblTempUsageDetail_20' ) start [2025-01-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264593', 'tblTempUsageDetail_20' ) end [2025-01-17 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:22:21] Production.INFO: ==1727== Releasing lock... [2025-01-17 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:23:05 [end_date_ymd] => 2025-01-17 00:23:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:23:05' and `end` < '2025-01-17 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-17 00:23:17] Production.INFO: count ==154 [2025-01-17 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:23:05 - End Time 2025-01-17 00:23:05 [2025-01-17 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264598', 'tblTempUsageDetail_20' ) start [2025-01-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264598', 'tblTempUsageDetail_20' ) end [2025-01-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264598', 'tblTempVendorCDR_20' ) start [2025-01-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264598', 'tblTempVendorCDR_20' ) end [2025-01-17 00:23:17] Production.INFO: ProcessCDR(1,14264598,1,1,2) [2025-01-17 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264598', 'tblTempUsageDetail_20' ) start [2025-01-17 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264598', 'tblTempUsageDetail_20' ) end [2025-01-17 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:23:21] Production.INFO: ==1838== Releasing lock... [2025-01-17 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:24:05 [end_date_ymd] => 2025-01-17 00:24:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:24:05' and `end` < '2025-01-17 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-17 00:24:18] Production.INFO: count ==148 [2025-01-17 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:24:05 - End Time 2025-01-17 00:24:05 [2025-01-17 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264603', 'tblTempUsageDetail_20' ) start [2025-01-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264603', 'tblTempUsageDetail_20' ) end [2025-01-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264603', 'tblTempVendorCDR_20' ) start [2025-01-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264603', 'tblTempVendorCDR_20' ) end [2025-01-17 00:24:18] Production.INFO: ProcessCDR(1,14264603,1,1,2) [2025-01-17 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264603', 'tblTempUsageDetail_20' ) start [2025-01-17 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264603', 'tblTempUsageDetail_20' ) end [2025-01-17 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:24:21] Production.INFO: ==1908== Releasing lock... [2025-01-17 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:25:05 [end_date_ymd] => 2025-01-17 00:25:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:25:05' and `end` < '2025-01-17 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-17 00:25:17] Production.INFO: count ==148 [2025-01-17 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:25:05 - End Time 2025-01-17 00:25:05 [2025-01-17 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264608', 'tblTempUsageDetail_20' ) start [2025-01-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264608', 'tblTempUsageDetail_20' ) end [2025-01-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264608', 'tblTempVendorCDR_20' ) start [2025-01-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264608', 'tblTempVendorCDR_20' ) end [2025-01-17 00:25:17] Production.INFO: ProcessCDR(1,14264608,1,1,2) [2025-01-17 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264608', 'tblTempUsageDetail_20' ) start [2025-01-17 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264608', 'tblTempUsageDetail_20' ) end [2025-01-17 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:25:22] Production.INFO: ==1978== Releasing lock... [2025-01-17 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:26:05 [end_date_ymd] => 2025-01-17 00:26:05 [RateCDR] => 1 ) [2025-01-17 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:26:05' and `end` < '2025-01-17 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:26:18] Production.INFO: count ==150 [2025-01-17 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:26:05 - End Time 2025-01-17 00:26:05 [2025-01-17 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264613', 'tblTempUsageDetail_20' ) start [2025-01-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264613', 'tblTempUsageDetail_20' ) end [2025-01-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264613', 'tblTempVendorCDR_20' ) start [2025-01-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264613', 'tblTempVendorCDR_20' ) end [2025-01-17 00:26:18] Production.INFO: ProcessCDR(1,14264613,1,1,2) [2025-01-17 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264613', 'tblTempUsageDetail_20' ) start [2025-01-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264613', 'tblTempUsageDetail_20' ) end [2025-01-17 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:26:21] Production.INFO: ==2049== Releasing lock... [2025-01-17 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:27:05 [end_date_ymd] => 2025-01-17 00:27:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:27:05' and `end` < '2025-01-17 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-17 00:27:17] Production.INFO: count ==148 [2025-01-17 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:27:05 - End Time 2025-01-17 00:27:05 [2025-01-17 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264618', 'tblTempUsageDetail_20' ) start [2025-01-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264618', 'tblTempUsageDetail_20' ) end [2025-01-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264618', 'tblTempVendorCDR_20' ) start [2025-01-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264618', 'tblTempVendorCDR_20' ) end [2025-01-17 00:27:17] Production.INFO: ProcessCDR(1,14264618,1,1,2) [2025-01-17 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264618', 'tblTempUsageDetail_20' ) start [2025-01-17 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264618', 'tblTempUsageDetail_20' ) end [2025-01-17 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:27:21] Production.INFO: ==2121== Releasing lock... [2025-01-17 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:28:06 [end_date_ymd] => 2025-01-17 00:28:06 [RateCDR] => 1 ) [2025-01-17 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:28:06' and `end` < '2025-01-17 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:28:18] Production.INFO: count ==143 [2025-01-17 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:28:06 - End Time 2025-01-17 00:28:06 [2025-01-17 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264623', 'tblTempUsageDetail_20' ) start [2025-01-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264623', 'tblTempUsageDetail_20' ) end [2025-01-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264623', 'tblTempVendorCDR_20' ) start [2025-01-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264623', 'tblTempVendorCDR_20' ) end [2025-01-17 00:28:18] Production.INFO: ProcessCDR(1,14264623,1,1,2) [2025-01-17 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264623', 'tblTempUsageDetail_20' ) start [2025-01-17 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264623', 'tblTempUsageDetail_20' ) end [2025-01-17 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:28:22] Production.INFO: ==2191== Releasing lock... [2025-01-17 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:28:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:29:05 [end_date_ymd] => 2025-01-17 00:29:05 [RateCDR] => 1 ) [2025-01-17 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:29:05' and `end` < '2025-01-17 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:29:17] Production.INFO: count ==143 [2025-01-17 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:29:05 - End Time 2025-01-17 00:29:05 [2025-01-17 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264628', 'tblTempUsageDetail_20' ) start [2025-01-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264628', 'tblTempUsageDetail_20' ) end [2025-01-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264628', 'tblTempVendorCDR_20' ) start [2025-01-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264628', 'tblTempVendorCDR_20' ) end [2025-01-17 00:29:17] Production.INFO: ProcessCDR(1,14264628,1,1,2) [2025-01-17 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264628', 'tblTempUsageDetail_20' ) start [2025-01-17 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264628', 'tblTempUsageDetail_20' ) end [2025-01-17 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:29:20] Production.INFO: ==2262== Releasing lock... [2025-01-17 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:30:06 [end_date_ymd] => 2025-01-17 00:30:06 [RateCDR] => 1 ) [2025-01-17 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-16 21:30:06' and `end` < '2025-01-17 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-17 00:30:18] Production.INFO: count ==151 [2025-01-17 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:30:06 - End Time 2025-01-17 00:30:06 [2025-01-17 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264634', 'tblTempUsageDetail_20' ) start [2025-01-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264634', 'tblTempUsageDetail_20' ) end [2025-01-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264634', 'tblTempVendorCDR_20' ) start [2025-01-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264634', 'tblTempVendorCDR_20' ) end [2025-01-17 00:30:18] Production.INFO: ProcessCDR(1,14264634,1,1,2) [2025-01-17 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264634', 'tblTempUsageDetail_20' ) start [2025-01-17 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264634', 'tblTempUsageDetail_20' ) end [2025-01-17 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:30:22] Production.INFO: ==2338== Releasing lock... [2025-01-17 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:31:04 [end_date_ymd] => 2025-01-17 00:31:04 [RateCDR] => 1 ) [2025-01-17 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:31:04' and `end` < '2025-01-17 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:31:17] Production.INFO: count ==150 [2025-01-17 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:31:04 - End Time 2025-01-17 00:31:04 [2025-01-17 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264639', 'tblTempUsageDetail_20' ) start [2025-01-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264639', 'tblTempUsageDetail_20' ) end [2025-01-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264639', 'tblTempVendorCDR_20' ) start [2025-01-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264639', 'tblTempVendorCDR_20' ) end [2025-01-17 00:31:17] Production.INFO: ProcessCDR(1,14264639,1,1,2) [2025-01-17 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264639', 'tblTempUsageDetail_20' ) start [2025-01-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264639', 'tblTempUsageDetail_20' ) end [2025-01-17 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:31:20] Production.INFO: ==2410== Releasing lock... [2025-01-17 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:32:05 [end_date_ymd] => 2025-01-17 00:32:05 [RateCDR] => 1 ) [2025-01-17 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:32:05' and `end` < '2025-01-17 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:32:18] Production.INFO: count ==148 [2025-01-17 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:32:05 - End Time 2025-01-17 00:32:05 [2025-01-17 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264644', 'tblTempUsageDetail_20' ) start [2025-01-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264644', 'tblTempUsageDetail_20' ) end [2025-01-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264644', 'tblTempVendorCDR_20' ) start [2025-01-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264644', 'tblTempVendorCDR_20' ) end [2025-01-17 00:32:18] Production.INFO: ProcessCDR(1,14264644,1,1,2) [2025-01-17 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264644', 'tblTempUsageDetail_20' ) start [2025-01-17 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264644', 'tblTempUsageDetail_20' ) end [2025-01-17 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:32:21] Production.INFO: ==2581== Releasing lock... [2025-01-17 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:33:06 [end_date_ymd] => 2025-01-17 00:33:06 [RateCDR] => 1 ) [2025-01-17 00: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-16 21:33:06' and `end` < '2025-01-17 00: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-17 00:33:18] Production.INFO: count ==147 [2025-01-17 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:33:06 - End Time 2025-01-17 00:33:06 [2025-01-17 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264649', 'tblTempUsageDetail_20' ) start [2025-01-17 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264649', 'tblTempUsageDetail_20' ) end [2025-01-17 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264649', 'tblTempVendorCDR_20' ) start [2025-01-17 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264649', 'tblTempVendorCDR_20' ) end [2025-01-17 00:33:18] Production.INFO: ProcessCDR(1,14264649,1,1,2) [2025-01-17 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264649', 'tblTempUsageDetail_20' ) start [2025-01-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264649', 'tblTempUsageDetail_20' ) end [2025-01-17 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:33:22] Production.INFO: ==2996== Releasing lock... [2025-01-17 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:34:05 [end_date_ymd] => 2025-01-17 00:34:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:34:05' and `end` < '2025-01-17 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-17 00:34:17] Production.INFO: count ==143 [2025-01-17 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:34:05 - End Time 2025-01-17 00:34:05 [2025-01-17 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264654', 'tblTempUsageDetail_20' ) start [2025-01-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264654', 'tblTempUsageDetail_20' ) end [2025-01-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264654', 'tblTempVendorCDR_20' ) start [2025-01-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264654', 'tblTempVendorCDR_20' ) end [2025-01-17 00:34:17] Production.INFO: ProcessCDR(1,14264654,1,1,2) [2025-01-17 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264654', 'tblTempUsageDetail_20' ) start [2025-01-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264654', 'tblTempUsageDetail_20' ) end [2025-01-17 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:34:20] Production.INFO: ==3129== Releasing lock... [2025-01-17 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:35:05 [end_date_ymd] => 2025-01-17 00:35:05 [RateCDR] => 1 ) [2025-01-17 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:35:05' and `end` < '2025-01-17 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:35:17] Production.INFO: count ==142 [2025-01-17 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:35:05 - End Time 2025-01-17 00:35:05 [2025-01-17 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264659', 'tblTempUsageDetail_20' ) start [2025-01-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264659', 'tblTempUsageDetail_20' ) end [2025-01-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264659', 'tblTempVendorCDR_20' ) start [2025-01-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264659', 'tblTempVendorCDR_20' ) end [2025-01-17 00:35:17] Production.INFO: ProcessCDR(1,14264659,1,1,2) [2025-01-17 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264659', 'tblTempUsageDetail_20' ) start [2025-01-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264659', 'tblTempUsageDetail_20' ) end [2025-01-17 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:35:21] Production.INFO: ==3200== Releasing lock... [2025-01-17 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:36:05 [end_date_ymd] => 2025-01-17 00:36:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:36:05' and `end` < '2025-01-17 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-17 00:36:17] Production.INFO: count ==142 [2025-01-17 00:36:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:36:05 - End Time 2025-01-17 00:36:05 [2025-01-17 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264664', 'tblTempUsageDetail_20' ) start [2025-01-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264664', 'tblTempUsageDetail_20' ) end [2025-01-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264664', 'tblTempVendorCDR_20' ) start [2025-01-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264664', 'tblTempVendorCDR_20' ) end [2025-01-17 00:36:17] Production.INFO: ProcessCDR(1,14264664,1,1,2) [2025-01-17 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264664', 'tblTempUsageDetail_20' ) start [2025-01-17 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264664', 'tblTempUsageDetail_20' ) end [2025-01-17 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:36:20] Production.INFO: ==3269== Releasing lock... [2025-01-17 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:37:06 [end_date_ymd] => 2025-01-17 00:37:06 [RateCDR] => 1 ) [2025-01-17 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:37:06' and `end` < '2025-01-17 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:37:18] Production.INFO: count ==142 [2025-01-17 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:37:06 - End Time 2025-01-17 00:37:06 [2025-01-17 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264669', 'tblTempUsageDetail_20' ) start [2025-01-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264669', 'tblTempUsageDetail_20' ) end [2025-01-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264669', 'tblTempVendorCDR_20' ) start [2025-01-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264669', 'tblTempVendorCDR_20' ) end [2025-01-17 00:37:18] Production.INFO: ProcessCDR(1,14264669,1,1,2) [2025-01-17 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264669', 'tblTempUsageDetail_20' ) start [2025-01-17 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264669', 'tblTempUsageDetail_20' ) end [2025-01-17 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:37:22] Production.INFO: ==3343== Releasing lock... [2025-01-17 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:38:05 [end_date_ymd] => 2025-01-17 00:38:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:38:05' and `end` < '2025-01-17 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-17 00:38:18] Production.INFO: count ==142 [2025-01-17 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:38:05 - End Time 2025-01-17 00:38:05 [2025-01-17 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264674', 'tblTempUsageDetail_20' ) start [2025-01-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264674', 'tblTempUsageDetail_20' ) end [2025-01-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264674', 'tblTempVendorCDR_20' ) start [2025-01-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264674', 'tblTempVendorCDR_20' ) end [2025-01-17 00:38:18] Production.INFO: ProcessCDR(1,14264674,1,1,2) [2025-01-17 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264674', 'tblTempUsageDetail_20' ) start [2025-01-17 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264674', 'tblTempUsageDetail_20' ) end [2025-01-17 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:38:21] Production.INFO: ==3452== Releasing lock... [2025-01-17 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:39:05 [end_date_ymd] => 2025-01-17 00:39:05 [RateCDR] => 1 ) [2025-01-17 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:39:05' and `end` < '2025-01-17 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:39:18] Production.INFO: count ==141 [2025-01-17 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:39:05 - End Time 2025-01-17 00:39:05 [2025-01-17 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264679', 'tblTempUsageDetail_20' ) start [2025-01-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264679', 'tblTempUsageDetail_20' ) end [2025-01-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264679', 'tblTempVendorCDR_20' ) start [2025-01-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264679', 'tblTempVendorCDR_20' ) end [2025-01-17 00:39:18] Production.INFO: ProcessCDR(1,14264679,1,1,2) [2025-01-17 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264679', 'tblTempUsageDetail_20' ) start [2025-01-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264679', 'tblTempUsageDetail_20' ) end [2025-01-17 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:39:21] Production.INFO: ==3525== Releasing lock... [2025-01-17 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:40:05 [end_date_ymd] => 2025-01-17 00:40:05 [RateCDR] => 1 ) [2025-01-17 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:40:05' and `end` < '2025-01-17 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:40:18] Production.INFO: count ==147 [2025-01-17 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:40:05 - End Time 2025-01-17 00:40:05 [2025-01-17 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264685', 'tblTempUsageDetail_20' ) start [2025-01-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264685', 'tblTempUsageDetail_20' ) end [2025-01-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264685', 'tblTempVendorCDR_20' ) start [2025-01-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264685', 'tblTempVendorCDR_20' ) end [2025-01-17 00:40:18] Production.INFO: ProcessCDR(1,14264685,1,1,2) [2025-01-17 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264685', 'tblTempUsageDetail_20' ) start [2025-01-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264685', 'tblTempUsageDetail_20' ) end [2025-01-17 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:40:21] Production.INFO: ==3597== Releasing lock... [2025-01-17 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:41:05 [end_date_ymd] => 2025-01-17 00:41:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:41:05' and `end` < '2025-01-17 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-17 00:41:17] Production.INFO: count ==151 [2025-01-17 00:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:41:05 - End Time 2025-01-17 00:41:05 [2025-01-17 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264690', 'tblTempUsageDetail_20' ) start [2025-01-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264690', 'tblTempUsageDetail_20' ) end [2025-01-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264690', 'tblTempVendorCDR_20' ) start [2025-01-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264690', 'tblTempVendorCDR_20' ) end [2025-01-17 00:41:17] Production.INFO: ProcessCDR(1,14264690,1,1,2) [2025-01-17 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264690', 'tblTempUsageDetail_20' ) start [2025-01-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264690', 'tblTempUsageDetail_20' ) end [2025-01-17 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:41:21] Production.INFO: ==3671== Releasing lock... [2025-01-17 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:42:05 [end_date_ymd] => 2025-01-17 00:42:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:42:05' and `end` < '2025-01-17 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-17 00:42:17] Production.INFO: count ==151 [2025-01-17 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:42:05 - End Time 2025-01-17 00:42:05 [2025-01-17 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264695', 'tblTempUsageDetail_20' ) start [2025-01-17 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264695', 'tblTempUsageDetail_20' ) end [2025-01-17 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264695', 'tblTempVendorCDR_20' ) start [2025-01-17 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264695', 'tblTempVendorCDR_20' ) end [2025-01-17 00:42:17] Production.INFO: ProcessCDR(1,14264695,1,1,2) [2025-01-17 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264695', 'tblTempUsageDetail_20' ) start [2025-01-17 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264695', 'tblTempUsageDetail_20' ) end [2025-01-17 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:42:20] Production.INFO: ==3740== Releasing lock... [2025-01-17 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:42:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:43:05 [end_date_ymd] => 2025-01-17 00:43:05 [RateCDR] => 1 ) [2025-01-17 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:43:05' and `end` < '2025-01-17 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:43:17] Production.INFO: count ==151 [2025-01-17 00:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:43:05 - End Time 2025-01-17 00:43:05 [2025-01-17 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264700', 'tblTempUsageDetail_20' ) start [2025-01-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264700', 'tblTempUsageDetail_20' ) end [2025-01-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264700', 'tblTempVendorCDR_20' ) start [2025-01-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264700', 'tblTempVendorCDR_20' ) end [2025-01-17 00:43:17] Production.INFO: ProcessCDR(1,14264700,1,1,2) [2025-01-17 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264700', 'tblTempUsageDetail_20' ) start [2025-01-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264700', 'tblTempUsageDetail_20' ) end [2025-01-17 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:43:20] Production.INFO: ==3810== Releasing lock... [2025-01-17 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:43:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:44:06 [end_date_ymd] => 2025-01-17 00:44:06 [RateCDR] => 1 ) [2025-01-17 00: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-16 21:44:06' and `end` < '2025-01-17 00: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-17 00:44:18] Production.INFO: count ==151 [2025-01-17 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:44:06 - End Time 2025-01-17 00:44:06 [2025-01-17 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264705', 'tblTempUsageDetail_20' ) start [2025-01-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264705', 'tblTempUsageDetail_20' ) end [2025-01-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264705', 'tblTempVendorCDR_20' ) start [2025-01-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264705', 'tblTempVendorCDR_20' ) end [2025-01-17 00:44:18] Production.INFO: ProcessCDR(1,14264705,1,1,2) [2025-01-17 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264705', 'tblTempUsageDetail_20' ) start [2025-01-17 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264705', 'tblTempUsageDetail_20' ) end [2025-01-17 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:44:22] Production.INFO: ==3882== Releasing lock... [2025-01-17 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:45:05 [end_date_ymd] => 2025-01-17 00:45:05 [RateCDR] => 1 ) [2025-01-17 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:45:05' and `end` < '2025-01-17 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:45:17] Production.INFO: count ==151 [2025-01-17 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:45:05 - End Time 2025-01-17 00:45:05 [2025-01-17 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264710', 'tblTempUsageDetail_20' ) start [2025-01-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264710', 'tblTempUsageDetail_20' ) end [2025-01-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264710', 'tblTempVendorCDR_20' ) start [2025-01-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264710', 'tblTempVendorCDR_20' ) end [2025-01-17 00:45:17] Production.INFO: ProcessCDR(1,14264710,1,1,2) [2025-01-17 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264710', 'tblTempUsageDetail_20' ) start [2025-01-17 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264710', 'tblTempUsageDetail_20' ) end [2025-01-17 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:45:21] Production.INFO: ==3952== Releasing lock... [2025-01-17 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:46:05 [end_date_ymd] => 2025-01-17 00:46:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:46:05' and `end` < '2025-01-17 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-17 00:46:18] Production.INFO: count ==151 [2025-01-17 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:46:05 - End Time 2025-01-17 00:46:05 [2025-01-17 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264715', 'tblTempUsageDetail_20' ) start [2025-01-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264715', 'tblTempUsageDetail_20' ) end [2025-01-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264715', 'tblTempVendorCDR_20' ) start [2025-01-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264715', 'tblTempVendorCDR_20' ) end [2025-01-17 00:46:18] Production.INFO: ProcessCDR(1,14264715,1,1,2) [2025-01-17 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264715', 'tblTempUsageDetail_20' ) start [2025-01-17 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264715', 'tblTempUsageDetail_20' ) end [2025-01-17 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:46:21] Production.INFO: ==4028== Releasing lock... [2025-01-17 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:47:05 [end_date_ymd] => 2025-01-17 00:47:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:47:05' and `end` < '2025-01-17 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-17 00:47:17] Production.INFO: count ==151 [2025-01-17 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:47:05 - End Time 2025-01-17 00:47:05 [2025-01-17 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264720', 'tblTempUsageDetail_20' ) start [2025-01-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264720', 'tblTempUsageDetail_20' ) end [2025-01-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264720', 'tblTempVendorCDR_20' ) start [2025-01-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264720', 'tblTempVendorCDR_20' ) end [2025-01-17 00:47:17] Production.INFO: ProcessCDR(1,14264720,1,1,2) [2025-01-17 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264720', 'tblTempUsageDetail_20' ) start [2025-01-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264720', 'tblTempUsageDetail_20' ) end [2025-01-17 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:47:21] Production.INFO: ==4103== Releasing lock... [2025-01-17 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:48:05 [end_date_ymd] => 2025-01-17 00:48:05 [RateCDR] => 1 ) [2025-01-17 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:48:05' and `end` < '2025-01-17 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:48:18] Production.INFO: count ==151 [2025-01-17 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:48:05 - End Time 2025-01-17 00:48:05 [2025-01-17 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264725', 'tblTempUsageDetail_20' ) start [2025-01-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264725', 'tblTempUsageDetail_20' ) end [2025-01-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264725', 'tblTempVendorCDR_20' ) start [2025-01-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264725', 'tblTempVendorCDR_20' ) end [2025-01-17 00:48:18] Production.INFO: ProcessCDR(1,14264725,1,1,2) [2025-01-17 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264725', 'tblTempUsageDetail_20' ) start [2025-01-17 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264725', 'tblTempUsageDetail_20' ) end [2025-01-17 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:48:21] Production.INFO: ==4174== Releasing lock... [2025-01-17 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:49:05 [end_date_ymd] => 2025-01-17 00:49:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:49:05' and `end` < '2025-01-17 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-17 00:49:19] Production.INFO: count ==151 [2025-01-17 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:49:05 - End Time 2025-01-17 00:49:05 [2025-01-17 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264730', 'tblTempUsageDetail_20' ) start [2025-01-17 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264730', 'tblTempUsageDetail_20' ) end [2025-01-17 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264730', 'tblTempVendorCDR_20' ) start [2025-01-17 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264730', 'tblTempVendorCDR_20' ) end [2025-01-17 00:49:19] Production.INFO: ProcessCDR(1,14264730,1,1,2) [2025-01-17 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264730', 'tblTempUsageDetail_20' ) start [2025-01-17 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264730', 'tblTempUsageDetail_20' ) end [2025-01-17 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:49:22] Production.INFO: ==4245== Releasing lock... [2025-01-17 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:50:06 [end_date_ymd] => 2025-01-17 00:50:06 [RateCDR] => 1 ) [2025-01-17 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:50:06' and `end` < '2025-01-17 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:50:18] Production.INFO: count ==162 [2025-01-17 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:50:06 - End Time 2025-01-17 00:50:06 [2025-01-17 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264735', 'tblTempUsageDetail_20' ) start [2025-01-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264735', 'tblTempUsageDetail_20' ) end [2025-01-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264735', 'tblTempVendorCDR_20' ) start [2025-01-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264735', 'tblTempVendorCDR_20' ) end [2025-01-17 00:50:18] Production.INFO: ProcessCDR(1,14264735,1,1,2) [2025-01-17 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264735', 'tblTempUsageDetail_20' ) start [2025-01-17 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264735', 'tblTempUsageDetail_20' ) end [2025-01-17 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:50:23] Production.INFO: ==4318== Releasing lock... [2025-01-17 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:51:05 [end_date_ymd] => 2025-01-17 00:51:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:51:05' and `end` < '2025-01-17 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-17 00:51:18] Production.INFO: count ==169 [2025-01-17 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:51:05 - End Time 2025-01-17 00:51:05 [2025-01-17 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264741', 'tblTempUsageDetail_20' ) start [2025-01-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264741', 'tblTempUsageDetail_20' ) end [2025-01-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264741', 'tblTempVendorCDR_20' ) start [2025-01-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264741', 'tblTempVendorCDR_20' ) end [2025-01-17 00:51:18] Production.INFO: ProcessCDR(1,14264741,1,1,2) [2025-01-17 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264741', 'tblTempUsageDetail_20' ) start [2025-01-17 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264741', 'tblTempUsageDetail_20' ) end [2025-01-17 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:51:21] Production.INFO: ==4391== Releasing lock... [2025-01-17 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:52:06 [end_date_ymd] => 2025-01-17 00:52:06 [RateCDR] => 1 ) [2025-01-17 00: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-16 21:52:06' and `end` < '2025-01-17 00: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-17 00:52:20] Production.INFO: count ==169 [2025-01-17 00:52:20] Production.ERROR: pbx CDR StartTime 2025-01-16 21:52:06 - End Time 2025-01-17 00:52:06 [2025-01-17 00:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264746', 'tblTempUsageDetail_20' ) start [2025-01-17 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264746', 'tblTempUsageDetail_20' ) end [2025-01-17 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264746', 'tblTempVendorCDR_20' ) start [2025-01-17 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264746', 'tblTempVendorCDR_20' ) end [2025-01-17 00:52:20] Production.INFO: ProcessCDR(1,14264746,1,1,2) [2025-01-17 00:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264746', 'tblTempUsageDetail_20' ) start [2025-01-17 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264746', 'tblTempUsageDetail_20' ) end [2025-01-17 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:52:23] Production.INFO: ==4461== Releasing lock... [2025-01-17 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:53:05 [end_date_ymd] => 2025-01-17 00:53:05 [RateCDR] => 1 ) [2025-01-17 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:53:05' and `end` < '2025-01-17 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:53:19] Production.INFO: count ==169 [2025-01-17 00:53:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:53:05 - End Time 2025-01-17 00:53:05 [2025-01-17 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264751', 'tblTempUsageDetail_20' ) start [2025-01-17 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264751', 'tblTempUsageDetail_20' ) end [2025-01-17 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264751', 'tblTempVendorCDR_20' ) start [2025-01-17 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264751', 'tblTempVendorCDR_20' ) end [2025-01-17 00:53:19] Production.INFO: ProcessCDR(1,14264751,1,1,2) [2025-01-17 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264751', 'tblTempUsageDetail_20' ) start [2025-01-17 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264751', 'tblTempUsageDetail_20' ) end [2025-01-17 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:53:22] Production.INFO: ==4530== Releasing lock... [2025-01-17 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:54:05 [end_date_ymd] => 2025-01-17 00:54:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:54:05' and `end` < '2025-01-17 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-17 00:54:18] Production.INFO: count ==169 [2025-01-17 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-16 21:54:05 - End Time 2025-01-17 00:54:05 [2025-01-17 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264756', 'tblTempUsageDetail_20' ) start [2025-01-17 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264756', 'tblTempUsageDetail_20' ) end [2025-01-17 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264756', 'tblTempVendorCDR_20' ) start [2025-01-17 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264756', 'tblTempVendorCDR_20' ) end [2025-01-17 00:54:18] Production.INFO: ProcessCDR(1,14264756,1,1,2) [2025-01-17 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264756', 'tblTempUsageDetail_20' ) start [2025-01-17 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264756', 'tblTempUsageDetail_20' ) end [2025-01-17 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:54:21] Production.INFO: ==4648== Releasing lock... [2025-01-17 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:55:04 [end_date_ymd] => 2025-01-17 00:55:04 [RateCDR] => 1 ) [2025-01-17 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:55:04' and `end` < '2025-01-17 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:55:17] Production.INFO: count ==168 [2025-01-17 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:55:04 - End Time 2025-01-17 00:55:04 [2025-01-17 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264761', 'tblTempUsageDetail_20' ) start [2025-01-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264761', 'tblTempUsageDetail_20' ) end [2025-01-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264761', 'tblTempVendorCDR_20' ) start [2025-01-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264761', 'tblTempVendorCDR_20' ) end [2025-01-17 00:55:17] Production.INFO: ProcessCDR(1,14264761,1,1,2) [2025-01-17 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264761', 'tblTempUsageDetail_20' ) start [2025-01-17 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264761', 'tblTempUsageDetail_20' ) end [2025-01-17 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:55:20] Production.INFO: ==4719== Releasing lock... [2025-01-17 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:56:05 [end_date_ymd] => 2025-01-17 00:56:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:56:05' and `end` < '2025-01-17 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-17 00:56:19] Production.INFO: count ==168 [2025-01-17 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:56:05 - End Time 2025-01-17 00:56:05 [2025-01-17 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264766', 'tblTempUsageDetail_20' ) start [2025-01-17 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264766', 'tblTempUsageDetail_20' ) end [2025-01-17 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264766', 'tblTempVendorCDR_20' ) start [2025-01-17 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264766', 'tblTempVendorCDR_20' ) end [2025-01-17 00:56:19] Production.INFO: ProcessCDR(1,14264766,1,1,2) [2025-01-17 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264766', 'tblTempUsageDetail_20' ) start [2025-01-17 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264766', 'tblTempUsageDetail_20' ) end [2025-01-17 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:56:22] Production.INFO: ==4790== Releasing lock... [2025-01-17 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:57:05 [end_date_ymd] => 2025-01-17 00:57:05 [RateCDR] => 1 ) [2025-01-17 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:57:05' and `end` < '2025-01-17 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:57:17] Production.INFO: count ==167 [2025-01-17 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:57:05 - End Time 2025-01-17 00:57:05 [2025-01-17 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264771', 'tblTempUsageDetail_20' ) start [2025-01-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264771', 'tblTempUsageDetail_20' ) end [2025-01-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264771', 'tblTempVendorCDR_20' ) start [2025-01-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264771', 'tblTempVendorCDR_20' ) end [2025-01-17 00:57:17] Production.INFO: ProcessCDR(1,14264771,1,1,2) [2025-01-17 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264771', 'tblTempUsageDetail_20' ) start [2025-01-17 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264771', 'tblTempUsageDetail_20' ) end [2025-01-17 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:57:21] Production.INFO: ==4860== Releasing lock... [2025-01-17 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:58:05 [end_date_ymd] => 2025-01-17 00:58:05 [RateCDR] => 1 ) [2025-01-17 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-16 21:58:05' and `end` < '2025-01-17 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-17 00:58:19] Production.INFO: count ==167 [2025-01-17 00:58:19] Production.ERROR: pbx CDR StartTime 2025-01-16 21:58:05 - End Time 2025-01-17 00:58:05 [2025-01-17 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264776', 'tblTempUsageDetail_20' ) start [2025-01-17 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264776', 'tblTempUsageDetail_20' ) end [2025-01-17 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264776', 'tblTempVendorCDR_20' ) start [2025-01-17 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264776', 'tblTempVendorCDR_20' ) end [2025-01-17 00:58:19] Production.INFO: ProcessCDR(1,14264776,1,1,2) [2025-01-17 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264776', 'tblTempUsageDetail_20' ) start [2025-01-17 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264776', 'tblTempUsageDetail_20' ) end [2025-01-17 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:58:22] Production.INFO: ==4935== Releasing lock... [2025-01-17 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 21:59:05 [end_date_ymd] => 2025-01-17 00:59:05 [RateCDR] => 1 ) [2025-01-17 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 21:59:05' and `end` < '2025-01-17 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 00:59:17] Production.INFO: count ==165 [2025-01-17 00:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 21:59:05 - End Time 2025-01-17 00:59:05 [2025-01-17 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264781', 'tblTempUsageDetail_20' ) start [2025-01-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264781', 'tblTempUsageDetail_20' ) end [2025-01-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264781', 'tblTempVendorCDR_20' ) start [2025-01-17 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264781', 'tblTempVendorCDR_20' ) end [2025-01-17 00:59:17] Production.INFO: ProcessCDR(1,14264781,1,1,2) [2025-01-17 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264781', 'tblTempUsageDetail_20' ) start [2025-01-17 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264781', 'tblTempUsageDetail_20' ) end [2025-01-17 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 00:59:21] Production.INFO: ==5007== Releasing lock... [2025-01-17 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 00:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:00:06 [end_date_ymd] => 2025-01-17 01:00:06 [RateCDR] => 1 ) [2025-01-17 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:00:06' and `end` < '2025-01-17 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:00:18] Production.INFO: count ==172 [2025-01-17 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:00:06 - End Time 2025-01-17 01:00:06 [2025-01-17 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264787', 'tblTempUsageDetail_20' ) start [2025-01-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264787', 'tblTempUsageDetail_20' ) end [2025-01-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264787', 'tblTempVendorCDR_20' ) start [2025-01-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264787', 'tblTempVendorCDR_20' ) end [2025-01-17 01:00:18] Production.INFO: ProcessCDR(1,14264787,1,1,2) [2025-01-17 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264787', 'tblTempUsageDetail_20' ) start [2025-01-17 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264787', 'tblTempUsageDetail_20' ) end [2025-01-17 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:00:22] Production.INFO: ==5079== Releasing lock... [2025-01-17 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:01:05 [end_date_ymd] => 2025-01-17 01:01:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:01:05' and `end` < '2025-01-17 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-17 01:01:18] Production.INFO: count ==176 [2025-01-17 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:01:05 - End Time 2025-01-17 01:01:05 [2025-01-17 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264792', 'tblTempUsageDetail_20' ) start [2025-01-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264792', 'tblTempUsageDetail_20' ) end [2025-01-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264792', 'tblTempVendorCDR_20' ) start [2025-01-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264792', 'tblTempVendorCDR_20' ) end [2025-01-17 01:01:18] Production.INFO: ProcessCDR(1,14264792,1,1,2) [2025-01-17 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264792', 'tblTempUsageDetail_20' ) start [2025-01-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264792', 'tblTempUsageDetail_20' ) end [2025-01-17 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:01:21] Production.INFO: ==5171== Releasing lock... [2025-01-17 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:02:06 [end_date_ymd] => 2025-01-17 01:02:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:02:06' and `end` < '2025-01-17 01: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-17 01:02:18] Production.INFO: count ==176 [2025-01-17 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:02:06 - End Time 2025-01-17 01:02:06 [2025-01-17 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264797', 'tblTempUsageDetail_20' ) start [2025-01-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264797', 'tblTempUsageDetail_20' ) end [2025-01-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264797', 'tblTempVendorCDR_20' ) start [2025-01-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264797', 'tblTempVendorCDR_20' ) end [2025-01-17 01:02:18] Production.INFO: ProcessCDR(1,14264797,1,1,2) [2025-01-17 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264797', 'tblTempUsageDetail_20' ) start [2025-01-17 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264797', 'tblTempUsageDetail_20' ) end [2025-01-17 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:02:21] Production.INFO: ==5241== Releasing lock... [2025-01-17 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:03:05 [end_date_ymd] => 2025-01-17 01:03:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:03:05' and `end` < '2025-01-17 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-17 01:03:17] Production.INFO: count ==176 [2025-01-17 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:03:05 - End Time 2025-01-17 01:03:05 [2025-01-17 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264802', 'tblTempUsageDetail_20' ) start [2025-01-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264802', 'tblTempUsageDetail_20' ) end [2025-01-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264802', 'tblTempVendorCDR_20' ) start [2025-01-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264802', 'tblTempVendorCDR_20' ) end [2025-01-17 01:03:17] Production.INFO: ProcessCDR(1,14264802,1,1,2) [2025-01-17 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264802', 'tblTempUsageDetail_20' ) start [2025-01-17 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264802', 'tblTempUsageDetail_20' ) end [2025-01-17 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:03:20] Production.INFO: ==5310== Releasing lock... [2025-01-17 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:04:05 [end_date_ymd] => 2025-01-17 01:04:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:04:05' and `end` < '2025-01-17 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-17 01:04:18] Production.INFO: count ==176 [2025-01-17 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:04:05 - End Time 2025-01-17 01:04:05 [2025-01-17 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264807', 'tblTempUsageDetail_20' ) start [2025-01-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264807', 'tblTempUsageDetail_20' ) end [2025-01-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264807', 'tblTempVendorCDR_20' ) start [2025-01-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264807', 'tblTempVendorCDR_20' ) end [2025-01-17 01:04:18] Production.INFO: ProcessCDR(1,14264807,1,1,2) [2025-01-17 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264807', 'tblTempUsageDetail_20' ) start [2025-01-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264807', 'tblTempUsageDetail_20' ) end [2025-01-17 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:04:21] Production.INFO: ==5381== Releasing lock... [2025-01-17 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:05:05 [end_date_ymd] => 2025-01-17 01:05:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:05:05' and `end` < '2025-01-17 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-17 01:05:17] Production.INFO: count ==178 [2025-01-17 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:05:05 - End Time 2025-01-17 01:05:05 [2025-01-17 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264812', 'tblTempUsageDetail_20' ) start [2025-01-17 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264812', 'tblTempUsageDetail_20' ) end [2025-01-17 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264812', 'tblTempVendorCDR_20' ) start [2025-01-17 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264812', 'tblTempVendorCDR_20' ) end [2025-01-17 01:05:18] Production.INFO: ProcessCDR(1,14264812,1,1,2) [2025-01-17 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264812', 'tblTempUsageDetail_20' ) start [2025-01-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264812', 'tblTempUsageDetail_20' ) end [2025-01-17 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:05:21] Production.INFO: ==5454== Releasing lock... [2025-01-17 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:06:05 [end_date_ymd] => 2025-01-17 01:06:05 [RateCDR] => 1 ) [2025-01-17 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:06:05' and `end` < '2025-01-17 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:06:17] Production.INFO: count ==177 [2025-01-17 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:06:05 - End Time 2025-01-17 01:06:05 [2025-01-17 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264817', 'tblTempUsageDetail_20' ) start [2025-01-17 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264817', 'tblTempUsageDetail_20' ) end [2025-01-17 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264817', 'tblTempVendorCDR_20' ) start [2025-01-17 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264817', 'tblTempVendorCDR_20' ) end [2025-01-17 01:06:18] Production.INFO: ProcessCDR(1,14264817,1,1,2) [2025-01-17 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264817', 'tblTempUsageDetail_20' ) start [2025-01-17 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264817', 'tblTempUsageDetail_20' ) end [2025-01-17 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:06:21] Production.INFO: ==5524== Releasing lock... [2025-01-17 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:07:05 [end_date_ymd] => 2025-01-17 01:07:05 [RateCDR] => 1 ) [2025-01-17 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:07:05' and `end` < '2025-01-17 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:07:18] Production.INFO: count ==177 [2025-01-17 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:07:05 - End Time 2025-01-17 01:07:05 [2025-01-17 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264822', 'tblTempUsageDetail_20' ) start [2025-01-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264822', 'tblTempUsageDetail_20' ) end [2025-01-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264822', 'tblTempVendorCDR_20' ) start [2025-01-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264822', 'tblTempVendorCDR_20' ) end [2025-01-17 01:07:18] Production.INFO: ProcessCDR(1,14264822,1,1,2) [2025-01-17 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264822', 'tblTempUsageDetail_20' ) start [2025-01-17 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264822', 'tblTempUsageDetail_20' ) end [2025-01-17 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:07:22] Production.INFO: ==5595== Releasing lock... [2025-01-17 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:08:05 [end_date_ymd] => 2025-01-17 01:08:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:08:05' and `end` < '2025-01-17 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-17 01:08:17] Production.INFO: count ==176 [2025-01-17 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:08:05 - End Time 2025-01-17 01:08:05 [2025-01-17 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264827', 'tblTempUsageDetail_20' ) start [2025-01-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264827', 'tblTempUsageDetail_20' ) end [2025-01-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264827', 'tblTempVendorCDR_20' ) start [2025-01-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264827', 'tblTempVendorCDR_20' ) end [2025-01-17 01:08:17] Production.INFO: ProcessCDR(1,14264827,1,1,2) [2025-01-17 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264827', 'tblTempUsageDetail_20' ) start [2025-01-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264827', 'tblTempUsageDetail_20' ) end [2025-01-17 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:08:21] Production.INFO: ==5665== Releasing lock... [2025-01-17 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:09:05 [end_date_ymd] => 2025-01-17 01:09:05 [RateCDR] => 1 ) [2025-01-17 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:09:05' and `end` < '2025-01-17 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:09:17] Production.INFO: count ==174 [2025-01-17 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:09:05 - End Time 2025-01-17 01:09:05 [2025-01-17 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264832', 'tblTempUsageDetail_20' ) start [2025-01-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264832', 'tblTempUsageDetail_20' ) end [2025-01-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264832', 'tblTempVendorCDR_20' ) start [2025-01-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264832', 'tblTempVendorCDR_20' ) end [2025-01-17 01:09:17] Production.INFO: ProcessCDR(1,14264832,1,1,2) [2025-01-17 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264832', 'tblTempUsageDetail_20' ) start [2025-01-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264832', 'tblTempUsageDetail_20' ) end [2025-01-17 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:09:20] Production.INFO: ==5734== Releasing lock... [2025-01-17 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:10:05 [end_date_ymd] => 2025-01-17 01:10:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:10:05' and `end` < '2025-01-17 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-17 01:10:18] Production.INFO: count ==179 [2025-01-17 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:10:05 - End Time 2025-01-17 01:10:05 [2025-01-17 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264837', 'tblTempUsageDetail_20' ) start [2025-01-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264837', 'tblTempUsageDetail_20' ) end [2025-01-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264837', 'tblTempVendorCDR_20' ) start [2025-01-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264837', 'tblTempVendorCDR_20' ) end [2025-01-17 01:10:18] Production.INFO: ProcessCDR(1,14264837,1,1,2) [2025-01-17 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264837', 'tblTempUsageDetail_20' ) start [2025-01-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264837', 'tblTempUsageDetail_20' ) end [2025-01-17 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:10:21] Production.INFO: ==5847== Releasing lock... [2025-01-17 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:11:05 [end_date_ymd] => 2025-01-17 01:11:05 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:11:05' and `end` < '2025-01-17 01: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-17 01:11:17] Production.INFO: count ==193 [2025-01-17 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:11:05 - End Time 2025-01-17 01:11:05 [2025-01-17 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264843', 'tblTempUsageDetail_20' ) start [2025-01-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264843', 'tblTempUsageDetail_20' ) end [2025-01-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264843', 'tblTempVendorCDR_20' ) start [2025-01-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264843', 'tblTempVendorCDR_20' ) end [2025-01-17 01:11:17] Production.INFO: ProcessCDR(1,14264843,1,1,2) [2025-01-17 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264843', 'tblTempUsageDetail_20' ) start [2025-01-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264843', 'tblTempUsageDetail_20' ) end [2025-01-17 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:11:21] Production.INFO: ==5921== Releasing lock... [2025-01-17 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:12:05 [end_date_ymd] => 2025-01-17 01:12:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:12:05' and `end` < '2025-01-17 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-17 01:12:19] Production.INFO: count ==192 [2025-01-17 01:12:19] Production.ERROR: pbx CDR StartTime 2025-01-16 22:12:05 - End Time 2025-01-17 01:12:05 [2025-01-17 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264848', 'tblTempUsageDetail_20' ) start [2025-01-17 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264848', 'tblTempUsageDetail_20' ) end [2025-01-17 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264848', 'tblTempVendorCDR_20' ) start [2025-01-17 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264848', 'tblTempVendorCDR_20' ) end [2025-01-17 01:12:19] Production.INFO: ProcessCDR(1,14264848,1,1,2) [2025-01-17 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264848', 'tblTempUsageDetail_20' ) start [2025-01-17 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264848', 'tblTempUsageDetail_20' ) end [2025-01-17 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:12:22] Production.INFO: ==5993== Releasing lock... [2025-01-17 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:13:05 [end_date_ymd] => 2025-01-17 01:13:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:13:05' and `end` < '2025-01-17 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-17 01:13:20] Production.INFO: count ==192 [2025-01-17 01:13:20] Production.ERROR: pbx CDR StartTime 2025-01-16 22:13:05 - End Time 2025-01-17 01:13:05 [2025-01-17 01:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264853', 'tblTempUsageDetail_20' ) start [2025-01-17 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264853', 'tblTempUsageDetail_20' ) end [2025-01-17 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264853', 'tblTempVendorCDR_20' ) start [2025-01-17 01:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264853', 'tblTempVendorCDR_20' ) end [2025-01-17 01:13:21] Production.INFO: ProcessCDR(1,14264853,1,1,2) [2025-01-17 01:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264853', 'tblTempUsageDetail_20' ) start [2025-01-17 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264853', 'tblTempUsageDetail_20' ) end [2025-01-17 01:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:13:24] Production.INFO: ==6066== Releasing lock... [2025-01-17 01:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:13:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:14:05 [end_date_ymd] => 2025-01-17 01:14:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:14:05' and `end` < '2025-01-17 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:14:18] Production.INFO: count ==192 [2025-01-17 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:14:05 - End Time 2025-01-17 01:14:05 [2025-01-17 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264858', 'tblTempUsageDetail_20' ) start [2025-01-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264858', 'tblTempUsageDetail_20' ) end [2025-01-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264858', 'tblTempVendorCDR_20' ) start [2025-01-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264858', 'tblTempVendorCDR_20' ) end [2025-01-17 01:14:18] Production.INFO: ProcessCDR(1,14264858,1,1,2) [2025-01-17 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264858', 'tblTempUsageDetail_20' ) start [2025-01-17 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264858', 'tblTempUsageDetail_20' ) end [2025-01-17 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:14:22] Production.INFO: ==6136== Releasing lock... [2025-01-17 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:15:05 [end_date_ymd] => 2025-01-17 01:15:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:15:05' and `end` < '2025-01-17 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-17 01:15:18] Production.INFO: count ==195 [2025-01-17 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:15:05 - End Time 2025-01-17 01:15:05 [2025-01-17 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264863', 'tblTempUsageDetail_20' ) start [2025-01-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264863', 'tblTempUsageDetail_20' ) end [2025-01-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264863', 'tblTempVendorCDR_20' ) start [2025-01-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264863', 'tblTempVendorCDR_20' ) end [2025-01-17 01:15:18] Production.INFO: ProcessCDR(1,14264863,1,1,2) [2025-01-17 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264863', 'tblTempUsageDetail_20' ) start [2025-01-17 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264863', 'tblTempUsageDetail_20' ) end [2025-01-17 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:15:23] Production.INFO: ==6211== Releasing lock... [2025-01-17 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:15:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:16:05 [end_date_ymd] => 2025-01-17 01:16:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:16:05' and `end` < '2025-01-17 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-17 01:16:17] Production.INFO: count ==195 [2025-01-17 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:16:05 - End Time 2025-01-17 01:16:05 [2025-01-17 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264868', 'tblTempUsageDetail_20' ) start [2025-01-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264868', 'tblTempUsageDetail_20' ) end [2025-01-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264868', 'tblTempVendorCDR_20' ) start [2025-01-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264868', 'tblTempVendorCDR_20' ) end [2025-01-17 01:16:17] Production.INFO: ProcessCDR(1,14264868,1,1,2) [2025-01-17 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264868', 'tblTempUsageDetail_20' ) start [2025-01-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264868', 'tblTempUsageDetail_20' ) end [2025-01-17 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:16:20] Production.INFO: ==6281== Releasing lock... [2025-01-17 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:17:05 [end_date_ymd] => 2025-01-17 01:17:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:17:05' and `end` < '2025-01-17 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-17 01:17:18] Production.INFO: count ==199 [2025-01-17 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:17:05 - End Time 2025-01-17 01:17:05 [2025-01-17 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264873', 'tblTempUsageDetail_20' ) start [2025-01-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264873', 'tblTempUsageDetail_20' ) end [2025-01-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264873', 'tblTempVendorCDR_20' ) start [2025-01-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264873', 'tblTempVendorCDR_20' ) end [2025-01-17 01:17:18] Production.INFO: ProcessCDR(1,14264873,1,1,2) [2025-01-17 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264873', 'tblTempUsageDetail_20' ) start [2025-01-17 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264873', 'tblTempUsageDetail_20' ) end [2025-01-17 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:17:21] Production.INFO: ==6350== Releasing lock... [2025-01-17 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:18:05 [end_date_ymd] => 2025-01-17 01:18:05 [RateCDR] => 1 ) [2025-01-17 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:18:05' and `end` < '2025-01-17 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:18:17] Production.INFO: count ==199 [2025-01-17 01:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:18:05 - End Time 2025-01-17 01:18:05 [2025-01-17 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264878', 'tblTempUsageDetail_20' ) start [2025-01-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264878', 'tblTempUsageDetail_20' ) end [2025-01-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264878', 'tblTempVendorCDR_20' ) start [2025-01-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264878', 'tblTempVendorCDR_20' ) end [2025-01-17 01:18:17] Production.INFO: ProcessCDR(1,14264878,1,1,2) [2025-01-17 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264878', 'tblTempUsageDetail_20' ) start [2025-01-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264878', 'tblTempUsageDetail_20' ) end [2025-01-17 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:18:21] Production.INFO: ==6421== Releasing lock... [2025-01-17 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:19:05 [end_date_ymd] => 2025-01-17 01:19:05 [RateCDR] => 1 ) [2025-01-17 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:19:05' and `end` < '2025-01-17 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:19:17] Production.INFO: count ==199 [2025-01-17 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:19:05 - End Time 2025-01-17 01:19:05 [2025-01-17 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264883', 'tblTempUsageDetail_20' ) start [2025-01-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264883', 'tblTempUsageDetail_20' ) end [2025-01-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264883', 'tblTempVendorCDR_20' ) start [2025-01-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264883', 'tblTempVendorCDR_20' ) end [2025-01-17 01:19:17] Production.INFO: ProcessCDR(1,14264883,1,1,2) [2025-01-17 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264883', 'tblTempUsageDetail_20' ) start [2025-01-17 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264883', 'tblTempUsageDetail_20' ) end [2025-01-17 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:19:20] Production.INFO: ==6492== Releasing lock... [2025-01-17 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:20:06 [end_date_ymd] => 2025-01-17 01:20:06 [RateCDR] => 1 ) [2025-01-17 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:20:06' and `end` < '2025-01-17 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:20:18] Production.INFO: count ==206 [2025-01-17 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:20:06 - End Time 2025-01-17 01:20:06 [2025-01-17 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264889', 'tblTempUsageDetail_20' ) start [2025-01-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264889', 'tblTempUsageDetail_20' ) end [2025-01-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264889', 'tblTempVendorCDR_20' ) start [2025-01-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264889', 'tblTempVendorCDR_20' ) end [2025-01-17 01:20:18] Production.INFO: ProcessCDR(1,14264889,1,1,2) [2025-01-17 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264889', 'tblTempUsageDetail_20' ) start [2025-01-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264889', 'tblTempUsageDetail_20' ) end [2025-01-17 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:20:21] Production.INFO: ==6565== Releasing lock... [2025-01-17 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:21:05 [end_date_ymd] => 2025-01-17 01:21:05 [RateCDR] => 1 ) [2025-01-17 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:21:05' and `end` < '2025-01-17 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:21:18] Production.INFO: count ==214 [2025-01-17 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:21:05 - End Time 2025-01-17 01:21:05 [2025-01-17 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264894', 'tblTempUsageDetail_20' ) start [2025-01-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264894', 'tblTempUsageDetail_20' ) end [2025-01-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264894', 'tblTempVendorCDR_20' ) start [2025-01-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264894', 'tblTempVendorCDR_20' ) end [2025-01-17 01:21:18] Production.INFO: ProcessCDR(1,14264894,1,1,2) [2025-01-17 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264894', 'tblTempUsageDetail_20' ) start [2025-01-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264894', 'tblTempUsageDetail_20' ) end [2025-01-17 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:21:21] Production.INFO: ==6639== Releasing lock... [2025-01-17 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:22:05 [end_date_ymd] => 2025-01-17 01:22:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:22:05' and `end` < '2025-01-17 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-17 01:22:18] Production.INFO: count ==214 [2025-01-17 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:22:05 - End Time 2025-01-17 01:22:05 [2025-01-17 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264899', 'tblTempUsageDetail_20' ) start [2025-01-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264899', 'tblTempUsageDetail_20' ) end [2025-01-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264899', 'tblTempVendorCDR_20' ) start [2025-01-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264899', 'tblTempVendorCDR_20' ) end [2025-01-17 01:22:18] Production.INFO: ProcessCDR(1,14264899,1,1,2) [2025-01-17 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264899', 'tblTempUsageDetail_20' ) start [2025-01-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264899', 'tblTempUsageDetail_20' ) end [2025-01-17 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:22:21] Production.INFO: ==6708== Releasing lock... [2025-01-17 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:23:05 [end_date_ymd] => 2025-01-17 01:23:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:23:05' and `end` < '2025-01-17 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-17 01:23:19] Production.INFO: count ==214 [2025-01-17 01:23:20] Production.ERROR: pbx CDR StartTime 2025-01-16 22:23:05 - End Time 2025-01-17 01:23:05 [2025-01-17 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264904', 'tblTempUsageDetail_20' ) start [2025-01-17 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264904', 'tblTempUsageDetail_20' ) end [2025-01-17 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264904', 'tblTempVendorCDR_20' ) start [2025-01-17 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264904', 'tblTempVendorCDR_20' ) end [2025-01-17 01:23:20] Production.INFO: ProcessCDR(1,14264904,1,1,2) [2025-01-17 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264904', 'tblTempUsageDetail_20' ) start [2025-01-17 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264904', 'tblTempUsageDetail_20' ) end [2025-01-17 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:23:23] Production.INFO: ==6780== Releasing lock... [2025-01-17 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:23:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:24:05 [end_date_ymd] => 2025-01-17 01:24:05 [RateCDR] => 1 ) [2025-01-17 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:24:05' and `end` < '2025-01-17 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:24:17] Production.INFO: count ==214 [2025-01-17 01:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:24:05 - End Time 2025-01-17 01:24:05 [2025-01-17 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264909', 'tblTempUsageDetail_20' ) start [2025-01-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264909', 'tblTempUsageDetail_20' ) end [2025-01-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264909', 'tblTempVendorCDR_20' ) start [2025-01-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264909', 'tblTempVendorCDR_20' ) end [2025-01-17 01:24:17] Production.INFO: ProcessCDR(1,14264909,1,1,2) [2025-01-17 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264909', 'tblTempUsageDetail_20' ) start [2025-01-17 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264909', 'tblTempUsageDetail_20' ) end [2025-01-17 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:24:21] Production.INFO: ==6851== Releasing lock... [2025-01-17 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:25:05 [end_date_ymd] => 2025-01-17 01:25:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:25:05' and `end` < '2025-01-17 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-17 01:25:18] Production.INFO: count ==214 [2025-01-17 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:25:05 - End Time 2025-01-17 01:25:05 [2025-01-17 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264914', 'tblTempUsageDetail_20' ) start [2025-01-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264914', 'tblTempUsageDetail_20' ) end [2025-01-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264914', 'tblTempVendorCDR_20' ) start [2025-01-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264914', 'tblTempVendorCDR_20' ) end [2025-01-17 01:25:18] Production.INFO: ProcessCDR(1,14264914,1,1,2) [2025-01-17 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264914', 'tblTempUsageDetail_20' ) start [2025-01-17 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264914', 'tblTempUsageDetail_20' ) end [2025-01-17 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:25:22] Production.INFO: ==6961== Releasing lock... [2025-01-17 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:26:05 [end_date_ymd] => 2025-01-17 01:26:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:26:05' and `end` < '2025-01-17 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-17 01:26:18] Production.INFO: count ==214 [2025-01-17 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:26:05 - End Time 2025-01-17 01:26:05 [2025-01-17 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264919', 'tblTempUsageDetail_20' ) start [2025-01-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264919', 'tblTempUsageDetail_20' ) end [2025-01-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264919', 'tblTempVendorCDR_20' ) start [2025-01-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264919', 'tblTempVendorCDR_20' ) end [2025-01-17 01:26:18] Production.INFO: ProcessCDR(1,14264919,1,1,2) [2025-01-17 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264919', 'tblTempUsageDetail_20' ) start [2025-01-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264919', 'tblTempUsageDetail_20' ) end [2025-01-17 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:26:21] Production.INFO: ==7031== Releasing lock... [2025-01-17 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:27:05 [end_date_ymd] => 2025-01-17 01:27:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:27:05' and `end` < '2025-01-17 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-17 01:27:18] Production.INFO: count ==214 [2025-01-17 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:27:05 - End Time 2025-01-17 01:27:05 [2025-01-17 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264924', 'tblTempUsageDetail_20' ) start [2025-01-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264924', 'tblTempUsageDetail_20' ) end [2025-01-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264924', 'tblTempVendorCDR_20' ) start [2025-01-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264924', 'tblTempVendorCDR_20' ) end [2025-01-17 01:27:18] Production.INFO: ProcessCDR(1,14264924,1,1,2) [2025-01-17 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264924', 'tblTempUsageDetail_20' ) start [2025-01-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264924', 'tblTempUsageDetail_20' ) end [2025-01-17 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:27:21] Production.INFO: ==7100== Releasing lock... [2025-01-17 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:28:05 [end_date_ymd] => 2025-01-17 01:28:05 [RateCDR] => 1 ) [2025-01-17 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:28:05' and `end` < '2025-01-17 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:28:18] Production.INFO: count ==213 [2025-01-17 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:28:05 - End Time 2025-01-17 01:28:05 [2025-01-17 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264929', 'tblTempUsageDetail_20' ) start [2025-01-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264929', 'tblTempUsageDetail_20' ) end [2025-01-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264929', 'tblTempVendorCDR_20' ) start [2025-01-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264929', 'tblTempVendorCDR_20' ) end [2025-01-17 01:28:18] Production.INFO: ProcessCDR(1,14264929,1,1,2) [2025-01-17 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264929', 'tblTempUsageDetail_20' ) start [2025-01-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264929', 'tblTempUsageDetail_20' ) end [2025-01-17 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:28:21] Production.INFO: ==7172== Releasing lock... [2025-01-17 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:29:05 [end_date_ymd] => 2025-01-17 01:29:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:29:05' and `end` < '2025-01-17 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-17 01:29:17] Production.INFO: count ==213 [2025-01-17 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:29:05 - End Time 2025-01-17 01:29:05 [2025-01-17 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264934', 'tblTempUsageDetail_20' ) start [2025-01-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264934', 'tblTempUsageDetail_20' ) end [2025-01-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264934', 'tblTempVendorCDR_20' ) start [2025-01-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264934', 'tblTempVendorCDR_20' ) end [2025-01-17 01:29:18] Production.INFO: ProcessCDR(1,14264934,1,1,2) [2025-01-17 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264934', 'tblTempUsageDetail_20' ) start [2025-01-17 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264934', 'tblTempUsageDetail_20' ) end [2025-01-17 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:29:21] Production.INFO: ==7246== Releasing lock... [2025-01-17 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:30:05 [end_date_ymd] => 2025-01-17 01:30:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:30:05' and `end` < '2025-01-17 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-17 01:30:17] Production.INFO: count ==218 [2025-01-17 01:30:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:30:05 - End Time 2025-01-17 01:30:05 [2025-01-17 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264939', 'tblTempUsageDetail_20' ) start [2025-01-17 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264939', 'tblTempUsageDetail_20' ) end [2025-01-17 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264939', 'tblTempVendorCDR_20' ) start [2025-01-17 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264939', 'tblTempVendorCDR_20' ) end [2025-01-17 01:30:17] Production.INFO: ProcessCDR(1,14264939,1,1,2) [2025-01-17 01:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264939', 'tblTempUsageDetail_20' ) start [2025-01-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264939', 'tblTempUsageDetail_20' ) end [2025-01-17 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:30:21] Production.INFO: ==7322== Releasing lock... [2025-01-17 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:31:06 [end_date_ymd] => 2025-01-17 01:31:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:31:06' and `end` < '2025-01-17 01: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-17 01:31:19] Production.INFO: count ==224 [2025-01-17 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-16 22:31:06 - End Time 2025-01-17 01:31:06 [2025-01-17 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264945', 'tblTempUsageDetail_20' ) start [2025-01-17 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264945', 'tblTempUsageDetail_20' ) end [2025-01-17 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264945', 'tblTempVendorCDR_20' ) start [2025-01-17 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264945', 'tblTempVendorCDR_20' ) end [2025-01-17 01:31:19] Production.INFO: ProcessCDR(1,14264945,1,1,2) [2025-01-17 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264945', 'tblTempUsageDetail_20' ) start [2025-01-17 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264945', 'tblTempUsageDetail_20' ) end [2025-01-17 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:31:22] Production.INFO: ==7403== Releasing lock... [2025-01-17 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:32:04 [end_date_ymd] => 2025-01-17 01:32:04 [RateCDR] => 1 ) [2025-01-17 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-16 22:32:04' and `end` < '2025-01-17 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-17 01:32:17] Production.INFO: count ==228 [2025-01-17 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:32:04 - End Time 2025-01-17 01:32:04 [2025-01-17 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264950', 'tblTempUsageDetail_20' ) start [2025-01-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264950', 'tblTempUsageDetail_20' ) end [2025-01-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264950', 'tblTempVendorCDR_20' ) start [2025-01-17 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264950', 'tblTempVendorCDR_20' ) end [2025-01-17 01:32:17] Production.INFO: ProcessCDR(1,14264950,1,1,2) [2025-01-17 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264950', 'tblTempUsageDetail_20' ) start [2025-01-17 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264950', 'tblTempUsageDetail_20' ) end [2025-01-17 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:32:20] Production.INFO: ==7482== Releasing lock... [2025-01-17 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:33:05 [end_date_ymd] => 2025-01-17 01:33:05 [RateCDR] => 1 ) [2025-01-17 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:33:05' and `end` < '2025-01-17 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:33:18] Production.INFO: count ==227 [2025-01-17 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:33:05 - End Time 2025-01-17 01:33:05 [2025-01-17 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264955', 'tblTempUsageDetail_20' ) start [2025-01-17 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264955', 'tblTempUsageDetail_20' ) end [2025-01-17 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264955', 'tblTempVendorCDR_20' ) start [2025-01-17 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264955', 'tblTempVendorCDR_20' ) end [2025-01-17 01:33:18] Production.INFO: ProcessCDR(1,14264955,1,1,2) [2025-01-17 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264955', 'tblTempUsageDetail_20' ) start [2025-01-17 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264955', 'tblTempUsageDetail_20' ) end [2025-01-17 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:33:21] Production.INFO: ==7568== Releasing lock... [2025-01-17 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:34:05 [end_date_ymd] => 2025-01-17 01:34:05 [RateCDR] => 1 ) [2025-01-17 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:34:05' and `end` < '2025-01-17 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:34:18] Production.INFO: count ==227 [2025-01-17 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:34:05 - End Time 2025-01-17 01:34:05 [2025-01-17 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264960', 'tblTempUsageDetail_20' ) start [2025-01-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264960', 'tblTempUsageDetail_20' ) end [2025-01-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264960', 'tblTempVendorCDR_20' ) start [2025-01-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264960', 'tblTempVendorCDR_20' ) end [2025-01-17 01:34:18] Production.INFO: ProcessCDR(1,14264960,1,1,2) [2025-01-17 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264960', 'tblTempUsageDetail_20' ) start [2025-01-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264960', 'tblTempUsageDetail_20' ) end [2025-01-17 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:34:22] Production.INFO: ==7651== Releasing lock... [2025-01-17 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:35:06 [end_date_ymd] => 2025-01-17 01:35:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:35:06' and `end` < '2025-01-17 01: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-17 01:35:18] Production.INFO: count ==227 [2025-01-17 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:35:06 - End Time 2025-01-17 01:35:06 [2025-01-17 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264965', 'tblTempUsageDetail_20' ) start [2025-01-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264965', 'tblTempUsageDetail_20' ) end [2025-01-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264965', 'tblTempVendorCDR_20' ) start [2025-01-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264965', 'tblTempVendorCDR_20' ) end [2025-01-17 01:35:18] Production.INFO: ProcessCDR(1,14264965,1,1,2) [2025-01-17 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264965', 'tblTempUsageDetail_20' ) start [2025-01-17 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264965', 'tblTempUsageDetail_20' ) end [2025-01-17 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:35:22] Production.INFO: ==7727== Releasing lock... [2025-01-17 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:36:05 [end_date_ymd] => 2025-01-17 01:36:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:36:05' and `end` < '2025-01-17 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-17 01:36:18] Production.INFO: count ==227 [2025-01-17 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:36:05 - End Time 2025-01-17 01:36:05 [2025-01-17 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264970', 'tblTempUsageDetail_20' ) start [2025-01-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264970', 'tblTempUsageDetail_20' ) end [2025-01-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264970', 'tblTempVendorCDR_20' ) start [2025-01-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264970', 'tblTempVendorCDR_20' ) end [2025-01-17 01:36:18] Production.INFO: ProcessCDR(1,14264970,1,1,2) [2025-01-17 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264970', 'tblTempUsageDetail_20' ) start [2025-01-17 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264970', 'tblTempUsageDetail_20' ) end [2025-01-17 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:36:22] Production.INFO: ==7798== Releasing lock... [2025-01-17 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:37:05 [end_date_ymd] => 2025-01-17 01:37:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:37:05' and `end` < '2025-01-17 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-17 01:37:18] Production.INFO: count ==227 [2025-01-17 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:37:05 - End Time 2025-01-17 01:37:05 [2025-01-17 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264975', 'tblTempUsageDetail_20' ) start [2025-01-17 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264975', 'tblTempUsageDetail_20' ) end [2025-01-17 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264975', 'tblTempVendorCDR_20' ) start [2025-01-17 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264975', 'tblTempVendorCDR_20' ) end [2025-01-17 01:37:18] Production.INFO: ProcessCDR(1,14264975,1,1,2) [2025-01-17 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264975', 'tblTempUsageDetail_20' ) start [2025-01-17 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264975', 'tblTempUsageDetail_20' ) end [2025-01-17 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:37:22] Production.INFO: ==7869== Releasing lock... [2025-01-17 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:38:04 [end_date_ymd] => 2025-01-17 01:38:04 [RateCDR] => 1 ) [2025-01-17 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:38:04' and `end` < '2025-01-17 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-17 01:38:17] Production.INFO: count ==227 [2025-01-17 01:38:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:38:04 - End Time 2025-01-17 01:38:04 [2025-01-17 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264980', 'tblTempUsageDetail_20' ) start [2025-01-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264980', 'tblTempUsageDetail_20' ) end [2025-01-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264980', 'tblTempVendorCDR_20' ) start [2025-01-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264980', 'tblTempVendorCDR_20' ) end [2025-01-17 01:38:17] Production.INFO: ProcessCDR(1,14264980,1,1,2) [2025-01-17 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264980', 'tblTempUsageDetail_20' ) start [2025-01-17 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264980', 'tblTempUsageDetail_20' ) end [2025-01-17 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:38:20] Production.INFO: ==7938== Releasing lock... [2025-01-17 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:39:06 [end_date_ymd] => 2025-01-17 01:39:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:39:06' and `end` < '2025-01-17 01: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-17 01:39:18] Production.INFO: count ==227 [2025-01-17 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:39:06 - End Time 2025-01-17 01:39:06 [2025-01-17 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264985', 'tblTempUsageDetail_20' ) start [2025-01-17 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264985', 'tblTempUsageDetail_20' ) end [2025-01-17 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264985', 'tblTempVendorCDR_20' ) start [2025-01-17 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264985', 'tblTempVendorCDR_20' ) end [2025-01-17 01:39:18] Production.INFO: ProcessCDR(1,14264985,1,1,2) [2025-01-17 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264985', 'tblTempUsageDetail_20' ) start [2025-01-17 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264985', 'tblTempUsageDetail_20' ) end [2025-01-17 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:39:22] Production.INFO: ==8009== Releasing lock... [2025-01-17 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:40:06 [end_date_ymd] => 2025-01-17 01:40:06 [RateCDR] => 1 ) [2025-01-17 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-16 22:40:06' and `end` < '2025-01-17 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-17 01:40:19] Production.INFO: count ==229 [2025-01-17 01:40:20] Production.ERROR: pbx CDR StartTime 2025-01-16 22:40:06 - End Time 2025-01-17 01:40:06 [2025-01-17 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264991', 'tblTempUsageDetail_20' ) start [2025-01-17 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264991', 'tblTempUsageDetail_20' ) end [2025-01-17 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264991', 'tblTempVendorCDR_20' ) start [2025-01-17 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264991', 'tblTempVendorCDR_20' ) end [2025-01-17 01:40:20] Production.INFO: ProcessCDR(1,14264991,1,1,2) [2025-01-17 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264991', 'tblTempUsageDetail_20' ) start [2025-01-17 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264991', 'tblTempUsageDetail_20' ) end [2025-01-17 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:40:23] Production.INFO: ==8081== Releasing lock... [2025-01-17 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:41:05 [end_date_ymd] => 2025-01-17 01:41:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:41:05' and `end` < '2025-01-17 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-17 01:41:17] Production.INFO: count ==228 [2025-01-17 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:41:05 - End Time 2025-01-17 01:41:05 [2025-01-17 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264996', 'tblTempUsageDetail_20' ) start [2025-01-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14264996', 'tblTempUsageDetail_20' ) end [2025-01-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264996', 'tblTempVendorCDR_20' ) start [2025-01-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14264996', 'tblTempVendorCDR_20' ) end [2025-01-17 01:41:17] Production.INFO: ProcessCDR(1,14264996,1,1,2) [2025-01-17 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14264996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14264996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14264996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14264996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264996', 'tblTempUsageDetail_20' ) start [2025-01-17 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14264996', 'tblTempUsageDetail_20' ) end [2025-01-17 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:41:21] Production.INFO: ==8194== Releasing lock... [2025-01-17 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:42:05 [end_date_ymd] => 2025-01-17 01:42:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:42:05' and `end` < '2025-01-17 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-17 01:42:17] Production.INFO: count ==227 [2025-01-17 01:42:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:42:05 - End Time 2025-01-17 01:42:05 [2025-01-17 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265001', 'tblTempUsageDetail_20' ) start [2025-01-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265001', 'tblTempUsageDetail_20' ) end [2025-01-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265001', 'tblTempVendorCDR_20' ) start [2025-01-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265001', 'tblTempVendorCDR_20' ) end [2025-01-17 01:42:17] Production.INFO: ProcessCDR(1,14265001,1,1,2) [2025-01-17 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265001', 'tblTempUsageDetail_20' ) start [2025-01-17 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265001', 'tblTempUsageDetail_20' ) end [2025-01-17 01:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:42:20] Production.INFO: ==8263== Releasing lock... [2025-01-17 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:42:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:43:06 [end_date_ymd] => 2025-01-17 01:43:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:43:06' and `end` < '2025-01-17 01: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-17 01:43:19] Production.INFO: count ==226 [2025-01-17 01:43:19] Production.ERROR: pbx CDR StartTime 2025-01-16 22:43:06 - End Time 2025-01-17 01:43:06 [2025-01-17 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265006', 'tblTempUsageDetail_20' ) start [2025-01-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265006', 'tblTempUsageDetail_20' ) end [2025-01-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265006', 'tblTempVendorCDR_20' ) start [2025-01-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265006', 'tblTempVendorCDR_20' ) end [2025-01-17 01:43:19] Production.INFO: ProcessCDR(1,14265006,1,1,2) [2025-01-17 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265006', 'tblTempUsageDetail_20' ) start [2025-01-17 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265006', 'tblTempUsageDetail_20' ) end [2025-01-17 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:43:22] Production.INFO: ==8337== Releasing lock... [2025-01-17 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:44:05 [end_date_ymd] => 2025-01-17 01:44:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:44:05' and `end` < '2025-01-17 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-17 01:44:17] Production.INFO: count ==226 [2025-01-17 01:44:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:44:05 - End Time 2025-01-17 01:44:05 [2025-01-17 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265011', 'tblTempUsageDetail_20' ) start [2025-01-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265011', 'tblTempUsageDetail_20' ) end [2025-01-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265011', 'tblTempVendorCDR_20' ) start [2025-01-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265011', 'tblTempVendorCDR_20' ) end [2025-01-17 01:44:17] Production.INFO: ProcessCDR(1,14265011,1,1,2) [2025-01-17 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265011', 'tblTempUsageDetail_20' ) start [2025-01-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265011', 'tblTempUsageDetail_20' ) end [2025-01-17 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:44:21] Production.INFO: ==8414== Releasing lock... [2025-01-17 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:45:05 [end_date_ymd] => 2025-01-17 01:45:05 [RateCDR] => 1 ) [2025-01-17 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:45:05' and `end` < '2025-01-17 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:45:18] Production.INFO: count ==226 [2025-01-17 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:45:05 - End Time 2025-01-17 01:45:05 [2025-01-17 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265016', 'tblTempUsageDetail_20' ) start [2025-01-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265016', 'tblTempUsageDetail_20' ) end [2025-01-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265016', 'tblTempVendorCDR_20' ) start [2025-01-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265016', 'tblTempVendorCDR_20' ) end [2025-01-17 01:45:18] Production.INFO: ProcessCDR(1,14265016,1,1,2) [2025-01-17 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265016', 'tblTempUsageDetail_20' ) start [2025-01-17 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265016', 'tblTempUsageDetail_20' ) end [2025-01-17 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:45:22] Production.INFO: ==8485== Releasing lock... [2025-01-17 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:46:05 [end_date_ymd] => 2025-01-17 01:46:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:46:05' and `end` < '2025-01-17 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-17 01:46:19] Production.INFO: count ==225 [2025-01-17 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-16 22:46:05 - End Time 2025-01-17 01:46:05 [2025-01-17 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265021', 'tblTempUsageDetail_20' ) start [2025-01-17 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265021', 'tblTempUsageDetail_20' ) end [2025-01-17 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265021', 'tblTempVendorCDR_20' ) start [2025-01-17 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265021', 'tblTempVendorCDR_20' ) end [2025-01-17 01:46:19] Production.INFO: ProcessCDR(1,14265021,1,1,2) [2025-01-17 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265021', 'tblTempUsageDetail_20' ) start [2025-01-17 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265021', 'tblTempUsageDetail_20' ) end [2025-01-17 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:46:22] Production.INFO: ==8563== Releasing lock... [2025-01-17 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:47:06 [end_date_ymd] => 2025-01-17 01:47:06 [RateCDR] => 1 ) [2025-01-17 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:47:06' and `end` < '2025-01-17 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:47:18] Production.INFO: count ==225 [2025-01-17 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:47:06 - End Time 2025-01-17 01:47:06 [2025-01-17 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265026', 'tblTempUsageDetail_20' ) start [2025-01-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265026', 'tblTempUsageDetail_20' ) end [2025-01-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265026', 'tblTempVendorCDR_20' ) start [2025-01-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265026', 'tblTempVendorCDR_20' ) end [2025-01-17 01:47:18] Production.INFO: ProcessCDR(1,14265026,1,1,2) [2025-01-17 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265026', 'tblTempUsageDetail_20' ) start [2025-01-17 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265026', 'tblTempUsageDetail_20' ) end [2025-01-17 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:47:22] Production.INFO: ==8655== Releasing lock... [2025-01-17 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:48:05 [end_date_ymd] => 2025-01-17 01:48:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:48:05' and `end` < '2025-01-17 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-17 01:48:17] Production.INFO: count ==224 [2025-01-17 01:48:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:48:05 - End Time 2025-01-17 01:48:05 [2025-01-17 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265031', 'tblTempUsageDetail_20' ) start [2025-01-17 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265031', 'tblTempUsageDetail_20' ) end [2025-01-17 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265031', 'tblTempVendorCDR_20' ) start [2025-01-17 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265031', 'tblTempVendorCDR_20' ) end [2025-01-17 01:48:17] Production.INFO: ProcessCDR(1,14265031,1,1,2) [2025-01-17 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265031', 'tblTempUsageDetail_20' ) start [2025-01-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265031', 'tblTempUsageDetail_20' ) end [2025-01-17 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:48:21] Production.INFO: ==8737== Releasing lock... [2025-01-17 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:49:05 [end_date_ymd] => 2025-01-17 01:49:05 [RateCDR] => 1 ) [2025-01-17 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:49:05' and `end` < '2025-01-17 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:49:18] Production.INFO: count ==224 [2025-01-17 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:49:05 - End Time 2025-01-17 01:49:05 [2025-01-17 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265036', 'tblTempUsageDetail_20' ) start [2025-01-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265036', 'tblTempUsageDetail_20' ) end [2025-01-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265036', 'tblTempVendorCDR_20' ) start [2025-01-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265036', 'tblTempVendorCDR_20' ) end [2025-01-17 01:49:18] Production.INFO: ProcessCDR(1,14265036,1,1,2) [2025-01-17 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265036', 'tblTempUsageDetail_20' ) start [2025-01-17 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265036', 'tblTempUsageDetail_20' ) end [2025-01-17 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:49:22] Production.INFO: ==8820== Releasing lock... [2025-01-17 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:50:06 [end_date_ymd] => 2025-01-17 01:50:06 [RateCDR] => 1 ) [2025-01-17 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-16 22:50:06' and `end` < '2025-01-17 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-17 01:50:18] Production.INFO: count ==234 [2025-01-17 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:50:06 - End Time 2025-01-17 01:50:06 [2025-01-17 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265042', 'tblTempUsageDetail_20' ) start [2025-01-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265042', 'tblTempUsageDetail_20' ) end [2025-01-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265042', 'tblTempVendorCDR_20' ) start [2025-01-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265042', 'tblTempVendorCDR_20' ) end [2025-01-17 01:50:18] Production.INFO: ProcessCDR(1,14265042,1,1,2) [2025-01-17 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265042', 'tblTempUsageDetail_20' ) start [2025-01-17 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265042', 'tblTempUsageDetail_20' ) end [2025-01-17 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:50:22] Production.INFO: ==8900== Releasing lock... [2025-01-17 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:51:05 [end_date_ymd] => 2025-01-17 01:51:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:51:05' and `end` < '2025-01-17 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-17 01:51:17] Production.INFO: count ==237 [2025-01-17 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:51:05 - End Time 2025-01-17 01:51:05 [2025-01-17 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265047', 'tblTempUsageDetail_20' ) start [2025-01-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265047', 'tblTempUsageDetail_20' ) end [2025-01-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265047', 'tblTempVendorCDR_20' ) start [2025-01-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265047', 'tblTempVendorCDR_20' ) end [2025-01-17 01:51:18] Production.INFO: ProcessCDR(1,14265047,1,1,2) [2025-01-17 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265047', 'tblTempUsageDetail_20' ) start [2025-01-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265047', 'tblTempUsageDetail_20' ) end [2025-01-17 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:51:21] Production.INFO: ==8999== Releasing lock... [2025-01-17 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:52:05 [end_date_ymd] => 2025-01-17 01:52:05 [RateCDR] => 1 ) [2025-01-17 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:52:05' and `end` < '2025-01-17 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:52:18] Production.INFO: count ==237 [2025-01-17 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:52:05 - End Time 2025-01-17 01:52:05 [2025-01-17 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265052', 'tblTempUsageDetail_20' ) start [2025-01-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265052', 'tblTempUsageDetail_20' ) end [2025-01-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265052', 'tblTempVendorCDR_20' ) start [2025-01-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265052', 'tblTempVendorCDR_20' ) end [2025-01-17 01:52:18] Production.INFO: ProcessCDR(1,14265052,1,1,2) [2025-01-17 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265052', 'tblTempUsageDetail_20' ) start [2025-01-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265052', 'tblTempUsageDetail_20' ) end [2025-01-17 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:52:21] Production.INFO: ==9106== Releasing lock... [2025-01-17 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:53:06 [end_date_ymd] => 2025-01-17 01:53:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:53:06' and `end` < '2025-01-17 01: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-17 01:53:18] Production.INFO: count ==237 [2025-01-17 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:53:06 - End Time 2025-01-17 01:53:06 [2025-01-17 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265057', 'tblTempUsageDetail_20' ) start [2025-01-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265057', 'tblTempUsageDetail_20' ) end [2025-01-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265057', 'tblTempVendorCDR_20' ) start [2025-01-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265057', 'tblTempVendorCDR_20' ) end [2025-01-17 01:53:18] Production.INFO: ProcessCDR(1,14265057,1,1,2) [2025-01-17 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265057', 'tblTempUsageDetail_20' ) start [2025-01-17 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265057', 'tblTempUsageDetail_20' ) end [2025-01-17 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:53:22] Production.INFO: ==9211== Releasing lock... [2025-01-17 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:54:05 [end_date_ymd] => 2025-01-17 01:54:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:54:05' and `end` < '2025-01-17 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-17 01:54:17] Production.INFO: count ==237 [2025-01-17 01:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:54:05 - End Time 2025-01-17 01:54:05 [2025-01-17 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265062', 'tblTempUsageDetail_20' ) start [2025-01-17 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265062', 'tblTempUsageDetail_20' ) end [2025-01-17 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265062', 'tblTempVendorCDR_20' ) start [2025-01-17 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265062', 'tblTempVendorCDR_20' ) end [2025-01-17 01:54:17] Production.INFO: ProcessCDR(1,14265062,1,1,2) [2025-01-17 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265062', 'tblTempUsageDetail_20' ) start [2025-01-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265062', 'tblTempUsageDetail_20' ) end [2025-01-17 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:54:21] Production.INFO: ==9314== Releasing lock... [2025-01-17 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:55:06 [end_date_ymd] => 2025-01-17 01:55:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:55:06' and `end` < '2025-01-17 01: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-17 01:55:18] Production.INFO: count ==236 [2025-01-17 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:55:06 - End Time 2025-01-17 01:55:06 [2025-01-17 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265067', 'tblTempUsageDetail_20' ) start [2025-01-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265067', 'tblTempUsageDetail_20' ) end [2025-01-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265067', 'tblTempVendorCDR_20' ) start [2025-01-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265067', 'tblTempVendorCDR_20' ) end [2025-01-17 01:55:18] Production.INFO: ProcessCDR(1,14265067,1,1,2) [2025-01-17 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265067', 'tblTempUsageDetail_20' ) start [2025-01-17 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265067', 'tblTempUsageDetail_20' ) end [2025-01-17 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:55:22] Production.INFO: ==9416== Releasing lock... [2025-01-17 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:56:05 [end_date_ymd] => 2025-01-17 01:56:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:56:05' and `end` < '2025-01-17 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-17 01:56:18] Production.INFO: count ==236 [2025-01-17 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:56:05 - End Time 2025-01-17 01:56:05 [2025-01-17 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265072', 'tblTempUsageDetail_20' ) start [2025-01-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265072', 'tblTempUsageDetail_20' ) end [2025-01-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265072', 'tblTempVendorCDR_20' ) start [2025-01-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265072', 'tblTempVendorCDR_20' ) end [2025-01-17 01:56:18] Production.INFO: ProcessCDR(1,14265072,1,1,2) [2025-01-17 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265072', 'tblTempUsageDetail_20' ) start [2025-01-17 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265072', 'tblTempUsageDetail_20' ) end [2025-01-17 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:56:22] Production.INFO: ==9513== Releasing lock... [2025-01-17 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:57:06 [end_date_ymd] => 2025-01-17 01:57:06 [RateCDR] => 1 ) [2025-01-17 01: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-16 22:57:06' and `end` < '2025-01-17 01: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-17 01:57:18] Production.INFO: count ==236 [2025-01-17 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:57:06 - End Time 2025-01-17 01:57:06 [2025-01-17 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265077', 'tblTempUsageDetail_20' ) start [2025-01-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265077', 'tblTempUsageDetail_20' ) end [2025-01-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265077', 'tblTempVendorCDR_20' ) start [2025-01-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265077', 'tblTempVendorCDR_20' ) end [2025-01-17 01:57:18] Production.INFO: ProcessCDR(1,14265077,1,1,2) [2025-01-17 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265077', 'tblTempUsageDetail_20' ) start [2025-01-17 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265077', 'tblTempUsageDetail_20' ) end [2025-01-17 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:57:22] Production.INFO: ==9657== Releasing lock... [2025-01-17 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:58:05 [end_date_ymd] => 2025-01-17 01:58:05 [RateCDR] => 1 ) [2025-01-17 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-16 22:58:05' and `end` < '2025-01-17 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-17 01:58:18] Production.INFO: count ==236 [2025-01-17 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-16 22:58:05 - End Time 2025-01-17 01:58:05 [2025-01-17 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265082', 'tblTempUsageDetail_20' ) start [2025-01-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265082', 'tblTempUsageDetail_20' ) end [2025-01-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265082', 'tblTempVendorCDR_20' ) start [2025-01-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265082', 'tblTempVendorCDR_20' ) end [2025-01-17 01:58:18] Production.INFO: ProcessCDR(1,14265082,1,1,2) [2025-01-17 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265082', 'tblTempUsageDetail_20' ) start [2025-01-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265082', 'tblTempUsageDetail_20' ) end [2025-01-17 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:58:22] Production.INFO: ==9760== Releasing lock... [2025-01-17 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 22:59:04 [end_date_ymd] => 2025-01-17 01:59:04 [RateCDR] => 1 ) [2025-01-17 01:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 22:59:04' and `end` < '2025-01-17 01:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 01:59:17] Production.INFO: count ==235 [2025-01-17 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-16 22:59:04 - End Time 2025-01-17 01:59:04 [2025-01-17 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265087', 'tblTempUsageDetail_20' ) start [2025-01-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265087', 'tblTempUsageDetail_20' ) end [2025-01-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265087', 'tblTempVendorCDR_20' ) start [2025-01-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265087', 'tblTempVendorCDR_20' ) end [2025-01-17 01:59:17] Production.INFO: ProcessCDR(1,14265087,1,1,2) [2025-01-17 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265087', 'tblTempUsageDetail_20' ) start [2025-01-17 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265087', 'tblTempUsageDetail_20' ) end [2025-01-17 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 01:59:20] Production.INFO: ==9857== Releasing lock... [2025-01-17 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 01:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:00:06 [end_date_ymd] => 2025-01-17 02:00:06 [RateCDR] => 1 ) [2025-01-17 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-16 23:00:06' and `end` < '2025-01-17 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-17 02:00:19] Production.INFO: count ==242 [2025-01-17 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-16 23:00:06 - End Time 2025-01-17 02:00:06 [2025-01-17 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265093', 'tblTempUsageDetail_20' ) start [2025-01-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265093', 'tblTempUsageDetail_20' ) end [2025-01-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265093', 'tblTempVendorCDR_20' ) start [2025-01-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265093', 'tblTempVendorCDR_20' ) end [2025-01-17 02:00:19] Production.INFO: ProcessCDR(1,14265093,1,1,2) [2025-01-17 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265093', 'tblTempUsageDetail_20' ) start [2025-01-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265093', 'tblTempUsageDetail_20' ) end [2025-01-17 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:00:22] Production.INFO: ==9965== Releasing lock... [2025-01-17 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:01:05 [end_date_ymd] => 2025-01-17 02:01:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:01:05' and `end` < '2025-01-17 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-17 02:01:18] Production.INFO: count ==242 [2025-01-17 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:01:05 - End Time 2025-01-17 02:01:05 [2025-01-17 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265098', 'tblTempUsageDetail_20' ) start [2025-01-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265098', 'tblTempUsageDetail_20' ) end [2025-01-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265098', 'tblTempVendorCDR_20' ) start [2025-01-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265098', 'tblTempVendorCDR_20' ) end [2025-01-17 02:01:18] Production.INFO: ProcessCDR(1,14265098,1,1,2) [2025-01-17 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265098', 'tblTempUsageDetail_20' ) start [2025-01-17 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265098', 'tblTempUsageDetail_20' ) end [2025-01-17 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:01:22] Production.INFO: ==10167== Releasing lock... [2025-01-17 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:02:05 [end_date_ymd] => 2025-01-17 02:02:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:02:05' and `end` < '2025-01-17 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-17 02:02:17] Production.INFO: count ==242 [2025-01-17 02:02:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:02:05 - End Time 2025-01-17 02:02:05 [2025-01-17 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265103', 'tblTempUsageDetail_20' ) start [2025-01-17 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265103', 'tblTempUsageDetail_20' ) end [2025-01-17 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265103', 'tblTempVendorCDR_20' ) start [2025-01-17 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265103', 'tblTempVendorCDR_20' ) end [2025-01-17 02:02:17] Production.INFO: ProcessCDR(1,14265103,1,1,2) [2025-01-17 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265103', 'tblTempUsageDetail_20' ) start [2025-01-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265103', 'tblTempUsageDetail_20' ) end [2025-01-17 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:02:21] Production.INFO: ==10267== Releasing lock... [2025-01-17 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:03:05 [end_date_ymd] => 2025-01-17 02:03:05 [RateCDR] => 1 ) [2025-01-17 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:03:05' and `end` < '2025-01-17 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:03:17] Production.INFO: count ==242 [2025-01-17 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:03:05 - End Time 2025-01-17 02:03:05 [2025-01-17 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265108', 'tblTempUsageDetail_20' ) start [2025-01-17 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265108', 'tblTempUsageDetail_20' ) end [2025-01-17 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265108', 'tblTempVendorCDR_20' ) start [2025-01-17 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265108', 'tblTempVendorCDR_20' ) end [2025-01-17 02:03:17] Production.INFO: ProcessCDR(1,14265108,1,1,2) [2025-01-17 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265108', 'tblTempUsageDetail_20' ) start [2025-01-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265108', 'tblTempUsageDetail_20' ) end [2025-01-17 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:03:21] Production.INFO: ==10369== Releasing lock... [2025-01-17 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:04:05 [end_date_ymd] => 2025-01-17 02:04:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:04:05' and `end` < '2025-01-17 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-17 02:04:17] Production.INFO: count ==241 [2025-01-17 02:04:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:04:05 - End Time 2025-01-17 02:04:05 [2025-01-17 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265113', 'tblTempUsageDetail_20' ) start [2025-01-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265113', 'tblTempUsageDetail_20' ) end [2025-01-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265113', 'tblTempVendorCDR_20' ) start [2025-01-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265113', 'tblTempVendorCDR_20' ) end [2025-01-17 02:04:17] Production.INFO: ProcessCDR(1,14265113,1,1,2) [2025-01-17 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265113', 'tblTempUsageDetail_20' ) start [2025-01-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265113', 'tblTempUsageDetail_20' ) end [2025-01-17 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:04:21] Production.INFO: ==10468== Releasing lock... [2025-01-17 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:05:04 [end_date_ymd] => 2025-01-17 02:05:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:05:04' and `end` < '2025-01-17 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-17 02:05:17] Production.INFO: count ==241 [2025-01-17 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:05:04 - End Time 2025-01-17 02:05:04 [2025-01-17 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265118', 'tblTempUsageDetail_20' ) start [2025-01-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265118', 'tblTempUsageDetail_20' ) end [2025-01-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265118', 'tblTempVendorCDR_20' ) start [2025-01-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265118', 'tblTempVendorCDR_20' ) end [2025-01-17 02:05:17] Production.INFO: ProcessCDR(1,14265118,1,1,2) [2025-01-17 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265118', 'tblTempUsageDetail_20' ) start [2025-01-17 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265118', 'tblTempUsageDetail_20' ) end [2025-01-17 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:05:20] Production.INFO: ==10566== Releasing lock... [2025-01-17 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:05:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:06:05 [end_date_ymd] => 2025-01-17 02:06:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:06:05' and `end` < '2025-01-17 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-17 02:06:18] Production.INFO: count ==241 [2025-01-17 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:06:05 - End Time 2025-01-17 02:06:05 [2025-01-17 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265123', 'tblTempUsageDetail_20' ) start [2025-01-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265123', 'tblTempUsageDetail_20' ) end [2025-01-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265123', 'tblTempVendorCDR_20' ) start [2025-01-17 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265123', 'tblTempVendorCDR_20' ) end [2025-01-17 02:06:18] Production.INFO: ProcessCDR(1,14265123,1,1,2) [2025-01-17 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265123', 'tblTempUsageDetail_20' ) start [2025-01-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265123', 'tblTempUsageDetail_20' ) end [2025-01-17 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:06:21] Production.INFO: ==10670== Releasing lock... [2025-01-17 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:07:06 [end_date_ymd] => 2025-01-17 02:07:06 [RateCDR] => 1 ) [2025-01-17 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:07:06' and `end` < '2025-01-17 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:07:18] Production.INFO: count ==241 [2025-01-17 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:07:06 - End Time 2025-01-17 02:07:06 [2025-01-17 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265128', 'tblTempUsageDetail_20' ) start [2025-01-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265128', 'tblTempUsageDetail_20' ) end [2025-01-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265128', 'tblTempVendorCDR_20' ) start [2025-01-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265128', 'tblTempVendorCDR_20' ) end [2025-01-17 02:07:18] Production.INFO: ProcessCDR(1,14265128,1,1,2) [2025-01-17 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265128', 'tblTempUsageDetail_20' ) start [2025-01-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265128', 'tblTempUsageDetail_20' ) end [2025-01-17 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:07:21] Production.INFO: ==10772== Releasing lock... [2025-01-17 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:08:05 [end_date_ymd] => 2025-01-17 02:08:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:08:05' and `end` < '2025-01-17 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-17 02:08:18] Production.INFO: count ==241 [2025-01-17 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:08:05 - End Time 2025-01-17 02:08:05 [2025-01-17 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265133', 'tblTempUsageDetail_20' ) start [2025-01-17 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265133', 'tblTempUsageDetail_20' ) end [2025-01-17 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265133', 'tblTempVendorCDR_20' ) start [2025-01-17 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265133', 'tblTempVendorCDR_20' ) end [2025-01-17 02:08:18] Production.INFO: ProcessCDR(1,14265133,1,1,2) [2025-01-17 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265133', 'tblTempUsageDetail_20' ) start [2025-01-17 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265133', 'tblTempUsageDetail_20' ) end [2025-01-17 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:08:22] Production.INFO: ==10872== Releasing lock... [2025-01-17 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:09:06 [end_date_ymd] => 2025-01-17 02:09:06 [RateCDR] => 1 ) [2025-01-17 02: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-16 23:09:06' and `end` < '2025-01-17 02: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-17 02:09:18] Production.INFO: count ==240 [2025-01-17 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:09:06 - End Time 2025-01-17 02:09:06 [2025-01-17 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265138', 'tblTempUsageDetail_20' ) start [2025-01-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265138', 'tblTempUsageDetail_20' ) end [2025-01-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265138', 'tblTempVendorCDR_20' ) start [2025-01-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265138', 'tblTempVendorCDR_20' ) end [2025-01-17 02:09:18] Production.INFO: ProcessCDR(1,14265138,1,1,2) [2025-01-17 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265138', 'tblTempUsageDetail_20' ) start [2025-01-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265138', 'tblTempUsageDetail_20' ) end [2025-01-17 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:09:21] Production.INFO: ==10977== Releasing lock... [2025-01-17 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:10:06 [end_date_ymd] => 2025-01-17 02:10:06 [RateCDR] => 1 ) [2025-01-17 02: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-16 23:10:06' and `end` < '2025-01-17 02: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-17 02:10:21] Production.INFO: count ==248 [2025-01-17 02:10:21] Production.ERROR: pbx CDR StartTime 2025-01-16 23:10:06 - End Time 2025-01-17 02:10:06 [2025-01-17 02:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265144', 'tblTempUsageDetail_20' ) start [2025-01-17 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265144', 'tblTempUsageDetail_20' ) end [2025-01-17 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265144', 'tblTempVendorCDR_20' ) start [2025-01-17 02:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265144', 'tblTempVendorCDR_20' ) end [2025-01-17 02:10:21] Production.INFO: ProcessCDR(1,14265144,1,1,2) [2025-01-17 02:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265144', 'tblTempUsageDetail_20' ) start [2025-01-17 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265144', 'tblTempUsageDetail_20' ) end [2025-01-17 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:10:24] Production.INFO: ==11079== Releasing lock... [2025-01-17 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:11:05 [end_date_ymd] => 2025-01-17 02:11:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:11:05' and `end` < '2025-01-17 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-17 02:11:20] Production.INFO: count ==253 [2025-01-17 02:11:20] Production.ERROR: pbx CDR StartTime 2025-01-16 23:11:05 - End Time 2025-01-17 02:11:05 [2025-01-17 02:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265149', 'tblTempUsageDetail_20' ) start [2025-01-17 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265149', 'tblTempUsageDetail_20' ) end [2025-01-17 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265149', 'tblTempVendorCDR_20' ) start [2025-01-17 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265149', 'tblTempVendorCDR_20' ) end [2025-01-17 02:11:20] Production.INFO: ProcessCDR(1,14265149,1,1,2) [2025-01-17 02:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265149', 'tblTempUsageDetail_20' ) start [2025-01-17 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265149', 'tblTempUsageDetail_20' ) end [2025-01-17 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:11:23] Production.INFO: ==11181== Releasing lock... [2025-01-17 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:11:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:12:05 [end_date_ymd] => 2025-01-17 02:12:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:12:05' and `end` < '2025-01-17 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-17 02:12:17] Production.INFO: count ==253 [2025-01-17 02:12:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:12:05 - End Time 2025-01-17 02:12:05 [2025-01-17 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265154', 'tblTempUsageDetail_20' ) start [2025-01-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265154', 'tblTempUsageDetail_20' ) end [2025-01-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265154', 'tblTempVendorCDR_20' ) start [2025-01-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265154', 'tblTempVendorCDR_20' ) end [2025-01-17 02:12:17] Production.INFO: ProcessCDR(1,14265154,1,1,2) [2025-01-17 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265154', 'tblTempUsageDetail_20' ) start [2025-01-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265154', 'tblTempUsageDetail_20' ) end [2025-01-17 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:12:21] Production.INFO: ==11312== Releasing lock... [2025-01-17 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:13:05 [end_date_ymd] => 2025-01-17 02:13:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:13:05' and `end` < '2025-01-17 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-17 02:13:18] Production.INFO: count ==252 [2025-01-17 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:13:05 - End Time 2025-01-17 02:13:05 [2025-01-17 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265159', 'tblTempUsageDetail_20' ) start [2025-01-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265159', 'tblTempUsageDetail_20' ) end [2025-01-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265159', 'tblTempVendorCDR_20' ) start [2025-01-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265159', 'tblTempVendorCDR_20' ) end [2025-01-17 02:13:18] Production.INFO: ProcessCDR(1,14265159,1,1,2) [2025-01-17 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265159', 'tblTempUsageDetail_20' ) start [2025-01-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265159', 'tblTempUsageDetail_20' ) end [2025-01-17 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:13:21] Production.INFO: ==11390== Releasing lock... [2025-01-17 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:14:05 [end_date_ymd] => 2025-01-17 02:14:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:14:05' and `end` < '2025-01-17 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-17 02:14:18] Production.INFO: count ==252 [2025-01-17 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:14:05 - End Time 2025-01-17 02:14:05 [2025-01-17 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265164', 'tblTempUsageDetail_20' ) start [2025-01-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265164', 'tblTempUsageDetail_20' ) end [2025-01-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265164', 'tblTempVendorCDR_20' ) start [2025-01-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265164', 'tblTempVendorCDR_20' ) end [2025-01-17 02:14:18] Production.INFO: ProcessCDR(1,14265164,1,1,2) [2025-01-17 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265164', 'tblTempUsageDetail_20' ) start [2025-01-17 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265164', 'tblTempUsageDetail_20' ) end [2025-01-17 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:14:22] Production.INFO: ==11469== Releasing lock... [2025-01-17 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:15:05 [end_date_ymd] => 2025-01-17 02:15:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:15:05' and `end` < '2025-01-17 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-17 02:15:18] Production.INFO: count ==252 [2025-01-17 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:15:05 - End Time 2025-01-17 02:15:05 [2025-01-17 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265169', 'tblTempUsageDetail_20' ) start [2025-01-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265169', 'tblTempUsageDetail_20' ) end [2025-01-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265169', 'tblTempVendorCDR_20' ) start [2025-01-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265169', 'tblTempVendorCDR_20' ) end [2025-01-17 02:15:18] Production.INFO: ProcessCDR(1,14265169,1,1,2) [2025-01-17 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265169', 'tblTempUsageDetail_20' ) start [2025-01-17 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265169', 'tblTempUsageDetail_20' ) end [2025-01-17 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:15:22] Production.INFO: ==11548== Releasing lock... [2025-01-17 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:16:05 [end_date_ymd] => 2025-01-17 02:16:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:16:05' and `end` < '2025-01-17 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-17 02:16:17] Production.INFO: count ==252 [2025-01-17 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:16:05 - End Time 2025-01-17 02:16:05 [2025-01-17 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265174', 'tblTempUsageDetail_20' ) start [2025-01-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265174', 'tblTempUsageDetail_20' ) end [2025-01-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265174', 'tblTempVendorCDR_20' ) start [2025-01-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265174', 'tblTempVendorCDR_20' ) end [2025-01-17 02:16:18] Production.INFO: ProcessCDR(1,14265174,1,1,2) [2025-01-17 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265174', 'tblTempUsageDetail_20' ) start [2025-01-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265174', 'tblTempUsageDetail_20' ) end [2025-01-17 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:16:21] Production.INFO: ==11627== Releasing lock... [2025-01-17 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:17:06 [end_date_ymd] => 2025-01-17 02:17:06 [RateCDR] => 1 ) [2025-01-17 02: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-16 23:17:06' and `end` < '2025-01-17 02: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-17 02:17:18] Production.INFO: count ==251 [2025-01-17 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:17:06 - End Time 2025-01-17 02:17:06 [2025-01-17 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265179', 'tblTempUsageDetail_20' ) start [2025-01-17 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265179', 'tblTempUsageDetail_20' ) end [2025-01-17 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265179', 'tblTempVendorCDR_20' ) start [2025-01-17 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265179', 'tblTempVendorCDR_20' ) end [2025-01-17 02:17:18] Production.INFO: ProcessCDR(1,14265179,1,1,2) [2025-01-17 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265179', 'tblTempUsageDetail_20' ) start [2025-01-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265179', 'tblTempUsageDetail_20' ) end [2025-01-17 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:17:21] Production.INFO: ==11706== Releasing lock... [2025-01-17 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:18:05 [end_date_ymd] => 2025-01-17 02:18:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:18:05' and `end` < '2025-01-17 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-17 02:18:17] Production.INFO: count ==251 [2025-01-17 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:18:05 - End Time 2025-01-17 02:18:05 [2025-01-17 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265184', 'tblTempUsageDetail_20' ) start [2025-01-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265184', 'tblTempUsageDetail_20' ) end [2025-01-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265184', 'tblTempVendorCDR_20' ) start [2025-01-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265184', 'tblTempVendorCDR_20' ) end [2025-01-17 02:18:17] Production.INFO: ProcessCDR(1,14265184,1,1,2) [2025-01-17 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265184', 'tblTempUsageDetail_20' ) start [2025-01-17 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265184', 'tblTempUsageDetail_20' ) end [2025-01-17 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:18:20] Production.INFO: ==11785== Releasing lock... [2025-01-17 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:19:05 [end_date_ymd] => 2025-01-17 02:19:05 [RateCDR] => 1 ) [2025-01-17 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:19:05' and `end` < '2025-01-17 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:19:18] Production.INFO: count ==249 [2025-01-17 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:19:05 - End Time 2025-01-17 02:19:05 [2025-01-17 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265189', 'tblTempUsageDetail_20' ) start [2025-01-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265189', 'tblTempUsageDetail_20' ) end [2025-01-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265189', 'tblTempVendorCDR_20' ) start [2025-01-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265189', 'tblTempVendorCDR_20' ) end [2025-01-17 02:19:18] Production.INFO: ProcessCDR(1,14265189,1,1,2) [2025-01-17 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265189', 'tblTempUsageDetail_20' ) start [2025-01-17 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265189', 'tblTempUsageDetail_20' ) end [2025-01-17 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:19:21] Production.INFO: ==11863== Releasing lock... [2025-01-17 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:20:06 [end_date_ymd] => 2025-01-17 02:20:06 [RateCDR] => 1 ) [2025-01-17 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-16 23:20:06' and `end` < '2025-01-17 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-17 02:20:18] Production.INFO: count ==258 [2025-01-17 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:20:06 - End Time 2025-01-17 02:20:06 [2025-01-17 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265194', 'tblTempUsageDetail_20' ) start [2025-01-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265194', 'tblTempUsageDetail_20' ) end [2025-01-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265194', 'tblTempVendorCDR_20' ) start [2025-01-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265194', 'tblTempVendorCDR_20' ) end [2025-01-17 02:20:18] Production.INFO: ProcessCDR(1,14265194,1,1,2) [2025-01-17 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265194', 'tblTempUsageDetail_20' ) start [2025-01-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265194', 'tblTempUsageDetail_20' ) end [2025-01-17 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:20:21] Production.INFO: ==11943== Releasing lock... [2025-01-17 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:21:05 [end_date_ymd] => 2025-01-17 02:21:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:21:05' and `end` < '2025-01-17 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-17 02:21:18] Production.INFO: count ==260 [2025-01-17 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:21:05 - End Time 2025-01-17 02:21:05 [2025-01-17 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265200', 'tblTempUsageDetail_20' ) start [2025-01-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265200', 'tblTempUsageDetail_20' ) end [2025-01-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265200', 'tblTempVendorCDR_20' ) start [2025-01-17 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265200', 'tblTempVendorCDR_20' ) end [2025-01-17 02:21:18] Production.INFO: ProcessCDR(1,14265200,1,1,2) [2025-01-17 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265200', 'tblTempUsageDetail_20' ) start [2025-01-17 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265200', 'tblTempUsageDetail_20' ) end [2025-01-17 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:21:21] Production.INFO: ==12027== Releasing lock... [2025-01-17 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:22:05 [end_date_ymd] => 2025-01-17 02:22:05 [RateCDR] => 1 ) [2025-01-17 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:22:05' and `end` < '2025-01-17 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:22:17] Production.INFO: count ==260 [2025-01-17 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:22:05 - End Time 2025-01-17 02:22:05 [2025-01-17 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265205', 'tblTempUsageDetail_20' ) start [2025-01-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265205', 'tblTempUsageDetail_20' ) end [2025-01-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265205', 'tblTempVendorCDR_20' ) start [2025-01-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265205', 'tblTempVendorCDR_20' ) end [2025-01-17 02:22:17] Production.INFO: ProcessCDR(1,14265205,1,1,2) [2025-01-17 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265205', 'tblTempUsageDetail_20' ) start [2025-01-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265205', 'tblTempUsageDetail_20' ) end [2025-01-17 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:22:20] Production.INFO: ==12105== Releasing lock... [2025-01-17 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:23:05 [end_date_ymd] => 2025-01-17 02:23:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:23:05' and `end` < '2025-01-17 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-17 02:23:18] Production.INFO: count ==260 [2025-01-17 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:23:05 - End Time 2025-01-17 02:23:05 [2025-01-17 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265210', 'tblTempUsageDetail_20' ) start [2025-01-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265210', 'tblTempUsageDetail_20' ) end [2025-01-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265210', 'tblTempVendorCDR_20' ) start [2025-01-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265210', 'tblTempVendorCDR_20' ) end [2025-01-17 02:23:18] Production.INFO: ProcessCDR(1,14265210,1,1,2) [2025-01-17 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265210', 'tblTempUsageDetail_20' ) start [2025-01-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265210', 'tblTempUsageDetail_20' ) end [2025-01-17 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:23:21] Production.INFO: ==12184== Releasing lock... [2025-01-17 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:24:05 [end_date_ymd] => 2025-01-17 02:24:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:24:05' and `end` < '2025-01-17 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-17 02:24:17] Production.INFO: count ==260 [2025-01-17 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:24:05 - End Time 2025-01-17 02:24:05 [2025-01-17 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265215', 'tblTempUsageDetail_20' ) start [2025-01-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265215', 'tblTempUsageDetail_20' ) end [2025-01-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265215', 'tblTempVendorCDR_20' ) start [2025-01-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265215', 'tblTempVendorCDR_20' ) end [2025-01-17 02:24:17] Production.INFO: ProcessCDR(1,14265215,1,1,2) [2025-01-17 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265215', 'tblTempUsageDetail_20' ) start [2025-01-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265215', 'tblTempUsageDetail_20' ) end [2025-01-17 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:24:21] Production.INFO: ==12263== Releasing lock... [2025-01-17 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:25:05 [end_date_ymd] => 2025-01-17 02:25:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:25:05' and `end` < '2025-01-17 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-17 02:25:17] Production.INFO: count ==260 [2025-01-17 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:25:05 - End Time 2025-01-17 02:25:05 [2025-01-17 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265220', 'tblTempUsageDetail_20' ) start [2025-01-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265220', 'tblTempUsageDetail_20' ) end [2025-01-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265220', 'tblTempVendorCDR_20' ) start [2025-01-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265220', 'tblTempVendorCDR_20' ) end [2025-01-17 02:25:17] Production.INFO: ProcessCDR(1,14265220,1,1,2) [2025-01-17 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265220', 'tblTempUsageDetail_20' ) start [2025-01-17 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265220', 'tblTempUsageDetail_20' ) end [2025-01-17 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:25:21] Production.INFO: ==12343== Releasing lock... [2025-01-17 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:26:05 [end_date_ymd] => 2025-01-17 02:26:05 [RateCDR] => 1 ) [2025-01-17 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:26:05' and `end` < '2025-01-17 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:26:17] Production.INFO: count ==264 [2025-01-17 02:26:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:26:05 - End Time 2025-01-17 02:26:05 [2025-01-17 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265225', 'tblTempUsageDetail_20' ) start [2025-01-17 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265225', 'tblTempUsageDetail_20' ) end [2025-01-17 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265225', 'tblTempVendorCDR_20' ) start [2025-01-17 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265225', 'tblTempVendorCDR_20' ) end [2025-01-17 02:26:17] Production.INFO: ProcessCDR(1,14265225,1,1,2) [2025-01-17 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265225', 'tblTempUsageDetail_20' ) start [2025-01-17 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265225', 'tblTempUsageDetail_20' ) end [2025-01-17 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:26:20] Production.INFO: ==12425== Releasing lock... [2025-01-17 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:27:05 [end_date_ymd] => 2025-01-17 02:27:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:27:05' and `end` < '2025-01-17 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-17 02:27:17] Production.INFO: count ==264 [2025-01-17 02:27:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:27:05 - End Time 2025-01-17 02:27:05 [2025-01-17 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265230', 'tblTempUsageDetail_20' ) start [2025-01-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265230', 'tblTempUsageDetail_20' ) end [2025-01-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265230', 'tblTempVendorCDR_20' ) start [2025-01-17 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265230', 'tblTempVendorCDR_20' ) end [2025-01-17 02:27:17] Production.INFO: ProcessCDR(1,14265230,1,1,2) [2025-01-17 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265230', 'tblTempUsageDetail_20' ) start [2025-01-17 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265230', 'tblTempUsageDetail_20' ) end [2025-01-17 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:27:20] Production.INFO: ==12503== Releasing lock... [2025-01-17 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:28:04 [end_date_ymd] => 2025-01-17 02:28:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:28:04' and `end` < '2025-01-17 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-17 02:28:18] Production.INFO: count ==264 [2025-01-17 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:28:04 - End Time 2025-01-17 02:28:04 [2025-01-17 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265235', 'tblTempUsageDetail_20' ) start [2025-01-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265235', 'tblTempUsageDetail_20' ) end [2025-01-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265235', 'tblTempVendorCDR_20' ) start [2025-01-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265235', 'tblTempVendorCDR_20' ) end [2025-01-17 02:28:18] Production.INFO: ProcessCDR(1,14265235,1,1,2) [2025-01-17 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265235', 'tblTempUsageDetail_20' ) start [2025-01-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265235', 'tblTempUsageDetail_20' ) end [2025-01-17 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:28:21] Production.INFO: ==12620== Releasing lock... [2025-01-17 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:29:04 [end_date_ymd] => 2025-01-17 02:29:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:29:04' and `end` < '2025-01-17 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-17 02:29:18] Production.INFO: count ==265 [2025-01-17 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:29:04 - End Time 2025-01-17 02:29:04 [2025-01-17 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265239', 'tblTempUsageDetail_20' ) start [2025-01-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265239', 'tblTempUsageDetail_20' ) end [2025-01-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265239', 'tblTempVendorCDR_20' ) start [2025-01-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265239', 'tblTempVendorCDR_20' ) end [2025-01-17 02:29:18] Production.INFO: ProcessCDR(1,14265239,1,1,2) [2025-01-17 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265239', 'tblTempUsageDetail_20' ) start [2025-01-17 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265239', 'tblTempUsageDetail_20' ) end [2025-01-17 02:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:29:23] Production.INFO: ==12698== Releasing lock... [2025-01-17 02:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:29:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:30:06 [end_date_ymd] => 2025-01-17 02:30:06 [RateCDR] => 1 ) [2025-01-17 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-16 23:30:06' and `end` < '2025-01-17 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-17 02:30:18] Production.INFO: count ==273 [2025-01-17 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:30:06 - End Time 2025-01-17 02:30:06 [2025-01-17 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265246', 'tblTempUsageDetail_20' ) start [2025-01-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265246', 'tblTempUsageDetail_20' ) end [2025-01-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265246', 'tblTempVendorCDR_20' ) start [2025-01-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265246', 'tblTempVendorCDR_20' ) end [2025-01-17 02:30:18] Production.INFO: ProcessCDR(1,14265246,1,1,2) [2025-01-17 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265246', 'tblTempUsageDetail_20' ) start [2025-01-17 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265246', 'tblTempUsageDetail_20' ) end [2025-01-17 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:30:22] Production.INFO: ==12780== Releasing lock... [2025-01-17 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:31:04 [end_date_ymd] => 2025-01-17 02:31:04 [RateCDR] => 1 ) [2025-01-17 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:31:04' and `end` < '2025-01-17 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:31:17] Production.INFO: count ==286 [2025-01-17 02:31:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:31:04 - End Time 2025-01-17 02:31:04 [2025-01-17 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265251', 'tblTempUsageDetail_20' ) start [2025-01-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265251', 'tblTempUsageDetail_20' ) end [2025-01-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265251', 'tblTempVendorCDR_20' ) start [2025-01-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265251', 'tblTempVendorCDR_20' ) end [2025-01-17 02:31:17] Production.INFO: ProcessCDR(1,14265251,1,1,2) [2025-01-17 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265251', 'tblTempUsageDetail_20' ) start [2025-01-17 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265251', 'tblTempUsageDetail_20' ) end [2025-01-17 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:31:20] Production.INFO: ==12863== Releasing lock... [2025-01-17 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:32:05 [end_date_ymd] => 2025-01-17 02:32:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:32:05' and `end` < '2025-01-17 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-17 02:32:17] Production.INFO: count ==285 [2025-01-17 02:32:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:32:05 - End Time 2025-01-17 02:32:05 [2025-01-17 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265256', 'tblTempUsageDetail_20' ) start [2025-01-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265256', 'tblTempUsageDetail_20' ) end [2025-01-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265256', 'tblTempVendorCDR_20' ) start [2025-01-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265256', 'tblTempVendorCDR_20' ) end [2025-01-17 02:32:17] Production.INFO: ProcessCDR(1,14265256,1,1,2) [2025-01-17 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265256', 'tblTempUsageDetail_20' ) start [2025-01-17 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265256', 'tblTempUsageDetail_20' ) end [2025-01-17 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:32:20] Production.INFO: ==12941== Releasing lock... [2025-01-17 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:33:04 [end_date_ymd] => 2025-01-17 02:33:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:33:04' and `end` < '2025-01-17 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-17 02:33:17] Production.INFO: count ==285 [2025-01-17 02:33:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:33:04 - End Time 2025-01-17 02:33:04 [2025-01-17 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265261', 'tblTempUsageDetail_20' ) start [2025-01-17 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265261', 'tblTempUsageDetail_20' ) end [2025-01-17 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265261', 'tblTempVendorCDR_20' ) start [2025-01-17 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265261', 'tblTempVendorCDR_20' ) end [2025-01-17 02:33:17] Production.INFO: ProcessCDR(1,14265261,1,1,2) [2025-01-17 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265261', 'tblTempUsageDetail_20' ) start [2025-01-17 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265261', 'tblTempUsageDetail_20' ) end [2025-01-17 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:33:20] Production.INFO: ==13017== Releasing lock... [2025-01-17 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:33:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:34:04 [end_date_ymd] => 2025-01-17 02:34:04 [RateCDR] => 1 ) [2025-01-17 02:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:34:04' and `end` < '2025-01-17 02:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:34:17] Production.INFO: count ==282 [2025-01-17 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:34:04 - End Time 2025-01-17 02:34:04 [2025-01-17 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265266', 'tblTempUsageDetail_20' ) start [2025-01-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265266', 'tblTempUsageDetail_20' ) end [2025-01-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265266', 'tblTempVendorCDR_20' ) start [2025-01-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265266', 'tblTempVendorCDR_20' ) end [2025-01-17 02:34:17] Production.INFO: ProcessCDR(1,14265266,1,1,2) [2025-01-17 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265266', 'tblTempUsageDetail_20' ) start [2025-01-17 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265266', 'tblTempUsageDetail_20' ) end [2025-01-17 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:34:20] Production.INFO: ==13095== Releasing lock... [2025-01-17 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:35:05 [end_date_ymd] => 2025-01-17 02:35:05 [RateCDR] => 1 ) [2025-01-17 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:35:05' and `end` < '2025-01-17 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:35:18] Production.INFO: count ==279 [2025-01-17 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:35:05 - End Time 2025-01-17 02:35:05 [2025-01-17 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265271', 'tblTempUsageDetail_20' ) start [2025-01-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265271', 'tblTempUsageDetail_20' ) end [2025-01-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265271', 'tblTempVendorCDR_20' ) start [2025-01-17 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265271', 'tblTempVendorCDR_20' ) end [2025-01-17 02:35:18] Production.INFO: ProcessCDR(1,14265271,1,1,2) [2025-01-17 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265271', 'tblTempUsageDetail_20' ) start [2025-01-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265271', 'tblTempUsageDetail_20' ) end [2025-01-17 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:35:21] Production.INFO: ==13173== Releasing lock... [2025-01-17 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:36:05 [end_date_ymd] => 2025-01-17 02:36:05 [RateCDR] => 1 ) [2025-01-17 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:36:05' and `end` < '2025-01-17 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:36:18] Production.INFO: count ==276 [2025-01-17 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:36:05 - End Time 2025-01-17 02:36:05 [2025-01-17 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265276', 'tblTempUsageDetail_20' ) start [2025-01-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265276', 'tblTempUsageDetail_20' ) end [2025-01-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265276', 'tblTempVendorCDR_20' ) start [2025-01-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265276', 'tblTempVendorCDR_20' ) end [2025-01-17 02:36:18] Production.INFO: ProcessCDR(1,14265276,1,1,2) [2025-01-17 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265276', 'tblTempUsageDetail_20' ) start [2025-01-17 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265276', 'tblTempUsageDetail_20' ) end [2025-01-17 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:36:21] Production.INFO: ==13254== Releasing lock... [2025-01-17 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:37:05 [end_date_ymd] => 2025-01-17 02:37:05 [RateCDR] => 1 ) [2025-01-17 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:37:05' and `end` < '2025-01-17 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:37:18] Production.INFO: count ==273 [2025-01-17 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:37:05 - End Time 2025-01-17 02:37:05 [2025-01-17 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265281', 'tblTempUsageDetail_20' ) start [2025-01-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265281', 'tblTempUsageDetail_20' ) end [2025-01-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265281', 'tblTempVendorCDR_20' ) start [2025-01-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265281', 'tblTempVendorCDR_20' ) end [2025-01-17 02:37:18] Production.INFO: ProcessCDR(1,14265281,1,1,2) [2025-01-17 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265281', 'tblTempUsageDetail_20' ) start [2025-01-17 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265281', 'tblTempUsageDetail_20' ) end [2025-01-17 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:37:21] Production.INFO: ==13332== Releasing lock... [2025-01-17 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:38:05 [end_date_ymd] => 2025-01-17 02:38:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:38:05' and `end` < '2025-01-17 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-17 02:38:18] Production.INFO: count ==273 [2025-01-17 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:38:05 - End Time 2025-01-17 02:38:05 [2025-01-17 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265286', 'tblTempUsageDetail_20' ) start [2025-01-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265286', 'tblTempUsageDetail_20' ) end [2025-01-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265286', 'tblTempVendorCDR_20' ) start [2025-01-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265286', 'tblTempVendorCDR_20' ) end [2025-01-17 02:38:18] Production.INFO: ProcessCDR(1,14265286,1,1,2) [2025-01-17 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265286', 'tblTempUsageDetail_20' ) start [2025-01-17 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265286', 'tblTempUsageDetail_20' ) end [2025-01-17 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:38:22] Production.INFO: ==13412== Releasing lock... [2025-01-17 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:39:05 [end_date_ymd] => 2025-01-17 02:39:05 [RateCDR] => 1 ) [2025-01-17 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:39:05' and `end` < '2025-01-17 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:39:17] Production.INFO: count ==273 [2025-01-17 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:39:05 - End Time 2025-01-17 02:39:05 [2025-01-17 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265291', 'tblTempUsageDetail_20' ) start [2025-01-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265291', 'tblTempUsageDetail_20' ) end [2025-01-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265291', 'tblTempVendorCDR_20' ) start [2025-01-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265291', 'tblTempVendorCDR_20' ) end [2025-01-17 02:39:17] Production.INFO: ProcessCDR(1,14265291,1,1,2) [2025-01-17 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265291', 'tblTempUsageDetail_20' ) start [2025-01-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265291', 'tblTempUsageDetail_20' ) end [2025-01-17 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:39:21] Production.INFO: ==13491== Releasing lock... [2025-01-17 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:40:06 [end_date_ymd] => 2025-01-17 02:40:06 [RateCDR] => 1 ) [2025-01-17 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-16 23:40:06' and `end` < '2025-01-17 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-17 02:40:18] Production.INFO: count ==281 [2025-01-17 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:40:06 - End Time 2025-01-17 02:40:06 [2025-01-17 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265296', 'tblTempUsageDetail_20' ) start [2025-01-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265296', 'tblTempUsageDetail_20' ) end [2025-01-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265296', 'tblTempVendorCDR_20' ) start [2025-01-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265296', 'tblTempVendorCDR_20' ) end [2025-01-17 02:40:18] Production.INFO: ProcessCDR(1,14265296,1,1,2) [2025-01-17 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265296', 'tblTempUsageDetail_20' ) start [2025-01-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265296', 'tblTempUsageDetail_20' ) end [2025-01-17 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:40:21] Production.INFO: ==13575== Releasing lock... [2025-01-17 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:41:04 [end_date_ymd] => 2025-01-17 02:41:04 [RateCDR] => 1 ) [2025-01-17 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:41:04' and `end` < '2025-01-17 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:41:18] Production.INFO: count ==284 [2025-01-17 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:41:04 - End Time 2025-01-17 02:41:04 [2025-01-17 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265302', 'tblTempUsageDetail_20' ) start [2025-01-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265302', 'tblTempUsageDetail_20' ) end [2025-01-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265302', 'tblTempVendorCDR_20' ) start [2025-01-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265302', 'tblTempVendorCDR_20' ) end [2025-01-17 02:41:18] Production.INFO: ProcessCDR(1,14265302,1,1,2) [2025-01-17 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265302', 'tblTempUsageDetail_20' ) start [2025-01-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265302', 'tblTempUsageDetail_20' ) end [2025-01-17 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:41:21] Production.INFO: ==13653== Releasing lock... [2025-01-17 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:42:05 [end_date_ymd] => 2025-01-17 02:42:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:42:05' and `end` < '2025-01-17 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-17 02:42:18] Production.INFO: count ==284 [2025-01-17 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:42:05 - End Time 2025-01-17 02:42:05 [2025-01-17 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265307', 'tblTempUsageDetail_20' ) start [2025-01-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265307', 'tblTempUsageDetail_20' ) end [2025-01-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265307', 'tblTempVendorCDR_20' ) start [2025-01-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265307', 'tblTempVendorCDR_20' ) end [2025-01-17 02:42:18] Production.INFO: ProcessCDR(1,14265307,1,1,2) [2025-01-17 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265307', 'tblTempUsageDetail_20' ) start [2025-01-17 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265307', 'tblTempUsageDetail_20' ) end [2025-01-17 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:42:21] Production.INFO: ==13732== Releasing lock... [2025-01-17 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:43:04 [end_date_ymd] => 2025-01-17 02:43:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:43:04' and `end` < '2025-01-17 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-17 02:43:17] Production.INFO: count ==284 [2025-01-17 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:43:04 - End Time 2025-01-17 02:43:04 [2025-01-17 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265312', 'tblTempUsageDetail_20' ) start [2025-01-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265312', 'tblTempUsageDetail_20' ) end [2025-01-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265312', 'tblTempVendorCDR_20' ) start [2025-01-17 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265312', 'tblTempVendorCDR_20' ) end [2025-01-17 02:43:17] Production.INFO: ProcessCDR(1,14265312,1,1,2) [2025-01-17 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265312', 'tblTempUsageDetail_20' ) start [2025-01-17 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265312', 'tblTempUsageDetail_20' ) end [2025-01-17 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:43:20] Production.INFO: ==13852== Releasing lock... [2025-01-17 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:44:05 [end_date_ymd] => 2025-01-17 02:44:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:44:05' and `end` < '2025-01-17 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-17 02:44:18] Production.INFO: count ==281 [2025-01-17 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:44:05 - End Time 2025-01-17 02:44:05 [2025-01-17 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265317', 'tblTempUsageDetail_20' ) start [2025-01-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265317', 'tblTempUsageDetail_20' ) end [2025-01-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265317', 'tblTempVendorCDR_20' ) start [2025-01-17 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265317', 'tblTempVendorCDR_20' ) end [2025-01-17 02:44:18] Production.INFO: ProcessCDR(1,14265317,1,1,2) [2025-01-17 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265317', 'tblTempUsageDetail_20' ) start [2025-01-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265317', 'tblTempUsageDetail_20' ) end [2025-01-17 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:44:21] Production.INFO: ==13931== Releasing lock... [2025-01-17 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:45:05 [end_date_ymd] => 2025-01-17 02:45:05 [RateCDR] => 1 ) [2025-01-17 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:45:05' and `end` < '2025-01-17 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:45:18] Production.INFO: count ==281 [2025-01-17 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:45:05 - End Time 2025-01-17 02:45:05 [2025-01-17 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265322', 'tblTempUsageDetail_20' ) start [2025-01-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265322', 'tblTempUsageDetail_20' ) end [2025-01-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265322', 'tblTempVendorCDR_20' ) start [2025-01-17 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265322', 'tblTempVendorCDR_20' ) end [2025-01-17 02:45:18] Production.INFO: ProcessCDR(1,14265322,1,1,2) [2025-01-17 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265322', 'tblTempUsageDetail_20' ) start [2025-01-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265322', 'tblTempUsageDetail_20' ) end [2025-01-17 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:45:21] Production.INFO: ==14009== Releasing lock... [2025-01-17 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:46:05 [end_date_ymd] => 2025-01-17 02:46:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:46:05' and `end` < '2025-01-17 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-17 02:46:17] Production.INFO: count ==277 [2025-01-17 02:46:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:46:05 - End Time 2025-01-17 02:46:05 [2025-01-17 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265327', 'tblTempUsageDetail_20' ) start [2025-01-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265327', 'tblTempUsageDetail_20' ) end [2025-01-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265327', 'tblTempVendorCDR_20' ) start [2025-01-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265327', 'tblTempVendorCDR_20' ) end [2025-01-17 02:46:17] Production.INFO: ProcessCDR(1,14265327,1,1,2) [2025-01-17 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265327', 'tblTempUsageDetail_20' ) start [2025-01-17 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265327', 'tblTempUsageDetail_20' ) end [2025-01-17 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:46:20] Production.INFO: ==14088== Releasing lock... [2025-01-17 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:46:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:47:05 [end_date_ymd] => 2025-01-17 02:47:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:47:05' and `end` < '2025-01-17 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-17 02:47:18] Production.INFO: count ==277 [2025-01-17 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:47:05 - End Time 2025-01-17 02:47:05 [2025-01-17 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265332', 'tblTempUsageDetail_20' ) start [2025-01-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265332', 'tblTempUsageDetail_20' ) end [2025-01-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265332', 'tblTempVendorCDR_20' ) start [2025-01-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265332', 'tblTempVendorCDR_20' ) end [2025-01-17 02:47:18] Production.INFO: ProcessCDR(1,14265332,1,1,2) [2025-01-17 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265332', 'tblTempUsageDetail_20' ) start [2025-01-17 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265332', 'tblTempUsageDetail_20' ) end [2025-01-17 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:47:21] Production.INFO: ==14168== Releasing lock... [2025-01-17 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:48:05 [end_date_ymd] => 2025-01-17 02:48:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:48:05' and `end` < '2025-01-17 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-17 02:48:17] Production.INFO: count ==276 [2025-01-17 02:48:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:48:05 - End Time 2025-01-17 02:48:05 [2025-01-17 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265337', 'tblTempUsageDetail_20' ) start [2025-01-17 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265337', 'tblTempUsageDetail_20' ) end [2025-01-17 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265337', 'tblTempVendorCDR_20' ) start [2025-01-17 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265337', 'tblTempVendorCDR_20' ) end [2025-01-17 02:48:17] Production.INFO: ProcessCDR(1,14265337,1,1,2) [2025-01-17 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265337', 'tblTempUsageDetail_20' ) start [2025-01-17 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265337', 'tblTempUsageDetail_20' ) end [2025-01-17 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:48:20] Production.INFO: ==14242== Releasing lock... [2025-01-17 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:48:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-17 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:49:05 [end_date_ymd] => 2025-01-17 02:49:05 [RateCDR] => 1 ) [2025-01-17 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:49:05' and `end` < '2025-01-17 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:49:18] Production.INFO: count ==276 [2025-01-17 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:49:05 - End Time 2025-01-17 02:49:05 [2025-01-17 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265342', 'tblTempUsageDetail_20' ) start [2025-01-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265342', 'tblTempUsageDetail_20' ) end [2025-01-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265342', 'tblTempVendorCDR_20' ) start [2025-01-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265342', 'tblTempVendorCDR_20' ) end [2025-01-17 02:49:18] Production.INFO: ProcessCDR(1,14265342,1,1,2) [2025-01-17 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265342', 'tblTempUsageDetail_20' ) start [2025-01-17 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265342', 'tblTempUsageDetail_20' ) end [2025-01-17 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:49:21] Production.INFO: ==14314== Releasing lock... [2025-01-17 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:50:05 [end_date_ymd] => 2025-01-17 02:50:05 [RateCDR] => 1 ) [2025-01-17 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:50:05' and `end` < '2025-01-17 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:50:18] Production.INFO: count ==277 [2025-01-17 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:50:05 - End Time 2025-01-17 02:50:05 [2025-01-17 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265347', 'tblTempUsageDetail_20' ) start [2025-01-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265347', 'tblTempUsageDetail_20' ) end [2025-01-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265347', 'tblTempVendorCDR_20' ) start [2025-01-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265347', 'tblTempVendorCDR_20' ) end [2025-01-17 02:50:18] Production.INFO: ProcessCDR(1,14265347,1,1,2) [2025-01-17 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265347', 'tblTempUsageDetail_20' ) start [2025-01-17 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265347', 'tblTempUsageDetail_20' ) end [2025-01-17 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:50:22] Production.INFO: ==14388== Releasing lock... [2025-01-17 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:51:05 [end_date_ymd] => 2025-01-17 02:51:05 [RateCDR] => 1 ) [2025-01-17 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:51:05' and `end` < '2025-01-17 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:51:17] Production.INFO: count ==277 [2025-01-17 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:51:05 - End Time 2025-01-17 02:51:05 [2025-01-17 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265353', 'tblTempUsageDetail_20' ) start [2025-01-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265353', 'tblTempUsageDetail_20' ) end [2025-01-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265353', 'tblTempVendorCDR_20' ) start [2025-01-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265353', 'tblTempVendorCDR_20' ) end [2025-01-17 02:51:17] Production.INFO: ProcessCDR(1,14265353,1,1,2) [2025-01-17 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265353', 'tblTempUsageDetail_20' ) start [2025-01-17 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265353', 'tblTempUsageDetail_20' ) end [2025-01-17 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:51:21] Production.INFO: ==14459== Releasing lock... [2025-01-17 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:52:05 [end_date_ymd] => 2025-01-17 02:52:05 [RateCDR] => 1 ) [2025-01-17 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:52:05' and `end` < '2025-01-17 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:52:17] Production.INFO: count ==277 [2025-01-17 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:52:05 - End Time 2025-01-17 02:52:05 [2025-01-17 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265358', 'tblTempUsageDetail_20' ) start [2025-01-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265358', 'tblTempUsageDetail_20' ) end [2025-01-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265358', 'tblTempVendorCDR_20' ) start [2025-01-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265358', 'tblTempVendorCDR_20' ) end [2025-01-17 02:52:17] Production.INFO: ProcessCDR(1,14265358,1,1,2) [2025-01-17 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265358', 'tblTempUsageDetail_20' ) start [2025-01-17 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265358', 'tblTempUsageDetail_20' ) end [2025-01-17 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:52:20] Production.INFO: ==14531== Releasing lock... [2025-01-17 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:52:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:53:05 [end_date_ymd] => 2025-01-17 02:53:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:53:05' and `end` < '2025-01-17 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-17 02:53:18] Production.INFO: count ==276 [2025-01-17 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:53:05 - End Time 2025-01-17 02:53:05 [2025-01-17 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265363', 'tblTempUsageDetail_20' ) start [2025-01-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265363', 'tblTempUsageDetail_20' ) end [2025-01-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265363', 'tblTempVendorCDR_20' ) start [2025-01-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265363', 'tblTempVendorCDR_20' ) end [2025-01-17 02:53:18] Production.INFO: ProcessCDR(1,14265363,1,1,2) [2025-01-17 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265363', 'tblTempUsageDetail_20' ) start [2025-01-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265363', 'tblTempUsageDetail_20' ) end [2025-01-17 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:53:21] Production.INFO: ==14601== Releasing lock... [2025-01-17 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:54:04 [end_date_ymd] => 2025-01-17 02:54:04 [RateCDR] => 1 ) [2025-01-17 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-16 23:54:04' and `end` < '2025-01-17 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-17 02:54:17] Production.INFO: count ==276 [2025-01-17 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:54:04 - End Time 2025-01-17 02:54:04 [2025-01-17 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265368', 'tblTempUsageDetail_20' ) start [2025-01-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265368', 'tblTempUsageDetail_20' ) end [2025-01-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265368', 'tblTempVendorCDR_20' ) start [2025-01-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265368', 'tblTempVendorCDR_20' ) end [2025-01-17 02:54:17] Production.INFO: ProcessCDR(1,14265368,1,1,2) [2025-01-17 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265368', 'tblTempUsageDetail_20' ) start [2025-01-17 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265368', 'tblTempUsageDetail_20' ) end [2025-01-17 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:54:20] Production.INFO: ==14675== Releasing lock... [2025-01-17 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:55:05 [end_date_ymd] => 2025-01-17 02:55:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:55:05' and `end` < '2025-01-17 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-17 02:55:17] Production.INFO: count ==275 [2025-01-17 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:55:05 - End Time 2025-01-17 02:55:05 [2025-01-17 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265373', 'tblTempUsageDetail_20' ) start [2025-01-17 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265373', 'tblTempUsageDetail_20' ) end [2025-01-17 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265373', 'tblTempVendorCDR_20' ) start [2025-01-17 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265373', 'tblTempVendorCDR_20' ) end [2025-01-17 02:55:17] Production.INFO: ProcessCDR(1,14265373,1,1,2) [2025-01-17 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265373', 'tblTempUsageDetail_20' ) start [2025-01-17 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265373', 'tblTempUsageDetail_20' ) end [2025-01-17 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:55:20] Production.INFO: ==14747== Releasing lock... [2025-01-17 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:56:05 [end_date_ymd] => 2025-01-17 02:56:05 [RateCDR] => 1 ) [2025-01-17 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:56:05' and `end` < '2025-01-17 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:56:17] Production.INFO: count ==275 [2025-01-17 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:56:05 - End Time 2025-01-17 02:56:05 [2025-01-17 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265378', 'tblTempUsageDetail_20' ) start [2025-01-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265378', 'tblTempUsageDetail_20' ) end [2025-01-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265378', 'tblTempVendorCDR_20' ) start [2025-01-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265378', 'tblTempVendorCDR_20' ) end [2025-01-17 02:56:17] Production.INFO: ProcessCDR(1,14265378,1,1,2) [2025-01-17 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265378', 'tblTempUsageDetail_20' ) start [2025-01-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265378', 'tblTempUsageDetail_20' ) end [2025-01-17 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:56:21] Production.INFO: ==14820== Releasing lock... [2025-01-17 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:57:05 [end_date_ymd] => 2025-01-17 02:57:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:57:05' and `end` < '2025-01-17 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-17 02:57:17] Production.INFO: count ==275 [2025-01-17 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-16 23:57:05 - End Time 2025-01-17 02:57:05 [2025-01-17 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265383', 'tblTempUsageDetail_20' ) start [2025-01-17 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265383', 'tblTempUsageDetail_20' ) end [2025-01-17 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265383', 'tblTempVendorCDR_20' ) start [2025-01-17 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265383', 'tblTempVendorCDR_20' ) end [2025-01-17 02:57:17] Production.INFO: ProcessCDR(1,14265383,1,1,2) [2025-01-17 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265383', 'tblTempUsageDetail_20' ) start [2025-01-17 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265383', 'tblTempUsageDetail_20' ) end [2025-01-17 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:57:20] Production.INFO: ==14891== Releasing lock... [2025-01-17 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:58:05 [end_date_ymd] => 2025-01-17 02:58:05 [RateCDR] => 1 ) [2025-01-17 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-16 23:58:05' and `end` < '2025-01-17 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-17 02:58:19] Production.INFO: count ==279 [2025-01-17 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-16 23:58:05 - End Time 2025-01-17 02:58:05 [2025-01-17 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265388', 'tblTempUsageDetail_20' ) start [2025-01-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265388', 'tblTempUsageDetail_20' ) end [2025-01-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265388', 'tblTempVendorCDR_20' ) start [2025-01-17 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265388', 'tblTempVendorCDR_20' ) end [2025-01-17 02:58:19] Production.INFO: ProcessCDR(1,14265388,1,1,2) [2025-01-17 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265388', 'tblTempUsageDetail_20' ) start [2025-01-17 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265388', 'tblTempUsageDetail_20' ) end [2025-01-17 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:58:22] Production.INFO: ==14962== Releasing lock... [2025-01-17 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-16 23:59:04 [end_date_ymd] => 2025-01-17 02:59:04 [RateCDR] => 1 ) [2025-01-17 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-16 23:59:04' and `end` < '2025-01-17 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 02:59:18] Production.INFO: count ==275 [2025-01-17 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-16 23:59:04 - End Time 2025-01-17 02:59:04 [2025-01-17 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265393', 'tblTempUsageDetail_20' ) start [2025-01-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265393', 'tblTempUsageDetail_20' ) end [2025-01-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265393', 'tblTempVendorCDR_20' ) start [2025-01-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265393', 'tblTempVendorCDR_20' ) end [2025-01-17 02:59:18] Production.INFO: ProcessCDR(1,14265393,1,1,2) [2025-01-17 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265393', 'tblTempUsageDetail_20' ) start [2025-01-17 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265393', 'tblTempUsageDetail_20' ) end [2025-01-17 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 02:59:21] Production.INFO: ==15070== Releasing lock... [2025-01-17 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 02:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:00:06 [end_date_ymd] => 2025-01-17 03:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 00:00:06' and `end` < '2025-01-17 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-17 03:00:19] Production.INFO: count ==279 [2025-01-17 03:00:20] Production.ERROR: pbx CDR StartTime 2025-01-17 00:00:06 - End Time 2025-01-17 03:00:06 [2025-01-17 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265399', 'tblTempUsageDetail_20' ) start [2025-01-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265399', 'tblTempUsageDetail_20' ) end [2025-01-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265399', 'tblTempVendorCDR_20' ) start [2025-01-17 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265399', 'tblTempVendorCDR_20' ) end [2025-01-17 03:00:20] Production.INFO: ProcessCDR(1,14265399,1,1,2) [2025-01-17 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265399', 'tblTempUsageDetail_20' ) start [2025-01-17 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265399', 'tblTempUsageDetail_20' ) end [2025-01-17 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:00:23] Production.INFO: ==15144== Releasing lock... [2025-01-17 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:01:05 [end_date_ymd] => 2025-01-17 03:01:05 [RateCDR] => 1 ) [2025-01-17 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:01:05' and `end` < '2025-01-17 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:01:19] Production.INFO: count ==279 [2025-01-17 03:01:19] Production.ERROR: pbx CDR StartTime 2025-01-17 00:01:05 - End Time 2025-01-17 03:01:05 [2025-01-17 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265404', 'tblTempUsageDetail_20' ) start [2025-01-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265404', 'tblTempUsageDetail_20' ) end [2025-01-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265404', 'tblTempVendorCDR_20' ) start [2025-01-17 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265404', 'tblTempVendorCDR_20' ) end [2025-01-17 03:01:19] Production.INFO: ProcessCDR(1,14265404,1,1,2) [2025-01-17 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265404', 'tblTempUsageDetail_20' ) start [2025-01-17 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265404', 'tblTempUsageDetail_20' ) end [2025-01-17 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:01:23] Production.INFO: ==15230== Releasing lock... [2025-01-17 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:02:05 [end_date_ymd] => 2025-01-17 03:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:02:05' and `end` < '2025-01-17 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-17 03:02:17] Production.INFO: count ==279 [2025-01-17 03:02:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:02:05 - End Time 2025-01-17 03:02:05 [2025-01-17 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265409', 'tblTempUsageDetail_20' ) start [2025-01-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265409', 'tblTempUsageDetail_20' ) end [2025-01-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265409', 'tblTempVendorCDR_20' ) start [2025-01-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265409', 'tblTempVendorCDR_20' ) end [2025-01-17 03:02:17] Production.INFO: ProcessCDR(1,14265409,1,1,2) [2025-01-17 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265409', 'tblTempUsageDetail_20' ) start [2025-01-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265409', 'tblTempUsageDetail_20' ) end [2025-01-17 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:02:21] Production.INFO: ==15376== Releasing lock... [2025-01-17 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:03:05 [end_date_ymd] => 2025-01-17 03:03:05 [RateCDR] => 1 ) [2025-01-17 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:03:05' and `end` < '2025-01-17 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:03:18] Production.INFO: count ==279 [2025-01-17 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:03:05 - End Time 2025-01-17 03:03:05 [2025-01-17 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265414', 'tblTempUsageDetail_20' ) start [2025-01-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265414', 'tblTempUsageDetail_20' ) end [2025-01-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265414', 'tblTempVendorCDR_20' ) start [2025-01-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265414', 'tblTempVendorCDR_20' ) end [2025-01-17 03:03:18] Production.INFO: ProcessCDR(1,14265414,1,1,2) [2025-01-17 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265414', 'tblTempUsageDetail_20' ) start [2025-01-17 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265414', 'tblTempUsageDetail_20' ) end [2025-01-17 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:03:21] Production.INFO: ==15444== Releasing lock... [2025-01-17 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:04:05 [end_date_ymd] => 2025-01-17 03:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:04:05' and `end` < '2025-01-17 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-17 03:04:18] Production.INFO: count ==279 [2025-01-17 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:04:05 - End Time 2025-01-17 03:04:05 [2025-01-17 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265419', 'tblTempUsageDetail_20' ) start [2025-01-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265419', 'tblTempUsageDetail_20' ) end [2025-01-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265419', 'tblTempVendorCDR_20' ) start [2025-01-17 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265419', 'tblTempVendorCDR_20' ) end [2025-01-17 03:04:18] Production.INFO: ProcessCDR(1,14265419,1,1,2) [2025-01-17 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265419', 'tblTempUsageDetail_20' ) start [2025-01-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265419', 'tblTempUsageDetail_20' ) end [2025-01-17 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:04:22] Production.INFO: ==15513== Releasing lock... [2025-01-17 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:05:05 [end_date_ymd] => 2025-01-17 03:05:05 [RateCDR] => 1 ) [2025-01-17 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:05:05' and `end` < '2025-01-17 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:05:17] Production.INFO: count ==275 [2025-01-17 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:05:05 - End Time 2025-01-17 03:05:05 [2025-01-17 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265424', 'tblTempUsageDetail_20' ) start [2025-01-17 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265424', 'tblTempUsageDetail_20' ) end [2025-01-17 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265424', 'tblTempVendorCDR_20' ) start [2025-01-17 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265424', 'tblTempVendorCDR_20' ) end [2025-01-17 03:05:17] Production.INFO: ProcessCDR(1,14265424,1,1,2) [2025-01-17 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265424', 'tblTempUsageDetail_20' ) start [2025-01-17 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265424', 'tblTempUsageDetail_20' ) end [2025-01-17 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:05:20] Production.INFO: ==15582== Releasing lock... [2025-01-17 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:06:05 [end_date_ymd] => 2025-01-17 03:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:06:05' and `end` < '2025-01-17 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-17 03:06:18] Production.INFO: count ==275 [2025-01-17 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:06:05 - End Time 2025-01-17 03:06:05 [2025-01-17 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265429', 'tblTempUsageDetail_20' ) start [2025-01-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265429', 'tblTempUsageDetail_20' ) end [2025-01-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265429', 'tblTempVendorCDR_20' ) start [2025-01-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265429', 'tblTempVendorCDR_20' ) end [2025-01-17 03:06:18] Production.INFO: ProcessCDR(1,14265429,1,1,2) [2025-01-17 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265429', 'tblTempUsageDetail_20' ) start [2025-01-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265429', 'tblTempUsageDetail_20' ) end [2025-01-17 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:06:21] Production.INFO: ==15729== Releasing lock... [2025-01-17 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:07:04 [end_date_ymd] => 2025-01-17 03:07:04 [RateCDR] => 1 ) [2025-01-17 03: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-17 00:07:04' and `end` < '2025-01-17 03: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-17 03:07:17] Production.INFO: count ==275 [2025-01-17 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:07:04 - End Time 2025-01-17 03:07:04 [2025-01-17 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265434', 'tblTempUsageDetail_20' ) start [2025-01-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265434', 'tblTempUsageDetail_20' ) end [2025-01-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265434', 'tblTempVendorCDR_20' ) start [2025-01-17 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265434', 'tblTempVendorCDR_20' ) end [2025-01-17 03:07:17] Production.INFO: ProcessCDR(1,14265434,1,1,2) [2025-01-17 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265434', 'tblTempUsageDetail_20' ) start [2025-01-17 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265434', 'tblTempUsageDetail_20' ) end [2025-01-17 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:07:21] Production.INFO: ==15798== Releasing lock... [2025-01-17 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:08:05 [end_date_ymd] => 2025-01-17 03:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:08:05' and `end` < '2025-01-17 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-17 03:08:18] Production.INFO: count ==275 [2025-01-17 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:08:05 - End Time 2025-01-17 03:08:05 [2025-01-17 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265439', 'tblTempUsageDetail_20' ) start [2025-01-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265439', 'tblTempUsageDetail_20' ) end [2025-01-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265439', 'tblTempVendorCDR_20' ) start [2025-01-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265439', 'tblTempVendorCDR_20' ) end [2025-01-17 03:08:18] Production.INFO: ProcessCDR(1,14265439,1,1,2) [2025-01-17 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265439', 'tblTempUsageDetail_20' ) start [2025-01-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265439', 'tblTempUsageDetail_20' ) end [2025-01-17 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:08:21] Production.INFO: ==15888== Releasing lock... [2025-01-17 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:09:04 [end_date_ymd] => 2025-01-17 03:09:04 [RateCDR] => 1 ) [2025-01-17 03:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:09:04' and `end` < '2025-01-17 03:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:09:17] Production.INFO: count ==275 [2025-01-17 03:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:09:04 - End Time 2025-01-17 03:09:04 [2025-01-17 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265444', 'tblTempUsageDetail_20' ) start [2025-01-17 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265444', 'tblTempUsageDetail_20' ) end [2025-01-17 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265444', 'tblTempVendorCDR_20' ) start [2025-01-17 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265444', 'tblTempVendorCDR_20' ) end [2025-01-17 03:09:17] Production.INFO: ProcessCDR(1,14265444,1,1,2) [2025-01-17 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265444', 'tblTempUsageDetail_20' ) start [2025-01-17 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265444', 'tblTempUsageDetail_20' ) end [2025-01-17 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:09:20] Production.INFO: ==16060== Releasing lock... [2025-01-17 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:10:06 [end_date_ymd] => 2025-01-17 03:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 00:10:06' and `end` < '2025-01-17 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-17 03:10:18] Production.INFO: count ==269 [2025-01-17 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:10:06 - End Time 2025-01-17 03:10:06 [2025-01-17 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265450', 'tblTempUsageDetail_20' ) start [2025-01-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265450', 'tblTempUsageDetail_20' ) end [2025-01-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265450', 'tblTempVendorCDR_20' ) start [2025-01-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265450', 'tblTempVendorCDR_20' ) end [2025-01-17 03:10:18] Production.INFO: ProcessCDR(1,14265450,1,1,2) [2025-01-17 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265450', 'tblTempUsageDetail_20' ) start [2025-01-17 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265450', 'tblTempUsageDetail_20' ) end [2025-01-17 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:10:22] Production.INFO: ==16133== Releasing lock... [2025-01-17 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:11:06 [end_date_ymd] => 2025-01-17 03:11:06 [RateCDR] => 1 ) [2025-01-17 03: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-17 00:11:06' and `end` < '2025-01-17 03: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-17 03:11:18] Production.INFO: count ==269 [2025-01-17 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:11:06 - End Time 2025-01-17 03:11:06 [2025-01-17 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265455', 'tblTempUsageDetail_20' ) start [2025-01-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265455', 'tblTempUsageDetail_20' ) end [2025-01-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265455', 'tblTempVendorCDR_20' ) start [2025-01-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265455', 'tblTempVendorCDR_20' ) end [2025-01-17 03:11:18] Production.INFO: ProcessCDR(1,14265455,1,1,2) [2025-01-17 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265455', 'tblTempUsageDetail_20' ) start [2025-01-17 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265455', 'tblTempUsageDetail_20' ) end [2025-01-17 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:11:21] Production.INFO: ==16204== Releasing lock... [2025-01-17 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:12:05 [end_date_ymd] => 2025-01-17 03:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:12:05' and `end` < '2025-01-17 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-17 03:12:17] Production.INFO: count ==265 [2025-01-17 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:12:05 - End Time 2025-01-17 03:12:05 [2025-01-17 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265460', 'tblTempUsageDetail_20' ) start [2025-01-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265460', 'tblTempUsageDetail_20' ) end [2025-01-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265460', 'tblTempVendorCDR_20' ) start [2025-01-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265460', 'tblTempVendorCDR_20' ) end [2025-01-17 03:12:17] Production.INFO: ProcessCDR(1,14265460,1,1,2) [2025-01-17 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265460', 'tblTempUsageDetail_20' ) start [2025-01-17 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265460', 'tblTempUsageDetail_20' ) end [2025-01-17 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:12:21] Production.INFO: ==16272== Releasing lock... [2025-01-17 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:13:06 [end_date_ymd] => 2025-01-17 03:13:06 [RateCDR] => 1 ) [2025-01-17 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:13:06' and `end` < '2025-01-17 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:13:18] Production.INFO: count ==263 [2025-01-17 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:13:06 - End Time 2025-01-17 03:13:06 [2025-01-17 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265465', 'tblTempUsageDetail_20' ) start [2025-01-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265465', 'tblTempUsageDetail_20' ) end [2025-01-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265465', 'tblTempVendorCDR_20' ) start [2025-01-17 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265465', 'tblTempVendorCDR_20' ) end [2025-01-17 03:13:18] Production.INFO: ProcessCDR(1,14265465,1,1,2) [2025-01-17 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265465', 'tblTempUsageDetail_20' ) start [2025-01-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265465', 'tblTempUsageDetail_20' ) end [2025-01-17 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:13:22] Production.INFO: ==16419== Releasing lock... [2025-01-17 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:14:05 [end_date_ymd] => 2025-01-17 03:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:14:05' and `end` < '2025-01-17 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-17 03:14:17] Production.INFO: count ==263 [2025-01-17 03:14:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:14:05 - End Time 2025-01-17 03:14:05 [2025-01-17 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265470', 'tblTempUsageDetail_20' ) start [2025-01-17 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265470', 'tblTempUsageDetail_20' ) end [2025-01-17 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265470', 'tblTempVendorCDR_20' ) start [2025-01-17 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265470', 'tblTempVendorCDR_20' ) end [2025-01-17 03:14:17] Production.INFO: ProcessCDR(1,14265470,1,1,2) [2025-01-17 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265470', 'tblTempUsageDetail_20' ) start [2025-01-17 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265470', 'tblTempUsageDetail_20' ) end [2025-01-17 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:14:20] Production.INFO: ==16495== Releasing lock... [2025-01-17 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:14:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:15:05 [end_date_ymd] => 2025-01-17 03:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:15:05' and `end` < '2025-01-17 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-17 03:15:18] Production.INFO: count ==263 [2025-01-17 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:15:05 - End Time 2025-01-17 03:15:05 [2025-01-17 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265475', 'tblTempUsageDetail_20' ) start [2025-01-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265475', 'tblTempUsageDetail_20' ) end [2025-01-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265475', 'tblTempVendorCDR_20' ) start [2025-01-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265475', 'tblTempVendorCDR_20' ) end [2025-01-17 03:15:18] Production.INFO: ProcessCDR(1,14265475,1,1,2) [2025-01-17 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265475', 'tblTempUsageDetail_20' ) start [2025-01-17 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265475', 'tblTempUsageDetail_20' ) end [2025-01-17 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:15:21] Production.INFO: ==16605== Releasing lock... [2025-01-17 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-17 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:16:05 [end_date_ymd] => 2025-01-17 03:16:05 [RateCDR] => 1 ) [2025-01-17 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:16:05' and `end` < '2025-01-17 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:16:17] Production.INFO: count ==262 [2025-01-17 03:16:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:16:05 - End Time 2025-01-17 03:16:05 [2025-01-17 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265480', 'tblTempUsageDetail_20' ) start [2025-01-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265480', 'tblTempUsageDetail_20' ) end [2025-01-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265480', 'tblTempVendorCDR_20' ) start [2025-01-17 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265480', 'tblTempVendorCDR_20' ) end [2025-01-17 03:16:17] Production.INFO: ProcessCDR(1,14265480,1,1,2) [2025-01-17 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265480', 'tblTempUsageDetail_20' ) start [2025-01-17 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265480', 'tblTempUsageDetail_20' ) end [2025-01-17 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:16:21] Production.INFO: ==16676== Releasing lock... [2025-01-17 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:17:05 [end_date_ymd] => 2025-01-17 03:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:17:05' and `end` < '2025-01-17 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-17 03:17:18] Production.INFO: count ==262 [2025-01-17 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:17:05 - End Time 2025-01-17 03:17:05 [2025-01-17 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265485', 'tblTempUsageDetail_20' ) start [2025-01-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265485', 'tblTempUsageDetail_20' ) end [2025-01-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265485', 'tblTempVendorCDR_20' ) start [2025-01-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265485', 'tblTempVendorCDR_20' ) end [2025-01-17 03:17:18] Production.INFO: ProcessCDR(1,14265485,1,1,2) [2025-01-17 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265485', 'tblTempUsageDetail_20' ) start [2025-01-17 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265485', 'tblTempUsageDetail_20' ) end [2025-01-17 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:17:21] Production.INFO: ==16826== Releasing lock... [2025-01-17 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:18:05 [end_date_ymd] => 2025-01-17 03:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:18:05' and `end` < '2025-01-17 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-17 03:18:17] Production.INFO: count ==262 [2025-01-17 03:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:18:05 - End Time 2025-01-17 03:18:05 [2025-01-17 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265490', 'tblTempUsageDetail_20' ) start [2025-01-17 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265490', 'tblTempUsageDetail_20' ) end [2025-01-17 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265490', 'tblTempVendorCDR_20' ) start [2025-01-17 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265490', 'tblTempVendorCDR_20' ) end [2025-01-17 03:18:17] Production.INFO: ProcessCDR(1,14265490,1,1,2) [2025-01-17 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265490', 'tblTempUsageDetail_20' ) start [2025-01-17 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265490', 'tblTempUsageDetail_20' ) end [2025-01-17 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:18:20] Production.INFO: ==16900== Releasing lock... [2025-01-17 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:19:05 [end_date_ymd] => 2025-01-17 03:19:05 [RateCDR] => 1 ) [2025-01-17 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:19:05' and `end` < '2025-01-17 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:19:18] Production.INFO: count ==259 [2025-01-17 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:19:05 - End Time 2025-01-17 03:19:05 [2025-01-17 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265495', 'tblTempUsageDetail_20' ) start [2025-01-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265495', 'tblTempUsageDetail_20' ) end [2025-01-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265495', 'tblTempVendorCDR_20' ) start [2025-01-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265495', 'tblTempVendorCDR_20' ) end [2025-01-17 03:19:18] Production.INFO: ProcessCDR(1,14265495,1,1,2) [2025-01-17 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265495', 'tblTempUsageDetail_20' ) start [2025-01-17 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265495', 'tblTempUsageDetail_20' ) end [2025-01-17 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:19:21] Production.INFO: ==16976== Releasing lock... [2025-01-17 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:20:05 [end_date_ymd] => 2025-01-17 03:20:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:20:05' and `end` < '2025-01-17 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-17 03:20:18] Production.INFO: count ==255 [2025-01-17 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:20:05 - End Time 2025-01-17 03:20:05 [2025-01-17 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265500', 'tblTempUsageDetail_20' ) start [2025-01-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265500', 'tblTempUsageDetail_20' ) end [2025-01-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265500', 'tblTempVendorCDR_20' ) start [2025-01-17 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265500', 'tblTempVendorCDR_20' ) end [2025-01-17 03:20:18] Production.INFO: ProcessCDR(1,14265500,1,1,2) [2025-01-17 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265500', 'tblTempUsageDetail_20' ) start [2025-01-17 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265500', 'tblTempUsageDetail_20' ) end [2025-01-17 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:20:21] Production.INFO: ==17048== Releasing lock... [2025-01-17 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:21:05 [end_date_ymd] => 2025-01-17 03:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:21:05' and `end` < '2025-01-17 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-17 03:21:17] Production.INFO: count ==228 [2025-01-17 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:21:05 - End Time 2025-01-17 03:21:05 [2025-01-17 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265506', 'tblTempUsageDetail_20' ) start [2025-01-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265506', 'tblTempUsageDetail_20' ) end [2025-01-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265506', 'tblTempVendorCDR_20' ) start [2025-01-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265506', 'tblTempVendorCDR_20' ) end [2025-01-17 03:21:17] Production.INFO: ProcessCDR(1,14265506,1,1,2) [2025-01-17 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265506', 'tblTempUsageDetail_20' ) start [2025-01-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265506', 'tblTempUsageDetail_20' ) end [2025-01-17 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:21:20] Production.INFO: ==17121== Releasing lock... [2025-01-17 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:21:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:22:05 [end_date_ymd] => 2025-01-17 03:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:22:05' and `end` < '2025-01-17 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-17 03:22:18] Production.INFO: count ==228 [2025-01-17 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:22:05 - End Time 2025-01-17 03:22:05 [2025-01-17 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265511', 'tblTempUsageDetail_20' ) start [2025-01-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265511', 'tblTempUsageDetail_20' ) end [2025-01-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265511', 'tblTempVendorCDR_20' ) start [2025-01-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265511', 'tblTempVendorCDR_20' ) end [2025-01-17 03:22:18] Production.INFO: ProcessCDR(1,14265511,1,1,2) [2025-01-17 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265511', 'tblTempUsageDetail_20' ) start [2025-01-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265511', 'tblTempUsageDetail_20' ) end [2025-01-17 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:22:21] Production.INFO: ==17193== Releasing lock... [2025-01-17 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:23:05 [end_date_ymd] => 2025-01-17 03:23:05 [RateCDR] => 1 ) [2025-01-17 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:23:05' and `end` < '2025-01-17 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:23:17] Production.INFO: count ==228 [2025-01-17 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:23:05 - End Time 2025-01-17 03:23:05 [2025-01-17 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265516', 'tblTempUsageDetail_20' ) start [2025-01-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265516', 'tblTempUsageDetail_20' ) end [2025-01-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265516', 'tblTempVendorCDR_20' ) start [2025-01-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265516', 'tblTempVendorCDR_20' ) end [2025-01-17 03:23:17] Production.INFO: ProcessCDR(1,14265516,1,1,2) [2025-01-17 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265516', 'tblTempUsageDetail_20' ) start [2025-01-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265516', 'tblTempUsageDetail_20' ) end [2025-01-17 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:23:21] Production.INFO: ==17265== Releasing lock... [2025-01-17 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:24:04 [end_date_ymd] => 2025-01-17 03:24:04 [RateCDR] => 1 ) [2025-01-17 03: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-17 00:24:04' and `end` < '2025-01-17 03: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-17 03:24:17] Production.INFO: count ==228 [2025-01-17 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:24:04 - End Time 2025-01-17 03:24:04 [2025-01-17 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265521', 'tblTempUsageDetail_20' ) start [2025-01-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265521', 'tblTempUsageDetail_20' ) end [2025-01-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265521', 'tblTempVendorCDR_20' ) start [2025-01-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265521', 'tblTempVendorCDR_20' ) end [2025-01-17 03:24:17] Production.INFO: ProcessCDR(1,14265521,1,1,2) [2025-01-17 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265521', 'tblTempUsageDetail_20' ) start [2025-01-17 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265521', 'tblTempUsageDetail_20' ) end [2025-01-17 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:24:20] Production.INFO: ==17334== Releasing lock... [2025-01-17 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:24:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:25:05 [end_date_ymd] => 2025-01-17 03:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:25:05' and `end` < '2025-01-17 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-17 03:25:18] Production.INFO: count ==227 [2025-01-17 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:25:05 - End Time 2025-01-17 03:25:05 [2025-01-17 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265526', 'tblTempUsageDetail_20' ) start [2025-01-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265526', 'tblTempUsageDetail_20' ) end [2025-01-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265526', 'tblTempVendorCDR_20' ) start [2025-01-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265526', 'tblTempVendorCDR_20' ) end [2025-01-17 03:25:18] Production.INFO: ProcessCDR(1,14265526,1,1,2) [2025-01-17 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265526', 'tblTempUsageDetail_20' ) start [2025-01-17 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265526', 'tblTempUsageDetail_20' ) end [2025-01-17 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:25:21] Production.INFO: ==17405== Releasing lock... [2025-01-17 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:26:05 [end_date_ymd] => 2025-01-17 03:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:26:05' and `end` < '2025-01-17 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-17 03:26:18] Production.INFO: count ==227 [2025-01-17 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:26:05 - End Time 2025-01-17 03:26:05 [2025-01-17 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265531', 'tblTempUsageDetail_20' ) start [2025-01-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265531', 'tblTempUsageDetail_20' ) end [2025-01-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265531', 'tblTempVendorCDR_20' ) start [2025-01-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265531', 'tblTempVendorCDR_20' ) end [2025-01-17 03:26:18] Production.INFO: ProcessCDR(1,14265531,1,1,2) [2025-01-17 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265531', 'tblTempUsageDetail_20' ) start [2025-01-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265531', 'tblTempUsageDetail_20' ) end [2025-01-17 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:26:22] Production.INFO: ==17477== Releasing lock... [2025-01-17 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:26:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:27:05 [end_date_ymd] => 2025-01-17 03:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:27:05' and `end` < '2025-01-17 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-17 03:27:17] Production.INFO: count ==228 [2025-01-17 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:27:05 - End Time 2025-01-17 03:27:05 [2025-01-17 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265536', 'tblTempUsageDetail_20' ) start [2025-01-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265536', 'tblTempUsageDetail_20' ) end [2025-01-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265536', 'tblTempVendorCDR_20' ) start [2025-01-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265536', 'tblTempVendorCDR_20' ) end [2025-01-17 03:27:17] Production.INFO: ProcessCDR(1,14265536,1,1,2) [2025-01-17 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265536', 'tblTempUsageDetail_20' ) start [2025-01-17 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265536', 'tblTempUsageDetail_20' ) end [2025-01-17 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:27:20] Production.INFO: ==17549== Releasing lock... [2025-01-17 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:28:04 [end_date_ymd] => 2025-01-17 03:28:04 [RateCDR] => 1 ) [2025-01-17 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-17 00:28:04' and `end` < '2025-01-17 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-17 03:28:17] Production.INFO: count ==228 [2025-01-17 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:28:04 - End Time 2025-01-17 03:28:04 [2025-01-17 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265541', 'tblTempUsageDetail_20' ) start [2025-01-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265541', 'tblTempUsageDetail_20' ) end [2025-01-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265541', 'tblTempVendorCDR_20' ) start [2025-01-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265541', 'tblTempVendorCDR_20' ) end [2025-01-17 03:28:17] Production.INFO: ProcessCDR(1,14265541,1,1,2) [2025-01-17 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265541', 'tblTempUsageDetail_20' ) start [2025-01-17 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265541', 'tblTempUsageDetail_20' ) end [2025-01-17 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:28:20] Production.INFO: ==17620== Releasing lock... [2025-01-17 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:28:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:29:05 [end_date_ymd] => 2025-01-17 03:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:29:05' and `end` < '2025-01-17 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-17 03:29:17] Production.INFO: count ==228 [2025-01-17 03:29:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:29:05 - End Time 2025-01-17 03:29:05 [2025-01-17 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265546', 'tblTempUsageDetail_20' ) start [2025-01-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265546', 'tblTempUsageDetail_20' ) end [2025-01-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265546', 'tblTempVendorCDR_20' ) start [2025-01-17 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265546', 'tblTempVendorCDR_20' ) end [2025-01-17 03:29:17] Production.INFO: ProcessCDR(1,14265546,1,1,2) [2025-01-17 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265546', 'tblTempUsageDetail_20' ) start [2025-01-17 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265546', 'tblTempUsageDetail_20' ) end [2025-01-17 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:29:20] Production.INFO: ==17690== Releasing lock... [2025-01-17 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:30:05 [end_date_ymd] => 2025-01-17 03:30:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:30:05' and `end` < '2025-01-17 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-17 03:30:17] Production.INFO: count ==224 [2025-01-17 03:30:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:30:05 - End Time 2025-01-17 03:30:05 [2025-01-17 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265551', 'tblTempUsageDetail_20' ) start [2025-01-17 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265551', 'tblTempUsageDetail_20' ) end [2025-01-17 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265551', 'tblTempVendorCDR_20' ) start [2025-01-17 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265551', 'tblTempVendorCDR_20' ) end [2025-01-17 03:30:17] Production.INFO: ProcessCDR(1,14265551,1,1,2) [2025-01-17 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265551', 'tblTempUsageDetail_20' ) start [2025-01-17 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265551', 'tblTempUsageDetail_20' ) end [2025-01-17 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:30:21] Production.INFO: ==17763== Releasing lock... [2025-01-17 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:31:05 [end_date_ymd] => 2025-01-17 03:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:31:05' and `end` < '2025-01-17 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-17 03:31:17] Production.INFO: count ==220 [2025-01-17 03:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:31:05 - End Time 2025-01-17 03:31:05 [2025-01-17 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265557', 'tblTempUsageDetail_20' ) start [2025-01-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265557', 'tblTempUsageDetail_20' ) end [2025-01-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265557', 'tblTempVendorCDR_20' ) start [2025-01-17 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265557', 'tblTempVendorCDR_20' ) end [2025-01-17 03:31:17] Production.INFO: ProcessCDR(1,14265557,1,1,2) [2025-01-17 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265557', 'tblTempUsageDetail_20' ) start [2025-01-17 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265557', 'tblTempUsageDetail_20' ) end [2025-01-17 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:31:21] Production.INFO: ==17837== Releasing lock... [2025-01-17 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:32:05 [end_date_ymd] => 2025-01-17 03:32:05 [RateCDR] => 1 ) [2025-01-17 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:32:05' and `end` < '2025-01-17 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:32:18] Production.INFO: count ==220 [2025-01-17 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:32:05 - End Time 2025-01-17 03:32:05 [2025-01-17 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265562', 'tblTempUsageDetail_20' ) start [2025-01-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265562', 'tblTempUsageDetail_20' ) end [2025-01-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265562', 'tblTempVendorCDR_20' ) start [2025-01-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265562', 'tblTempVendorCDR_20' ) end [2025-01-17 03:32:18] Production.INFO: ProcessCDR(1,14265562,1,1,2) [2025-01-17 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265562', 'tblTempUsageDetail_20' ) start [2025-01-17 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265562', 'tblTempUsageDetail_20' ) end [2025-01-17 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:32:21] Production.INFO: ==17948== Releasing lock... [2025-01-17 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:33:05 [end_date_ymd] => 2025-01-17 03:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:33:05' and `end` < '2025-01-17 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-17 03:33:17] Production.INFO: count ==220 [2025-01-17 03:33:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:33:05 - End Time 2025-01-17 03:33:05 [2025-01-17 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265567', 'tblTempUsageDetail_20' ) start [2025-01-17 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265567', 'tblTempUsageDetail_20' ) end [2025-01-17 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265567', 'tblTempVendorCDR_20' ) start [2025-01-17 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265567', 'tblTempVendorCDR_20' ) end [2025-01-17 03:33:17] Production.INFO: ProcessCDR(1,14265567,1,1,2) [2025-01-17 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265567', 'tblTempUsageDetail_20' ) start [2025-01-17 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265567', 'tblTempUsageDetail_20' ) end [2025-01-17 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:33:20] Production.INFO: ==18019== Releasing lock... [2025-01-17 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:34:05 [end_date_ymd] => 2025-01-17 03:34:05 [RateCDR] => 1 ) [2025-01-17 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:34:05' and `end` < '2025-01-17 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:34:18] Production.INFO: count ==220 [2025-01-17 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:34:05 - End Time 2025-01-17 03:34:05 [2025-01-17 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265572', 'tblTempUsageDetail_20' ) start [2025-01-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265572', 'tblTempUsageDetail_20' ) end [2025-01-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265572', 'tblTempVendorCDR_20' ) start [2025-01-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265572', 'tblTempVendorCDR_20' ) end [2025-01-17 03:34:18] Production.INFO: ProcessCDR(1,14265572,1,1,2) [2025-01-17 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265572', 'tblTempUsageDetail_20' ) start [2025-01-17 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265572', 'tblTempUsageDetail_20' ) end [2025-01-17 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:34:21] Production.INFO: ==18090== Releasing lock... [2025-01-17 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:35:05 [end_date_ymd] => 2025-01-17 03:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:35:05' and `end` < '2025-01-17 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-17 03:35:17] Production.INFO: count ==220 [2025-01-17 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:35:05 - End Time 2025-01-17 03:35:05 [2025-01-17 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265577', 'tblTempUsageDetail_20' ) start [2025-01-17 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265577', 'tblTempUsageDetail_20' ) end [2025-01-17 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265577', 'tblTempVendorCDR_20' ) start [2025-01-17 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265577', 'tblTempVendorCDR_20' ) end [2025-01-17 03:35:17] Production.INFO: ProcessCDR(1,14265577,1,1,2) [2025-01-17 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265577', 'tblTempUsageDetail_20' ) start [2025-01-17 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265577', 'tblTempUsageDetail_20' ) end [2025-01-17 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:35:20] Production.INFO: ==18167== Releasing lock... [2025-01-17 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:36:05 [end_date_ymd] => 2025-01-17 03:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:36:05' and `end` < '2025-01-17 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-17 03:36:17] Production.INFO: count ==220 [2025-01-17 03:36:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:36:05 - End Time 2025-01-17 03:36:05 [2025-01-17 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265582', 'tblTempUsageDetail_20' ) start [2025-01-17 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265582', 'tblTempUsageDetail_20' ) end [2025-01-17 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265582', 'tblTempVendorCDR_20' ) start [2025-01-17 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265582', 'tblTempVendorCDR_20' ) end [2025-01-17 03:36:17] Production.INFO: ProcessCDR(1,14265582,1,1,2) [2025-01-17 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265582', 'tblTempUsageDetail_20' ) start [2025-01-17 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265582', 'tblTempUsageDetail_20' ) end [2025-01-17 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:36:20] Production.INFO: ==18239== Releasing lock... [2025-01-17 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:36:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:37:04 [end_date_ymd] => 2025-01-17 03:37:04 [RateCDR] => 1 ) [2025-01-17 03:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:37:04' and `end` < '2025-01-17 03:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:37:17] Production.INFO: count ==220 [2025-01-17 03:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:37:04 - End Time 2025-01-17 03:37:04 [2025-01-17 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265587', 'tblTempUsageDetail_20' ) start [2025-01-17 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265587', 'tblTempUsageDetail_20' ) end [2025-01-17 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265587', 'tblTempVendorCDR_20' ) start [2025-01-17 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265587', 'tblTempVendorCDR_20' ) end [2025-01-17 03:37:17] Production.INFO: ProcessCDR(1,14265587,1,1,2) [2025-01-17 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265587', 'tblTempUsageDetail_20' ) start [2025-01-17 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265587', 'tblTempUsageDetail_20' ) end [2025-01-17 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:37:20] Production.INFO: ==18313== Releasing lock... [2025-01-17 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:38:05 [end_date_ymd] => 2025-01-17 03:38:05 [RateCDR] => 1 ) [2025-01-17 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:38:05' and `end` < '2025-01-17 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:38:18] Production.INFO: count ==220 [2025-01-17 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:38:05 - End Time 2025-01-17 03:38:05 [2025-01-17 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265592', 'tblTempUsageDetail_20' ) start [2025-01-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265592', 'tblTempUsageDetail_20' ) end [2025-01-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265592', 'tblTempVendorCDR_20' ) start [2025-01-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265592', 'tblTempVendorCDR_20' ) end [2025-01-17 03:38:18] Production.INFO: ProcessCDR(1,14265592,1,1,2) [2025-01-17 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265592', 'tblTempUsageDetail_20' ) start [2025-01-17 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265592', 'tblTempUsageDetail_20' ) end [2025-01-17 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:38:21] Production.INFO: ==18384== Releasing lock... [2025-01-17 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:39:05 [end_date_ymd] => 2025-01-17 03:39:05 [RateCDR] => 1 ) [2025-01-17 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:39:05' and `end` < '2025-01-17 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:39:18] Production.INFO: count ==218 [2025-01-17 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:39:05 - End Time 2025-01-17 03:39:05 [2025-01-17 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265597', 'tblTempUsageDetail_20' ) start [2025-01-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265597', 'tblTempUsageDetail_20' ) end [2025-01-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265597', 'tblTempVendorCDR_20' ) start [2025-01-17 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265597', 'tblTempVendorCDR_20' ) end [2025-01-17 03:39:18] Production.INFO: ProcessCDR(1,14265597,1,1,2) [2025-01-17 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265597', 'tblTempUsageDetail_20' ) start [2025-01-17 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265597', 'tblTempUsageDetail_20' ) end [2025-01-17 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:39:22] Production.INFO: ==18456== Releasing lock... [2025-01-17 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:40:05 [end_date_ymd] => 2025-01-17 03:40:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:40:05' and `end` < '2025-01-17 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-17 03:40:18] Production.INFO: count ==213 [2025-01-17 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:40:05 - End Time 2025-01-17 03:40:05 [2025-01-17 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265603', 'tblTempUsageDetail_20' ) start [2025-01-17 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265603', 'tblTempUsageDetail_20' ) end [2025-01-17 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265603', 'tblTempVendorCDR_20' ) start [2025-01-17 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265603', 'tblTempVendorCDR_20' ) end [2025-01-17 03:40:18] Production.INFO: ProcessCDR(1,14265603,1,1,2) [2025-01-17 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265603', 'tblTempUsageDetail_20' ) start [2025-01-17 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265603', 'tblTempUsageDetail_20' ) end [2025-01-17 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:40:21] Production.INFO: ==18527== Releasing lock... [2025-01-17 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:41:05 [end_date_ymd] => 2025-01-17 03:41:05 [RateCDR] => 1 ) [2025-01-17 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:41:05' and `end` < '2025-01-17 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:41:18] Production.INFO: count ==209 [2025-01-17 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:41:05 - End Time 2025-01-17 03:41:05 [2025-01-17 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265608', 'tblTempUsageDetail_20' ) start [2025-01-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265608', 'tblTempUsageDetail_20' ) end [2025-01-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265608', 'tblTempVendorCDR_20' ) start [2025-01-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265608', 'tblTempVendorCDR_20' ) end [2025-01-17 03:41:18] Production.INFO: ProcessCDR(1,14265608,1,1,2) [2025-01-17 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265608', 'tblTempUsageDetail_20' ) start [2025-01-17 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265608', 'tblTempUsageDetail_20' ) end [2025-01-17 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:41:21] Production.INFO: ==18599== Releasing lock... [2025-01-17 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:42:04 [end_date_ymd] => 2025-01-17 03:42:04 [RateCDR] => 1 ) [2025-01-17 03:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:42:04' and `end` < '2025-01-17 03:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:42:17] Production.INFO: count ==209 [2025-01-17 03:42:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:42:04 - End Time 2025-01-17 03:42:04 [2025-01-17 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265613', 'tblTempUsageDetail_20' ) start [2025-01-17 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265613', 'tblTempUsageDetail_20' ) end [2025-01-17 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265613', 'tblTempVendorCDR_20' ) start [2025-01-17 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265613', 'tblTempVendorCDR_20' ) end [2025-01-17 03:42:17] Production.INFO: ProcessCDR(1,14265613,1,1,2) [2025-01-17 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265613', 'tblTempUsageDetail_20' ) start [2025-01-17 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265613', 'tblTempUsageDetail_20' ) end [2025-01-17 03:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:42:20] Production.INFO: ==18668== Releasing lock... [2025-01-17 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:42:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:43:05 [end_date_ymd] => 2025-01-17 03:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:43:05' and `end` < '2025-01-17 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-17 03:43:17] Production.INFO: count ==209 [2025-01-17 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:43:05 - End Time 2025-01-17 03:43:05 [2025-01-17 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265618', 'tblTempUsageDetail_20' ) start [2025-01-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265618', 'tblTempUsageDetail_20' ) end [2025-01-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265618', 'tblTempVendorCDR_20' ) start [2025-01-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265618', 'tblTempVendorCDR_20' ) end [2025-01-17 03:43:18] Production.INFO: ProcessCDR(1,14265618,1,1,2) [2025-01-17 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265618', 'tblTempUsageDetail_20' ) start [2025-01-17 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265618', 'tblTempUsageDetail_20' ) end [2025-01-17 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:43:21] Production.INFO: ==18741== Releasing lock... [2025-01-17 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:44:05 [end_date_ymd] => 2025-01-17 03:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:44:05' and `end` < '2025-01-17 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-17 03:44:17] Production.INFO: count ==209 [2025-01-17 03:44:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:44:05 - End Time 2025-01-17 03:44:05 [2025-01-17 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265623', 'tblTempUsageDetail_20' ) start [2025-01-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265623', 'tblTempUsageDetail_20' ) end [2025-01-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265623', 'tblTempVendorCDR_20' ) start [2025-01-17 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265623', 'tblTempVendorCDR_20' ) end [2025-01-17 03:44:17] Production.INFO: ProcessCDR(1,14265623,1,1,2) [2025-01-17 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265623', 'tblTempUsageDetail_20' ) start [2025-01-17 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265623', 'tblTempUsageDetail_20' ) end [2025-01-17 03:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:44:20] Production.INFO: ==18810== Releasing lock... [2025-01-17 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:44:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:45:05 [end_date_ymd] => 2025-01-17 03:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:45:05' and `end` < '2025-01-17 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-17 03:45:17] Production.INFO: count ==209 [2025-01-17 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:45:05 - End Time 2025-01-17 03:45:05 [2025-01-17 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265628', 'tblTempUsageDetail_20' ) start [2025-01-17 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265628', 'tblTempUsageDetail_20' ) end [2025-01-17 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265628', 'tblTempVendorCDR_20' ) start [2025-01-17 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265628', 'tblTempVendorCDR_20' ) end [2025-01-17 03:45:17] Production.INFO: ProcessCDR(1,14265628,1,1,2) [2025-01-17 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265628', 'tblTempUsageDetail_20' ) start [2025-01-17 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265628', 'tblTempUsageDetail_20' ) end [2025-01-17 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:45:20] Production.INFO: ==18903== Releasing lock... [2025-01-17 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:45:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:46:05 [end_date_ymd] => 2025-01-17 03:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:46:05' and `end` < '2025-01-17 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-17 03:46:18] Production.INFO: count ==209 [2025-01-17 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:46:05 - End Time 2025-01-17 03:46:05 [2025-01-17 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265633', 'tblTempUsageDetail_20' ) start [2025-01-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265633', 'tblTempUsageDetail_20' ) end [2025-01-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265633', 'tblTempVendorCDR_20' ) start [2025-01-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265633', 'tblTempVendorCDR_20' ) end [2025-01-17 03:46:18] Production.INFO: ProcessCDR(1,14265633,1,1,2) [2025-01-17 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265633', 'tblTempUsageDetail_20' ) start [2025-01-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265633', 'tblTempUsageDetail_20' ) end [2025-01-17 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:46:21] Production.INFO: ==18975== Releasing lock... [2025-01-17 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:47:04 [end_date_ymd] => 2025-01-17 03:47:04 [RateCDR] => 1 ) [2025-01-17 03: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-17 00:47:04' and `end` < '2025-01-17 03: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-17 03:47:17] Production.INFO: count ==209 [2025-01-17 03:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:47:04 - End Time 2025-01-17 03:47:04 [2025-01-17 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265638', 'tblTempUsageDetail_20' ) start [2025-01-17 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265638', 'tblTempUsageDetail_20' ) end [2025-01-17 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265638', 'tblTempVendorCDR_20' ) start [2025-01-17 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265638', 'tblTempVendorCDR_20' ) end [2025-01-17 03:47:17] Production.INFO: ProcessCDR(1,14265638,1,1,2) [2025-01-17 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265638', 'tblTempUsageDetail_20' ) start [2025-01-17 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265638', 'tblTempUsageDetail_20' ) end [2025-01-17 03:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:47:20] Production.INFO: ==19074== Releasing lock... [2025-01-17 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:48:05 [end_date_ymd] => 2025-01-17 03:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:48:05' and `end` < '2025-01-17 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-17 03:48:18] Production.INFO: count ==209 [2025-01-17 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:48:05 - End Time 2025-01-17 03:48:05 [2025-01-17 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265643', 'tblTempUsageDetail_20' ) start [2025-01-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265643', 'tblTempUsageDetail_20' ) end [2025-01-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265643', 'tblTempVendorCDR_20' ) start [2025-01-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265643', 'tblTempVendorCDR_20' ) end [2025-01-17 03:48:18] Production.INFO: ProcessCDR(1,14265643,1,1,2) [2025-01-17 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265643', 'tblTempUsageDetail_20' ) start [2025-01-17 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265643', 'tblTempUsageDetail_20' ) end [2025-01-17 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:48:21] Production.INFO: ==19158== Releasing lock... [2025-01-17 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:49:05 [end_date_ymd] => 2025-01-17 03:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:49:05' and `end` < '2025-01-17 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-17 03:49:17] Production.INFO: count ==209 [2025-01-17 03:49:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:49:05 - End Time 2025-01-17 03:49:05 [2025-01-17 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265648', 'tblTempUsageDetail_20' ) start [2025-01-17 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265648', 'tblTempUsageDetail_20' ) end [2025-01-17 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265648', 'tblTempVendorCDR_20' ) start [2025-01-17 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265648', 'tblTempVendorCDR_20' ) end [2025-01-17 03:49:17] Production.INFO: ProcessCDR(1,14265648,1,1,2) [2025-01-17 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265648', 'tblTempUsageDetail_20' ) start [2025-01-17 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265648', 'tblTempUsageDetail_20' ) end [2025-01-17 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:49:20] Production.INFO: ==19233== Releasing lock... [2025-01-17 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:49:20] Production.INFO: 29 MB #Memory Used# [2025-01-17 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:50:06 [end_date_ymd] => 2025-01-17 03:50:06 [RateCDR] => 1 ) [2025-01-17 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-17 00:50:06' and `end` < '2025-01-17 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-17 03:50:18] Production.INFO: count ==200 [2025-01-17 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:50:06 - End Time 2025-01-17 03:50:06 [2025-01-17 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265654', 'tblTempUsageDetail_20' ) start [2025-01-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265654', 'tblTempUsageDetail_20' ) end [2025-01-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265654', 'tblTempVendorCDR_20' ) start [2025-01-17 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265654', 'tblTempVendorCDR_20' ) end [2025-01-17 03:50:18] Production.INFO: ProcessCDR(1,14265654,1,1,2) [2025-01-17 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265654', 'tblTempUsageDetail_20' ) start [2025-01-17 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265654', 'tblTempUsageDetail_20' ) end [2025-01-17 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:50:22] Production.INFO: ==19309== Releasing lock... [2025-01-17 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:51:05 [end_date_ymd] => 2025-01-17 03:51:05 [RateCDR] => 1 ) [2025-01-17 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:51:05' and `end` < '2025-01-17 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:51:17] Production.INFO: count ==190 [2025-01-17 03:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:51:05 - End Time 2025-01-17 03:51:05 [2025-01-17 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265659', 'tblTempUsageDetail_20' ) start [2025-01-17 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265659', 'tblTempUsageDetail_20' ) end [2025-01-17 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265659', 'tblTempVendorCDR_20' ) start [2025-01-17 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265659', 'tblTempVendorCDR_20' ) end [2025-01-17 03:51:17] Production.INFO: ProcessCDR(1,14265659,1,1,2) [2025-01-17 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265659', 'tblTempUsageDetail_20' ) start [2025-01-17 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265659', 'tblTempUsageDetail_20' ) end [2025-01-17 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:51:20] Production.INFO: ==19386== Releasing lock... [2025-01-17 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:52:05 [end_date_ymd] => 2025-01-17 03:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:52:05' and `end` < '2025-01-17 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-17 03:52:18] Production.INFO: count ==190 [2025-01-17 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:52:05 - End Time 2025-01-17 03:52:05 [2025-01-17 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265664', 'tblTempUsageDetail_20' ) start [2025-01-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265664', 'tblTempUsageDetail_20' ) end [2025-01-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265664', 'tblTempVendorCDR_20' ) start [2025-01-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265664', 'tblTempVendorCDR_20' ) end [2025-01-17 03:52:18] Production.INFO: ProcessCDR(1,14265664,1,1,2) [2025-01-17 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265664', 'tblTempUsageDetail_20' ) start [2025-01-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265664', 'tblTempUsageDetail_20' ) end [2025-01-17 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:52:21] Production.INFO: ==19467== Releasing lock... [2025-01-17 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:53:05 [end_date_ymd] => 2025-01-17 03:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:53:05' and `end` < '2025-01-17 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-17 03:53:18] Production.INFO: count ==190 [2025-01-17 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:53:05 - End Time 2025-01-17 03:53:05 [2025-01-17 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265669', 'tblTempUsageDetail_20' ) start [2025-01-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265669', 'tblTempUsageDetail_20' ) end [2025-01-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265669', 'tblTempVendorCDR_20' ) start [2025-01-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265669', 'tblTempVendorCDR_20' ) end [2025-01-17 03:53:18] Production.INFO: ProcessCDR(1,14265669,1,1,2) [2025-01-17 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265669', 'tblTempUsageDetail_20' ) start [2025-01-17 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265669', 'tblTempUsageDetail_20' ) end [2025-01-17 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:53:21] Production.INFO: ==19558== Releasing lock... [2025-01-17 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:54:05 [end_date_ymd] => 2025-01-17 03:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:54:05' and `end` < '2025-01-17 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-17 03:54:17] Production.INFO: count ==190 [2025-01-17 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:54:05 - End Time 2025-01-17 03:54:05 [2025-01-17 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265674', 'tblTempUsageDetail_20' ) start [2025-01-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265674', 'tblTempUsageDetail_20' ) end [2025-01-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265674', 'tblTempVendorCDR_20' ) start [2025-01-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265674', 'tblTempVendorCDR_20' ) end [2025-01-17 03:54:17] Production.INFO: ProcessCDR(1,14265674,1,1,2) [2025-01-17 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265674', 'tblTempUsageDetail_20' ) start [2025-01-17 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265674', 'tblTempUsageDetail_20' ) end [2025-01-17 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:54:20] Production.INFO: ==19653== Releasing lock... [2025-01-17 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:55:06 [end_date_ymd] => 2025-01-17 03:55:06 [RateCDR] => 1 ) [2025-01-17 03: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-17 00:55:06' and `end` < '2025-01-17 03: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-17 03:55:19] Production.INFO: count ==190 [2025-01-17 03:55:19] Production.ERROR: pbx CDR StartTime 2025-01-17 00:55:06 - End Time 2025-01-17 03:55:06 [2025-01-17 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265679', 'tblTempUsageDetail_20' ) start [2025-01-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265679', 'tblTempUsageDetail_20' ) end [2025-01-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265679', 'tblTempVendorCDR_20' ) start [2025-01-17 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265679', 'tblTempVendorCDR_20' ) end [2025-01-17 03:55:19] Production.INFO: ProcessCDR(1,14265679,1,1,2) [2025-01-17 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265679', 'tblTempUsageDetail_20' ) start [2025-01-17 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265679', 'tblTempUsageDetail_20' ) end [2025-01-17 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:55:22] Production.INFO: ==19746== Releasing lock... [2025-01-17 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:56:05 [end_date_ymd] => 2025-01-17 03:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:56:05' and `end` < '2025-01-17 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-17 03:56:17] Production.INFO: count ==190 [2025-01-17 03:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 00:56:05 - End Time 2025-01-17 03:56:05 [2025-01-17 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265684', 'tblTempUsageDetail_20' ) start [2025-01-17 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265684', 'tblTempUsageDetail_20' ) end [2025-01-17 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265684', 'tblTempVendorCDR_20' ) start [2025-01-17 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265684', 'tblTempVendorCDR_20' ) end [2025-01-17 03:56:17] Production.INFO: ProcessCDR(1,14265684,1,1,2) [2025-01-17 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265684', 'tblTempUsageDetail_20' ) start [2025-01-17 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265684', 'tblTempUsageDetail_20' ) end [2025-01-17 03:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:56:20] Production.INFO: ==19841== Releasing lock... [2025-01-17 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:57:05 [end_date_ymd] => 2025-01-17 03:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:57:05' and `end` < '2025-01-17 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-17 03:57:18] Production.INFO: count ==190 [2025-01-17 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:57:05 - End Time 2025-01-17 03:57:05 [2025-01-17 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265689', 'tblTempUsageDetail_20' ) start [2025-01-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265689', 'tblTempUsageDetail_20' ) end [2025-01-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265689', 'tblTempVendorCDR_20' ) start [2025-01-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265689', 'tblTempVendorCDR_20' ) end [2025-01-17 03:57:18] Production.INFO: ProcessCDR(1,14265689,1,1,2) [2025-01-17 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265689', 'tblTempUsageDetail_20' ) start [2025-01-17 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265689', 'tblTempUsageDetail_20' ) end [2025-01-17 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:57:21] Production.INFO: ==19938== Releasing lock... [2025-01-17 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:58:05 [end_date_ymd] => 2025-01-17 03:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 00:58:05' and `end` < '2025-01-17 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-17 03:58:18] Production.INFO: count ==190 [2025-01-17 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:58:05 - End Time 2025-01-17 03:58:05 [2025-01-17 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265694', 'tblTempUsageDetail_20' ) start [2025-01-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265694', 'tblTempUsageDetail_20' ) end [2025-01-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265694', 'tblTempVendorCDR_20' ) start [2025-01-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265694', 'tblTempVendorCDR_20' ) end [2025-01-17 03:58:18] Production.INFO: ProcessCDR(1,14265694,1,1,2) [2025-01-17 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265694', 'tblTempUsageDetail_20' ) start [2025-01-17 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265694', 'tblTempUsageDetail_20' ) end [2025-01-17 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:58:21] Production.INFO: ==20035== Releasing lock... [2025-01-17 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 00:59:05 [end_date_ymd] => 2025-01-17 03:59:05 [RateCDR] => 1 ) [2025-01-17 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 00:59:05' and `end` < '2025-01-17 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 03:59:18] Production.INFO: count ==190 [2025-01-17 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 00:59:05 - End Time 2025-01-17 03:59:05 [2025-01-17 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265699', 'tblTempUsageDetail_20' ) start [2025-01-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265699', 'tblTempUsageDetail_20' ) end [2025-01-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265699', 'tblTempVendorCDR_20' ) start [2025-01-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265699', 'tblTempVendorCDR_20' ) end [2025-01-17 03:59:18] Production.INFO: ProcessCDR(1,14265699,1,1,2) [2025-01-17 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265699', 'tblTempUsageDetail_20' ) start [2025-01-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265699', 'tblTempUsageDetail_20' ) end [2025-01-17 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 03:59:21] Production.INFO: ==20123== Releasing lock... [2025-01-17 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 03:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:00:06 [end_date_ymd] => 2025-01-17 04:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 01:00:06' and `end` < '2025-01-17 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-17 04:00:18] Production.INFO: count ==184 [2025-01-17 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:00:06 - End Time 2025-01-17 04:00:06 [2025-01-17 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265706', 'tblTempUsageDetail_20' ) start [2025-01-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265706', 'tblTempUsageDetail_20' ) end [2025-01-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265706', 'tblTempVendorCDR_20' ) start [2025-01-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265706', 'tblTempVendorCDR_20' ) end [2025-01-17 04:00:18] Production.INFO: ProcessCDR(1,14265706,1,1,2) [2025-01-17 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265706', 'tblTempUsageDetail_20' ) start [2025-01-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265706', 'tblTempUsageDetail_20' ) end [2025-01-17 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:00:22] Production.INFO: ==20206== Releasing lock... [2025-01-17 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:01:05 [end_date_ymd] => 2025-01-17 04:01:05 [RateCDR] => 1 ) [2025-01-17 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:01:05' and `end` < '2025-01-17 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:01:18] Production.INFO: count ==180 [2025-01-17 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:01:05 - End Time 2025-01-17 04:01:05 [2025-01-17 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265711', 'tblTempUsageDetail_20' ) start [2025-01-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265711', 'tblTempUsageDetail_20' ) end [2025-01-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265711', 'tblTempVendorCDR_20' ) start [2025-01-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265711', 'tblTempVendorCDR_20' ) end [2025-01-17 04:01:18] Production.INFO: ProcessCDR(1,14265711,1,1,2) [2025-01-17 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265711', 'tblTempUsageDetail_20' ) start [2025-01-17 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265711', 'tblTempUsageDetail_20' ) end [2025-01-17 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:01:21] Production.INFO: ==20296== Releasing lock... [2025-01-17 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:02:06 [end_date_ymd] => 2025-01-17 04:02:06 [RateCDR] => 1 ) [2025-01-17 04: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-17 01:02:06' and `end` < '2025-01-17 04: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-17 04:02:18] Production.INFO: count ==180 [2025-01-17 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:02:06 - End Time 2025-01-17 04:02:06 [2025-01-17 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265716', 'tblTempUsageDetail_20' ) start [2025-01-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265716', 'tblTempUsageDetail_20' ) end [2025-01-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265716', 'tblTempVendorCDR_20' ) start [2025-01-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265716', 'tblTempVendorCDR_20' ) end [2025-01-17 04:02:18] Production.INFO: ProcessCDR(1,14265716,1,1,2) [2025-01-17 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265716', 'tblTempUsageDetail_20' ) start [2025-01-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265716', 'tblTempUsageDetail_20' ) end [2025-01-17 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:02:21] Production.INFO: ==20368== Releasing lock... [2025-01-17 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:03:05 [end_date_ymd] => 2025-01-17 04:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:03:05' and `end` < '2025-01-17 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-17 04:03:17] Production.INFO: count ==180 [2025-01-17 04:03:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:03:05 - End Time 2025-01-17 04:03:05 [2025-01-17 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265721', 'tblTempUsageDetail_20' ) start [2025-01-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265721', 'tblTempUsageDetail_20' ) end [2025-01-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265721', 'tblTempVendorCDR_20' ) start [2025-01-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265721', 'tblTempVendorCDR_20' ) end [2025-01-17 04:03:17] Production.INFO: ProcessCDR(1,14265721,1,1,2) [2025-01-17 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265721', 'tblTempUsageDetail_20' ) start [2025-01-17 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265721', 'tblTempUsageDetail_20' ) end [2025-01-17 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:03:20] Production.INFO: ==20479== Releasing lock... [2025-01-17 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:04:05 [end_date_ymd] => 2025-01-17 04:04:05 [RateCDR] => 1 ) [2025-01-17 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:04:05' and `end` < '2025-01-17 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:04:18] Production.INFO: count ==177 [2025-01-17 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:04:05 - End Time 2025-01-17 04:04:05 [2025-01-17 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265726', 'tblTempUsageDetail_20' ) start [2025-01-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265726', 'tblTempUsageDetail_20' ) end [2025-01-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265726', 'tblTempVendorCDR_20' ) start [2025-01-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265726', 'tblTempVendorCDR_20' ) end [2025-01-17 04:04:18] Production.INFO: ProcessCDR(1,14265726,1,1,2) [2025-01-17 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265726', 'tblTempUsageDetail_20' ) start [2025-01-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265726', 'tblTempUsageDetail_20' ) end [2025-01-17 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:04:21] Production.INFO: ==20557== Releasing lock... [2025-01-17 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:05:05 [end_date_ymd] => 2025-01-17 04:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:05:05' and `end` < '2025-01-17 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-17 04:05:18] Production.INFO: count ==177 [2025-01-17 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:05:05 - End Time 2025-01-17 04:05:05 [2025-01-17 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265731', 'tblTempUsageDetail_20' ) start [2025-01-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265731', 'tblTempUsageDetail_20' ) end [2025-01-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265731', 'tblTempVendorCDR_20' ) start [2025-01-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265731', 'tblTempVendorCDR_20' ) end [2025-01-17 04:05:18] Production.INFO: ProcessCDR(1,14265731,1,1,2) [2025-01-17 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265731', 'tblTempUsageDetail_20' ) start [2025-01-17 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265731', 'tblTempUsageDetail_20' ) end [2025-01-17 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:05:21] Production.INFO: ==20630== Releasing lock... [2025-01-17 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:06:05 [end_date_ymd] => 2025-01-17 04:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:06:05' and `end` < '2025-01-17 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-17 04:06:17] Production.INFO: count ==177 [2025-01-17 04:06:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:06:05 - End Time 2025-01-17 04:06:05 [2025-01-17 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265736', 'tblTempUsageDetail_20' ) start [2025-01-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265736', 'tblTempUsageDetail_20' ) end [2025-01-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265736', 'tblTempVendorCDR_20' ) start [2025-01-17 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265736', 'tblTempVendorCDR_20' ) end [2025-01-17 04:06:17] Production.INFO: ProcessCDR(1,14265736,1,1,2) [2025-01-17 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265736', 'tblTempUsageDetail_20' ) start [2025-01-17 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265736', 'tblTempUsageDetail_20' ) end [2025-01-17 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:06:20] Production.INFO: ==20704== Releasing lock... [2025-01-17 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:07:04 [end_date_ymd] => 2025-01-17 04:07:04 [RateCDR] => 1 ) [2025-01-17 04:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:07:04' and `end` < '2025-01-17 04:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:07:17] Production.INFO: count ==177 [2025-01-17 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:07:04 - End Time 2025-01-17 04:07:04 [2025-01-17 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265741', 'tblTempUsageDetail_20' ) start [2025-01-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265741', 'tblTempUsageDetail_20' ) end [2025-01-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265741', 'tblTempVendorCDR_20' ) start [2025-01-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265741', 'tblTempVendorCDR_20' ) end [2025-01-17 04:07:17] Production.INFO: ProcessCDR(1,14265741,1,1,2) [2025-01-17 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265741', 'tblTempUsageDetail_20' ) start [2025-01-17 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265741', 'tblTempUsageDetail_20' ) end [2025-01-17 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:07:20] Production.INFO: ==20777== Releasing lock... [2025-01-17 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:08:05 [end_date_ymd] => 2025-01-17 04:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:08:05' and `end` < '2025-01-17 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-17 04:08:18] Production.INFO: count ==177 [2025-01-17 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:08:05 - End Time 2025-01-17 04:08:05 [2025-01-17 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265746', 'tblTempUsageDetail_20' ) start [2025-01-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265746', 'tblTempUsageDetail_20' ) end [2025-01-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265746', 'tblTempVendorCDR_20' ) start [2025-01-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265746', 'tblTempVendorCDR_20' ) end [2025-01-17 04:08:18] Production.INFO: ProcessCDR(1,14265746,1,1,2) [2025-01-17 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265746', 'tblTempUsageDetail_20' ) start [2025-01-17 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265746', 'tblTempUsageDetail_20' ) end [2025-01-17 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:08:21] Production.INFO: ==20849== Releasing lock... [2025-01-17 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:09:05 [end_date_ymd] => 2025-01-17 04:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:09:05' and `end` < '2025-01-17 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-17 04:09:18] Production.INFO: count ==177 [2025-01-17 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:09:05 - End Time 2025-01-17 04:09:05 [2025-01-17 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265751', 'tblTempUsageDetail_20' ) start [2025-01-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265751', 'tblTempUsageDetail_20' ) end [2025-01-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265751', 'tblTempVendorCDR_20' ) start [2025-01-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265751', 'tblTempVendorCDR_20' ) end [2025-01-17 04:09:18] Production.INFO: ProcessCDR(1,14265751,1,1,2) [2025-01-17 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265751', 'tblTempUsageDetail_20' ) start [2025-01-17 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265751', 'tblTempUsageDetail_20' ) end [2025-01-17 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:09:22] Production.INFO: ==20923== Releasing lock... [2025-01-17 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:10:06 [end_date_ymd] => 2025-01-17 04:10:06 [RateCDR] => 1 ) [2025-01-17 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:10:06' and `end` < '2025-01-17 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:10:18] Production.INFO: count ==171 [2025-01-17 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:10:06 - End Time 2025-01-17 04:10:06 [2025-01-17 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265757', 'tblTempUsageDetail_20' ) start [2025-01-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265757', 'tblTempUsageDetail_20' ) end [2025-01-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265757', 'tblTempVendorCDR_20' ) start [2025-01-17 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265757', 'tblTempVendorCDR_20' ) end [2025-01-17 04:10:18] Production.INFO: ProcessCDR(1,14265757,1,1,2) [2025-01-17 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265757', 'tblTempUsageDetail_20' ) start [2025-01-17 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265757', 'tblTempUsageDetail_20' ) end [2025-01-17 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:10:22] Production.INFO: ==20996== Releasing lock... [2025-01-17 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:11:05 [end_date_ymd] => 2025-01-17 04:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:11:05' and `end` < '2025-01-17 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-17 04:11:18] Production.INFO: count ==159 [2025-01-17 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:11:05 - End Time 2025-01-17 04:11:05 [2025-01-17 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265762', 'tblTempUsageDetail_20' ) start [2025-01-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265762', 'tblTempUsageDetail_20' ) end [2025-01-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265762', 'tblTempVendorCDR_20' ) start [2025-01-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265762', 'tblTempVendorCDR_20' ) end [2025-01-17 04:11:18] Production.INFO: ProcessCDR(1,14265762,1,1,2) [2025-01-17 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265762', 'tblTempUsageDetail_20' ) start [2025-01-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265762', 'tblTempUsageDetail_20' ) end [2025-01-17 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:11:21] Production.INFO: ==21071== Releasing lock... [2025-01-17 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:12:05 [end_date_ymd] => 2025-01-17 04:12:05 [RateCDR] => 1 ) [2025-01-17 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:12:05' and `end` < '2025-01-17 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:12:17] Production.INFO: count ==159 [2025-01-17 04:12:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:12:05 - End Time 2025-01-17 04:12:05 [2025-01-17 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265767', 'tblTempUsageDetail_20' ) start [2025-01-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265767', 'tblTempUsageDetail_20' ) end [2025-01-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265767', 'tblTempVendorCDR_20' ) start [2025-01-17 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265767', 'tblTempVendorCDR_20' ) end [2025-01-17 04:12:17] Production.INFO: ProcessCDR(1,14265767,1,1,2) [2025-01-17 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265767', 'tblTempUsageDetail_20' ) start [2025-01-17 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265767', 'tblTempUsageDetail_20' ) end [2025-01-17 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:12:20] Production.INFO: ==21141== Releasing lock... [2025-01-17 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:12:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:13:05 [end_date_ymd] => 2025-01-17 04:13:05 [RateCDR] => 1 ) [2025-01-17 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:13:05' and `end` < '2025-01-17 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:13:18] Production.INFO: count ==159 [2025-01-17 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:13:05 - End Time 2025-01-17 04:13:05 [2025-01-17 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265772', 'tblTempUsageDetail_20' ) start [2025-01-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265772', 'tblTempUsageDetail_20' ) end [2025-01-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265772', 'tblTempVendorCDR_20' ) start [2025-01-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265772', 'tblTempVendorCDR_20' ) end [2025-01-17 04:13:18] Production.INFO: ProcessCDR(1,14265772,1,1,2) [2025-01-17 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265772', 'tblTempUsageDetail_20' ) start [2025-01-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265772', 'tblTempUsageDetail_20' ) end [2025-01-17 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:13:21] Production.INFO: ==21212== Releasing lock... [2025-01-17 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:14:04 [end_date_ymd] => 2025-01-17 04:14:04 [RateCDR] => 1 ) [2025-01-17 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:14:04' and `end` < '2025-01-17 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:14:17] Production.INFO: count ==156 [2025-01-17 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:14:04 - End Time 2025-01-17 04:14:04 [2025-01-17 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265777', 'tblTempUsageDetail_20' ) start [2025-01-17 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265777', 'tblTempUsageDetail_20' ) end [2025-01-17 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265777', 'tblTempVendorCDR_20' ) start [2025-01-17 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265777', 'tblTempVendorCDR_20' ) end [2025-01-17 04:14:17] Production.INFO: ProcessCDR(1,14265777,1,1,2) [2025-01-17 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265777', 'tblTempUsageDetail_20' ) start [2025-01-17 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265777', 'tblTempUsageDetail_20' ) end [2025-01-17 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:14:20] Production.INFO: ==21282== Releasing lock... [2025-01-17 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:15:05 [end_date_ymd] => 2025-01-17 04:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:15:05' and `end` < '2025-01-17 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-17 04:15:17] Production.INFO: count ==155 [2025-01-17 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:15:05 - End Time 2025-01-17 04:15:05 [2025-01-17 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265782', 'tblTempUsageDetail_20' ) start [2025-01-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265782', 'tblTempUsageDetail_20' ) end [2025-01-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265782', 'tblTempVendorCDR_20' ) start [2025-01-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265782', 'tblTempVendorCDR_20' ) end [2025-01-17 04:15:17] Production.INFO: ProcessCDR(1,14265782,1,1,2) [2025-01-17 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265782', 'tblTempUsageDetail_20' ) start [2025-01-17 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265782', 'tblTempUsageDetail_20' ) end [2025-01-17 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:15:20] Production.INFO: ==21354== Releasing lock... [2025-01-17 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:16:05 [end_date_ymd] => 2025-01-17 04:16:05 [RateCDR] => 1 ) [2025-01-17 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:16:05' and `end` < '2025-01-17 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:16:17] Production.INFO: count ==151 [2025-01-17 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:16:05 - End Time 2025-01-17 04:16:05 [2025-01-17 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265787', 'tblTempUsageDetail_20' ) start [2025-01-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265787', 'tblTempUsageDetail_20' ) end [2025-01-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265787', 'tblTempVendorCDR_20' ) start [2025-01-17 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265787', 'tblTempVendorCDR_20' ) end [2025-01-17 04:16:17] Production.INFO: ProcessCDR(1,14265787,1,1,2) [2025-01-17 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265787', 'tblTempUsageDetail_20' ) start [2025-01-17 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265787', 'tblTempUsageDetail_20' ) end [2025-01-17 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:16:21] Production.INFO: ==21425== Releasing lock... [2025-01-17 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:17:04 [end_date_ymd] => 2025-01-17 04:17:04 [RateCDR] => 1 ) [2025-01-17 04: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-17 01:17:04' and `end` < '2025-01-17 04: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-17 04:17:17] Production.INFO: count ==151 [2025-01-17 04:17:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:17:04 - End Time 2025-01-17 04:17:04 [2025-01-17 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265792', 'tblTempUsageDetail_20' ) start [2025-01-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265792', 'tblTempUsageDetail_20' ) end [2025-01-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265792', 'tblTempVendorCDR_20' ) start [2025-01-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265792', 'tblTempVendorCDR_20' ) end [2025-01-17 04:17:17] Production.INFO: ProcessCDR(1,14265792,1,1,2) [2025-01-17 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265792', 'tblTempUsageDetail_20' ) start [2025-01-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265792', 'tblTempUsageDetail_20' ) end [2025-01-17 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:17:20] Production.INFO: ==21495== Releasing lock... [2025-01-17 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:18:05 [end_date_ymd] => 2025-01-17 04:18:05 [RateCDR] => 1 ) [2025-01-17 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:18:05' and `end` < '2025-01-17 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:18:18] Production.INFO: count ==151 [2025-01-17 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:18:05 - End Time 2025-01-17 04:18:05 [2025-01-17 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265797', 'tblTempUsageDetail_20' ) start [2025-01-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265797', 'tblTempUsageDetail_20' ) end [2025-01-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265797', 'tblTempVendorCDR_20' ) start [2025-01-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265797', 'tblTempVendorCDR_20' ) end [2025-01-17 04:18:18] Production.INFO: ProcessCDR(1,14265797,1,1,2) [2025-01-17 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265797', 'tblTempUsageDetail_20' ) start [2025-01-17 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265797', 'tblTempUsageDetail_20' ) end [2025-01-17 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:18:21] Production.INFO: ==21578== Releasing lock... [2025-01-17 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:19:04 [end_date_ymd] => 2025-01-17 04:19:04 [RateCDR] => 1 ) [2025-01-17 04: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-17 01:19:04' and `end` < '2025-01-17 04: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-17 04:19:16] Production.INFO: count ==151 [2025-01-17 04:19:16] Production.ERROR: pbx CDR StartTime 2025-01-17 01:19:04 - End Time 2025-01-17 04:19:04 [2025-01-17 04:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265802', 'tblTempUsageDetail_20' ) start [2025-01-17 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265802', 'tblTempUsageDetail_20' ) end [2025-01-17 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265802', 'tblTempVendorCDR_20' ) start [2025-01-17 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265802', 'tblTempVendorCDR_20' ) end [2025-01-17 04:19:16] Production.INFO: ProcessCDR(1,14265802,1,1,2) [2025-01-17 04:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265802', 'tblTempUsageDetail_20' ) start [2025-01-17 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265802', 'tblTempUsageDetail_20' ) end [2025-01-17 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:19:20] Production.INFO: ==21690== Releasing lock... [2025-01-17 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:20:06 [end_date_ymd] => 2025-01-17 04:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 01:20:06' and `end` < '2025-01-17 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-17 04:20:18] Production.INFO: count ==145 [2025-01-17 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:20:06 - End Time 2025-01-17 04:20:06 [2025-01-17 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265807', 'tblTempUsageDetail_20' ) start [2025-01-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265807', 'tblTempUsageDetail_20' ) end [2025-01-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265807', 'tblTempVendorCDR_20' ) start [2025-01-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265807', 'tblTempVendorCDR_20' ) end [2025-01-17 04:20:18] Production.INFO: ProcessCDR(1,14265807,1,1,2) [2025-01-17 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265807', 'tblTempUsageDetail_20' ) start [2025-01-17 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265807', 'tblTempUsageDetail_20' ) end [2025-01-17 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:20:21] Production.INFO: ==21769== Releasing lock... [2025-01-17 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:21:04 [end_date_ymd] => 2025-01-17 04:21:04 [RateCDR] => 1 ) [2025-01-17 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:21:04' and `end` < '2025-01-17 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:21:17] Production.INFO: count ==137 [2025-01-17 04:21:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:21:04 - End Time 2025-01-17 04:21:04 [2025-01-17 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265813', 'tblTempUsageDetail_20' ) start [2025-01-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265813', 'tblTempUsageDetail_20' ) end [2025-01-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265813', 'tblTempVendorCDR_20' ) start [2025-01-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265813', 'tblTempVendorCDR_20' ) end [2025-01-17 04:21:17] Production.INFO: ProcessCDR(1,14265813,1,1,2) [2025-01-17 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265813', 'tblTempUsageDetail_20' ) start [2025-01-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265813', 'tblTempUsageDetail_20' ) end [2025-01-17 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:21:20] Production.INFO: ==21840== Releasing lock... [2025-01-17 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:22:05 [end_date_ymd] => 2025-01-17 04:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:22:05' and `end` < '2025-01-17 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-17 04:22:17] Production.INFO: count ==137 [2025-01-17 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:22:05 - End Time 2025-01-17 04:22:05 [2025-01-17 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265818', 'tblTempUsageDetail_20' ) start [2025-01-17 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265818', 'tblTempUsageDetail_20' ) end [2025-01-17 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265818', 'tblTempVendorCDR_20' ) start [2025-01-17 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265818', 'tblTempVendorCDR_20' ) end [2025-01-17 04:22:17] Production.INFO: ProcessCDR(1,14265818,1,1,2) [2025-01-17 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265818', 'tblTempUsageDetail_20' ) start [2025-01-17 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265818', 'tblTempUsageDetail_20' ) end [2025-01-17 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:22:20] Production.INFO: ==21911== Releasing lock... [2025-01-17 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:23:06 [end_date_ymd] => 2025-01-17 04:23:06 [RateCDR] => 1 ) [2025-01-17 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:23:06' and `end` < '2025-01-17 04:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:23:18] Production.INFO: count ==137 [2025-01-17 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:23:06 - End Time 2025-01-17 04:23:06 [2025-01-17 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265823', 'tblTempUsageDetail_20' ) start [2025-01-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265823', 'tblTempUsageDetail_20' ) end [2025-01-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265823', 'tblTempVendorCDR_20' ) start [2025-01-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265823', 'tblTempVendorCDR_20' ) end [2025-01-17 04:23:18] Production.INFO: ProcessCDR(1,14265823,1,1,2) [2025-01-17 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265823', 'tblTempUsageDetail_20' ) start [2025-01-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265823', 'tblTempUsageDetail_20' ) end [2025-01-17 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:23:21] Production.INFO: ==21984== Releasing lock... [2025-01-17 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:24:06 [end_date_ymd] => 2025-01-17 04:24:06 [RateCDR] => 1 ) [2025-01-17 04: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-17 01:24:06' and `end` < '2025-01-17 04: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-17 04:24:18] Production.INFO: count ==137 [2025-01-17 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:24:06 - End Time 2025-01-17 04:24:06 [2025-01-17 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265828', 'tblTempUsageDetail_20' ) start [2025-01-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265828', 'tblTempUsageDetail_20' ) end [2025-01-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265828', 'tblTempVendorCDR_20' ) start [2025-01-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265828', 'tblTempVendorCDR_20' ) end [2025-01-17 04:24:18] Production.INFO: ProcessCDR(1,14265828,1,1,2) [2025-01-17 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265828', 'tblTempUsageDetail_20' ) start [2025-01-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265828', 'tblTempUsageDetail_20' ) end [2025-01-17 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:24:21] Production.INFO: ==22055== Releasing lock... [2025-01-17 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:25:05 [end_date_ymd] => 2025-01-17 04:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:25:05' and `end` < '2025-01-17 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-17 04:25:17] Production.INFO: count ==137 [2025-01-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:25:05 - End Time 2025-01-17 04:25:05 [2025-01-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265833', 'tblTempUsageDetail_20' ) start [2025-01-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265833', 'tblTempUsageDetail_20' ) end [2025-01-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265833', 'tblTempVendorCDR_20' ) start [2025-01-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265833', 'tblTempVendorCDR_20' ) end [2025-01-17 04:25:17] Production.INFO: ProcessCDR(1,14265833,1,1,2) [2025-01-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265833', 'tblTempUsageDetail_20' ) start [2025-01-17 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265833', 'tblTempUsageDetail_20' ) end [2025-01-17 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:25:20] Production.INFO: ==22124== Releasing lock... [2025-01-17 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:26:05 [end_date_ymd] => 2025-01-17 04:26:05 [RateCDR] => 1 ) [2025-01-17 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:26:05' and `end` < '2025-01-17 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:26:18] Production.INFO: count ==137 [2025-01-17 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:26:05 - End Time 2025-01-17 04:26:05 [2025-01-17 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265838', 'tblTempUsageDetail_20' ) start [2025-01-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265838', 'tblTempUsageDetail_20' ) end [2025-01-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265838', 'tblTempVendorCDR_20' ) start [2025-01-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265838', 'tblTempVendorCDR_20' ) end [2025-01-17 04:26:18] Production.INFO: ProcessCDR(1,14265838,1,1,2) [2025-01-17 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265838', 'tblTempUsageDetail_20' ) start [2025-01-17 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265838', 'tblTempUsageDetail_20' ) end [2025-01-17 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:26:21] Production.INFO: ==22195== Releasing lock... [2025-01-17 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:27:05 [end_date_ymd] => 2025-01-17 04:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:27:05' and `end` < '2025-01-17 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-17 04:27:18] Production.INFO: count ==137 [2025-01-17 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:27:05 - End Time 2025-01-17 04:27:05 [2025-01-17 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265843', 'tblTempUsageDetail_20' ) start [2025-01-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265843', 'tblTempUsageDetail_20' ) end [2025-01-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265843', 'tblTempVendorCDR_20' ) start [2025-01-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265843', 'tblTempVendorCDR_20' ) end [2025-01-17 04:27:18] Production.INFO: ProcessCDR(1,14265843,1,1,2) [2025-01-17 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265843', 'tblTempUsageDetail_20' ) start [2025-01-17 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265843', 'tblTempUsageDetail_20' ) end [2025-01-17 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:27:21] Production.INFO: ==22266== Releasing lock... [2025-01-17 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:28:05 [end_date_ymd] => 2025-01-17 04:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:28:05' and `end` < '2025-01-17 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-17 04:28:18] Production.INFO: count ==137 [2025-01-17 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:28:05 - End Time 2025-01-17 04:28:05 [2025-01-17 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265848', 'tblTempUsageDetail_20' ) start [2025-01-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265848', 'tblTempUsageDetail_20' ) end [2025-01-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265848', 'tblTempVendorCDR_20' ) start [2025-01-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265848', 'tblTempVendorCDR_20' ) end [2025-01-17 04:28:18] Production.INFO: ProcessCDR(1,14265848,1,1,2) [2025-01-17 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265848', 'tblTempUsageDetail_20' ) start [2025-01-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265848', 'tblTempUsageDetail_20' ) end [2025-01-17 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:28:21] Production.INFO: ==22337== Releasing lock... [2025-01-17 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:29:05 [end_date_ymd] => 2025-01-17 04:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:29:05' and `end` < '2025-01-17 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-17 04:29:18] Production.INFO: count ==137 [2025-01-17 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:29:05 - End Time 2025-01-17 04:29:05 [2025-01-17 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265853', 'tblTempUsageDetail_20' ) start [2025-01-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265853', 'tblTempUsageDetail_20' ) end [2025-01-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265853', 'tblTempVendorCDR_20' ) start [2025-01-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265853', 'tblTempVendorCDR_20' ) end [2025-01-17 04:29:18] Production.INFO: ProcessCDR(1,14265853,1,1,2) [2025-01-17 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265853', 'tblTempUsageDetail_20' ) start [2025-01-17 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265853', 'tblTempUsageDetail_20' ) end [2025-01-17 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:29:21] Production.INFO: ==22409== Releasing lock... [2025-01-17 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:30:05 [end_date_ymd] => 2025-01-17 04:30:05 [RateCDR] => 1 ) [2025-01-17 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:30:05' and `end` < '2025-01-17 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:30:19] Production.INFO: count ==135 [2025-01-17 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:30:05 - End Time 2025-01-17 04:30:05 [2025-01-17 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265860', 'tblTempUsageDetail_20' ) start [2025-01-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265860', 'tblTempUsageDetail_20' ) end [2025-01-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265860', 'tblTempVendorCDR_20' ) start [2025-01-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265860', 'tblTempVendorCDR_20' ) end [2025-01-17 04:30:19] Production.INFO: ProcessCDR(1,14265860,1,1,2) [2025-01-17 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265860', 'tblTempUsageDetail_20' ) start [2025-01-17 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265860', 'tblTempUsageDetail_20' ) end [2025-01-17 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:30:22] Production.INFO: ==22483== Releasing lock... [2025-01-17 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:31:04 [end_date_ymd] => 2025-01-17 04:31:04 [RateCDR] => 1 ) [2025-01-17 04:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:31:04' and `end` < '2025-01-17 04:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:31:16] Production.INFO: count ==124 [2025-01-17 04:31:16] Production.ERROR: pbx CDR StartTime 2025-01-17 01:31:04 - End Time 2025-01-17 04:31:04 [2025-01-17 04:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265864', 'tblTempUsageDetail_20' ) start [2025-01-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265864', 'tblTempUsageDetail_20' ) end [2025-01-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265864', 'tblTempVendorCDR_20' ) start [2025-01-17 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265864', 'tblTempVendorCDR_20' ) end [2025-01-17 04:31:16] Production.INFO: ProcessCDR(1,14265864,1,1,2) [2025-01-17 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265864', 'tblTempUsageDetail_20' ) start [2025-01-17 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265864', 'tblTempUsageDetail_20' ) end [2025-01-17 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:31:20] Production.INFO: ==22588== Releasing lock... [2025-01-17 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:31:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:32:05 [end_date_ymd] => 2025-01-17 04:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:32:05' and `end` < '2025-01-17 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-17 04:32:17] Production.INFO: count ==124 [2025-01-17 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:32:05 - End Time 2025-01-17 04:32:05 [2025-01-17 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265870', 'tblTempUsageDetail_20' ) start [2025-01-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265870', 'tblTempUsageDetail_20' ) end [2025-01-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265870', 'tblTempVendorCDR_20' ) start [2025-01-17 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265870', 'tblTempVendorCDR_20' ) end [2025-01-17 04:32:17] Production.INFO: ProcessCDR(1,14265870,1,1,2) [2025-01-17 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265870', 'tblTempUsageDetail_20' ) start [2025-01-17 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265870', 'tblTempUsageDetail_20' ) end [2025-01-17 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:32:21] Production.INFO: ==22657== Releasing lock... [2025-01-17 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:33:04 [end_date_ymd] => 2025-01-17 04:33:04 [RateCDR] => 1 ) [2025-01-17 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:33:04' and `end` < '2025-01-17 04:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:33:17] Production.INFO: count ==124 [2025-01-17 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:33:04 - End Time 2025-01-17 04:33:04 [2025-01-17 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265875', 'tblTempUsageDetail_20' ) start [2025-01-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265875', 'tblTempUsageDetail_20' ) end [2025-01-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265875', 'tblTempVendorCDR_20' ) start [2025-01-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265875', 'tblTempVendorCDR_20' ) end [2025-01-17 04:33:17] Production.INFO: ProcessCDR(1,14265875,1,1,2) [2025-01-17 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265875', 'tblTempUsageDetail_20' ) start [2025-01-17 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265875', 'tblTempUsageDetail_20' ) end [2025-01-17 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:33:20] Production.INFO: ==22730== Releasing lock... [2025-01-17 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:34:05 [end_date_ymd] => 2025-01-17 04:34:05 [RateCDR] => 1 ) [2025-01-17 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:34:05' and `end` < '2025-01-17 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:34:17] Production.INFO: count ==124 [2025-01-17 04:34:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:34:05 - End Time 2025-01-17 04:34:05 [2025-01-17 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265880', 'tblTempUsageDetail_20' ) start [2025-01-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265880', 'tblTempUsageDetail_20' ) end [2025-01-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265880', 'tblTempVendorCDR_20' ) start [2025-01-17 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265880', 'tblTempVendorCDR_20' ) end [2025-01-17 04:34:17] Production.INFO: ProcessCDR(1,14265880,1,1,2) [2025-01-17 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265880', 'tblTempUsageDetail_20' ) start [2025-01-17 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265880', 'tblTempUsageDetail_20' ) end [2025-01-17 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:34:21] Production.INFO: ==22841== Releasing lock... [2025-01-17 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:35:05 [end_date_ymd] => 2025-01-17 04:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:35:05' and `end` < '2025-01-17 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-17 04:35:17] Production.INFO: count ==124 [2025-01-17 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:35:05 - End Time 2025-01-17 04:35:05 [2025-01-17 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265885', 'tblTempUsageDetail_20' ) start [2025-01-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265885', 'tblTempUsageDetail_20' ) end [2025-01-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265885', 'tblTempVendorCDR_20' ) start [2025-01-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265885', 'tblTempVendorCDR_20' ) end [2025-01-17 04:35:17] Production.INFO: ProcessCDR(1,14265885,1,1,2) [2025-01-17 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265885', 'tblTempUsageDetail_20' ) start [2025-01-17 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265885', 'tblTempUsageDetail_20' ) end [2025-01-17 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:35:20] Production.INFO: ==22910== Releasing lock... [2025-01-17 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:36:05 [end_date_ymd] => 2025-01-17 04:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:36:05' and `end` < '2025-01-17 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-17 04:36:18] Production.INFO: count ==124 [2025-01-17 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:36:05 - End Time 2025-01-17 04:36:05 [2025-01-17 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265890', 'tblTempUsageDetail_20' ) start [2025-01-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265890', 'tblTempUsageDetail_20' ) end [2025-01-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265890', 'tblTempVendorCDR_20' ) start [2025-01-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265890', 'tblTempVendorCDR_20' ) end [2025-01-17 04:36:18] Production.INFO: ProcessCDR(1,14265890,1,1,2) [2025-01-17 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265890', 'tblTempUsageDetail_20' ) start [2025-01-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265890', 'tblTempUsageDetail_20' ) end [2025-01-17 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:36:21] Production.INFO: ==22982== Releasing lock... [2025-01-17 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:37:04 [end_date_ymd] => 2025-01-17 04:37:04 [RateCDR] => 1 ) [2025-01-17 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:37:04' and `end` < '2025-01-17 04:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:37:17] Production.INFO: count ==124 [2025-01-17 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:37:04 - End Time 2025-01-17 04:37:04 [2025-01-17 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265895', 'tblTempUsageDetail_20' ) start [2025-01-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265895', 'tblTempUsageDetail_20' ) end [2025-01-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265895', 'tblTempVendorCDR_20' ) start [2025-01-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265895', 'tblTempVendorCDR_20' ) end [2025-01-17 04:37:17] Production.INFO: ProcessCDR(1,14265895,1,1,2) [2025-01-17 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265895', 'tblTempUsageDetail_20' ) start [2025-01-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265895', 'tblTempUsageDetail_20' ) end [2025-01-17 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:37:20] Production.INFO: ==23052== Releasing lock... [2025-01-17 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:38:05 [end_date_ymd] => 2025-01-17 04:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:38:05' and `end` < '2025-01-17 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-17 04:38:18] Production.INFO: count ==124 [2025-01-17 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:38:05 - End Time 2025-01-17 04:38:05 [2025-01-17 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265900', 'tblTempUsageDetail_20' ) start [2025-01-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265900', 'tblTempUsageDetail_20' ) end [2025-01-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265900', 'tblTempVendorCDR_20' ) start [2025-01-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265900', 'tblTempVendorCDR_20' ) end [2025-01-17 04:38:18] Production.INFO: ProcessCDR(1,14265900,1,1,2) [2025-01-17 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265900', 'tblTempUsageDetail_20' ) start [2025-01-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265900', 'tblTempUsageDetail_20' ) end [2025-01-17 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:38:21] Production.INFO: ==23123== Releasing lock... [2025-01-17 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:39:05 [end_date_ymd] => 2025-01-17 04:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:39:05' and `end` < '2025-01-17 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-17 04:39:17] Production.INFO: count ==124 [2025-01-17 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:39:05 - End Time 2025-01-17 04:39:05 [2025-01-17 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265905', 'tblTempUsageDetail_20' ) start [2025-01-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265905', 'tblTempUsageDetail_20' ) end [2025-01-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265905', 'tblTempVendorCDR_20' ) start [2025-01-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265905', 'tblTempVendorCDR_20' ) end [2025-01-17 04:39:17] Production.INFO: ProcessCDR(1,14265905,1,1,2) [2025-01-17 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265905', 'tblTempUsageDetail_20' ) start [2025-01-17 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265905', 'tblTempUsageDetail_20' ) end [2025-01-17 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:39:20] Production.INFO: ==23194== Releasing lock... [2025-01-17 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:40:06 [end_date_ymd] => 2025-01-17 04:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 01:40:06' and `end` < '2025-01-17 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-17 04:40:19] Production.INFO: count ==124 [2025-01-17 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:40:06 - End Time 2025-01-17 04:40:06 [2025-01-17 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265911', 'tblTempUsageDetail_20' ) start [2025-01-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265911', 'tblTempUsageDetail_20' ) end [2025-01-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265911', 'tblTempVendorCDR_20' ) start [2025-01-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265911', 'tblTempVendorCDR_20' ) end [2025-01-17 04:40:19] Production.INFO: ProcessCDR(1,14265911,1,1,2) [2025-01-17 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265911', 'tblTempUsageDetail_20' ) start [2025-01-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265911', 'tblTempUsageDetail_20' ) end [2025-01-17 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:40:22] Production.INFO: ==23266== Releasing lock... [2025-01-17 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:41:04 [end_date_ymd] => 2025-01-17 04:41:04 [RateCDR] => 1 ) [2025-01-17 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-17 01:41:04' and `end` < '2025-01-17 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-17 04:41:17] Production.INFO: count ==124 [2025-01-17 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:41:04 - End Time 2025-01-17 04:41:04 [2025-01-17 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265916', 'tblTempUsageDetail_20' ) start [2025-01-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265916', 'tblTempUsageDetail_20' ) end [2025-01-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265916', 'tblTempVendorCDR_20' ) start [2025-01-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265916', 'tblTempVendorCDR_20' ) end [2025-01-17 04:41:17] Production.INFO: ProcessCDR(1,14265916,1,1,2) [2025-01-17 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265916', 'tblTempUsageDetail_20' ) start [2025-01-17 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265916', 'tblTempUsageDetail_20' ) end [2025-01-17 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:41:20] Production.INFO: ==23338== Releasing lock... [2025-01-17 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:42:05 [end_date_ymd] => 2025-01-17 04:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:42:05' and `end` < '2025-01-17 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-17 04:42:17] Production.INFO: count ==124 [2025-01-17 04:42:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:42:05 - End Time 2025-01-17 04:42:05 [2025-01-17 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265921', 'tblTempUsageDetail_20' ) start [2025-01-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265921', 'tblTempUsageDetail_20' ) end [2025-01-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265921', 'tblTempVendorCDR_20' ) start [2025-01-17 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265921', 'tblTempVendorCDR_20' ) end [2025-01-17 04:42:17] Production.INFO: ProcessCDR(1,14265921,1,1,2) [2025-01-17 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265921', 'tblTempUsageDetail_20' ) start [2025-01-17 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265921', 'tblTempUsageDetail_20' ) end [2025-01-17 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:42:20] Production.INFO: ==23412== Releasing lock... [2025-01-17 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:43:05 [end_date_ymd] => 2025-01-17 04:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:43:05' and `end` < '2025-01-17 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-17 04:43:18] Production.INFO: count ==124 [2025-01-17 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:43:05 - End Time 2025-01-17 04:43:05 [2025-01-17 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265926', 'tblTempUsageDetail_20' ) start [2025-01-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265926', 'tblTempUsageDetail_20' ) end [2025-01-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265926', 'tblTempVendorCDR_20' ) start [2025-01-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265926', 'tblTempVendorCDR_20' ) end [2025-01-17 04:43:18] Production.INFO: ProcessCDR(1,14265926,1,1,2) [2025-01-17 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265926', 'tblTempUsageDetail_20' ) start [2025-01-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265926', 'tblTempUsageDetail_20' ) end [2025-01-17 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:43:21] Production.INFO: ==23482== Releasing lock... [2025-01-17 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:44:05 [end_date_ymd] => 2025-01-17 04:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:44:05' and `end` < '2025-01-17 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-17 04:44:18] Production.INFO: count ==124 [2025-01-17 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:44:05 - End Time 2025-01-17 04:44:05 [2025-01-17 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265931', 'tblTempUsageDetail_20' ) start [2025-01-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265931', 'tblTempUsageDetail_20' ) end [2025-01-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265931', 'tblTempVendorCDR_20' ) start [2025-01-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265931', 'tblTempVendorCDR_20' ) end [2025-01-17 04:44:18] Production.INFO: ProcessCDR(1,14265931,1,1,2) [2025-01-17 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265931', 'tblTempUsageDetail_20' ) start [2025-01-17 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265931', 'tblTempUsageDetail_20' ) end [2025-01-17 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:44:21] Production.INFO: ==23552== Releasing lock... [2025-01-17 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:45:05 [end_date_ymd] => 2025-01-17 04:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:45:05' and `end` < '2025-01-17 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-17 04:45:17] Production.INFO: count ==124 [2025-01-17 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:45:05 - End Time 2025-01-17 04:45:05 [2025-01-17 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265936', 'tblTempUsageDetail_20' ) start [2025-01-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265936', 'tblTempUsageDetail_20' ) end [2025-01-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265936', 'tblTempVendorCDR_20' ) start [2025-01-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265936', 'tblTempVendorCDR_20' ) end [2025-01-17 04:45:17] Production.INFO: ProcessCDR(1,14265936,1,1,2) [2025-01-17 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265936', 'tblTempUsageDetail_20' ) start [2025-01-17 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265936', 'tblTempUsageDetail_20' ) end [2025-01-17 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:45:21] Production.INFO: ==23622== Releasing lock... [2025-01-17 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:46:05 [end_date_ymd] => 2025-01-17 04:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:46:05' and `end` < '2025-01-17 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-17 04:46:24] Production.INFO: count ==124 [2025-01-17 04:46:24] Production.ERROR: pbx CDR StartTime 2025-01-17 01:46:05 - End Time 2025-01-17 04:46:05 [2025-01-17 04:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265941', 'tblTempUsageDetail_20' ) start [2025-01-17 04:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265941', 'tblTempUsageDetail_20' ) end [2025-01-17 04:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265941', 'tblTempVendorCDR_20' ) start [2025-01-17 04:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265941', 'tblTempVendorCDR_20' ) end [2025-01-17 04:46:24] Production.INFO: ProcessCDR(1,14265941,1,1,2) [2025-01-17 04:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265941', 'tblTempUsageDetail_20' ) start [2025-01-17 04:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265941', 'tblTempUsageDetail_20' ) end [2025-01-17 04:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:46:28] Production.INFO: ==23695== Releasing lock... [2025-01-17 04:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:46:28] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:47:05 [end_date_ymd] => 2025-01-17 04:47:05 [RateCDR] => 1 ) [2025-01-17 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:47:05' and `end` < '2025-01-17 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:47:18] Production.INFO: count ==124 [2025-01-17 04:47:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:47:05 - End Time 2025-01-17 04:47:05 [2025-01-17 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265946', 'tblTempUsageDetail_20' ) start [2025-01-17 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265946', 'tblTempUsageDetail_20' ) end [2025-01-17 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265946', 'tblTempVendorCDR_20' ) start [2025-01-17 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265946', 'tblTempVendorCDR_20' ) end [2025-01-17 04:47:18] Production.INFO: ProcessCDR(1,14265946,1,1,2) [2025-01-17 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265946', 'tblTempUsageDetail_20' ) start [2025-01-17 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265946', 'tblTempUsageDetail_20' ) end [2025-01-17 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:47:21] Production.INFO: ==23776== Releasing lock... [2025-01-17 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:48:05 [end_date_ymd] => 2025-01-17 04:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:48:05' and `end` < '2025-01-17 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-17 04:48:18] Production.INFO: count ==124 [2025-01-17 04:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:48:05 - End Time 2025-01-17 04:48:05 [2025-01-17 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265951', 'tblTempUsageDetail_20' ) start [2025-01-17 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265951', 'tblTempUsageDetail_20' ) end [2025-01-17 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265951', 'tblTempVendorCDR_20' ) start [2025-01-17 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265951', 'tblTempVendorCDR_20' ) end [2025-01-17 04:48:18] Production.INFO: ProcessCDR(1,14265951,1,1,2) [2025-01-17 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265951', 'tblTempUsageDetail_20' ) start [2025-01-17 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265951', 'tblTempUsageDetail_20' ) end [2025-01-17 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:48:22] Production.INFO: ==23854== Releasing lock... [2025-01-17 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:49:05 [end_date_ymd] => 2025-01-17 04:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:49:05' and `end` < '2025-01-17 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-17 04:49:19] Production.INFO: count ==124 [2025-01-17 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:49:05 - End Time 2025-01-17 04:49:05 [2025-01-17 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265956', 'tblTempUsageDetail_20' ) start [2025-01-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265956', 'tblTempUsageDetail_20' ) end [2025-01-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265956', 'tblTempVendorCDR_20' ) start [2025-01-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265956', 'tblTempVendorCDR_20' ) end [2025-01-17 04:49:19] Production.INFO: ProcessCDR(1,14265956,1,1,2) [2025-01-17 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265956', 'tblTempUsageDetail_20' ) start [2025-01-17 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265956', 'tblTempUsageDetail_20' ) end [2025-01-17 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:49:22] Production.INFO: ==23931== Releasing lock... [2025-01-17 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:50:06 [end_date_ymd] => 2025-01-17 04:50:06 [RateCDR] => 1 ) [2025-01-17 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:50:06' and `end` < '2025-01-17 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:50:19] Production.INFO: count ==116 [2025-01-17 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:50:06 - End Time 2025-01-17 04:50:06 [2025-01-17 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265962', 'tblTempUsageDetail_20' ) start [2025-01-17 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265962', 'tblTempUsageDetail_20' ) end [2025-01-17 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265962', 'tblTempVendorCDR_20' ) start [2025-01-17 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265962', 'tblTempVendorCDR_20' ) end [2025-01-17 04:50:19] Production.INFO: ProcessCDR(1,14265962,1,1,2) [2025-01-17 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265962', 'tblTempUsageDetail_20' ) start [2025-01-17 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265962', 'tblTempUsageDetail_20' ) end [2025-01-17 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:50:22] Production.INFO: ==24064== Releasing lock... [2025-01-17 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:51:05 [end_date_ymd] => 2025-01-17 04:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:51:05' and `end` < '2025-01-17 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-17 04:51:17] Production.INFO: count ==112 [2025-01-17 04:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 01:51:05 - End Time 2025-01-17 04:51:05 [2025-01-17 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265967', 'tblTempUsageDetail_20' ) start [2025-01-17 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265967', 'tblTempUsageDetail_20' ) end [2025-01-17 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265967', 'tblTempVendorCDR_20' ) start [2025-01-17 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265967', 'tblTempVendorCDR_20' ) end [2025-01-17 04:51:17] Production.INFO: ProcessCDR(1,14265967,1,1,2) [2025-01-17 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265967', 'tblTempUsageDetail_20' ) start [2025-01-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265967', 'tblTempUsageDetail_20' ) end [2025-01-17 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:51:21] Production.INFO: ==24165== Releasing lock... [2025-01-17 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:52:05 [end_date_ymd] => 2025-01-17 04:52:05 [RateCDR] => 1 ) [2025-01-17 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:52:05' and `end` < '2025-01-17 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:52:18] Production.INFO: count ==112 [2025-01-17 04:52:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:52:05 - End Time 2025-01-17 04:52:05 [2025-01-17 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265972', 'tblTempUsageDetail_20' ) start [2025-01-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265972', 'tblTempUsageDetail_20' ) end [2025-01-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265972', 'tblTempVendorCDR_20' ) start [2025-01-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265972', 'tblTempVendorCDR_20' ) end [2025-01-17 04:52:18] Production.INFO: ProcessCDR(1,14265972,1,1,2) [2025-01-17 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265972', 'tblTempUsageDetail_20' ) start [2025-01-17 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265972', 'tblTempUsageDetail_20' ) end [2025-01-17 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:52:22] Production.INFO: ==24264== Releasing lock... [2025-01-17 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:53:05 [end_date_ymd] => 2025-01-17 04:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:53:05' and `end` < '2025-01-17 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-17 04:53:18] Production.INFO: count ==112 [2025-01-17 04:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:53:05 - End Time 2025-01-17 04:53:05 [2025-01-17 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265977', 'tblTempUsageDetail_20' ) start [2025-01-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265977', 'tblTempUsageDetail_20' ) end [2025-01-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265977', 'tblTempVendorCDR_20' ) start [2025-01-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265977', 'tblTempVendorCDR_20' ) end [2025-01-17 04:53:18] Production.INFO: ProcessCDR(1,14265977,1,1,2) [2025-01-17 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265977', 'tblTempUsageDetail_20' ) start [2025-01-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265977', 'tblTempUsageDetail_20' ) end [2025-01-17 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:53:21] Production.INFO: ==24364== Releasing lock... [2025-01-17 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:54:05 [end_date_ymd] => 2025-01-17 04:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:54:05' and `end` < '2025-01-17 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-17 04:54:18] Production.INFO: count ==112 [2025-01-17 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:54:05 - End Time 2025-01-17 04:54:05 [2025-01-17 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265982', 'tblTempUsageDetail_20' ) start [2025-01-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265982', 'tblTempUsageDetail_20' ) end [2025-01-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265982', 'tblTempVendorCDR_20' ) start [2025-01-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265982', 'tblTempVendorCDR_20' ) end [2025-01-17 04:54:18] Production.INFO: ProcessCDR(1,14265982,1,1,2) [2025-01-17 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265982', 'tblTempUsageDetail_20' ) start [2025-01-17 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265982', 'tblTempUsageDetail_20' ) end [2025-01-17 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:54:22] Production.INFO: ==24459== Releasing lock... [2025-01-17 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:55:05 [end_date_ymd] => 2025-01-17 04:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:55:05' and `end` < '2025-01-17 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-17 04:55:18] Production.INFO: count ==112 [2025-01-17 04:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:55:05 - End Time 2025-01-17 04:55:05 [2025-01-17 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265987', 'tblTempUsageDetail_20' ) start [2025-01-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265987', 'tblTempUsageDetail_20' ) end [2025-01-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265987', 'tblTempVendorCDR_20' ) start [2025-01-17 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265987', 'tblTempVendorCDR_20' ) end [2025-01-17 04:55:18] Production.INFO: ProcessCDR(1,14265987,1,1,2) [2025-01-17 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265987', 'tblTempUsageDetail_20' ) start [2025-01-17 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265987', 'tblTempUsageDetail_20' ) end [2025-01-17 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:55:21] Production.INFO: ==24536== Releasing lock... [2025-01-17 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:56:05 [end_date_ymd] => 2025-01-17 04:56:05 [RateCDR] => 1 ) [2025-01-17 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 01:56:05' and `end` < '2025-01-17 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 04:56:18] Production.INFO: count ==112 [2025-01-17 04:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:56:05 - End Time 2025-01-17 04:56:05 [2025-01-17 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265992', 'tblTempUsageDetail_20' ) start [2025-01-17 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265992', 'tblTempUsageDetail_20' ) end [2025-01-17 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265992', 'tblTempVendorCDR_20' ) start [2025-01-17 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265992', 'tblTempVendorCDR_20' ) end [2025-01-17 04:56:18] Production.INFO: ProcessCDR(1,14265992,1,1,2) [2025-01-17 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265992', 'tblTempUsageDetail_20' ) start [2025-01-17 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265992', 'tblTempUsageDetail_20' ) end [2025-01-17 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:56:21] Production.INFO: ==24607== Releasing lock... [2025-01-17 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:57:06 [end_date_ymd] => 2025-01-17 04:57:06 [RateCDR] => 1 ) [2025-01-17 04: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-17 01:57:06' and `end` < '2025-01-17 04: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-17 04:57:18] Production.INFO: count ==112 [2025-01-17 04:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 01:57:06 - End Time 2025-01-17 04:57:06 [2025-01-17 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265997', 'tblTempUsageDetail_20' ) start [2025-01-17 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14265997', 'tblTempUsageDetail_20' ) end [2025-01-17 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265997', 'tblTempVendorCDR_20' ) start [2025-01-17 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14265997', 'tblTempVendorCDR_20' ) end [2025-01-17 04:57:18] Production.INFO: ProcessCDR(1,14265997,1,1,2) [2025-01-17 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14265997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14265997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14265997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14265997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265997', 'tblTempUsageDetail_20' ) start [2025-01-17 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14265997', 'tblTempUsageDetail_20' ) end [2025-01-17 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:57:22] Production.INFO: ==24679== Releasing lock... [2025-01-17 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:58:05 [end_date_ymd] => 2025-01-17 04:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:58:05' and `end` < '2025-01-17 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-17 04:58:19] Production.INFO: count ==112 [2025-01-17 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:58:05 - End Time 2025-01-17 04:58:05 [2025-01-17 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266002', 'tblTempUsageDetail_20' ) start [2025-01-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266002', 'tblTempUsageDetail_20' ) end [2025-01-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266002', 'tblTempVendorCDR_20' ) start [2025-01-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266002', 'tblTempVendorCDR_20' ) end [2025-01-17 04:58:19] Production.INFO: ProcessCDR(1,14266002,1,1,2) [2025-01-17 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266002', 'tblTempUsageDetail_20' ) start [2025-01-17 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266002', 'tblTempUsageDetail_20' ) end [2025-01-17 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:58:22] Production.INFO: ==24749== Releasing lock... [2025-01-17 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 01:59:05 [end_date_ymd] => 2025-01-17 04:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 01:59:05' and `end` < '2025-01-17 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-17 04:59:19] Production.INFO: count ==112 [2025-01-17 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-17 01:59:05 - End Time 2025-01-17 04:59:05 [2025-01-17 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266007', 'tblTempUsageDetail_20' ) start [2025-01-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266007', 'tblTempUsageDetail_20' ) end [2025-01-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266007', 'tblTempVendorCDR_20' ) start [2025-01-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266007', 'tblTempVendorCDR_20' ) end [2025-01-17 04:59:19] Production.INFO: ProcessCDR(1,14266007,1,1,2) [2025-01-17 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266007', 'tblTempUsageDetail_20' ) start [2025-01-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266007', 'tblTempUsageDetail_20' ) end [2025-01-17 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 04:59:22] Production.INFO: ==24820== Releasing lock... [2025-01-17 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 04:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:00:06 [end_date_ymd] => 2025-01-17 05:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 02:00:06' and `end` < '2025-01-17 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-17 05:00:19] Production.INFO: count ==107 [2025-01-17 05:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 02:00:06 - End Time 2025-01-17 05:00:06 [2025-01-17 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266013', 'tblTempUsageDetail_20' ) start [2025-01-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266013', 'tblTempUsageDetail_20' ) end [2025-01-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266013', 'tblTempVendorCDR_20' ) start [2025-01-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266013', 'tblTempVendorCDR_20' ) end [2025-01-17 05:00:19] Production.INFO: ProcessCDR(1,14266013,1,1,2) [2025-01-17 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266013', 'tblTempUsageDetail_20' ) start [2025-01-17 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266013', 'tblTempUsageDetail_20' ) end [2025-01-17 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:00:22] Production.INFO: ==24892== Releasing lock... [2025-01-17 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:01:05 [end_date_ymd] => 2025-01-17 05:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:01:05' and `end` < '2025-01-17 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-17 05:01:18] Production.INFO: count ==107 [2025-01-17 05:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:01:05 - End Time 2025-01-17 05:01:05 [2025-01-17 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266018', 'tblTempUsageDetail_20' ) start [2025-01-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266018', 'tblTempUsageDetail_20' ) end [2025-01-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266018', 'tblTempVendorCDR_20' ) start [2025-01-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266018', 'tblTempVendorCDR_20' ) end [2025-01-17 05:01:18] Production.INFO: ProcessCDR(1,14266018,1,1,2) [2025-01-17 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266018', 'tblTempUsageDetail_20' ) start [2025-01-17 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266018', 'tblTempUsageDetail_20' ) end [2025-01-17 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:01:21] Production.INFO: ==24979== Releasing lock... [2025-01-17 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:02:05 [end_date_ymd] => 2025-01-17 05:02:05 [RateCDR] => 1 ) [2025-01-17 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:02:05' and `end` < '2025-01-17 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:02:18] Production.INFO: count ==107 [2025-01-17 05:02:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:02:05 - End Time 2025-01-17 05:02:05 [2025-01-17 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266023', 'tblTempUsageDetail_20' ) start [2025-01-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266023', 'tblTempUsageDetail_20' ) end [2025-01-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266023', 'tblTempVendorCDR_20' ) start [2025-01-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266023', 'tblTempVendorCDR_20' ) end [2025-01-17 05:02:18] Production.INFO: ProcessCDR(1,14266023,1,1,2) [2025-01-17 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266023', 'tblTempUsageDetail_20' ) start [2025-01-17 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266023', 'tblTempUsageDetail_20' ) end [2025-01-17 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:02:21] Production.INFO: ==25055== Releasing lock... [2025-01-17 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:03:05 [end_date_ymd] => 2025-01-17 05:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:03:05' and `end` < '2025-01-17 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-17 05:03:18] Production.INFO: count ==107 [2025-01-17 05:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:03:05 - End Time 2025-01-17 05:03:05 [2025-01-17 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266028', 'tblTempUsageDetail_20' ) start [2025-01-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266028', 'tblTempUsageDetail_20' ) end [2025-01-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266028', 'tblTempVendorCDR_20' ) start [2025-01-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266028', 'tblTempVendorCDR_20' ) end [2025-01-17 05:03:18] Production.INFO: ProcessCDR(1,14266028,1,1,2) [2025-01-17 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266028', 'tblTempUsageDetail_20' ) start [2025-01-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266028', 'tblTempUsageDetail_20' ) end [2025-01-17 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:03:21] Production.INFO: ==25124== Releasing lock... [2025-01-17 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:04:05 [end_date_ymd] => 2025-01-17 05:04:05 [RateCDR] => 1 ) [2025-01-17 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:04:05' and `end` < '2025-01-17 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:04:18] Production.INFO: count ==107 [2025-01-17 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:04:05 - End Time 2025-01-17 05:04:05 [2025-01-17 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266033', 'tblTempUsageDetail_20' ) start [2025-01-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266033', 'tblTempUsageDetail_20' ) end [2025-01-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266033', 'tblTempVendorCDR_20' ) start [2025-01-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266033', 'tblTempVendorCDR_20' ) end [2025-01-17 05:04:18] Production.INFO: ProcessCDR(1,14266033,1,1,2) [2025-01-17 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266033', 'tblTempUsageDetail_20' ) start [2025-01-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266033', 'tblTempUsageDetail_20' ) end [2025-01-17 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:04:21] Production.INFO: ==25193== Releasing lock... [2025-01-17 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:05:05 [end_date_ymd] => 2025-01-17 05:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:05:05' and `end` < '2025-01-17 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-17 05:05:18] Production.INFO: count ==107 [2025-01-17 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:05:05 - End Time 2025-01-17 05:05:05 [2025-01-17 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266038', 'tblTempUsageDetail_20' ) start [2025-01-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266038', 'tblTempUsageDetail_20' ) end [2025-01-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266038', 'tblTempVendorCDR_20' ) start [2025-01-17 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266038', 'tblTempVendorCDR_20' ) end [2025-01-17 05:05:18] Production.INFO: ProcessCDR(1,14266038,1,1,2) [2025-01-17 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266038', 'tblTempUsageDetail_20' ) start [2025-01-17 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266038', 'tblTempUsageDetail_20' ) end [2025-01-17 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:05:21] Production.INFO: ==25267== Releasing lock... [2025-01-17 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:06:05 [end_date_ymd] => 2025-01-17 05:06:05 [RateCDR] => 1 ) [2025-01-17 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:06:05' and `end` < '2025-01-17 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:06:17] Production.INFO: count ==107 [2025-01-17 05:06:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:06:05 - End Time 2025-01-17 05:06:05 [2025-01-17 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266043', 'tblTempUsageDetail_20' ) start [2025-01-17 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266043', 'tblTempUsageDetail_20' ) end [2025-01-17 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266043', 'tblTempVendorCDR_20' ) start [2025-01-17 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266043', 'tblTempVendorCDR_20' ) end [2025-01-17 05:06:17] Production.INFO: ProcessCDR(1,14266043,1,1,2) [2025-01-17 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266043', 'tblTempUsageDetail_20' ) start [2025-01-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266043', 'tblTempUsageDetail_20' ) end [2025-01-17 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:06:21] Production.INFO: ==25376== Releasing lock... [2025-01-17 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:07:05 [end_date_ymd] => 2025-01-17 05:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:07:05' and `end` < '2025-01-17 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-17 05:07:43] Production.INFO: count ==107 [2025-01-17 05:07:43] Production.ERROR: pbx CDR StartTime 2025-01-17 02:07:05 - End Time 2025-01-17 05:07:05 [2025-01-17 05:07:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:07:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266048', 'tblTempUsageDetail_20' ) start [2025-01-17 05:07:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266048', 'tblTempUsageDetail_20' ) end [2025-01-17 05:07:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266048', 'tblTempVendorCDR_20' ) start [2025-01-17 05:07:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266048', 'tblTempVendorCDR_20' ) end [2025-01-17 05:07:43] Production.INFO: ProcessCDR(1,14266048,1,1,2) [2025-01-17 05:07:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:07:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:07:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:07:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:07:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266048', 'tblTempUsageDetail_20' ) start [2025-01-17 05:07:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266048', 'tblTempUsageDetail_20' ) end [2025-01-17 05:07:46] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:07:46] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:07:46] Production.INFO: ==25446== Releasing lock... [2025-01-17 05:07:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:07:46] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:08:04 [end_date_ymd] => 2025-01-17 05:08:04 [RateCDR] => 1 ) [2025-01-17 05: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-17 02:08:04' and `end` < '2025-01-17 05: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-17 05:08:17] Production.INFO: count ==107 [2025-01-17 05:08:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:08:04 - End Time 2025-01-17 05:08:04 [2025-01-17 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266053', 'tblTempUsageDetail_20' ) start [2025-01-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266053', 'tblTempUsageDetail_20' ) end [2025-01-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266053', 'tblTempVendorCDR_20' ) start [2025-01-17 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266053', 'tblTempVendorCDR_20' ) end [2025-01-17 05:08:17] Production.INFO: ProcessCDR(1,14266053,1,1,2) [2025-01-17 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266053', 'tblTempUsageDetail_20' ) start [2025-01-17 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266053', 'tblTempUsageDetail_20' ) end [2025-01-17 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:08:20] Production.INFO: ==25519== Releasing lock... [2025-01-17 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:09:05 [end_date_ymd] => 2025-01-17 05:09:05 [RateCDR] => 1 ) [2025-01-17 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:09:05' and `end` < '2025-01-17 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:09:18] Production.INFO: count ==107 [2025-01-17 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:09:05 - End Time 2025-01-17 05:09:05 [2025-01-17 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266058', 'tblTempUsageDetail_20' ) start [2025-01-17 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266058', 'tblTempUsageDetail_20' ) end [2025-01-17 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266058', 'tblTempVendorCDR_20' ) start [2025-01-17 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266058', 'tblTempVendorCDR_20' ) end [2025-01-17 05:09:18] Production.INFO: ProcessCDR(1,14266058,1,1,2) [2025-01-17 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266058', 'tblTempUsageDetail_20' ) start [2025-01-17 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266058', 'tblTempUsageDetail_20' ) end [2025-01-17 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:09:22] Production.INFO: ==25590== Releasing lock... [2025-01-17 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:10:05 [end_date_ymd] => 2025-01-17 05:10:05 [RateCDR] => 1 ) [2025-01-17 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:10:05' and `end` < '2025-01-17 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-17 05:10:18] Production.INFO: count ==103 [2025-01-17 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:10:05 - End Time 2025-01-17 05:10:05 [2025-01-17 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266064', 'tblTempUsageDetail_20' ) start [2025-01-17 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266064', 'tblTempUsageDetail_20' ) end [2025-01-17 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266064', 'tblTempVendorCDR_20' ) start [2025-01-17 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266064', 'tblTempVendorCDR_20' ) end [2025-01-17 05:10:18] Production.INFO: ProcessCDR(1,14266064,1,1,2) [2025-01-17 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266064', 'tblTempUsageDetail_20' ) start [2025-01-17 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266064', 'tblTempUsageDetail_20' ) end [2025-01-17 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:10:21] Production.INFO: ==25660== Releasing lock... [2025-01-17 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:11:05 [end_date_ymd] => 2025-01-17 05:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:11:05' and `end` < '2025-01-17 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-17 05:11:18] Production.INFO: count ==95 [2025-01-17 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:11:05 - End Time 2025-01-17 05:11:05 [2025-01-17 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266069', 'tblTempUsageDetail_20' ) start [2025-01-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266069', 'tblTempUsageDetail_20' ) end [2025-01-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266069', 'tblTempVendorCDR_20' ) start [2025-01-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266069', 'tblTempVendorCDR_20' ) end [2025-01-17 05:11:18] Production.INFO: ProcessCDR(1,14266069,1,1,2) [2025-01-17 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266069', 'tblTempUsageDetail_20' ) start [2025-01-17 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266069', 'tblTempUsageDetail_20' ) end [2025-01-17 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:11:21] Production.INFO: ==25733== Releasing lock... [2025-01-17 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:12:05 [end_date_ymd] => 2025-01-17 05:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:12:05' and `end` < '2025-01-17 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-17 05:12:18] Production.INFO: count ==95 [2025-01-17 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:12:05 - End Time 2025-01-17 05:12:05 [2025-01-17 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266074', 'tblTempUsageDetail_20' ) start [2025-01-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266074', 'tblTempUsageDetail_20' ) end [2025-01-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266074', 'tblTempVendorCDR_20' ) start [2025-01-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266074', 'tblTempVendorCDR_20' ) end [2025-01-17 05:12:18] Production.INFO: ProcessCDR(1,14266074,1,1,2) [2025-01-17 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266074', 'tblTempUsageDetail_20' ) start [2025-01-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266074', 'tblTempUsageDetail_20' ) end [2025-01-17 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:12:21] Production.INFO: ==25805== Releasing lock... [2025-01-17 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:13:05 [end_date_ymd] => 2025-01-17 05:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:13:05' and `end` < '2025-01-17 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-17 05:13:18] Production.INFO: count ==95 [2025-01-17 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:13:05 - End Time 2025-01-17 05:13:05 [2025-01-17 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266079', 'tblTempUsageDetail_20' ) start [2025-01-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266079', 'tblTempUsageDetail_20' ) end [2025-01-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266079', 'tblTempVendorCDR_20' ) start [2025-01-17 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266079', 'tblTempVendorCDR_20' ) end [2025-01-17 05:13:18] Production.INFO: ProcessCDR(1,14266079,1,1,2) [2025-01-17 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266079', 'tblTempUsageDetail_20' ) start [2025-01-17 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266079', 'tblTempUsageDetail_20' ) end [2025-01-17 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:13:21] Production.INFO: ==25875== Releasing lock... [2025-01-17 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:14:06 [end_date_ymd] => 2025-01-17 05:14:06 [RateCDR] => 1 ) [2025-01-17 05: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-17 02:14:06' and `end` < '2025-01-17 05: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-17 05:14:18] Production.INFO: count ==95 [2025-01-17 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:14:06 - End Time 2025-01-17 05:14:06 [2025-01-17 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266084', 'tblTempUsageDetail_20' ) start [2025-01-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266084', 'tblTempUsageDetail_20' ) end [2025-01-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266084', 'tblTempVendorCDR_20' ) start [2025-01-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266084', 'tblTempVendorCDR_20' ) end [2025-01-17 05:14:18] Production.INFO: ProcessCDR(1,14266084,1,1,2) [2025-01-17 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266084', 'tblTempUsageDetail_20' ) start [2025-01-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266084', 'tblTempUsageDetail_20' ) end [2025-01-17 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:14:22] Production.INFO: ==25945== Releasing lock... [2025-01-17 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:15:05 [end_date_ymd] => 2025-01-17 05:15:05 [RateCDR] => 1 ) [2025-01-17 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:15:05' and `end` < '2025-01-17 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:15:17] Production.INFO: count ==95 [2025-01-17 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:15:05 - End Time 2025-01-17 05:15:05 [2025-01-17 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266089', 'tblTempUsageDetail_20' ) start [2025-01-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266089', 'tblTempUsageDetail_20' ) end [2025-01-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266089', 'tblTempVendorCDR_20' ) start [2025-01-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266089', 'tblTempVendorCDR_20' ) end [2025-01-17 05:15:17] Production.INFO: ProcessCDR(1,14266089,1,1,2) [2025-01-17 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266089', 'tblTempUsageDetail_20' ) start [2025-01-17 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266089', 'tblTempUsageDetail_20' ) end [2025-01-17 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:15:21] Production.INFO: ==26016== Releasing lock... [2025-01-17 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:16:04 [end_date_ymd] => 2025-01-17 05:16:04 [RateCDR] => 1 ) [2025-01-17 05:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:16:04' and `end` < '2025-01-17 05:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:16:17] Production.INFO: count ==95 [2025-01-17 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:16:04 - End Time 2025-01-17 05:16:04 [2025-01-17 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266094', 'tblTempUsageDetail_20' ) start [2025-01-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266094', 'tblTempUsageDetail_20' ) end [2025-01-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266094', 'tblTempVendorCDR_20' ) start [2025-01-17 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266094', 'tblTempVendorCDR_20' ) end [2025-01-17 05:16:17] Production.INFO: ProcessCDR(1,14266094,1,1,2) [2025-01-17 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266094', 'tblTempUsageDetail_20' ) start [2025-01-17 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266094', 'tblTempUsageDetail_20' ) end [2025-01-17 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:16:20] Production.INFO: ==26092== Releasing lock... [2025-01-17 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:17:06 [end_date_ymd] => 2025-01-17 05:17:06 [RateCDR] => 1 ) [2025-01-17 05: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-17 02:17:06' and `end` < '2025-01-17 05: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-17 05:17:18] Production.INFO: count ==95 [2025-01-17 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:17:06 - End Time 2025-01-17 05:17:06 [2025-01-17 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266099', 'tblTempUsageDetail_20' ) start [2025-01-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266099', 'tblTempUsageDetail_20' ) end [2025-01-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266099', 'tblTempVendorCDR_20' ) start [2025-01-17 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266099', 'tblTempVendorCDR_20' ) end [2025-01-17 05:17:19] Production.INFO: ProcessCDR(1,14266099,1,1,2) [2025-01-17 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266099', 'tblTempUsageDetail_20' ) start [2025-01-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266099', 'tblTempUsageDetail_20' ) end [2025-01-17 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:17:22] Production.INFO: ==26162== Releasing lock... [2025-01-17 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:18:05 [end_date_ymd] => 2025-01-17 05:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:18:05' and `end` < '2025-01-17 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-17 05:18:18] Production.INFO: count ==95 [2025-01-17 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:18:05 - End Time 2025-01-17 05:18:05 [2025-01-17 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266104', 'tblTempUsageDetail_20' ) start [2025-01-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266104', 'tblTempUsageDetail_20' ) end [2025-01-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266104', 'tblTempVendorCDR_20' ) start [2025-01-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266104', 'tblTempVendorCDR_20' ) end [2025-01-17 05:18:18] Production.INFO: ProcessCDR(1,14266104,1,1,2) [2025-01-17 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266104', 'tblTempUsageDetail_20' ) start [2025-01-17 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266104', 'tblTempUsageDetail_20' ) end [2025-01-17 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:18:21] Production.INFO: ==26235== Releasing lock... [2025-01-17 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:19:05 [end_date_ymd] => 2025-01-17 05:19:05 [RateCDR] => 1 ) [2025-01-17 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:19:05' and `end` < '2025-01-17 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:19:18] Production.INFO: count ==95 [2025-01-17 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:19:05 - End Time 2025-01-17 05:19:05 [2025-01-17 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266109', 'tblTempUsageDetail_20' ) start [2025-01-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266109', 'tblTempUsageDetail_20' ) end [2025-01-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266109', 'tblTempVendorCDR_20' ) start [2025-01-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266109', 'tblTempVendorCDR_20' ) end [2025-01-17 05:19:18] Production.INFO: ProcessCDR(1,14266109,1,1,2) [2025-01-17 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266109', 'tblTempUsageDetail_20' ) start [2025-01-17 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266109', 'tblTempUsageDetail_20' ) end [2025-01-17 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:19:21] Production.INFO: ==26307== Releasing lock... [2025-01-17 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:20:06 [end_date_ymd] => 2025-01-17 05:20:06 [RateCDR] => 1 ) [2025-01-17 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:20:06' and `end` < '2025-01-17 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:20:18] Production.INFO: count ==87 [2025-01-17 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:20:06 - End Time 2025-01-17 05:20:06 [2025-01-17 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266115', 'tblTempUsageDetail_20' ) start [2025-01-17 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266115', 'tblTempUsageDetail_20' ) end [2025-01-17 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266115', 'tblTempVendorCDR_20' ) start [2025-01-17 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266115', 'tblTempVendorCDR_20' ) end [2025-01-17 05:20:18] Production.INFO: ProcessCDR(1,14266115,1,1,2) [2025-01-17 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266115', 'tblTempUsageDetail_20' ) start [2025-01-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266115', 'tblTempUsageDetail_20' ) end [2025-01-17 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:20:22] Production.INFO: ==26381== Releasing lock... [2025-01-17 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:21:05 [end_date_ymd] => 2025-01-17 05:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:21:05' and `end` < '2025-01-17 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-17 05:21:18] Production.INFO: count ==81 [2025-01-17 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:21:05 - End Time 2025-01-17 05:21:05 [2025-01-17 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266120', 'tblTempUsageDetail_20' ) start [2025-01-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266120', 'tblTempUsageDetail_20' ) end [2025-01-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266120', 'tblTempVendorCDR_20' ) start [2025-01-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266120', 'tblTempVendorCDR_20' ) end [2025-01-17 05:21:18] Production.INFO: ProcessCDR(1,14266120,1,1,2) [2025-01-17 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266120', 'tblTempUsageDetail_20' ) start [2025-01-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266120', 'tblTempUsageDetail_20' ) end [2025-01-17 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:21:21] Production.INFO: ==26493== Releasing lock... [2025-01-17 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:22:05 [end_date_ymd] => 2025-01-17 05:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:22:05' and `end` < '2025-01-17 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-17 05:22:18] Production.INFO: count ==81 [2025-01-17 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:22:05 - End Time 2025-01-17 05:22:05 [2025-01-17 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266125', 'tblTempUsageDetail_20' ) start [2025-01-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266125', 'tblTempUsageDetail_20' ) end [2025-01-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266125', 'tblTempVendorCDR_20' ) start [2025-01-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266125', 'tblTempVendorCDR_20' ) end [2025-01-17 05:22:18] Production.INFO: ProcessCDR(1,14266125,1,1,2) [2025-01-17 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266125', 'tblTempUsageDetail_20' ) start [2025-01-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266125', 'tblTempUsageDetail_20' ) end [2025-01-17 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:22:21] Production.INFO: ==26562== Releasing lock... [2025-01-17 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:23:05 [end_date_ymd] => 2025-01-17 05:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:23:05' and `end` < '2025-01-17 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-17 05:23:17] Production.INFO: count ==81 [2025-01-17 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:23:05 - End Time 2025-01-17 05:23:05 [2025-01-17 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266130', 'tblTempUsageDetail_20' ) start [2025-01-17 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266130', 'tblTempUsageDetail_20' ) end [2025-01-17 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266130', 'tblTempVendorCDR_20' ) start [2025-01-17 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266130', 'tblTempVendorCDR_20' ) end [2025-01-17 05:23:17] Production.INFO: ProcessCDR(1,14266130,1,1,2) [2025-01-17 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266130', 'tblTempUsageDetail_20' ) start [2025-01-17 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266130', 'tblTempUsageDetail_20' ) end [2025-01-17 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:23:20] Production.INFO: ==26632== Releasing lock... [2025-01-17 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:23:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:24:05 [end_date_ymd] => 2025-01-17 05:24:05 [RateCDR] => 1 ) [2025-01-17 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:24:05' and `end` < '2025-01-17 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:24:18] Production.INFO: count ==77 [2025-01-17 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:24:05 - End Time 2025-01-17 05:24:05 [2025-01-17 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266135', 'tblTempUsageDetail_20' ) start [2025-01-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266135', 'tblTempUsageDetail_20' ) end [2025-01-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266135', 'tblTempVendorCDR_20' ) start [2025-01-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266135', 'tblTempVendorCDR_20' ) end [2025-01-17 05:24:18] Production.INFO: ProcessCDR(1,14266135,1,1,2) [2025-01-17 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266135', 'tblTempUsageDetail_20' ) start [2025-01-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266135', 'tblTempUsageDetail_20' ) end [2025-01-17 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:24:21] Production.INFO: ==26701== Releasing lock... [2025-01-17 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:25:05 [end_date_ymd] => 2025-01-17 05:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:25:05' and `end` < '2025-01-17 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-17 05:25:17] Production.INFO: count ==77 [2025-01-17 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:25:05 - End Time 2025-01-17 05:25:05 [2025-01-17 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266140', 'tblTempUsageDetail_20' ) start [2025-01-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266140', 'tblTempUsageDetail_20' ) end [2025-01-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266140', 'tblTempVendorCDR_20' ) start [2025-01-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266140', 'tblTempVendorCDR_20' ) end [2025-01-17 05:25:17] Production.INFO: ProcessCDR(1,14266140,1,1,2) [2025-01-17 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266140', 'tblTempUsageDetail_20' ) start [2025-01-17 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266140', 'tblTempUsageDetail_20' ) end [2025-01-17 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:25:20] Production.INFO: ==26772== Releasing lock... [2025-01-17 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:26:05 [end_date_ymd] => 2025-01-17 05:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:26:05' and `end` < '2025-01-17 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-17 05:26:18] Production.INFO: count ==73 [2025-01-17 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:26:05 - End Time 2025-01-17 05:26:05 [2025-01-17 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266145', 'tblTempUsageDetail_20' ) start [2025-01-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266145', 'tblTempUsageDetail_20' ) end [2025-01-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266145', 'tblTempVendorCDR_20' ) start [2025-01-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266145', 'tblTempVendorCDR_20' ) end [2025-01-17 05:26:18] Production.INFO: ProcessCDR(1,14266145,1,1,2) [2025-01-17 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266145', 'tblTempUsageDetail_20' ) start [2025-01-17 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266145', 'tblTempUsageDetail_20' ) end [2025-01-17 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:26:21] Production.INFO: ==26842== Releasing lock... [2025-01-17 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:27:04 [end_date_ymd] => 2025-01-17 05:27:04 [RateCDR] => 1 ) [2025-01-17 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:27:04' and `end` < '2025-01-17 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:27:17] Production.INFO: count ==73 [2025-01-17 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:27:04 - End Time 2025-01-17 05:27:04 [2025-01-17 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266150', 'tblTempUsageDetail_20' ) start [2025-01-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266150', 'tblTempUsageDetail_20' ) end [2025-01-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266150', 'tblTempVendorCDR_20' ) start [2025-01-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266150', 'tblTempVendorCDR_20' ) end [2025-01-17 05:27:17] Production.INFO: ProcessCDR(1,14266150,1,1,2) [2025-01-17 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266150', 'tblTempUsageDetail_20' ) start [2025-01-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266150', 'tblTempUsageDetail_20' ) end [2025-01-17 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:27:21] Production.INFO: ==26912== Releasing lock... [2025-01-17 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:28:05 [end_date_ymd] => 2025-01-17 05:28:05 [RateCDR] => 1 ) [2025-01-17 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:28:05' and `end` < '2025-01-17 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:28:17] Production.INFO: count ==73 [2025-01-17 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:28:05 - End Time 2025-01-17 05:28:05 [2025-01-17 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266155', 'tblTempUsageDetail_20' ) start [2025-01-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266155', 'tblTempUsageDetail_20' ) end [2025-01-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266155', 'tblTempVendorCDR_20' ) start [2025-01-17 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266155', 'tblTempVendorCDR_20' ) end [2025-01-17 05:28:17] Production.INFO: ProcessCDR(1,14266155,1,1,2) [2025-01-17 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266155', 'tblTempUsageDetail_20' ) start [2025-01-17 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266155', 'tblTempUsageDetail_20' ) end [2025-01-17 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:28:21] Production.INFO: ==26984== Releasing lock... [2025-01-17 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:29:05 [end_date_ymd] => 2025-01-17 05:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:29:05' and `end` < '2025-01-17 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-17 05:29:18] Production.INFO: count ==72 [2025-01-17 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:29:05 - End Time 2025-01-17 05:29:05 [2025-01-17 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266160', 'tblTempUsageDetail_20' ) start [2025-01-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266160', 'tblTempUsageDetail_20' ) end [2025-01-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266160', 'tblTempVendorCDR_20' ) start [2025-01-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266160', 'tblTempVendorCDR_20' ) end [2025-01-17 05:29:18] Production.INFO: ProcessCDR(1,14266160,1,1,2) [2025-01-17 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266160', 'tblTempUsageDetail_20' ) start [2025-01-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266160', 'tblTempUsageDetail_20' ) end [2025-01-17 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:29:21] Production.INFO: ==27057== Releasing lock... [2025-01-17 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:30:05 [end_date_ymd] => 2025-01-17 05:30:05 [RateCDR] => 1 ) [2025-01-17 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:30:05' and `end` < '2025-01-17 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:30:17] Production.INFO: count ==67 [2025-01-17 05:30:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:30:05 - End Time 2025-01-17 05:30:05 [2025-01-17 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266165', 'tblTempUsageDetail_20' ) start [2025-01-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266165', 'tblTempUsageDetail_20' ) end [2025-01-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266165', 'tblTempVendorCDR_20' ) start [2025-01-17 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266165', 'tblTempVendorCDR_20' ) end [2025-01-17 05:30:17] Production.INFO: ProcessCDR(1,14266165,1,1,2) [2025-01-17 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266165', 'tblTempUsageDetail_20' ) start [2025-01-17 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266165', 'tblTempUsageDetail_20' ) end [2025-01-17 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:30:21] Production.INFO: ==27135== Releasing lock... [2025-01-17 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:31:05 [end_date_ymd] => 2025-01-17 05:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:31:05' and `end` < '2025-01-17 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-17 05:31:17] Production.INFO: count ==57 [2025-01-17 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:31:05 - End Time 2025-01-17 05:31:05 [2025-01-17 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266171', 'tblTempUsageDetail_20' ) start [2025-01-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266171', 'tblTempUsageDetail_20' ) end [2025-01-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266171', 'tblTempVendorCDR_20' ) start [2025-01-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266171', 'tblTempVendorCDR_20' ) end [2025-01-17 05:31:17] Production.INFO: ProcessCDR(1,14266171,1,1,2) [2025-01-17 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266171', 'tblTempUsageDetail_20' ) start [2025-01-17 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266171', 'tblTempUsageDetail_20' ) end [2025-01-17 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:31:21] Production.INFO: ==27207== Releasing lock... [2025-01-17 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:32:05 [end_date_ymd] => 2025-01-17 05:32:05 [RateCDR] => 1 ) [2025-01-17 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:32:05' and `end` < '2025-01-17 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:32:18] Production.INFO: count ==57 [2025-01-17 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:32:05 - End Time 2025-01-17 05:32:05 [2025-01-17 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266176', 'tblTempUsageDetail_20' ) start [2025-01-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266176', 'tblTempUsageDetail_20' ) end [2025-01-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266176', 'tblTempVendorCDR_20' ) start [2025-01-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266176', 'tblTempVendorCDR_20' ) end [2025-01-17 05:32:18] Production.INFO: ProcessCDR(1,14266176,1,1,2) [2025-01-17 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266176', 'tblTempUsageDetail_20' ) start [2025-01-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266176', 'tblTempUsageDetail_20' ) end [2025-01-17 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:32:21] Production.INFO: ==27277== Releasing lock... [2025-01-17 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:33:05 [end_date_ymd] => 2025-01-17 05:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:33:05' and `end` < '2025-01-17 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-17 05:33:18] Production.INFO: count ==57 [2025-01-17 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:33:05 - End Time 2025-01-17 05:33:05 [2025-01-17 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266181', 'tblTempUsageDetail_20' ) start [2025-01-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266181', 'tblTempUsageDetail_20' ) end [2025-01-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266181', 'tblTempVendorCDR_20' ) start [2025-01-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266181', 'tblTempVendorCDR_20' ) end [2025-01-17 05:33:18] Production.INFO: ProcessCDR(1,14266181,1,1,2) [2025-01-17 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266181', 'tblTempUsageDetail_20' ) start [2025-01-17 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266181', 'tblTempUsageDetail_20' ) end [2025-01-17 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:33:21] Production.INFO: ==27347== Releasing lock... [2025-01-17 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:34:05 [end_date_ymd] => 2025-01-17 05:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:34:05' and `end` < '2025-01-17 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:34:17] Production.INFO: count ==57 [2025-01-17 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:34:05 - End Time 2025-01-17 05:34:05 [2025-01-17 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266186', 'tblTempUsageDetail_20' ) start [2025-01-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266186', 'tblTempUsageDetail_20' ) end [2025-01-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266186', 'tblTempVendorCDR_20' ) start [2025-01-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266186', 'tblTempVendorCDR_20' ) end [2025-01-17 05:34:17] Production.INFO: ProcessCDR(1,14266186,1,1,2) [2025-01-17 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266186', 'tblTempUsageDetail_20' ) start [2025-01-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266186', 'tblTempUsageDetail_20' ) end [2025-01-17 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:34:21] Production.INFO: ==27418== Releasing lock... [2025-01-17 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:35:05 [end_date_ymd] => 2025-01-17 05:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:35:05' and `end` < '2025-01-17 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-17 05:35:17] Production.INFO: count ==57 [2025-01-17 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:35:05 - End Time 2025-01-17 05:35:05 [2025-01-17 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266191', 'tblTempUsageDetail_20' ) start [2025-01-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266191', 'tblTempUsageDetail_20' ) end [2025-01-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266191', 'tblTempVendorCDR_20' ) start [2025-01-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266191', 'tblTempVendorCDR_20' ) end [2025-01-17 05:35:17] Production.INFO: ProcessCDR(1,14266191,1,1,2) [2025-01-17 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266191', 'tblTempUsageDetail_20' ) start [2025-01-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266191', 'tblTempUsageDetail_20' ) end [2025-01-17 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:35:20] Production.INFO: ==27488== Releasing lock... [2025-01-17 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:36:05 [end_date_ymd] => 2025-01-17 05:36:05 [RateCDR] => 1 ) [2025-01-17 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:36:05' and `end` < '2025-01-17 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:36:18] Production.INFO: count ==57 [2025-01-17 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:36:05 - End Time 2025-01-17 05:36:05 [2025-01-17 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266196', 'tblTempUsageDetail_20' ) start [2025-01-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266196', 'tblTempUsageDetail_20' ) end [2025-01-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266196', 'tblTempVendorCDR_20' ) start [2025-01-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266196', 'tblTempVendorCDR_20' ) end [2025-01-17 05:36:18] Production.INFO: ProcessCDR(1,14266196,1,1,2) [2025-01-17 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266196', 'tblTempUsageDetail_20' ) start [2025-01-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266196', 'tblTempUsageDetail_20' ) end [2025-01-17 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:36:21] Production.INFO: ==27560== Releasing lock... [2025-01-17 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:37:05 [end_date_ymd] => 2025-01-17 05:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:37:05' and `end` < '2025-01-17 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-17 05:37:17] Production.INFO: count ==57 [2025-01-17 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:37:05 - End Time 2025-01-17 05:37:05 [2025-01-17 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266201', 'tblTempUsageDetail_20' ) start [2025-01-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266201', 'tblTempUsageDetail_20' ) end [2025-01-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266201', 'tblTempVendorCDR_20' ) start [2025-01-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266201', 'tblTempVendorCDR_20' ) end [2025-01-17 05:37:17] Production.INFO: ProcessCDR(1,14266201,1,1,2) [2025-01-17 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266201', 'tblTempUsageDetail_20' ) start [2025-01-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266201', 'tblTempUsageDetail_20' ) end [2025-01-17 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:37:21] Production.INFO: ==27669== Releasing lock... [2025-01-17 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:38:05 [end_date_ymd] => 2025-01-17 05:38:05 [RateCDR] => 1 ) [2025-01-17 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:38:05' and `end` < '2025-01-17 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:38:18] Production.INFO: count ==57 [2025-01-17 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:38:05 - End Time 2025-01-17 05:38:05 [2025-01-17 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266206', 'tblTempUsageDetail_20' ) start [2025-01-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266206', 'tblTempUsageDetail_20' ) end [2025-01-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266206', 'tblTempVendorCDR_20' ) start [2025-01-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266206', 'tblTempVendorCDR_20' ) end [2025-01-17 05:38:18] Production.INFO: ProcessCDR(1,14266206,1,1,2) [2025-01-17 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266206', 'tblTempUsageDetail_20' ) start [2025-01-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266206', 'tblTempUsageDetail_20' ) end [2025-01-17 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:38:21] Production.INFO: ==27740== Releasing lock... [2025-01-17 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:39:05 [end_date_ymd] => 2025-01-17 05:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:39:05' and `end` < '2025-01-17 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-17 05:39:18] Production.INFO: count ==57 [2025-01-17 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:39:05 - End Time 2025-01-17 05:39:05 [2025-01-17 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266211', 'tblTempUsageDetail_20' ) start [2025-01-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266211', 'tblTempUsageDetail_20' ) end [2025-01-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266211', 'tblTempVendorCDR_20' ) start [2025-01-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266211', 'tblTempVendorCDR_20' ) end [2025-01-17 05:39:18] Production.INFO: ProcessCDR(1,14266211,1,1,2) [2025-01-17 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266211', 'tblTempUsageDetail_20' ) start [2025-01-17 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266211', 'tblTempUsageDetail_20' ) end [2025-01-17 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:39:21] Production.INFO: ==27809== Releasing lock... [2025-01-17 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:40:05 [end_date_ymd] => 2025-01-17 05:40:05 [RateCDR] => 1 ) [2025-01-17 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:40:05' and `end` < '2025-01-17 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:40:18] Production.INFO: count ==56 [2025-01-17 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:40:05 - End Time 2025-01-17 05:40:05 [2025-01-17 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266217', 'tblTempUsageDetail_20' ) start [2025-01-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266217', 'tblTempUsageDetail_20' ) end [2025-01-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266217', 'tblTempVendorCDR_20' ) start [2025-01-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266217', 'tblTempVendorCDR_20' ) end [2025-01-17 05:40:18] Production.INFO: ProcessCDR(1,14266217,1,1,2) [2025-01-17 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266217', 'tblTempUsageDetail_20' ) start [2025-01-17 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266217', 'tblTempUsageDetail_20' ) end [2025-01-17 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:40:21] Production.INFO: ==27883== Releasing lock... [2025-01-17 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:41:05 [end_date_ymd] => 2025-01-17 05:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:41:05' and `end` < '2025-01-17 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-17 05:41:17] Production.INFO: count ==56 [2025-01-17 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:41:05 - End Time 2025-01-17 05:41:05 [2025-01-17 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266222', 'tblTempUsageDetail_20' ) start [2025-01-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266222', 'tblTempUsageDetail_20' ) end [2025-01-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266222', 'tblTempVendorCDR_20' ) start [2025-01-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266222', 'tblTempVendorCDR_20' ) end [2025-01-17 05:41:17] Production.INFO: ProcessCDR(1,14266222,1,1,2) [2025-01-17 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266222', 'tblTempUsageDetail_20' ) start [2025-01-17 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266222', 'tblTempUsageDetail_20' ) end [2025-01-17 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:41:20] Production.INFO: ==27958== Releasing lock... [2025-01-17 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:42:05 [end_date_ymd] => 2025-01-17 05:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:42:05' and `end` < '2025-01-17 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-17 05:42:17] Production.INFO: count ==56 [2025-01-17 05:42:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:42:05 - End Time 2025-01-17 05:42:05 [2025-01-17 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266227', 'tblTempUsageDetail_20' ) start [2025-01-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266227', 'tblTempUsageDetail_20' ) end [2025-01-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266227', 'tblTempVendorCDR_20' ) start [2025-01-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266227', 'tblTempVendorCDR_20' ) end [2025-01-17 05:42:17] Production.INFO: ProcessCDR(1,14266227,1,1,2) [2025-01-17 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266227', 'tblTempUsageDetail_20' ) start [2025-01-17 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266227', 'tblTempUsageDetail_20' ) end [2025-01-17 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:42:21] Production.INFO: ==28031== Releasing lock... [2025-01-17 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:43:05 [end_date_ymd] => 2025-01-17 05:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:43:05' and `end` < '2025-01-17 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-17 05:43:17] Production.INFO: count ==57 [2025-01-17 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:43:05 - End Time 2025-01-17 05:43:05 [2025-01-17 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266232', 'tblTempUsageDetail_20' ) start [2025-01-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266232', 'tblTempUsageDetail_20' ) end [2025-01-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266232', 'tblTempVendorCDR_20' ) start [2025-01-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266232', 'tblTempVendorCDR_20' ) end [2025-01-17 05:43:17] Production.INFO: ProcessCDR(1,14266232,1,1,2) [2025-01-17 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266232', 'tblTempUsageDetail_20' ) start [2025-01-17 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266232', 'tblTempUsageDetail_20' ) end [2025-01-17 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:43:22] Production.INFO: ==28104== Releasing lock... [2025-01-17 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:44:05 [end_date_ymd] => 2025-01-17 05:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:44:05' and `end` < '2025-01-17 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-17 05:44:17] Production.INFO: count ==58 [2025-01-17 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:44:05 - End Time 2025-01-17 05:44:05 [2025-01-17 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266237', 'tblTempUsageDetail_20' ) start [2025-01-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266237', 'tblTempUsageDetail_20' ) end [2025-01-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266237', 'tblTempVendorCDR_20' ) start [2025-01-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266237', 'tblTempVendorCDR_20' ) end [2025-01-17 05:44:17] Production.INFO: ProcessCDR(1,14266237,1,1,2) [2025-01-17 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266237', 'tblTempUsageDetail_20' ) start [2025-01-17 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266237', 'tblTempUsageDetail_20' ) end [2025-01-17 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:44:22] Production.INFO: ==28179== Releasing lock... [2025-01-17 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:45:04 [end_date_ymd] => 2025-01-17 05:45:04 [RateCDR] => 1 ) [2025-01-17 05: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-17 02:45:04' and `end` < '2025-01-17 05: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-17 05:45:17] Production.INFO: count ==59 [2025-01-17 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:45:04 - End Time 2025-01-17 05:45:04 [2025-01-17 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266242', 'tblTempUsageDetail_20' ) start [2025-01-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266242', 'tblTempUsageDetail_20' ) end [2025-01-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266242', 'tblTempVendorCDR_20' ) start [2025-01-17 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266242', 'tblTempVendorCDR_20' ) end [2025-01-17 05:45:17] Production.INFO: ProcessCDR(1,14266242,1,1,2) [2025-01-17 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266242', 'tblTempUsageDetail_20' ) start [2025-01-17 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266242', 'tblTempUsageDetail_20' ) end [2025-01-17 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:45:20] Production.INFO: ==28249== Releasing lock... [2025-01-17 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:46:05 [end_date_ymd] => 2025-01-17 05:46:05 [RateCDR] => 1 ) [2025-01-17 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:46:05' and `end` < '2025-01-17 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:46:18] Production.INFO: count ==59 [2025-01-17 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:46:05 - End Time 2025-01-17 05:46:05 [2025-01-17 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266247', 'tblTempUsageDetail_20' ) start [2025-01-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266247', 'tblTempUsageDetail_20' ) end [2025-01-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266247', 'tblTempVendorCDR_20' ) start [2025-01-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266247', 'tblTempVendorCDR_20' ) end [2025-01-17 05:46:18] Production.INFO: ProcessCDR(1,14266247,1,1,2) [2025-01-17 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266247', 'tblTempUsageDetail_20' ) start [2025-01-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266247', 'tblTempUsageDetail_20' ) end [2025-01-17 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:46:21] Production.INFO: ==28322== Releasing lock... [2025-01-17 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:47:04 [end_date_ymd] => 2025-01-17 05:47:04 [RateCDR] => 1 ) [2025-01-17 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-17 02:47:04' and `end` < '2025-01-17 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-17 05:47:17] Production.INFO: count ==59 [2025-01-17 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:47:04 - End Time 2025-01-17 05:47:04 [2025-01-17 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266252', 'tblTempUsageDetail_20' ) start [2025-01-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266252', 'tblTempUsageDetail_20' ) end [2025-01-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266252', 'tblTempVendorCDR_20' ) start [2025-01-17 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266252', 'tblTempVendorCDR_20' ) end [2025-01-17 05:47:17] Production.INFO: ProcessCDR(1,14266252,1,1,2) [2025-01-17 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266252', 'tblTempUsageDetail_20' ) start [2025-01-17 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266252', 'tblTempUsageDetail_20' ) end [2025-01-17 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:47:20] Production.INFO: ==28393== Releasing lock... [2025-01-17 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:48:05 [end_date_ymd] => 2025-01-17 05:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:48:05' and `end` < '2025-01-17 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-17 05:48:17] Production.INFO: count ==59 [2025-01-17 05:48:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:48:05 - End Time 2025-01-17 05:48:05 [2025-01-17 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266257', 'tblTempUsageDetail_20' ) start [2025-01-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266257', 'tblTempUsageDetail_20' ) end [2025-01-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266257', 'tblTempVendorCDR_20' ) start [2025-01-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266257', 'tblTempVendorCDR_20' ) end [2025-01-17 05:48:17] Production.INFO: ProcessCDR(1,14266257,1,1,2) [2025-01-17 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266257', 'tblTempUsageDetail_20' ) start [2025-01-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266257', 'tblTempUsageDetail_20' ) end [2025-01-17 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:48:21] Production.INFO: ==28464== Releasing lock... [2025-01-17 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:49:05 [end_date_ymd] => 2025-01-17 05:49:05 [RateCDR] => 1 ) [2025-01-17 05: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-17 02:49:05' and `end` < '2025-01-17 05: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-17 05:49:20] Production.INFO: count ==59 [2025-01-17 05:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 02:49:05 - End Time 2025-01-17 05:49:05 [2025-01-17 05:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266262', 'tblTempUsageDetail_20' ) start [2025-01-17 05:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266262', 'tblTempUsageDetail_20' ) end [2025-01-17 05:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266262', 'tblTempVendorCDR_20' ) start [2025-01-17 05:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266262', 'tblTempVendorCDR_20' ) end [2025-01-17 05:49:20] Production.INFO: ProcessCDR(1,14266262,1,1,2) [2025-01-17 05:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266262', 'tblTempUsageDetail_20' ) start [2025-01-17 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266262', 'tblTempUsageDetail_20' ) end [2025-01-17 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:49:23] Production.INFO: ==28533== Releasing lock... [2025-01-17 05:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:49:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:50:05 [end_date_ymd] => 2025-01-17 05:50:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:50:05' and `end` < '2025-01-17 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-17 05:50:18] Production.INFO: count ==59 [2025-01-17 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:50:05 - End Time 2025-01-17 05:50:05 [2025-01-17 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266268', 'tblTempUsageDetail_20' ) start [2025-01-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266268', 'tblTempUsageDetail_20' ) end [2025-01-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266268', 'tblTempVendorCDR_20' ) start [2025-01-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266268', 'tblTempVendorCDR_20' ) end [2025-01-17 05:50:18] Production.INFO: ProcessCDR(1,14266268,1,1,2) [2025-01-17 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266268', 'tblTempUsageDetail_20' ) start [2025-01-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266268', 'tblTempUsageDetail_20' ) end [2025-01-17 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:50:21] Production.INFO: ==28604== Releasing lock... [2025-01-17 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:51:05 [end_date_ymd] => 2025-01-17 05:51:05 [RateCDR] => 1 ) [2025-01-17 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:51:05' and `end` < '2025-01-17 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:51:18] Production.INFO: count ==59 [2025-01-17 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-17 02:51:05 - End Time 2025-01-17 05:51:05 [2025-01-17 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266273', 'tblTempUsageDetail_20' ) start [2025-01-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266273', 'tblTempUsageDetail_20' ) end [2025-01-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266273', 'tblTempVendorCDR_20' ) start [2025-01-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266273', 'tblTempVendorCDR_20' ) end [2025-01-17 05:51:18] Production.INFO: ProcessCDR(1,14266273,1,1,2) [2025-01-17 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266273', 'tblTempUsageDetail_20' ) start [2025-01-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266273', 'tblTempUsageDetail_20' ) end [2025-01-17 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:51:21] Production.INFO: ==28676== Releasing lock... [2025-01-17 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:52:04 [end_date_ymd] => 2025-01-17 05:52:04 [RateCDR] => 1 ) [2025-01-17 05:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:52:04' and `end` < '2025-01-17 05:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:52:17] Production.INFO: count ==59 [2025-01-17 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:52:04 - End Time 2025-01-17 05:52:04 [2025-01-17 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266278', 'tblTempUsageDetail_20' ) start [2025-01-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266278', 'tblTempUsageDetail_20' ) end [2025-01-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266278', 'tblTempVendorCDR_20' ) start [2025-01-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266278', 'tblTempVendorCDR_20' ) end [2025-01-17 05:52:17] Production.INFO: ProcessCDR(1,14266278,1,1,2) [2025-01-17 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266278', 'tblTempUsageDetail_20' ) start [2025-01-17 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266278', 'tblTempUsageDetail_20' ) end [2025-01-17 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:52:21] Production.INFO: ==28746== Releasing lock... [2025-01-17 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:53:05 [end_date_ymd] => 2025-01-17 05:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:53:05' and `end` < '2025-01-17 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-17 05:53:17] Production.INFO: count ==59 [2025-01-17 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:53:05 - End Time 2025-01-17 05:53:05 [2025-01-17 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266283', 'tblTempUsageDetail_20' ) start [2025-01-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266283', 'tblTempUsageDetail_20' ) end [2025-01-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266283', 'tblTempVendorCDR_20' ) start [2025-01-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266283', 'tblTempVendorCDR_20' ) end [2025-01-17 05:53:17] Production.INFO: ProcessCDR(1,14266283,1,1,2) [2025-01-17 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266283', 'tblTempUsageDetail_20' ) start [2025-01-17 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266283', 'tblTempUsageDetail_20' ) end [2025-01-17 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:53:20] Production.INFO: ==28856== Releasing lock... [2025-01-17 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:54:04 [end_date_ymd] => 2025-01-17 05:54:04 [RateCDR] => 1 ) [2025-01-17 05:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:54:04' and `end` < '2025-01-17 05:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:54:17] Production.INFO: count ==59 [2025-01-17 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:54:04 - End Time 2025-01-17 05:54:04 [2025-01-17 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266288', 'tblTempUsageDetail_20' ) start [2025-01-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266288', 'tblTempUsageDetail_20' ) end [2025-01-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266288', 'tblTempVendorCDR_20' ) start [2025-01-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266288', 'tblTempVendorCDR_20' ) end [2025-01-17 05:54:17] Production.INFO: ProcessCDR(1,14266288,1,1,2) [2025-01-17 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266288', 'tblTempUsageDetail_20' ) start [2025-01-17 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266288', 'tblTempUsageDetail_20' ) end [2025-01-17 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:54:20] Production.INFO: ==28934== Releasing lock... [2025-01-17 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:54:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:55:05 [end_date_ymd] => 2025-01-17 05:55:05 [RateCDR] => 1 ) [2025-01-17 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:55:05' and `end` < '2025-01-17 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:55:17] Production.INFO: count ==59 [2025-01-17 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:55:05 - End Time 2025-01-17 05:55:05 [2025-01-17 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266293', 'tblTempUsageDetail_20' ) start [2025-01-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266293', 'tblTempUsageDetail_20' ) end [2025-01-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266293', 'tblTempVendorCDR_20' ) start [2025-01-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266293', 'tblTempVendorCDR_20' ) end [2025-01-17 05:55:17] Production.INFO: ProcessCDR(1,14266293,1,1,2) [2025-01-17 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266293', 'tblTempUsageDetail_20' ) start [2025-01-17 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266293', 'tblTempUsageDetail_20' ) end [2025-01-17 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:55:20] Production.INFO: ==29012== Releasing lock... [2025-01-17 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:56:05 [end_date_ymd] => 2025-01-17 05:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:56:05' and `end` < '2025-01-17 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-17 05:56:17] Production.INFO: count ==59 [2025-01-17 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:56:05 - End Time 2025-01-17 05:56:05 [2025-01-17 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266298', 'tblTempUsageDetail_20' ) start [2025-01-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266298', 'tblTempUsageDetail_20' ) end [2025-01-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266298', 'tblTempVendorCDR_20' ) start [2025-01-17 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266298', 'tblTempVendorCDR_20' ) end [2025-01-17 05:56:17] Production.INFO: ProcessCDR(1,14266298,1,1,2) [2025-01-17 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266298', 'tblTempUsageDetail_20' ) start [2025-01-17 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266298', 'tblTempUsageDetail_20' ) end [2025-01-17 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:56:21] Production.INFO: ==29082== Releasing lock... [2025-01-17 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:57:05 [end_date_ymd] => 2025-01-17 05:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 02:57:05' and `end` < '2025-01-17 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-17 05:57:17] Production.INFO: count ==55 [2025-01-17 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:57:05 - End Time 2025-01-17 05:57:05 [2025-01-17 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266303', 'tblTempUsageDetail_20' ) start [2025-01-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266303', 'tblTempUsageDetail_20' ) end [2025-01-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266303', 'tblTempVendorCDR_20' ) start [2025-01-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266303', 'tblTempVendorCDR_20' ) end [2025-01-17 05:57:17] Production.INFO: ProcessCDR(1,14266303,1,1,2) [2025-01-17 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266303', 'tblTempUsageDetail_20' ) start [2025-01-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266303', 'tblTempUsageDetail_20' ) end [2025-01-17 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:57:20] Production.INFO: ==29156== Releasing lock... [2025-01-17 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:58:05 [end_date_ymd] => 2025-01-17 05:58:05 [RateCDR] => 1 ) [2025-01-17 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:58:05' and `end` < '2025-01-17 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:58:17] Production.INFO: count ==55 [2025-01-17 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:58:05 - End Time 2025-01-17 05:58:05 [2025-01-17 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266308', 'tblTempUsageDetail_20' ) start [2025-01-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266308', 'tblTempUsageDetail_20' ) end [2025-01-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266308', 'tblTempVendorCDR_20' ) start [2025-01-17 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266308', 'tblTempVendorCDR_20' ) end [2025-01-17 05:58:17] Production.INFO: ProcessCDR(1,14266308,1,1,2) [2025-01-17 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266308', 'tblTempUsageDetail_20' ) start [2025-01-17 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266308', 'tblTempUsageDetail_20' ) end [2025-01-17 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:58:21] Production.INFO: ==29233== Releasing lock... [2025-01-17 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 02:59:04 [end_date_ymd] => 2025-01-17 05:59:04 [RateCDR] => 1 ) [2025-01-17 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 02:59:04' and `end` < '2025-01-17 05:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 05:59:17] Production.INFO: count ==55 [2025-01-17 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-17 02:59:04 - End Time 2025-01-17 05:59:04 [2025-01-17 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266313', 'tblTempUsageDetail_20' ) start [2025-01-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266313', 'tblTempUsageDetail_20' ) end [2025-01-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266313', 'tblTempVendorCDR_20' ) start [2025-01-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266313', 'tblTempVendorCDR_20' ) end [2025-01-17 05:59:17] Production.INFO: ProcessCDR(1,14266313,1,1,2) [2025-01-17 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266313', 'tblTempUsageDetail_20' ) start [2025-01-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266313', 'tblTempUsageDetail_20' ) end [2025-01-17 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 05:59:20] Production.INFO: ==29301== Releasing lock... [2025-01-17 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 05:59:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:00:06 [end_date_ymd] => 2025-01-17 06:00:06 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:00:06' and `end` < '2025-01-17 06: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-17 06:00:18] Production.INFO: count ==53 [2025-01-17 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:00:06 - End Time 2025-01-17 06:00:06 [2025-01-17 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266318', 'tblTempUsageDetail_20' ) start [2025-01-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266318', 'tblTempUsageDetail_20' ) end [2025-01-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266318', 'tblTempVendorCDR_20' ) start [2025-01-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266318', 'tblTempVendorCDR_20' ) end [2025-01-17 06:00:18] Production.INFO: ProcessCDR(1,14266318,1,1,2) [2025-01-17 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266318', 'tblTempUsageDetail_20' ) start [2025-01-17 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266318', 'tblTempUsageDetail_20' ) end [2025-01-17 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:00:21] Production.INFO: ==29376== Releasing lock... [2025-01-17 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:01:04 [end_date_ymd] => 2025-01-17 06:01:04 [RateCDR] => 1 ) [2025-01-17 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:01:04' and `end` < '2025-01-17 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:01:17] Production.INFO: count ==53 [2025-01-17 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:01:04 - End Time 2025-01-17 06:01:04 [2025-01-17 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266324', 'tblTempUsageDetail_20' ) start [2025-01-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266324', 'tblTempUsageDetail_20' ) end [2025-01-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266324', 'tblTempVendorCDR_20' ) start [2025-01-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266324', 'tblTempVendorCDR_20' ) end [2025-01-17 06:01:17] Production.INFO: ProcessCDR(1,14266324,1,1,2) [2025-01-17 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266324', 'tblTempUsageDetail_20' ) start [2025-01-17 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266324', 'tblTempUsageDetail_20' ) end [2025-01-17 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:01:20] Production.INFO: ==29459== Releasing lock... [2025-01-17 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:02:05 [end_date_ymd] => 2025-01-17 06:02:05 [RateCDR] => 1 ) [2025-01-17 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:02:05' and `end` < '2025-01-17 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:02:17] Production.INFO: count ==53 [2025-01-17 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:02:05 - End Time 2025-01-17 06:02:05 [2025-01-17 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266329', 'tblTempUsageDetail_20' ) start [2025-01-17 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266329', 'tblTempUsageDetail_20' ) end [2025-01-17 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266329', 'tblTempVendorCDR_20' ) start [2025-01-17 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266329', 'tblTempVendorCDR_20' ) end [2025-01-17 06:02:17] Production.INFO: ProcessCDR(1,14266329,1,1,2) [2025-01-17 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266329', 'tblTempUsageDetail_20' ) start [2025-01-17 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266329', 'tblTempUsageDetail_20' ) end [2025-01-17 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:02:21] Production.INFO: ==29531== Releasing lock... [2025-01-17 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:03:05 [end_date_ymd] => 2025-01-17 06:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:03:05' and `end` < '2025-01-17 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-17 06:03:17] Production.INFO: count ==53 [2025-01-17 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:03:05 - End Time 2025-01-17 06:03:05 [2025-01-17 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266334', 'tblTempUsageDetail_20' ) start [2025-01-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266334', 'tblTempUsageDetail_20' ) end [2025-01-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266334', 'tblTempVendorCDR_20' ) start [2025-01-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266334', 'tblTempVendorCDR_20' ) end [2025-01-17 06:03:17] Production.INFO: ProcessCDR(1,14266334,1,1,2) [2025-01-17 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266334', 'tblTempUsageDetail_20' ) start [2025-01-17 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266334', 'tblTempUsageDetail_20' ) end [2025-01-17 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:03:20] Production.INFO: ==29601== Releasing lock... [2025-01-17 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:03:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:04:05 [end_date_ymd] => 2025-01-17 06:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:04:05' and `end` < '2025-01-17 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-17 06:04:17] Production.INFO: count ==53 [2025-01-17 06:04:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:04:05 - End Time 2025-01-17 06:04:05 [2025-01-17 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266339', 'tblTempUsageDetail_20' ) start [2025-01-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266339', 'tblTempUsageDetail_20' ) end [2025-01-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266339', 'tblTempVendorCDR_20' ) start [2025-01-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266339', 'tblTempVendorCDR_20' ) end [2025-01-17 06:04:17] Production.INFO: ProcessCDR(1,14266339,1,1,2) [2025-01-17 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266339', 'tblTempUsageDetail_20' ) start [2025-01-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266339', 'tblTempUsageDetail_20' ) end [2025-01-17 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:04:21] Production.INFO: ==29671== Releasing lock... [2025-01-17 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:05:05 [end_date_ymd] => 2025-01-17 06:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:05:05' and `end` < '2025-01-17 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-17 06:05:18] Production.INFO: count ==53 [2025-01-17 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:05:05 - End Time 2025-01-17 06:05:05 [2025-01-17 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266344', 'tblTempUsageDetail_20' ) start [2025-01-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266344', 'tblTempUsageDetail_20' ) end [2025-01-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266344', 'tblTempVendorCDR_20' ) start [2025-01-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266344', 'tblTempVendorCDR_20' ) end [2025-01-17 06:05:18] Production.INFO: ProcessCDR(1,14266344,1,1,2) [2025-01-17 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266344', 'tblTempUsageDetail_20' ) start [2025-01-17 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266344', 'tblTempUsageDetail_20' ) end [2025-01-17 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:05:21] Production.INFO: ==29744== Releasing lock... [2025-01-17 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:06:05 [end_date_ymd] => 2025-01-17 06:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:06:05' and `end` < '2025-01-17 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-17 06:06:17] Production.INFO: count ==53 [2025-01-17 06:06:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:06:05 - End Time 2025-01-17 06:06:05 [2025-01-17 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266349', 'tblTempUsageDetail_20' ) start [2025-01-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266349', 'tblTempUsageDetail_20' ) end [2025-01-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266349', 'tblTempVendorCDR_20' ) start [2025-01-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266349', 'tblTempVendorCDR_20' ) end [2025-01-17 06:06:17] Production.INFO: ProcessCDR(1,14266349,1,1,2) [2025-01-17 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266349', 'tblTempUsageDetail_20' ) start [2025-01-17 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266349', 'tblTempUsageDetail_20' ) end [2025-01-17 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:06:20] Production.INFO: ==29815== Releasing lock... [2025-01-17 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:06:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:07:05 [end_date_ymd] => 2025-01-17 06:07:05 [RateCDR] => 1 ) [2025-01-17 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:07:05' and `end` < '2025-01-17 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:07:17] Production.INFO: count ==53 [2025-01-17 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:07:05 - End Time 2025-01-17 06:07:05 [2025-01-17 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266354', 'tblTempUsageDetail_20' ) start [2025-01-17 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266354', 'tblTempUsageDetail_20' ) end [2025-01-17 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266354', 'tblTempVendorCDR_20' ) start [2025-01-17 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266354', 'tblTempVendorCDR_20' ) end [2025-01-17 06:07:17] Production.INFO: ProcessCDR(1,14266354,1,1,2) [2025-01-17 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266354', 'tblTempUsageDetail_20' ) start [2025-01-17 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266354', 'tblTempUsageDetail_20' ) end [2025-01-17 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:07:20] Production.INFO: ==29889== Releasing lock... [2025-01-17 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:08:05 [end_date_ymd] => 2025-01-17 06:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:08:05' and `end` < '2025-01-17 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-17 06:08:17] Production.INFO: count ==53 [2025-01-17 06:08:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:08:05 - End Time 2025-01-17 06:08:05 [2025-01-17 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266359', 'tblTempUsageDetail_20' ) start [2025-01-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266359', 'tblTempUsageDetail_20' ) end [2025-01-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266359', 'tblTempVendorCDR_20' ) start [2025-01-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266359', 'tblTempVendorCDR_20' ) end [2025-01-17 06:08:17] Production.INFO: ProcessCDR(1,14266359,1,1,2) [2025-01-17 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266359', 'tblTempUsageDetail_20' ) start [2025-01-17 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266359', 'tblTempUsageDetail_20' ) end [2025-01-17 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:08:20] Production.INFO: ==30000== Releasing lock... [2025-01-17 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:08:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:09:05 [end_date_ymd] => 2025-01-17 06:09:05 [RateCDR] => 1 ) [2025-01-17 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:09:05' and `end` < '2025-01-17 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:09:17] Production.INFO: count ==53 [2025-01-17 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:09:05 - End Time 2025-01-17 06:09:05 [2025-01-17 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266364', 'tblTempUsageDetail_20' ) start [2025-01-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266364', 'tblTempUsageDetail_20' ) end [2025-01-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266364', 'tblTempVendorCDR_20' ) start [2025-01-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266364', 'tblTempVendorCDR_20' ) end [2025-01-17 06:09:17] Production.INFO: ProcessCDR(1,14266364,1,1,2) [2025-01-17 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266364', 'tblTempUsageDetail_20' ) start [2025-01-17 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266364', 'tblTempUsageDetail_20' ) end [2025-01-17 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:09:20] Production.INFO: ==30078== Releasing lock... [2025-01-17 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:09:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:10:06 [end_date_ymd] => 2025-01-17 06:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 03:10:06' and `end` < '2025-01-17 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-17 06:10:18] Production.INFO: count ==57 [2025-01-17 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:10:06 - End Time 2025-01-17 06:10:06 [2025-01-17 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266370', 'tblTempUsageDetail_20' ) start [2025-01-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266370', 'tblTempUsageDetail_20' ) end [2025-01-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266370', 'tblTempVendorCDR_20' ) start [2025-01-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266370', 'tblTempVendorCDR_20' ) end [2025-01-17 06:10:18] Production.INFO: ProcessCDR(1,14266370,1,1,2) [2025-01-17 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266370', 'tblTempUsageDetail_20' ) start [2025-01-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266370', 'tblTempUsageDetail_20' ) end [2025-01-17 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:10:22] Production.INFO: ==30168== Releasing lock... [2025-01-17 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:11:05 [end_date_ymd] => 2025-01-17 06:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:11:05' and `end` < '2025-01-17 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-17 06:11:17] Production.INFO: count ==59 [2025-01-17 06:11:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:11:05 - End Time 2025-01-17 06:11:05 [2025-01-17 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266375', 'tblTempUsageDetail_20' ) start [2025-01-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266375', 'tblTempUsageDetail_20' ) end [2025-01-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266375', 'tblTempVendorCDR_20' ) start [2025-01-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266375', 'tblTempVendorCDR_20' ) end [2025-01-17 06:11:17] Production.INFO: ProcessCDR(1,14266375,1,1,2) [2025-01-17 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266375', 'tblTempUsageDetail_20' ) start [2025-01-17 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266375', 'tblTempUsageDetail_20' ) end [2025-01-17 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:11:20] Production.INFO: ==30264== Releasing lock... [2025-01-17 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:11:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:12:04 [end_date_ymd] => 2025-01-17 06:12:04 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:12:04' and `end` < '2025-01-17 06: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-17 06:12:17] Production.INFO: count ==59 [2025-01-17 06:12:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:12:04 - End Time 2025-01-17 06:12:04 [2025-01-17 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266380', 'tblTempUsageDetail_20' ) start [2025-01-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266380', 'tblTempUsageDetail_20' ) end [2025-01-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266380', 'tblTempVendorCDR_20' ) start [2025-01-17 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266380', 'tblTempVendorCDR_20' ) end [2025-01-17 06:12:17] Production.INFO: ProcessCDR(1,14266380,1,1,2) [2025-01-17 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266380', 'tblTempUsageDetail_20' ) start [2025-01-17 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266380', 'tblTempUsageDetail_20' ) end [2025-01-17 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:12:20] Production.INFO: ==30358== Releasing lock... [2025-01-17 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:12:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:13:05 [end_date_ymd] => 2025-01-17 06:13:05 [RateCDR] => 1 ) [2025-01-17 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:13:05' and `end` < '2025-01-17 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:13:17] Production.INFO: count ==59 [2025-01-17 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:13:05 - End Time 2025-01-17 06:13:05 [2025-01-17 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266385', 'tblTempUsageDetail_20' ) start [2025-01-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266385', 'tblTempUsageDetail_20' ) end [2025-01-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266385', 'tblTempVendorCDR_20' ) start [2025-01-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266385', 'tblTempVendorCDR_20' ) end [2025-01-17 06:13:17] Production.INFO: ProcessCDR(1,14266385,1,1,2) [2025-01-17 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266385', 'tblTempUsageDetail_20' ) start [2025-01-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266385', 'tblTempUsageDetail_20' ) end [2025-01-17 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:13:21] Production.INFO: ==30454== Releasing lock... [2025-01-17 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:14:05 [end_date_ymd] => 2025-01-17 06:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:14:05' and `end` < '2025-01-17 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-17 06:14:17] Production.INFO: count ==59 [2025-01-17 06:14:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:14:05 - End Time 2025-01-17 06:14:05 [2025-01-17 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266390', 'tblTempUsageDetail_20' ) start [2025-01-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266390', 'tblTempUsageDetail_20' ) end [2025-01-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266390', 'tblTempVendorCDR_20' ) start [2025-01-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266390', 'tblTempVendorCDR_20' ) end [2025-01-17 06:14:17] Production.INFO: ProcessCDR(1,14266390,1,1,2) [2025-01-17 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266390', 'tblTempUsageDetail_20' ) start [2025-01-17 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266390', 'tblTempUsageDetail_20' ) end [2025-01-17 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:14:21] Production.INFO: ==30549== Releasing lock... [2025-01-17 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:15:05 [end_date_ymd] => 2025-01-17 06:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:15:05' and `end` < '2025-01-17 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-17 06:15:17] Production.INFO: count ==59 [2025-01-17 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:15:05 - End Time 2025-01-17 06:15:05 [2025-01-17 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266395', 'tblTempUsageDetail_20' ) start [2025-01-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266395', 'tblTempUsageDetail_20' ) end [2025-01-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266395', 'tblTempVendorCDR_20' ) start [2025-01-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266395', 'tblTempVendorCDR_20' ) end [2025-01-17 06:15:17] Production.INFO: ProcessCDR(1,14266395,1,1,2) [2025-01-17 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266395', 'tblTempUsageDetail_20' ) start [2025-01-17 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266395', 'tblTempUsageDetail_20' ) end [2025-01-17 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:15:20] Production.INFO: ==30641== Releasing lock... [2025-01-17 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:15:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:16:05 [end_date_ymd] => 2025-01-17 06:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:16:05' and `end` < '2025-01-17 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-17 06:16:17] Production.INFO: count ==59 [2025-01-17 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:16:05 - End Time 2025-01-17 06:16:05 [2025-01-17 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266400', 'tblTempUsageDetail_20' ) start [2025-01-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266400', 'tblTempUsageDetail_20' ) end [2025-01-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266400', 'tblTempVendorCDR_20' ) start [2025-01-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266400', 'tblTempVendorCDR_20' ) end [2025-01-17 06:16:17] Production.INFO: ProcessCDR(1,14266400,1,1,2) [2025-01-17 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266400', 'tblTempUsageDetail_20' ) start [2025-01-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266400', 'tblTempUsageDetail_20' ) end [2025-01-17 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:16:21] Production.INFO: ==30731== Releasing lock... [2025-01-17 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:17:04 [end_date_ymd] => 2025-01-17 06:17:04 [RateCDR] => 1 ) [2025-01-17 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:17:04' and `end` < '2025-01-17 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:17:17] Production.INFO: count ==59 [2025-01-17 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:17:04 - End Time 2025-01-17 06:17:04 [2025-01-17 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266405', 'tblTempUsageDetail_20' ) start [2025-01-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266405', 'tblTempUsageDetail_20' ) end [2025-01-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266405', 'tblTempVendorCDR_20' ) start [2025-01-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266405', 'tblTempVendorCDR_20' ) end [2025-01-17 06:17:17] Production.INFO: ProcessCDR(1,14266405,1,1,2) [2025-01-17 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266405', 'tblTempUsageDetail_20' ) start [2025-01-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266405', 'tblTempUsageDetail_20' ) end [2025-01-17 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:17:20] Production.INFO: ==30821== Releasing lock... [2025-01-17 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:18:05 [end_date_ymd] => 2025-01-17 06:18:05 [RateCDR] => 1 ) [2025-01-17 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:18:05' and `end` < '2025-01-17 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:18:18] Production.INFO: count ==59 [2025-01-17 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:18:05 - End Time 2025-01-17 06:18:05 [2025-01-17 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266410', 'tblTempUsageDetail_20' ) start [2025-01-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266410', 'tblTempUsageDetail_20' ) end [2025-01-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266410', 'tblTempVendorCDR_20' ) start [2025-01-17 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266410', 'tblTempVendorCDR_20' ) end [2025-01-17 06:18:18] Production.INFO: ProcessCDR(1,14266410,1,1,2) [2025-01-17 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266410', 'tblTempUsageDetail_20' ) start [2025-01-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266410', 'tblTempUsageDetail_20' ) end [2025-01-17 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:18:21] Production.INFO: ==30915== Releasing lock... [2025-01-17 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:19:05 [end_date_ymd] => 2025-01-17 06:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:19:05' and `end` < '2025-01-17 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-17 06:19:17] Production.INFO: count ==59 [2025-01-17 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:19:05 - End Time 2025-01-17 06:19:05 [2025-01-17 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266415', 'tblTempUsageDetail_20' ) start [2025-01-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266415', 'tblTempUsageDetail_20' ) end [2025-01-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266415', 'tblTempVendorCDR_20' ) start [2025-01-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266415', 'tblTempVendorCDR_20' ) end [2025-01-17 06:19:17] Production.INFO: ProcessCDR(1,14266415,1,1,2) [2025-01-17 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266415', 'tblTempUsageDetail_20' ) start [2025-01-17 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266415', 'tblTempUsageDetail_20' ) end [2025-01-17 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:19:21] Production.INFO: ==31006== Releasing lock... [2025-01-17 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:20:05 [end_date_ymd] => 2025-01-17 06:20:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:20:05' and `end` < '2025-01-17 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-17 06:20:18] Production.INFO: count ==59 [2025-01-17 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:20:05 - End Time 2025-01-17 06:20:05 [2025-01-17 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266421', 'tblTempUsageDetail_20' ) start [2025-01-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266421', 'tblTempUsageDetail_20' ) end [2025-01-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266421', 'tblTempVendorCDR_20' ) start [2025-01-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266421', 'tblTempVendorCDR_20' ) end [2025-01-17 06:20:18] Production.INFO: ProcessCDR(1,14266421,1,1,2) [2025-01-17 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266421', 'tblTempUsageDetail_20' ) start [2025-01-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266421', 'tblTempUsageDetail_20' ) end [2025-01-17 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:20:21] Production.INFO: ==31100== Releasing lock... [2025-01-17 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:21:05 [end_date_ymd] => 2025-01-17 06:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:21:05' and `end` < '2025-01-17 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-17 06:21:17] Production.INFO: count ==59 [2025-01-17 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:21:05 - End Time 2025-01-17 06:21:05 [2025-01-17 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266426', 'tblTempUsageDetail_20' ) start [2025-01-17 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266426', 'tblTempUsageDetail_20' ) end [2025-01-17 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266426', 'tblTempVendorCDR_20' ) start [2025-01-17 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266426', 'tblTempVendorCDR_20' ) end [2025-01-17 06:21:17] Production.INFO: ProcessCDR(1,14266426,1,1,2) [2025-01-17 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266426', 'tblTempUsageDetail_20' ) start [2025-01-17 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266426', 'tblTempUsageDetail_20' ) end [2025-01-17 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:21:20] Production.INFO: ==31191== Releasing lock... [2025-01-17 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:21:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:22:05 [end_date_ymd] => 2025-01-17 06:22:05 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:22:05' and `end` < '2025-01-17 06: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-17 06:22:17] Production.INFO: count ==59 [2025-01-17 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:22:05 - End Time 2025-01-17 06:22:05 [2025-01-17 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266431', 'tblTempUsageDetail_20' ) start [2025-01-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266431', 'tblTempUsageDetail_20' ) end [2025-01-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266431', 'tblTempVendorCDR_20' ) start [2025-01-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266431', 'tblTempVendorCDR_20' ) end [2025-01-17 06:22:17] Production.INFO: ProcessCDR(1,14266431,1,1,2) [2025-01-17 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266431', 'tblTempUsageDetail_20' ) start [2025-01-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266431', 'tblTempUsageDetail_20' ) end [2025-01-17 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:22:21] Production.INFO: ==31281== Releasing lock... [2025-01-17 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:23:05 [end_date_ymd] => 2025-01-17 06:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:23:05' and `end` < '2025-01-17 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-17 06:23:18] Production.INFO: count ==59 [2025-01-17 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:23:05 - End Time 2025-01-17 06:23:05 [2025-01-17 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266436', 'tblTempUsageDetail_20' ) start [2025-01-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266436', 'tblTempUsageDetail_20' ) end [2025-01-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266436', 'tblTempVendorCDR_20' ) start [2025-01-17 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266436', 'tblTempVendorCDR_20' ) end [2025-01-17 06:23:18] Production.INFO: ProcessCDR(1,14266436,1,1,2) [2025-01-17 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266436', 'tblTempUsageDetail_20' ) start [2025-01-17 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266436', 'tblTempUsageDetail_20' ) end [2025-01-17 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:23:21] Production.INFO: ==31372== Releasing lock... [2025-01-17 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:24:05 [end_date_ymd] => 2025-01-17 06:24:05 [RateCDR] => 1 ) [2025-01-17 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:24:05' and `end` < '2025-01-17 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:24:17] Production.INFO: count ==59 [2025-01-17 06:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:24:05 - End Time 2025-01-17 06:24:05 [2025-01-17 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266441', 'tblTempUsageDetail_20' ) start [2025-01-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266441', 'tblTempUsageDetail_20' ) end [2025-01-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266441', 'tblTempVendorCDR_20' ) start [2025-01-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266441', 'tblTempVendorCDR_20' ) end [2025-01-17 06:24:17] Production.INFO: ProcessCDR(1,14266441,1,1,2) [2025-01-17 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266441', 'tblTempUsageDetail_20' ) start [2025-01-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266441', 'tblTempUsageDetail_20' ) end [2025-01-17 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:24:20] Production.INFO: ==31504== Releasing lock... [2025-01-17 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:24:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:25:05 [end_date_ymd] => 2025-01-17 06:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:25:05' and `end` < '2025-01-17 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-17 06:25:18] Production.INFO: count ==59 [2025-01-17 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:25:05 - End Time 2025-01-17 06:25:05 [2025-01-17 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266446', 'tblTempUsageDetail_20' ) start [2025-01-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266446', 'tblTempUsageDetail_20' ) end [2025-01-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266446', 'tblTempVendorCDR_20' ) start [2025-01-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266446', 'tblTempVendorCDR_20' ) end [2025-01-17 06:25:18] Production.INFO: ProcessCDR(1,14266446,1,1,2) [2025-01-17 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266446', 'tblTempUsageDetail_20' ) start [2025-01-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266446', 'tblTempUsageDetail_20' ) end [2025-01-17 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:25:21] Production.INFO: ==31594== Releasing lock... [2025-01-17 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:26:05 [end_date_ymd] => 2025-01-17 06:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:26:05' and `end` < '2025-01-17 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-17 06:26:18] Production.INFO: count ==58 [2025-01-17 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:26:05 - End Time 2025-01-17 06:26:05 [2025-01-17 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266451', 'tblTempUsageDetail_20' ) start [2025-01-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266451', 'tblTempUsageDetail_20' ) end [2025-01-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266451', 'tblTempVendorCDR_20' ) start [2025-01-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266451', 'tblTempVendorCDR_20' ) end [2025-01-17 06:26:18] Production.INFO: ProcessCDR(1,14266451,1,1,2) [2025-01-17 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266451', 'tblTempUsageDetail_20' ) start [2025-01-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266451', 'tblTempUsageDetail_20' ) end [2025-01-17 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:26:21] Production.INFO: ==31689== Releasing lock... [2025-01-17 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:27:05 [end_date_ymd] => 2025-01-17 06:27:05 [RateCDR] => 1 ) [2025-01-17 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:27:05' and `end` < '2025-01-17 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:27:17] Production.INFO: count ==58 [2025-01-17 06:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:27:05 - End Time 2025-01-17 06:27:05 [2025-01-17 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266456', 'tblTempUsageDetail_20' ) start [2025-01-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266456', 'tblTempUsageDetail_20' ) end [2025-01-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266456', 'tblTempVendorCDR_20' ) start [2025-01-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266456', 'tblTempVendorCDR_20' ) end [2025-01-17 06:27:17] Production.INFO: ProcessCDR(1,14266456,1,1,2) [2025-01-17 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266456', 'tblTempUsageDetail_20' ) start [2025-01-17 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266456', 'tblTempUsageDetail_20' ) end [2025-01-17 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:27:20] Production.INFO: ==31778== Releasing lock... [2025-01-17 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:27:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:28:06 [end_date_ymd] => 2025-01-17 06:28:06 [RateCDR] => 1 ) [2025-01-17 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:28:06' and `end` < '2025-01-17 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:28:19] Production.INFO: count ==58 [2025-01-17 06:28:19] Production.ERROR: pbx CDR StartTime 2025-01-17 03:28:06 - End Time 2025-01-17 06:28:06 [2025-01-17 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266461', 'tblTempUsageDetail_20' ) start [2025-01-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266461', 'tblTempUsageDetail_20' ) end [2025-01-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266461', 'tblTempVendorCDR_20' ) start [2025-01-17 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266461', 'tblTempVendorCDR_20' ) end [2025-01-17 06:28:19] Production.INFO: ProcessCDR(1,14266461,1,1,2) [2025-01-17 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266461', 'tblTempUsageDetail_20' ) start [2025-01-17 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266461', 'tblTempUsageDetail_20' ) end [2025-01-17 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:28:22] Production.INFO: ==31872== Releasing lock... [2025-01-17 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:29:05 [end_date_ymd] => 2025-01-17 06:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:29:05' and `end` < '2025-01-17 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-17 06:29:18] Production.INFO: count ==59 [2025-01-17 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:29:05 - End Time 2025-01-17 06:29:05 [2025-01-17 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266466', 'tblTempUsageDetail_20' ) start [2025-01-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266466', 'tblTempUsageDetail_20' ) end [2025-01-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266466', 'tblTempVendorCDR_20' ) start [2025-01-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266466', 'tblTempVendorCDR_20' ) end [2025-01-17 06:29:18] Production.INFO: ProcessCDR(1,14266466,1,1,2) [2025-01-17 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266466', 'tblTempUsageDetail_20' ) start [2025-01-17 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266466', 'tblTempUsageDetail_20' ) end [2025-01-17 06:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:29:23] Production.INFO: ==31966== Releasing lock... [2025-01-17 06:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:29:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:30:06 [end_date_ymd] => 2025-01-17 06:30:06 [RateCDR] => 1 ) [2025-01-17 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:30:06' and `end` < '2025-01-17 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:30:18] Production.INFO: count ==61 [2025-01-17 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:30:06 - End Time 2025-01-17 06:30:06 [2025-01-17 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266472', 'tblTempUsageDetail_20' ) start [2025-01-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266472', 'tblTempUsageDetail_20' ) end [2025-01-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266472', 'tblTempVendorCDR_20' ) start [2025-01-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266472', 'tblTempVendorCDR_20' ) end [2025-01-17 06:30:18] Production.INFO: ProcessCDR(1,14266472,1,1,2) [2025-01-17 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266472', 'tblTempUsageDetail_20' ) start [2025-01-17 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266472', 'tblTempUsageDetail_20' ) end [2025-01-17 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:30:21] Production.INFO: ==32065== Releasing lock... [2025-01-17 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:31:05 [end_date_ymd] => 2025-01-17 06:31:05 [RateCDR] => 1 ) [2025-01-17 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:31:05' and `end` < '2025-01-17 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:31:17] Production.INFO: count ==62 [2025-01-17 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:31:05 - End Time 2025-01-17 06:31:05 [2025-01-17 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266477', 'tblTempUsageDetail_20' ) start [2025-01-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266477', 'tblTempUsageDetail_20' ) end [2025-01-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266477', 'tblTempVendorCDR_20' ) start [2025-01-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266477', 'tblTempVendorCDR_20' ) end [2025-01-17 06:31:17] Production.INFO: ProcessCDR(1,14266477,1,1,2) [2025-01-17 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266477', 'tblTempUsageDetail_20' ) start [2025-01-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266477', 'tblTempUsageDetail_20' ) end [2025-01-17 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:31:20] Production.INFO: ==32158== Releasing lock... [2025-01-17 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:31:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:32:05 [end_date_ymd] => 2025-01-17 06:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:32:05' and `end` < '2025-01-17 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-17 06:32:18] Production.INFO: count ==62 [2025-01-17 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:32:05 - End Time 2025-01-17 06:32:05 [2025-01-17 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266482', 'tblTempUsageDetail_20' ) start [2025-01-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266482', 'tblTempUsageDetail_20' ) end [2025-01-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266482', 'tblTempVendorCDR_20' ) start [2025-01-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266482', 'tblTempVendorCDR_20' ) end [2025-01-17 06:32:18] Production.INFO: ProcessCDR(1,14266482,1,1,2) [2025-01-17 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266482', 'tblTempUsageDetail_20' ) start [2025-01-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266482', 'tblTempUsageDetail_20' ) end [2025-01-17 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:32:22] Production.INFO: ==32248== Releasing lock... [2025-01-17 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:33:05 [end_date_ymd] => 2025-01-17 06:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:33:05' and `end` < '2025-01-17 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-17 06:33:17] Production.INFO: count ==62 [2025-01-17 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:33:05 - End Time 2025-01-17 06:33:05 [2025-01-17 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266487', 'tblTempUsageDetail_20' ) start [2025-01-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266487', 'tblTempUsageDetail_20' ) end [2025-01-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266487', 'tblTempVendorCDR_20' ) start [2025-01-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266487', 'tblTempVendorCDR_20' ) end [2025-01-17 06:33:17] Production.INFO: ProcessCDR(1,14266487,1,1,2) [2025-01-17 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266487', 'tblTempUsageDetail_20' ) start [2025-01-17 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266487', 'tblTempUsageDetail_20' ) end [2025-01-17 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:33:20] Production.INFO: ==32340== Releasing lock... [2025-01-17 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:33:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:34:05 [end_date_ymd] => 2025-01-17 06:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:34:05' and `end` < '2025-01-17 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-17 06:34:18] Production.INFO: count ==62 [2025-01-17 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:34:05 - End Time 2025-01-17 06:34:05 [2025-01-17 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266492', 'tblTempUsageDetail_20' ) start [2025-01-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266492', 'tblTempUsageDetail_20' ) end [2025-01-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266492', 'tblTempVendorCDR_20' ) start [2025-01-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266492', 'tblTempVendorCDR_20' ) end [2025-01-17 06:34:18] Production.INFO: ProcessCDR(1,14266492,1,1,2) [2025-01-17 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266492', 'tblTempUsageDetail_20' ) start [2025-01-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266492', 'tblTempUsageDetail_20' ) end [2025-01-17 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:34:21] Production.INFO: ==32429== Releasing lock... [2025-01-17 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:35:04 [end_date_ymd] => 2025-01-17 06:35:04 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:35:04' and `end` < '2025-01-17 06: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-17 06:35:17] Production.INFO: count ==62 [2025-01-17 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:35:04 - End Time 2025-01-17 06:35:04 [2025-01-17 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266497', 'tblTempUsageDetail_20' ) start [2025-01-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266497', 'tblTempUsageDetail_20' ) end [2025-01-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266497', 'tblTempVendorCDR_20' ) start [2025-01-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266497', 'tblTempVendorCDR_20' ) end [2025-01-17 06:35:17] Production.INFO: ProcessCDR(1,14266497,1,1,2) [2025-01-17 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266497', 'tblTempUsageDetail_20' ) start [2025-01-17 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266497', 'tblTempUsageDetail_20' ) end [2025-01-17 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:35:20] Production.INFO: ==32498== Releasing lock... [2025-01-17 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:36:05 [end_date_ymd] => 2025-01-17 06:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:36:05' and `end` < '2025-01-17 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-17 06:36:17] Production.INFO: count ==62 [2025-01-17 06:36:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:36:05 - End Time 2025-01-17 06:36:05 [2025-01-17 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266502', 'tblTempUsageDetail_20' ) start [2025-01-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266502', 'tblTempUsageDetail_20' ) end [2025-01-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266502', 'tblTempVendorCDR_20' ) start [2025-01-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266502', 'tblTempVendorCDR_20' ) end [2025-01-17 06:36:17] Production.INFO: ProcessCDR(1,14266502,1,1,2) [2025-01-17 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266502', 'tblTempUsageDetail_20' ) start [2025-01-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266502', 'tblTempUsageDetail_20' ) end [2025-01-17 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:36:20] Production.INFO: ==32570== Releasing lock... [2025-01-17 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:36:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:37:05 [end_date_ymd] => 2025-01-17 06:37:05 [RateCDR] => 1 ) [2025-01-17 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:37:05' and `end` < '2025-01-17 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:37:17] Production.INFO: count ==62 [2025-01-17 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:37:05 - End Time 2025-01-17 06:37:05 [2025-01-17 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266507', 'tblTempUsageDetail_20' ) start [2025-01-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266507', 'tblTempUsageDetail_20' ) end [2025-01-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266507', 'tblTempVendorCDR_20' ) start [2025-01-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266507', 'tblTempVendorCDR_20' ) end [2025-01-17 06:37:17] Production.INFO: ProcessCDR(1,14266507,1,1,2) [2025-01-17 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266507', 'tblTempUsageDetail_20' ) start [2025-01-17 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266507', 'tblTempUsageDetail_20' ) end [2025-01-17 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:37:21] Production.INFO: ==32647== Releasing lock... [2025-01-17 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:38:04 [end_date_ymd] => 2025-01-17 06:38:04 [RateCDR] => 1 ) [2025-01-17 06:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:38:04' and `end` < '2025-01-17 06:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:38:17] Production.INFO: count ==62 [2025-01-17 06:38:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:38:04 - End Time 2025-01-17 06:38:04 [2025-01-17 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266512', 'tblTempUsageDetail_20' ) start [2025-01-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266512', 'tblTempUsageDetail_20' ) end [2025-01-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266512', 'tblTempVendorCDR_20' ) start [2025-01-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266512', 'tblTempVendorCDR_20' ) end [2025-01-17 06:38:17] Production.INFO: ProcessCDR(1,14266512,1,1,2) [2025-01-17 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266512', 'tblTempUsageDetail_20' ) start [2025-01-17 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266512', 'tblTempUsageDetail_20' ) end [2025-01-17 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:38:20] Production.INFO: ==32726== Releasing lock... [2025-01-17 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:38:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:39:05 [end_date_ymd] => 2025-01-17 06:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:39:05' and `end` < '2025-01-17 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-17 06:39:18] Production.INFO: count ==62 [2025-01-17 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:39:05 - End Time 2025-01-17 06:39:05 [2025-01-17 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266517', 'tblTempUsageDetail_20' ) start [2025-01-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266517', 'tblTempUsageDetail_20' ) end [2025-01-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266517', 'tblTempVendorCDR_20' ) start [2025-01-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266517', 'tblTempVendorCDR_20' ) end [2025-01-17 06:39:18] Production.INFO: ProcessCDR(1,14266517,1,1,2) [2025-01-17 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266517', 'tblTempUsageDetail_20' ) start [2025-01-17 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266517', 'tblTempUsageDetail_20' ) end [2025-01-17 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:39:21] Production.INFO: ==393== Releasing lock... [2025-01-17 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:40:05 [end_date_ymd] => 2025-01-17 06:40:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:40:05' and `end` < '2025-01-17 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-17 06:40:17] Production.INFO: count ==62 [2025-01-17 06:40:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:40:05 - End Time 2025-01-17 06:40:05 [2025-01-17 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266523', 'tblTempUsageDetail_20' ) start [2025-01-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266523', 'tblTempUsageDetail_20' ) end [2025-01-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266523', 'tblTempVendorCDR_20' ) start [2025-01-17 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266523', 'tblTempVendorCDR_20' ) end [2025-01-17 06:40:17] Production.INFO: ProcessCDR(1,14266523,1,1,2) [2025-01-17 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266523', 'tblTempUsageDetail_20' ) start [2025-01-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266523', 'tblTempUsageDetail_20' ) end [2025-01-17 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:40:21] Production.INFO: ==487== Releasing lock... [2025-01-17 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:41:05 [end_date_ymd] => 2025-01-17 06:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:41:05' and `end` < '2025-01-17 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-17 06:41:18] Production.INFO: count ==62 [2025-01-17 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:41:05 - End Time 2025-01-17 06:41:05 [2025-01-17 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266528', 'tblTempUsageDetail_20' ) start [2025-01-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266528', 'tblTempUsageDetail_20' ) end [2025-01-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266528', 'tblTempVendorCDR_20' ) start [2025-01-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266528', 'tblTempVendorCDR_20' ) end [2025-01-17 06:41:18] Production.INFO: ProcessCDR(1,14266528,1,1,2) [2025-01-17 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266528', 'tblTempUsageDetail_20' ) start [2025-01-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266528', 'tblTempUsageDetail_20' ) end [2025-01-17 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:41:21] Production.INFO: ==600== Releasing lock... [2025-01-17 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:42:05 [end_date_ymd] => 2025-01-17 06:42:05 [RateCDR] => 1 ) [2025-01-17 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:42:05' and `end` < '2025-01-17 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:42:17] Production.INFO: count ==62 [2025-01-17 06:42:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:42:05 - End Time 2025-01-17 06:42:05 [2025-01-17 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266533', 'tblTempUsageDetail_20' ) start [2025-01-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266533', 'tblTempUsageDetail_20' ) end [2025-01-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266533', 'tblTempVendorCDR_20' ) start [2025-01-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266533', 'tblTempVendorCDR_20' ) end [2025-01-17 06:42:17] Production.INFO: ProcessCDR(1,14266533,1,1,2) [2025-01-17 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266533', 'tblTempUsageDetail_20' ) start [2025-01-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266533', 'tblTempUsageDetail_20' ) end [2025-01-17 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:42:20] Production.INFO: ==724== Releasing lock... [2025-01-17 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:42:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:43:05 [end_date_ymd] => 2025-01-17 06:43:05 [RateCDR] => 1 ) [2025-01-17 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:43:05' and `end` < '2025-01-17 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:43:18] Production.INFO: count ==62 [2025-01-17 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:43:05 - End Time 2025-01-17 06:43:05 [2025-01-17 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266538', 'tblTempUsageDetail_20' ) start [2025-01-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266538', 'tblTempUsageDetail_20' ) end [2025-01-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266538', 'tblTempVendorCDR_20' ) start [2025-01-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266538', 'tblTempVendorCDR_20' ) end [2025-01-17 06:43:18] Production.INFO: ProcessCDR(1,14266538,1,1,2) [2025-01-17 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266538', 'tblTempUsageDetail_20' ) start [2025-01-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266538', 'tblTempUsageDetail_20' ) end [2025-01-17 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:43:21] Production.INFO: ==826== Releasing lock... [2025-01-17 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:44:05 [end_date_ymd] => 2025-01-17 06:44:05 [RateCDR] => 1 ) [2025-01-17 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:44:05' and `end` < '2025-01-17 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:44:19] Production.INFO: count ==63 [2025-01-17 06:44:19] Production.ERROR: pbx CDR StartTime 2025-01-17 03:44:05 - End Time 2025-01-17 06:44:05 [2025-01-17 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266543', 'tblTempUsageDetail_20' ) start [2025-01-17 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266543', 'tblTempUsageDetail_20' ) end [2025-01-17 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266543', 'tblTempVendorCDR_20' ) start [2025-01-17 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266543', 'tblTempVendorCDR_20' ) end [2025-01-17 06:44:19] Production.INFO: ProcessCDR(1,14266543,1,1,2) [2025-01-17 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266543', 'tblTempUsageDetail_20' ) start [2025-01-17 06:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266543', 'tblTempUsageDetail_20' ) end [2025-01-17 06:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:44:24] Production.INFO: ==920== Releasing lock... [2025-01-17 06:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:44:24] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:45:05 [end_date_ymd] => 2025-01-17 06:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:45:05' and `end` < '2025-01-17 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-17 06:45:17] Production.INFO: count ==63 [2025-01-17 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:45:05 - End Time 2025-01-17 06:45:05 [2025-01-17 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266548', 'tblTempUsageDetail_20' ) start [2025-01-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266548', 'tblTempUsageDetail_20' ) end [2025-01-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266548', 'tblTempVendorCDR_20' ) start [2025-01-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266548', 'tblTempVendorCDR_20' ) end [2025-01-17 06:45:17] Production.INFO: ProcessCDR(1,14266548,1,1,2) [2025-01-17 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266548', 'tblTempUsageDetail_20' ) start [2025-01-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266548', 'tblTempUsageDetail_20' ) end [2025-01-17 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:45:20] Production.INFO: ==1001== Releasing lock... [2025-01-17 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:46:05 [end_date_ymd] => 2025-01-17 06:46:05 [RateCDR] => 1 ) [2025-01-17 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:46:05' and `end` < '2025-01-17 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:46:18] Production.INFO: count ==63 [2025-01-17 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:46:05 - End Time 2025-01-17 06:46:05 [2025-01-17 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266553', 'tblTempUsageDetail_20' ) start [2025-01-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266553', 'tblTempUsageDetail_20' ) end [2025-01-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266553', 'tblTempVendorCDR_20' ) start [2025-01-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266553', 'tblTempVendorCDR_20' ) end [2025-01-17 06:46:18] Production.INFO: ProcessCDR(1,14266553,1,1,2) [2025-01-17 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266553', 'tblTempUsageDetail_20' ) start [2025-01-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266553', 'tblTempUsageDetail_20' ) end [2025-01-17 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:46:21] Production.INFO: ==1079== Releasing lock... [2025-01-17 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:47:05 [end_date_ymd] => 2025-01-17 06:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:47:05' and `end` < '2025-01-17 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-17 06:47:17] Production.INFO: count ==63 [2025-01-17 06:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:47:05 - End Time 2025-01-17 06:47:05 [2025-01-17 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266558', 'tblTempUsageDetail_20' ) start [2025-01-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266558', 'tblTempUsageDetail_20' ) end [2025-01-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266558', 'tblTempVendorCDR_20' ) start [2025-01-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266558', 'tblTempVendorCDR_20' ) end [2025-01-17 06:47:17] Production.INFO: ProcessCDR(1,14266558,1,1,2) [2025-01-17 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266558', 'tblTempUsageDetail_20' ) start [2025-01-17 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266558', 'tblTempUsageDetail_20' ) end [2025-01-17 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:47:20] Production.INFO: ==1153== Releasing lock... [2025-01-17 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:48:05 [end_date_ymd] => 2025-01-17 06:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:48:05' and `end` < '2025-01-17 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-17 06:48:17] Production.INFO: count ==63 [2025-01-17 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:48:05 - End Time 2025-01-17 06:48:05 [2025-01-17 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266563', 'tblTempUsageDetail_20' ) start [2025-01-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266563', 'tblTempUsageDetail_20' ) end [2025-01-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266563', 'tblTempVendorCDR_20' ) start [2025-01-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266563', 'tblTempVendorCDR_20' ) end [2025-01-17 06:48:17] Production.INFO: ProcessCDR(1,14266563,1,1,2) [2025-01-17 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266563', 'tblTempUsageDetail_20' ) start [2025-01-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266563', 'tblTempUsageDetail_20' ) end [2025-01-17 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:48:20] Production.INFO: ==1228== Releasing lock... [2025-01-17 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:49:04 [end_date_ymd] => 2025-01-17 06:49:04 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:49:04' and `end` < '2025-01-17 06: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-17 06:49:16] Production.INFO: count ==63 [2025-01-17 06:49:16] Production.ERROR: pbx CDR StartTime 2025-01-17 03:49:04 - End Time 2025-01-17 06:49:04 [2025-01-17 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266568', 'tblTempUsageDetail_20' ) start [2025-01-17 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266568', 'tblTempUsageDetail_20' ) end [2025-01-17 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266568', 'tblTempVendorCDR_20' ) start [2025-01-17 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266568', 'tblTempVendorCDR_20' ) end [2025-01-17 06:49:16] Production.INFO: ProcessCDR(1,14266568,1,1,2) [2025-01-17 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266568', 'tblTempUsageDetail_20' ) start [2025-01-17 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266568', 'tblTempUsageDetail_20' ) end [2025-01-17 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:49:20] Production.INFO: ==1314== Releasing lock... [2025-01-17 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:50:05 [end_date_ymd] => 2025-01-17 06:50:05 [RateCDR] => 1 ) [2025-01-17 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:50:05' and `end` < '2025-01-17 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:50:17] Production.INFO: count ==67 [2025-01-17 06:50:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:50:05 - End Time 2025-01-17 06:50:05 [2025-01-17 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266573', 'tblTempUsageDetail_20' ) start [2025-01-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266573', 'tblTempUsageDetail_20' ) end [2025-01-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266573', 'tblTempVendorCDR_20' ) start [2025-01-17 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266573', 'tblTempVendorCDR_20' ) end [2025-01-17 06:50:17] Production.INFO: ProcessCDR(1,14266573,1,1,2) [2025-01-17 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266573', 'tblTempUsageDetail_20' ) start [2025-01-17 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266573', 'tblTempUsageDetail_20' ) end [2025-01-17 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:50:21] Production.INFO: ==1388== Releasing lock... [2025-01-17 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:51:06 [end_date_ymd] => 2025-01-17 06:51:06 [RateCDR] => 1 ) [2025-01-17 06: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-17 03:51:06' and `end` < '2025-01-17 06: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-17 06:51:18] Production.INFO: count ==67 [2025-01-17 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:51:06 - End Time 2025-01-17 06:51:06 [2025-01-17 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266579', 'tblTempUsageDetail_20' ) start [2025-01-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266579', 'tblTempUsageDetail_20' ) end [2025-01-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266579', 'tblTempVendorCDR_20' ) start [2025-01-17 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266579', 'tblTempVendorCDR_20' ) end [2025-01-17 06:51:18] Production.INFO: ProcessCDR(1,14266579,1,1,2) [2025-01-17 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266579', 'tblTempUsageDetail_20' ) start [2025-01-17 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266579', 'tblTempUsageDetail_20' ) end [2025-01-17 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:51:21] Production.INFO: ==1461== Releasing lock... [2025-01-17 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:52:04 [end_date_ymd] => 2025-01-17 06:52:04 [RateCDR] => 1 ) [2025-01-17 06:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:52:04' and `end` < '2025-01-17 06:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:52:17] Production.INFO: count ==67 [2025-01-17 06:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:52:04 - End Time 2025-01-17 06:52:04 [2025-01-17 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266584', 'tblTempUsageDetail_20' ) start [2025-01-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266584', 'tblTempUsageDetail_20' ) end [2025-01-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266584', 'tblTempVendorCDR_20' ) start [2025-01-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266584', 'tblTempVendorCDR_20' ) end [2025-01-17 06:52:17] Production.INFO: ProcessCDR(1,14266584,1,1,2) [2025-01-17 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266584', 'tblTempUsageDetail_20' ) start [2025-01-17 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266584', 'tblTempUsageDetail_20' ) end [2025-01-17 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:52:20] Production.INFO: ==1564== Releasing lock... [2025-01-17 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:52:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:53:05 [end_date_ymd] => 2025-01-17 06:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:53:05' and `end` < '2025-01-17 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-17 06:53:17] Production.INFO: count ==67 [2025-01-17 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:53:05 - End Time 2025-01-17 06:53:05 [2025-01-17 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266589', 'tblTempUsageDetail_20' ) start [2025-01-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266589', 'tblTempUsageDetail_20' ) end [2025-01-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266589', 'tblTempVendorCDR_20' ) start [2025-01-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266589', 'tblTempVendorCDR_20' ) end [2025-01-17 06:53:17] Production.INFO: ProcessCDR(1,14266589,1,1,2) [2025-01-17 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266589', 'tblTempUsageDetail_20' ) start [2025-01-17 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266589', 'tblTempUsageDetail_20' ) end [2025-01-17 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:53:21] Production.INFO: ==1638== Releasing lock... [2025-01-17 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:54:05 [end_date_ymd] => 2025-01-17 06:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:54:05' and `end` < '2025-01-17 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-17 06:54:17] Production.INFO: count ==67 [2025-01-17 06:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:54:05 - End Time 2025-01-17 06:54:05 [2025-01-17 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266594', 'tblTempUsageDetail_20' ) start [2025-01-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266594', 'tblTempUsageDetail_20' ) end [2025-01-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266594', 'tblTempVendorCDR_20' ) start [2025-01-17 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266594', 'tblTempVendorCDR_20' ) end [2025-01-17 06:54:17] Production.INFO: ProcessCDR(1,14266594,1,1,2) [2025-01-17 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266594', 'tblTempUsageDetail_20' ) start [2025-01-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266594', 'tblTempUsageDetail_20' ) end [2025-01-17 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:54:21] Production.INFO: ==1709== Releasing lock... [2025-01-17 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:55:05 [end_date_ymd] => 2025-01-17 06:55:05 [RateCDR] => 1 ) [2025-01-17 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:55:05' and `end` < '2025-01-17 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:55:17] Production.INFO: count ==67 [2025-01-17 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:55:05 - End Time 2025-01-17 06:55:05 [2025-01-17 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266599', 'tblTempUsageDetail_20' ) start [2025-01-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266599', 'tblTempUsageDetail_20' ) end [2025-01-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266599', 'tblTempVendorCDR_20' ) start [2025-01-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266599', 'tblTempVendorCDR_20' ) end [2025-01-17 06:55:17] Production.INFO: ProcessCDR(1,14266599,1,1,2) [2025-01-17 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266599', 'tblTempUsageDetail_20' ) start [2025-01-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266599', 'tblTempUsageDetail_20' ) end [2025-01-17 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:55:20] Production.INFO: ==1827== Releasing lock... [2025-01-17 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:56:04 [end_date_ymd] => 2025-01-17 06:56:04 [RateCDR] => 1 ) [2025-01-17 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:56:04' and `end` < '2025-01-17 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:56:17] Production.INFO: count ==67 [2025-01-17 06:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:56:04 - End Time 2025-01-17 06:56:04 [2025-01-17 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266603', 'tblTempUsageDetail_20' ) start [2025-01-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266603', 'tblTempUsageDetail_20' ) end [2025-01-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266603', 'tblTempVendorCDR_20' ) start [2025-01-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266603', 'tblTempVendorCDR_20' ) end [2025-01-17 06:56:17] Production.INFO: ProcessCDR(1,14266603,1,1,2) [2025-01-17 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266603', 'tblTempUsageDetail_20' ) start [2025-01-17 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266603', 'tblTempUsageDetail_20' ) end [2025-01-17 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:56:20] Production.INFO: ==1896== Releasing lock... [2025-01-17 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:56:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:57:05 [end_date_ymd] => 2025-01-17 06:57:05 [RateCDR] => 1 ) [2025-01-17 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:57:05' and `end` < '2025-01-17 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:57:18] Production.INFO: count ==67 [2025-01-17 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 03:57:05 - End Time 2025-01-17 06:57:05 [2025-01-17 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266609', 'tblTempUsageDetail_20' ) start [2025-01-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266609', 'tblTempUsageDetail_20' ) end [2025-01-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266609', 'tblTempVendorCDR_20' ) start [2025-01-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266609', 'tblTempVendorCDR_20' ) end [2025-01-17 06:57:18] Production.INFO: ProcessCDR(1,14266609,1,1,2) [2025-01-17 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266609', 'tblTempUsageDetail_20' ) start [2025-01-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266609', 'tblTempUsageDetail_20' ) end [2025-01-17 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:57:21] Production.INFO: ==1965== Releasing lock... [2025-01-17 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:58:04 [end_date_ymd] => 2025-01-17 06:58:04 [RateCDR] => 1 ) [2025-01-17 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 03:58:04' and `end` < '2025-01-17 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 06:58:16] Production.INFO: count ==67 [2025-01-17 06:58:16] Production.ERROR: pbx CDR StartTime 2025-01-17 03:58:04 - End Time 2025-01-17 06:58:04 [2025-01-17 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266614', 'tblTempUsageDetail_20' ) start [2025-01-17 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266614', 'tblTempUsageDetail_20' ) end [2025-01-17 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266614', 'tblTempVendorCDR_20' ) start [2025-01-17 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266614', 'tblTempVendorCDR_20' ) end [2025-01-17 06:58:16] Production.INFO: ProcessCDR(1,14266614,1,1,2) [2025-01-17 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266614', 'tblTempUsageDetail_20' ) start [2025-01-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266614', 'tblTempUsageDetail_20' ) end [2025-01-17 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:58:20] Production.INFO: ==2036== Releasing lock... [2025-01-17 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-17 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 03:59:05 [end_date_ymd] => 2025-01-17 06:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 03:59:05' and `end` < '2025-01-17 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-17 06:59:17] Production.INFO: count ==67 [2025-01-17 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-17 03:59:05 - End Time 2025-01-17 06:59:05 [2025-01-17 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266619', 'tblTempUsageDetail_20' ) start [2025-01-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266619', 'tblTempUsageDetail_20' ) end [2025-01-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266619', 'tblTempVendorCDR_20' ) start [2025-01-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266619', 'tblTempVendorCDR_20' ) end [2025-01-17 06:59:17] Production.INFO: ProcessCDR(1,14266619,1,1,2) [2025-01-17 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266619', 'tblTempUsageDetail_20' ) start [2025-01-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266619', 'tblTempUsageDetail_20' ) end [2025-01-17 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 06:59:21] Production.INFO: ==2108== Releasing lock... [2025-01-17 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:00:06 [end_date_ymd] => 2025-01-17 07:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 04:00:06' and `end` < '2025-01-17 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-17 07:00:18] Production.INFO: count ==69 [2025-01-17 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:00:06 - End Time 2025-01-17 07:00:06 [2025-01-17 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266624', 'tblTempUsageDetail_20' ) start [2025-01-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266624', 'tblTempUsageDetail_20' ) end [2025-01-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266624', 'tblTempVendorCDR_20' ) start [2025-01-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266624', 'tblTempVendorCDR_20' ) end [2025-01-17 07:00:18] Production.INFO: ProcessCDR(1,14266624,1,1,2) [2025-01-17 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266624', 'tblTempUsageDetail_20' ) start [2025-01-17 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266624', 'tblTempUsageDetail_20' ) end [2025-01-17 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:00:21] Production.INFO: ==2183== Releasing lock... [2025-01-17 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:01:05 [end_date_ymd] => 2025-01-17 07:01:05 [RateCDR] => 1 ) [2025-01-17 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:01:05' and `end` < '2025-01-17 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:01:33] Production.INFO: count ==69 [2025-01-17 07:01:33] Production.ERROR: pbx CDR StartTime 2025-01-17 04:01:05 - End Time 2025-01-17 07:01:05 [2025-01-17 07:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266630', 'tblTempUsageDetail_20' ) start [2025-01-17 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266630', 'tblTempUsageDetail_20' ) end [2025-01-17 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266630', 'tblTempVendorCDR_20' ) start [2025-01-17 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266630', 'tblTempVendorCDR_20' ) end [2025-01-17 07:01:33] Production.INFO: ProcessCDR(1,14266630,1,1,2) [2025-01-17 07:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266630', 'tblTempUsageDetail_20' ) start [2025-01-17 07:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266630', 'tblTempUsageDetail_20' ) end [2025-01-17 07:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:01:36] Production.INFO: ==2272== Releasing lock... [2025-01-17 07:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:01:36] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:02:05 [end_date_ymd] => 2025-01-17 07:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:02:05' and `end` < '2025-01-17 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-17 07:02:19] Production.INFO: count ==70 [2025-01-17 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:02:05 - End Time 2025-01-17 07:02:05 [2025-01-17 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266635', 'tblTempUsageDetail_20' ) start [2025-01-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266635', 'tblTempUsageDetail_20' ) end [2025-01-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266635', 'tblTempVendorCDR_20' ) start [2025-01-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266635', 'tblTempVendorCDR_20' ) end [2025-01-17 07:02:19] Production.INFO: ProcessCDR(1,14266635,1,1,2) [2025-01-17 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266635', 'tblTempUsageDetail_20' ) start [2025-01-17 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266635', 'tblTempUsageDetail_20' ) end [2025-01-17 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:02:24] Production.INFO: ==2421== Releasing lock... [2025-01-17 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:03:05 [end_date_ymd] => 2025-01-17 07:03:05 [RateCDR] => 1 ) [2025-01-17 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:03:05' and `end` < '2025-01-17 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:03:19] Production.INFO: count ==70 [2025-01-17 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:03:05 - End Time 2025-01-17 07:03:05 [2025-01-17 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266640', 'tblTempUsageDetail_20' ) start [2025-01-17 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266640', 'tblTempUsageDetail_20' ) end [2025-01-17 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266640', 'tblTempVendorCDR_20' ) start [2025-01-17 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266640', 'tblTempVendorCDR_20' ) end [2025-01-17 07:03:19] Production.INFO: ProcessCDR(1,14266640,1,1,2) [2025-01-17 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266640', 'tblTempUsageDetail_20' ) start [2025-01-17 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266640', 'tblTempUsageDetail_20' ) end [2025-01-17 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:03:22] Production.INFO: ==2491== Releasing lock... [2025-01-17 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:04:05 [end_date_ymd] => 2025-01-17 07:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:04:05' and `end` < '2025-01-17 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-17 07:04:19] Production.INFO: count ==70 [2025-01-17 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:04:05 - End Time 2025-01-17 07:04:05 [2025-01-17 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266645', 'tblTempUsageDetail_20' ) start [2025-01-17 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266645', 'tblTempUsageDetail_20' ) end [2025-01-17 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266645', 'tblTempVendorCDR_20' ) start [2025-01-17 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266645', 'tblTempVendorCDR_20' ) end [2025-01-17 07:04:19] Production.INFO: ProcessCDR(1,14266645,1,1,2) [2025-01-17 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266645', 'tblTempUsageDetail_20' ) start [2025-01-17 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266645', 'tblTempUsageDetail_20' ) end [2025-01-17 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:04:22] Production.INFO: ==2560== Releasing lock... [2025-01-17 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:05:06 [end_date_ymd] => 2025-01-17 07:05:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:05:06' and `end` < '2025-01-17 07: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-17 07:05:19] Production.INFO: count ==70 [2025-01-17 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:05:06 - End Time 2025-01-17 07:05:06 [2025-01-17 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266650', 'tblTempUsageDetail_20' ) start [2025-01-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266650', 'tblTempUsageDetail_20' ) end [2025-01-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266650', 'tblTempVendorCDR_20' ) start [2025-01-17 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266650', 'tblTempVendorCDR_20' ) end [2025-01-17 07:05:19] Production.INFO: ProcessCDR(1,14266650,1,1,2) [2025-01-17 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266650', 'tblTempUsageDetail_20' ) start [2025-01-17 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266650', 'tblTempUsageDetail_20' ) end [2025-01-17 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:05:22] Production.INFO: ==2709== Releasing lock... [2025-01-17 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:06:05 [end_date_ymd] => 2025-01-17 07:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:06:05' and `end` < '2025-01-17 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-17 07:06:19] Production.INFO: count ==70 [2025-01-17 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:06:05 - End Time 2025-01-17 07:06:05 [2025-01-17 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266655', 'tblTempUsageDetail_20' ) start [2025-01-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266655', 'tblTempUsageDetail_20' ) end [2025-01-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266655', 'tblTempVendorCDR_20' ) start [2025-01-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266655', 'tblTempVendorCDR_20' ) end [2025-01-17 07:06:19] Production.INFO: ProcessCDR(1,14266655,1,1,2) [2025-01-17 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266655', 'tblTempUsageDetail_20' ) start [2025-01-17 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266655', 'tblTempUsageDetail_20' ) end [2025-01-17 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:06:22] Production.INFO: ==2779== Releasing lock... [2025-01-17 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:07:05 [end_date_ymd] => 2025-01-17 07:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:07:05' and `end` < '2025-01-17 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-17 07:07:19] Production.INFO: count ==75 [2025-01-17 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:07:05 - End Time 2025-01-17 07:07:05 [2025-01-17 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266660', 'tblTempUsageDetail_20' ) start [2025-01-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266660', 'tblTempUsageDetail_20' ) end [2025-01-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266660', 'tblTempVendorCDR_20' ) start [2025-01-17 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266660', 'tblTempVendorCDR_20' ) end [2025-01-17 07:07:19] Production.INFO: ProcessCDR(1,14266660,1,1,2) [2025-01-17 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266660', 'tblTempUsageDetail_20' ) start [2025-01-17 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266660', 'tblTempUsageDetail_20' ) end [2025-01-17 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:07:22] Production.INFO: ==2850== Releasing lock... [2025-01-17 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:07:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:08:05 [end_date_ymd] => 2025-01-17 07:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:08:05' and `end` < '2025-01-17 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-17 07:08:18] Production.INFO: count ==75 [2025-01-17 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:08:05 - End Time 2025-01-17 07:08:05 [2025-01-17 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266665', 'tblTempUsageDetail_20' ) start [2025-01-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266665', 'tblTempUsageDetail_20' ) end [2025-01-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266665', 'tblTempVendorCDR_20' ) start [2025-01-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266665', 'tblTempVendorCDR_20' ) end [2025-01-17 07:08:18] Production.INFO: ProcessCDR(1,14266665,1,1,2) [2025-01-17 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266665', 'tblTempUsageDetail_20' ) start [2025-01-17 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266665', 'tblTempUsageDetail_20' ) end [2025-01-17 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:08:21] Production.INFO: ==2998== Releasing lock... [2025-01-17 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:09:06 [end_date_ymd] => 2025-01-17 07:09:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:09:06' and `end` < '2025-01-17 07: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-17 07:09:20] Production.INFO: count ==75 [2025-01-17 07:09:20] Production.ERROR: pbx CDR StartTime 2025-01-17 04:09:06 - End Time 2025-01-17 07:09:06 [2025-01-17 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266670', 'tblTempUsageDetail_20' ) start [2025-01-17 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266670', 'tblTempUsageDetail_20' ) end [2025-01-17 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266670', 'tblTempVendorCDR_20' ) start [2025-01-17 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266670', 'tblTempVendorCDR_20' ) end [2025-01-17 07:09:20] Production.INFO: ProcessCDR(1,14266670,1,1,2) [2025-01-17 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266670', 'tblTempUsageDetail_20' ) start [2025-01-17 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266670', 'tblTempUsageDetail_20' ) end [2025-01-17 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:09:23] Production.INFO: ==3076== Releasing lock... [2025-01-17 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:10:05 [end_date_ymd] => 2025-01-17 07:10:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:10:05' and `end` < '2025-01-17 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-17 07:10:20] Production.INFO: count ==77 [2025-01-17 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-17 04:10:05 - End Time 2025-01-17 07:10:05 [2025-01-17 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266675', 'tblTempUsageDetail_20' ) start [2025-01-17 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266675', 'tblTempUsageDetail_20' ) end [2025-01-17 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266675', 'tblTempVendorCDR_20' ) start [2025-01-17 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266675', 'tblTempVendorCDR_20' ) end [2025-01-17 07:10:20] Production.INFO: ProcessCDR(1,14266675,1,1,2) [2025-01-17 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266675', 'tblTempUsageDetail_20' ) start [2025-01-17 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266675', 'tblTempUsageDetail_20' ) end [2025-01-17 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:10:23] Production.INFO: ==3153== Releasing lock... [2025-01-17 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:10:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:11:06 [end_date_ymd] => 2025-01-17 07:11:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:11:06' and `end` < '2025-01-17 07: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-17 07:11:20] Production.INFO: count ==77 [2025-01-17 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-17 04:11:06 - End Time 2025-01-17 07:11:06 [2025-01-17 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266681', 'tblTempUsageDetail_20' ) start [2025-01-17 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266681', 'tblTempUsageDetail_20' ) end [2025-01-17 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266681', 'tblTempVendorCDR_20' ) start [2025-01-17 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266681', 'tblTempVendorCDR_20' ) end [2025-01-17 07:11:20] Production.INFO: ProcessCDR(1,14266681,1,1,2) [2025-01-17 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266681', 'tblTempUsageDetail_20' ) start [2025-01-17 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266681', 'tblTempUsageDetail_20' ) end [2025-01-17 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:11:23] Production.INFO: ==3264== Releasing lock... [2025-01-17 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:12:05 [end_date_ymd] => 2025-01-17 07:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:12:05' and `end` < '2025-01-17 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-17 07:12:19] Production.INFO: count ==77 [2025-01-17 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:12:05 - End Time 2025-01-17 07:12:05 [2025-01-17 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266686', 'tblTempUsageDetail_20' ) start [2025-01-17 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266686', 'tblTempUsageDetail_20' ) end [2025-01-17 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266686', 'tblTempVendorCDR_20' ) start [2025-01-17 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266686', 'tblTempVendorCDR_20' ) end [2025-01-17 07:12:19] Production.INFO: ProcessCDR(1,14266686,1,1,2) [2025-01-17 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266686', 'tblTempUsageDetail_20' ) start [2025-01-17 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266686', 'tblTempUsageDetail_20' ) end [2025-01-17 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:12:22] Production.INFO: ==3413== Releasing lock... [2025-01-17 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:13:05 [end_date_ymd] => 2025-01-17 07:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:13:05' and `end` < '2025-01-17 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-17 07:13:20] Production.INFO: count ==77 [2025-01-17 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-17 04:13:05 - End Time 2025-01-17 07:13:05 [2025-01-17 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266691', 'tblTempUsageDetail_20' ) start [2025-01-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266691', 'tblTempUsageDetail_20' ) end [2025-01-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266691', 'tblTempVendorCDR_20' ) start [2025-01-17 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266691', 'tblTempVendorCDR_20' ) end [2025-01-17 07:13:20] Production.INFO: ProcessCDR(1,14266691,1,1,2) [2025-01-17 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266691', 'tblTempUsageDetail_20' ) start [2025-01-17 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266691', 'tblTempUsageDetail_20' ) end [2025-01-17 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:13:23] Production.INFO: ==3488== Releasing lock... [2025-01-17 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:14:04 [end_date_ymd] => 2025-01-17 07:14:04 [RateCDR] => 1 ) [2025-01-17 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:14:04' and `end` < '2025-01-17 07:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:14:17] Production.INFO: count ==77 [2025-01-17 07:14:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:14:04 - End Time 2025-01-17 07:14:04 [2025-01-17 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266696', 'tblTempUsageDetail_20' ) start [2025-01-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266696', 'tblTempUsageDetail_20' ) end [2025-01-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266696', 'tblTempVendorCDR_20' ) start [2025-01-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266696', 'tblTempVendorCDR_20' ) end [2025-01-17 07:14:17] Production.INFO: ProcessCDR(1,14266696,1,1,2) [2025-01-17 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266696', 'tblTempUsageDetail_20' ) start [2025-01-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266696', 'tblTempUsageDetail_20' ) end [2025-01-17 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:14:21] Production.INFO: ==3561== Releasing lock... [2025-01-17 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:15:05 [end_date_ymd] => 2025-01-17 07:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:15:05' and `end` < '2025-01-17 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-17 07:15:18] Production.INFO: count ==77 [2025-01-17 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:15:05 - End Time 2025-01-17 07:15:05 [2025-01-17 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266701', 'tblTempUsageDetail_20' ) start [2025-01-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266701', 'tblTempUsageDetail_20' ) end [2025-01-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266701', 'tblTempVendorCDR_20' ) start [2025-01-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266701', 'tblTempVendorCDR_20' ) end [2025-01-17 07:15:18] Production.INFO: ProcessCDR(1,14266701,1,1,2) [2025-01-17 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266701', 'tblTempUsageDetail_20' ) start [2025-01-17 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266701', 'tblTempUsageDetail_20' ) end [2025-01-17 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:15:22] Production.INFO: ==3710== Releasing lock... [2025-01-17 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:16:04 [end_date_ymd] => 2025-01-17 07:16:04 [RateCDR] => 1 ) [2025-01-17 07:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:16:04' and `end` < '2025-01-17 07:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:16:19] Production.INFO: count ==77 [2025-01-17 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:16:04 - End Time 2025-01-17 07:16:04 [2025-01-17 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266706', 'tblTempUsageDetail_20' ) start [2025-01-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266706', 'tblTempUsageDetail_20' ) end [2025-01-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266706', 'tblTempVendorCDR_20' ) start [2025-01-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266706', 'tblTempVendorCDR_20' ) end [2025-01-17 07:16:19] Production.INFO: ProcessCDR(1,14266706,1,1,2) [2025-01-17 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266706', 'tblTempUsageDetail_20' ) start [2025-01-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266706', 'tblTempUsageDetail_20' ) end [2025-01-17 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:16:22] Production.INFO: ==3779== Releasing lock... [2025-01-17 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:17:05 [end_date_ymd] => 2025-01-17 07:17:05 [RateCDR] => 1 ) [2025-01-17 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:17:05' and `end` < '2025-01-17 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:17:18] Production.INFO: count ==77 [2025-01-17 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:17:05 - End Time 2025-01-17 07:17:05 [2025-01-17 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266711', 'tblTempUsageDetail_20' ) start [2025-01-17 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266711', 'tblTempUsageDetail_20' ) end [2025-01-17 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266711', 'tblTempVendorCDR_20' ) start [2025-01-17 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266711', 'tblTempVendorCDR_20' ) end [2025-01-17 07:17:18] Production.INFO: ProcessCDR(1,14266711,1,1,2) [2025-01-17 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266711', 'tblTempUsageDetail_20' ) start [2025-01-17 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266711', 'tblTempUsageDetail_20' ) end [2025-01-17 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:17:21] Production.INFO: ==3850== Releasing lock... [2025-01-17 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:18:05 [end_date_ymd] => 2025-01-17 07:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:18:05' and `end` < '2025-01-17 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-17 07:18:19] Production.INFO: count ==77 [2025-01-17 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:18:05 - End Time 2025-01-17 07:18:05 [2025-01-17 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266716', 'tblTempUsageDetail_20' ) start [2025-01-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266716', 'tblTempUsageDetail_20' ) end [2025-01-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266716', 'tblTempVendorCDR_20' ) start [2025-01-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266716', 'tblTempVendorCDR_20' ) end [2025-01-17 07:18:19] Production.INFO: ProcessCDR(1,14266716,1,1,2) [2025-01-17 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266716', 'tblTempUsageDetail_20' ) start [2025-01-17 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266716', 'tblTempUsageDetail_20' ) end [2025-01-17 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:18:22] Production.INFO: ==3921== Releasing lock... [2025-01-17 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:19:05 [end_date_ymd] => 2025-01-17 07:19:05 [RateCDR] => 1 ) [2025-01-17 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:19:05' and `end` < '2025-01-17 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:19:18] Production.INFO: count ==77 [2025-01-17 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:19:05 - End Time 2025-01-17 07:19:05 [2025-01-17 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266721', 'tblTempUsageDetail_20' ) start [2025-01-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266721', 'tblTempUsageDetail_20' ) end [2025-01-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266721', 'tblTempVendorCDR_20' ) start [2025-01-17 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266721', 'tblTempVendorCDR_20' ) end [2025-01-17 07:19:18] Production.INFO: ProcessCDR(1,14266721,1,1,2) [2025-01-17 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266721', 'tblTempUsageDetail_20' ) start [2025-01-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266721', 'tblTempUsageDetail_20' ) end [2025-01-17 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:19:21] Production.INFO: ==3991== Releasing lock... [2025-01-17 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:20:06 [end_date_ymd] => 2025-01-17 07:20:06 [RateCDR] => 1 ) [2025-01-17 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:20:06' and `end` < '2025-01-17 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:20:18] Production.INFO: count ==79 [2025-01-17 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:20:06 - End Time 2025-01-17 07:20:06 [2025-01-17 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266727', 'tblTempUsageDetail_20' ) start [2025-01-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266727', 'tblTempUsageDetail_20' ) end [2025-01-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266727', 'tblTempVendorCDR_20' ) start [2025-01-17 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266727', 'tblTempVendorCDR_20' ) end [2025-01-17 07:20:18] Production.INFO: ProcessCDR(1,14266727,1,1,2) [2025-01-17 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266727', 'tblTempUsageDetail_20' ) start [2025-01-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266727', 'tblTempUsageDetail_20' ) end [2025-01-17 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:20:22] Production.INFO: ==4068== Releasing lock... [2025-01-17 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:21:05 [end_date_ymd] => 2025-01-17 07:21:05 [RateCDR] => 1 ) [2025-01-17 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:21:05' and `end` < '2025-01-17 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:21:20] Production.INFO: count ==79 [2025-01-17 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-17 04:21:05 - End Time 2025-01-17 07:21:05 [2025-01-17 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266732', 'tblTempUsageDetail_20' ) start [2025-01-17 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266732', 'tblTempUsageDetail_20' ) end [2025-01-17 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266732', 'tblTempVendorCDR_20' ) start [2025-01-17 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266732', 'tblTempVendorCDR_20' ) end [2025-01-17 07:21:20] Production.INFO: ProcessCDR(1,14266732,1,1,2) [2025-01-17 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266732', 'tblTempUsageDetail_20' ) start [2025-01-17 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266732', 'tblTempUsageDetail_20' ) end [2025-01-17 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:21:23] Production.INFO: ==4141== Releasing lock... [2025-01-17 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:21:23] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:22:06 [end_date_ymd] => 2025-01-17 07:22:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:22:06' and `end` < '2025-01-17 07: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-17 07:22:19] Production.INFO: count ==79 [2025-01-17 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:22:06 - End Time 2025-01-17 07:22:06 [2025-01-17 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266737', 'tblTempUsageDetail_20' ) start [2025-01-17 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266737', 'tblTempUsageDetail_20' ) end [2025-01-17 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266737', 'tblTempVendorCDR_20' ) start [2025-01-17 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266737', 'tblTempVendorCDR_20' ) end [2025-01-17 07:22:19] Production.INFO: ProcessCDR(1,14266737,1,1,2) [2025-01-17 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266737', 'tblTempUsageDetail_20' ) start [2025-01-17 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266737', 'tblTempUsageDetail_20' ) end [2025-01-17 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:22:22] Production.INFO: ==4214== Releasing lock... [2025-01-17 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:23:05 [end_date_ymd] => 2025-01-17 07:23:05 [RateCDR] => 1 ) [2025-01-17 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:23:05' and `end` < '2025-01-17 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-17 07:23:19] Production.INFO: count ==79 [2025-01-17 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:23:05 - End Time 2025-01-17 07:23:05 [2025-01-17 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266742', 'tblTempUsageDetail_20' ) start [2025-01-17 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266742', 'tblTempUsageDetail_20' ) end [2025-01-17 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266742', 'tblTempVendorCDR_20' ) start [2025-01-17 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266742', 'tblTempVendorCDR_20' ) end [2025-01-17 07:23:19] Production.INFO: ProcessCDR(1,14266742,1,1,2) [2025-01-17 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266742', 'tblTempUsageDetail_20' ) start [2025-01-17 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266742', 'tblTempUsageDetail_20' ) end [2025-01-17 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:23:22] Production.INFO: ==4288== Releasing lock... [2025-01-17 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:24:06 [end_date_ymd] => 2025-01-17 07:24:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:24:06' and `end` < '2025-01-17 07: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-17 07:24:19] Production.INFO: count ==80 [2025-01-17 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:24:06 - End Time 2025-01-17 07:24:06 [2025-01-17 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266747', 'tblTempUsageDetail_20' ) start [2025-01-17 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266747', 'tblTempUsageDetail_20' ) end [2025-01-17 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266747', 'tblTempVendorCDR_20' ) start [2025-01-17 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266747', 'tblTempVendorCDR_20' ) end [2025-01-17 07:24:19] Production.INFO: ProcessCDR(1,14266747,1,1,2) [2025-01-17 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266747', 'tblTempUsageDetail_20' ) start [2025-01-17 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266747', 'tblTempUsageDetail_20' ) end [2025-01-17 07:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:24:24] Production.INFO: ==4360== Releasing lock... [2025-01-17 07:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:24:24] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:25:05 [end_date_ymd] => 2025-01-17 07:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:25:05' and `end` < '2025-01-17 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-17 07:25:17] Production.INFO: count ==80 [2025-01-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:25:05 - End Time 2025-01-17 07:25:05 [2025-01-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266752', 'tblTempUsageDetail_20' ) start [2025-01-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266752', 'tblTempUsageDetail_20' ) end [2025-01-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266752', 'tblTempVendorCDR_20' ) start [2025-01-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266752', 'tblTempVendorCDR_20' ) end [2025-01-17 07:25:17] Production.INFO: ProcessCDR(1,14266752,1,1,2) [2025-01-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266752', 'tblTempUsageDetail_20' ) start [2025-01-17 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266752', 'tblTempUsageDetail_20' ) end [2025-01-17 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:25:21] Production.INFO: ==4431== Releasing lock... [2025-01-17 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:26:05 [end_date_ymd] => 2025-01-17 07:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:26:05' and `end` < '2025-01-17 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-17 07:26:18] Production.INFO: count ==80 [2025-01-17 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:26:05 - End Time 2025-01-17 07:26:05 [2025-01-17 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266757', 'tblTempUsageDetail_20' ) start [2025-01-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266757', 'tblTempUsageDetail_20' ) end [2025-01-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266757', 'tblTempVendorCDR_20' ) start [2025-01-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266757', 'tblTempVendorCDR_20' ) end [2025-01-17 07:26:18] Production.INFO: ProcessCDR(1,14266757,1,1,2) [2025-01-17 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266757', 'tblTempUsageDetail_20' ) start [2025-01-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266757', 'tblTempUsageDetail_20' ) end [2025-01-17 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:26:21] Production.INFO: ==4541== Releasing lock... [2025-01-17 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-17 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:27:05 [end_date_ymd] => 2025-01-17 07:27:05 [RateCDR] => 1 ) [2025-01-17 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:27:05' and `end` < '2025-01-17 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:27:17] Production.INFO: count ==81 [2025-01-17 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:27:05 - End Time 2025-01-17 07:27:05 [2025-01-17 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266762', 'tblTempUsageDetail_20' ) start [2025-01-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266762', 'tblTempUsageDetail_20' ) end [2025-01-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266762', 'tblTempVendorCDR_20' ) start [2025-01-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266762', 'tblTempVendorCDR_20' ) end [2025-01-17 07:27:17] Production.INFO: ProcessCDR(1,14266762,1,1,2) [2025-01-17 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266762', 'tblTempUsageDetail_20' ) start [2025-01-17 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266762', 'tblTempUsageDetail_20' ) end [2025-01-17 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:27:23] Production.INFO: ==4618== Releasing lock... [2025-01-17 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:27:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:28:05 [end_date_ymd] => 2025-01-17 07:28:05 [RateCDR] => 1 ) [2025-01-17 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:28:05' and `end` < '2025-01-17 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:28:18] Production.INFO: count ==81 [2025-01-17 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:28:05 - End Time 2025-01-17 07:28:05 [2025-01-17 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266767', 'tblTempUsageDetail_20' ) start [2025-01-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266767', 'tblTempUsageDetail_20' ) end [2025-01-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266767', 'tblTempVendorCDR_20' ) start [2025-01-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266767', 'tblTempVendorCDR_20' ) end [2025-01-17 07:28:18] Production.INFO: ProcessCDR(1,14266767,1,1,2) [2025-01-17 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266767', 'tblTempUsageDetail_20' ) start [2025-01-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266767', 'tblTempUsageDetail_20' ) end [2025-01-17 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:28:21] Production.INFO: ==4688== Releasing lock... [2025-01-17 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:29:05 [end_date_ymd] => 2025-01-17 07:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:29:05' and `end` < '2025-01-17 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-17 07:29:18] Production.INFO: count ==81 [2025-01-17 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:29:05 - End Time 2025-01-17 07:29:05 [2025-01-17 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266772', 'tblTempUsageDetail_20' ) start [2025-01-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266772', 'tblTempUsageDetail_20' ) end [2025-01-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266772', 'tblTempVendorCDR_20' ) start [2025-01-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266772', 'tblTempVendorCDR_20' ) end [2025-01-17 07:29:18] Production.INFO: ProcessCDR(1,14266772,1,1,2) [2025-01-17 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266772', 'tblTempUsageDetail_20' ) start [2025-01-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266772', 'tblTempUsageDetail_20' ) end [2025-01-17 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:29:21] Production.INFO: ==4757== Releasing lock... [2025-01-17 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:30:05 [end_date_ymd] => 2025-01-17 07:30:05 [RateCDR] => 1 ) [2025-01-17 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:30:05' and `end` < '2025-01-17 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:30:18] Production.INFO: count ==82 [2025-01-17 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:30:05 - End Time 2025-01-17 07:30:05 [2025-01-17 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266777', 'tblTempUsageDetail_20' ) start [2025-01-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266777', 'tblTempUsageDetail_20' ) end [2025-01-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266777', 'tblTempVendorCDR_20' ) start [2025-01-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266777', 'tblTempVendorCDR_20' ) end [2025-01-17 07:30:18] Production.INFO: ProcessCDR(1,14266777,1,1,2) [2025-01-17 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266777', 'tblTempUsageDetail_20' ) start [2025-01-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266777', 'tblTempUsageDetail_20' ) end [2025-01-17 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:30:21] Production.INFO: ==4830== Releasing lock... [2025-01-17 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:31:04 [end_date_ymd] => 2025-01-17 07:31:04 [RateCDR] => 1 ) [2025-01-17 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:31:04' and `end` < '2025-01-17 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:31:17] Production.INFO: count ==87 [2025-01-17 07:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:31:04 - End Time 2025-01-17 07:31:04 [2025-01-17 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266783', 'tblTempUsageDetail_20' ) start [2025-01-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266783', 'tblTempUsageDetail_20' ) end [2025-01-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266783', 'tblTempVendorCDR_20' ) start [2025-01-17 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266783', 'tblTempVendorCDR_20' ) end [2025-01-17 07:31:17] Production.INFO: ProcessCDR(1,14266783,1,1,2) [2025-01-17 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266783', 'tblTempUsageDetail_20' ) start [2025-01-17 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266783', 'tblTempUsageDetail_20' ) end [2025-01-17 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:31:21] Production.INFO: ==4903== Releasing lock... [2025-01-17 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:32:05 [end_date_ymd] => 2025-01-17 07:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:32:05' and `end` < '2025-01-17 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-17 07:32:17] Production.INFO: count ==87 [2025-01-17 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:32:05 - End Time 2025-01-17 07:32:05 [2025-01-17 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266788', 'tblTempUsageDetail_20' ) start [2025-01-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266788', 'tblTempUsageDetail_20' ) end [2025-01-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266788', 'tblTempVendorCDR_20' ) start [2025-01-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266788', 'tblTempVendorCDR_20' ) end [2025-01-17 07:32:17] Production.INFO: ProcessCDR(1,14266788,1,1,2) [2025-01-17 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266788', 'tblTempUsageDetail_20' ) start [2025-01-17 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266788', 'tblTempUsageDetail_20' ) end [2025-01-17 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:32:20] Production.INFO: ==4984== Releasing lock... [2025-01-17 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:33:04 [end_date_ymd] => 2025-01-17 07:33:04 [RateCDR] => 1 ) [2025-01-17 07:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:33:04' and `end` < '2025-01-17 07:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:33:18] Production.INFO: count ==93 [2025-01-17 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:33:04 - End Time 2025-01-17 07:33:04 [2025-01-17 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266793', 'tblTempUsageDetail_20' ) start [2025-01-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266793', 'tblTempUsageDetail_20' ) end [2025-01-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266793', 'tblTempVendorCDR_20' ) start [2025-01-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266793', 'tblTempVendorCDR_20' ) end [2025-01-17 07:33:18] Production.INFO: ProcessCDR(1,14266793,1,1,2) [2025-01-17 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266793', 'tblTempUsageDetail_20' ) start [2025-01-17 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266793', 'tblTempUsageDetail_20' ) end [2025-01-17 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:33:23] Production.INFO: ==5056== Releasing lock... [2025-01-17 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:34:05 [end_date_ymd] => 2025-01-17 07:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:34:05' and `end` < '2025-01-17 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-17 07:34:19] Production.INFO: count ==93 [2025-01-17 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:34:05 - End Time 2025-01-17 07:34:05 [2025-01-17 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266798', 'tblTempUsageDetail_20' ) start [2025-01-17 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266798', 'tblTempUsageDetail_20' ) end [2025-01-17 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266798', 'tblTempVendorCDR_20' ) start [2025-01-17 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266798', 'tblTempVendorCDR_20' ) end [2025-01-17 07:34:19] Production.INFO: ProcessCDR(1,14266798,1,1,2) [2025-01-17 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266798', 'tblTempUsageDetail_20' ) start [2025-01-17 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266798', 'tblTempUsageDetail_20' ) end [2025-01-17 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:34:23] Production.INFO: ==5142== Releasing lock... [2025-01-17 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:34:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:35:05 [end_date_ymd] => 2025-01-17 07:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:35:05' and `end` < '2025-01-17 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-17 07:35:18] Production.INFO: count ==93 [2025-01-17 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:35:05 - End Time 2025-01-17 07:35:05 [2025-01-17 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266803', 'tblTempUsageDetail_20' ) start [2025-01-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266803', 'tblTempUsageDetail_20' ) end [2025-01-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266803', 'tblTempVendorCDR_20' ) start [2025-01-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266803', 'tblTempVendorCDR_20' ) end [2025-01-17 07:35:18] Production.INFO: ProcessCDR(1,14266803,1,1,2) [2025-01-17 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266803', 'tblTempUsageDetail_20' ) start [2025-01-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266803', 'tblTempUsageDetail_20' ) end [2025-01-17 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:35:22] Production.INFO: ==5213== Releasing lock... [2025-01-17 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:36:05 [end_date_ymd] => 2025-01-17 07:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:36:05' and `end` < '2025-01-17 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-17 07:36:17] Production.INFO: count ==98 [2025-01-17 07:36:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:36:05 - End Time 2025-01-17 07:36:05 [2025-01-17 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266808', 'tblTempUsageDetail_20' ) start [2025-01-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266808', 'tblTempUsageDetail_20' ) end [2025-01-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266808', 'tblTempVendorCDR_20' ) start [2025-01-17 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266808', 'tblTempVendorCDR_20' ) end [2025-01-17 07:36:17] Production.INFO: ProcessCDR(1,14266808,1,1,2) [2025-01-17 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266808', 'tblTempUsageDetail_20' ) start [2025-01-17 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266808', 'tblTempUsageDetail_20' ) end [2025-01-17 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:36:20] Production.INFO: ==5282== Releasing lock... [2025-01-17 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:37:05 [end_date_ymd] => 2025-01-17 07:37:05 [RateCDR] => 1 ) [2025-01-17 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:37:05' and `end` < '2025-01-17 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:37:18] Production.INFO: count ==98 [2025-01-17 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:37:05 - End Time 2025-01-17 07:37:05 [2025-01-17 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266813', 'tblTempUsageDetail_20' ) start [2025-01-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266813', 'tblTempUsageDetail_20' ) end [2025-01-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266813', 'tblTempVendorCDR_20' ) start [2025-01-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266813', 'tblTempVendorCDR_20' ) end [2025-01-17 07:37:18] Production.INFO: ProcessCDR(1,14266813,1,1,2) [2025-01-17 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266813', 'tblTempUsageDetail_20' ) start [2025-01-17 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266813', 'tblTempUsageDetail_20' ) end [2025-01-17 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:37:21] Production.INFO: ==5356== Releasing lock... [2025-01-17 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:38:05 [end_date_ymd] => 2025-01-17 07:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:38:05' and `end` < '2025-01-17 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-17 07:38:17] Production.INFO: count ==98 [2025-01-17 07:38:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:38:05 - End Time 2025-01-17 07:38:05 [2025-01-17 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266818', 'tblTempUsageDetail_20' ) start [2025-01-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266818', 'tblTempUsageDetail_20' ) end [2025-01-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266818', 'tblTempVendorCDR_20' ) start [2025-01-17 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266818', 'tblTempVendorCDR_20' ) end [2025-01-17 07:38:17] Production.INFO: ProcessCDR(1,14266818,1,1,2) [2025-01-17 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266818', 'tblTempUsageDetail_20' ) start [2025-01-17 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266818', 'tblTempUsageDetail_20' ) end [2025-01-17 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:38:20] Production.INFO: ==5427== Releasing lock... [2025-01-17 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:39:05 [end_date_ymd] => 2025-01-17 07:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:39:05' and `end` < '2025-01-17 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-17 07:39:18] Production.INFO: count ==99 [2025-01-17 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:39:05 - End Time 2025-01-17 07:39:05 [2025-01-17 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266823', 'tblTempUsageDetail_20' ) start [2025-01-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266823', 'tblTempUsageDetail_20' ) end [2025-01-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266823', 'tblTempVendorCDR_20' ) start [2025-01-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266823', 'tblTempVendorCDR_20' ) end [2025-01-17 07:39:18] Production.INFO: ProcessCDR(1,14266823,1,1,2) [2025-01-17 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266823', 'tblTempUsageDetail_20' ) start [2025-01-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266823', 'tblTempUsageDetail_20' ) end [2025-01-17 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:39:22] Production.INFO: ==5497== Releasing lock... [2025-01-17 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:40:05 [end_date_ymd] => 2025-01-17 07:40:05 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:40:05' and `end` < '2025-01-17 07: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-17 07:40:19] Production.INFO: count ==108 [2025-01-17 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:40:05 - End Time 2025-01-17 07:40:05 [2025-01-17 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266829', 'tblTempUsageDetail_20' ) start [2025-01-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266829', 'tblTempUsageDetail_20' ) end [2025-01-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266829', 'tblTempVendorCDR_20' ) start [2025-01-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266829', 'tblTempVendorCDR_20' ) end [2025-01-17 07:40:19] Production.INFO: ProcessCDR(1,14266829,1,1,2) [2025-01-17 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266829', 'tblTempUsageDetail_20' ) start [2025-01-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266829', 'tblTempUsageDetail_20' ) end [2025-01-17 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:40:22] Production.INFO: ==5570== Releasing lock... [2025-01-17 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:41:05 [end_date_ymd] => 2025-01-17 07:41:05 [RateCDR] => 1 ) [2025-01-17 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:41:05' and `end` < '2025-01-17 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:41:18] Production.INFO: count ==112 [2025-01-17 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:41:05 - End Time 2025-01-17 07:41:05 [2025-01-17 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266834', 'tblTempUsageDetail_20' ) start [2025-01-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266834', 'tblTempUsageDetail_20' ) end [2025-01-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266834', 'tblTempVendorCDR_20' ) start [2025-01-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266834', 'tblTempVendorCDR_20' ) end [2025-01-17 07:41:18] Production.INFO: ProcessCDR(1,14266834,1,1,2) [2025-01-17 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266834', 'tblTempUsageDetail_20' ) start [2025-01-17 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266834', 'tblTempUsageDetail_20' ) end [2025-01-17 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:41:21] Production.INFO: ==5643== Releasing lock... [2025-01-17 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:42:05 [end_date_ymd] => 2025-01-17 07:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:42:05' and `end` < '2025-01-17 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-17 07:42:17] Production.INFO: count ==112 [2025-01-17 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:42:05 - End Time 2025-01-17 07:42:05 [2025-01-17 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266839', 'tblTempUsageDetail_20' ) start [2025-01-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266839', 'tblTempUsageDetail_20' ) end [2025-01-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266839', 'tblTempVendorCDR_20' ) start [2025-01-17 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266839', 'tblTempVendorCDR_20' ) end [2025-01-17 07:42:17] Production.INFO: ProcessCDR(1,14266839,1,1,2) [2025-01-17 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266839', 'tblTempUsageDetail_20' ) start [2025-01-17 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266839', 'tblTempUsageDetail_20' ) end [2025-01-17 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:42:21] Production.INFO: ==5754== Releasing lock... [2025-01-17 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:43:05 [end_date_ymd] => 2025-01-17 07:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:43:05' and `end` < '2025-01-17 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-17 07:43:18] Production.INFO: count ==112 [2025-01-17 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:43:05 - End Time 2025-01-17 07:43:05 [2025-01-17 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266844', 'tblTempUsageDetail_20' ) start [2025-01-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266844', 'tblTempUsageDetail_20' ) end [2025-01-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266844', 'tblTempVendorCDR_20' ) start [2025-01-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266844', 'tblTempVendorCDR_20' ) end [2025-01-17 07:43:18] Production.INFO: ProcessCDR(1,14266844,1,1,2) [2025-01-17 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266844', 'tblTempUsageDetail_20' ) start [2025-01-17 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266844', 'tblTempUsageDetail_20' ) end [2025-01-17 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:43:21] Production.INFO: ==5823== Releasing lock... [2025-01-17 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:44:06 [end_date_ymd] => 2025-01-17 07:44:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:44:06' and `end` < '2025-01-17 07: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-17 07:44:19] Production.INFO: count ==112 [2025-01-17 07:44:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:44:06 - End Time 2025-01-17 07:44:06 [2025-01-17 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266849', 'tblTempUsageDetail_20' ) start [2025-01-17 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266849', 'tblTempUsageDetail_20' ) end [2025-01-17 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266849', 'tblTempVendorCDR_20' ) start [2025-01-17 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266849', 'tblTempVendorCDR_20' ) end [2025-01-17 07:44:19] Production.INFO: ProcessCDR(1,14266849,1,1,2) [2025-01-17 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266849', 'tblTempUsageDetail_20' ) start [2025-01-17 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266849', 'tblTempUsageDetail_20' ) end [2025-01-17 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:44:22] Production.INFO: ==5897== Releasing lock... [2025-01-17 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:45:05 [end_date_ymd] => 2025-01-17 07:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:45:05' and `end` < '2025-01-17 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-17 07:45:17] Production.INFO: count ==112 [2025-01-17 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:45:05 - End Time 2025-01-17 07:45:05 [2025-01-17 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266854', 'tblTempUsageDetail_20' ) start [2025-01-17 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266854', 'tblTempUsageDetail_20' ) end [2025-01-17 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266854', 'tblTempVendorCDR_20' ) start [2025-01-17 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266854', 'tblTempVendorCDR_20' ) end [2025-01-17 07:45:17] Production.INFO: ProcessCDR(1,14266854,1,1,2) [2025-01-17 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266854', 'tblTempUsageDetail_20' ) start [2025-01-17 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266854', 'tblTempUsageDetail_20' ) end [2025-01-17 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:45:21] Production.INFO: ==5969== Releasing lock... [2025-01-17 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:46:05 [end_date_ymd] => 2025-01-17 07:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:46:05' and `end` < '2025-01-17 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-17 07:46:17] Production.INFO: count ==112 [2025-01-17 07:46:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:46:05 - End Time 2025-01-17 07:46:05 [2025-01-17 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266859', 'tblTempUsageDetail_20' ) start [2025-01-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266859', 'tblTempUsageDetail_20' ) end [2025-01-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266859', 'tblTempVendorCDR_20' ) start [2025-01-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266859', 'tblTempVendorCDR_20' ) end [2025-01-17 07:46:17] Production.INFO: ProcessCDR(1,14266859,1,1,2) [2025-01-17 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266859', 'tblTempUsageDetail_20' ) start [2025-01-17 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266859', 'tblTempUsageDetail_20' ) end [2025-01-17 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:46:20] Production.INFO: ==6040== Releasing lock... [2025-01-17 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:47:05 [end_date_ymd] => 2025-01-17 07:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:47:05' and `end` < '2025-01-17 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-17 07:47:18] Production.INFO: count ==112 [2025-01-17 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:47:05 - End Time 2025-01-17 07:47:05 [2025-01-17 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266864', 'tblTempUsageDetail_20' ) start [2025-01-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266864', 'tblTempUsageDetail_20' ) end [2025-01-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266864', 'tblTempVendorCDR_20' ) start [2025-01-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266864', 'tblTempVendorCDR_20' ) end [2025-01-17 07:47:18] Production.INFO: ProcessCDR(1,14266864,1,1,2) [2025-01-17 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266864', 'tblTempUsageDetail_20' ) start [2025-01-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266864', 'tblTempUsageDetail_20' ) end [2025-01-17 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:47:21] Production.INFO: ==6111== Releasing lock... [2025-01-17 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:48:05 [end_date_ymd] => 2025-01-17 07:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:48:05' and `end` < '2025-01-17 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-17 07:48:18] Production.INFO: count ==112 [2025-01-17 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:48:05 - End Time 2025-01-17 07:48:05 [2025-01-17 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266869', 'tblTempUsageDetail_20' ) start [2025-01-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266869', 'tblTempUsageDetail_20' ) end [2025-01-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266869', 'tblTempVendorCDR_20' ) start [2025-01-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266869', 'tblTempVendorCDR_20' ) end [2025-01-17 07:48:18] Production.INFO: ProcessCDR(1,14266869,1,1,2) [2025-01-17 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266869', 'tblTempUsageDetail_20' ) start [2025-01-17 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266869', 'tblTempUsageDetail_20' ) end [2025-01-17 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:48:21] Production.INFO: ==6184== Releasing lock... [2025-01-17 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:49:04 [end_date_ymd] => 2025-01-17 07:49:04 [RateCDR] => 1 ) [2025-01-17 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-17 04:49:04' and `end` < '2025-01-17 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-17 07:49:17] Production.INFO: count ==112 [2025-01-17 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:49:04 - End Time 2025-01-17 07:49:04 [2025-01-17 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266874', 'tblTempUsageDetail_20' ) start [2025-01-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266874', 'tblTempUsageDetail_20' ) end [2025-01-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266874', 'tblTempVendorCDR_20' ) start [2025-01-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266874', 'tblTempVendorCDR_20' ) end [2025-01-17 07:49:17] Production.INFO: ProcessCDR(1,14266874,1,1,2) [2025-01-17 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266874', 'tblTempUsageDetail_20' ) start [2025-01-17 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266874', 'tblTempUsageDetail_20' ) end [2025-01-17 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:49:20] Production.INFO: ==6253== Releasing lock... [2025-01-17 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:50:06 [end_date_ymd] => 2025-01-17 07:50:06 [RateCDR] => 1 ) [2025-01-17 07: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-17 04:50:06' and `end` < '2025-01-17 07: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-17 07:50:19] Production.INFO: count ==114 [2025-01-17 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-17 04:50:06 - End Time 2025-01-17 07:50:06 [2025-01-17 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266880', 'tblTempUsageDetail_20' ) start [2025-01-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266880', 'tblTempUsageDetail_20' ) end [2025-01-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266880', 'tblTempVendorCDR_20' ) start [2025-01-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266880', 'tblTempVendorCDR_20' ) end [2025-01-17 07:50:19] Production.INFO: ProcessCDR(1,14266880,1,1,2) [2025-01-17 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266880', 'tblTempUsageDetail_20' ) start [2025-01-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266880', 'tblTempUsageDetail_20' ) end [2025-01-17 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:50:22] Production.INFO: ==6331== Releasing lock... [2025-01-17 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:51:05 [end_date_ymd] => 2025-01-17 07:51:05 [RateCDR] => 1 ) [2025-01-17 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:51:05' and `end` < '2025-01-17 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:51:17] Production.INFO: count ==114 [2025-01-17 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:51:05 - End Time 2025-01-17 07:51:05 [2025-01-17 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266885', 'tblTempUsageDetail_20' ) start [2025-01-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266885', 'tblTempUsageDetail_20' ) end [2025-01-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266885', 'tblTempVendorCDR_20' ) start [2025-01-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266885', 'tblTempVendorCDR_20' ) end [2025-01-17 07:51:17] Production.INFO: ProcessCDR(1,14266885,1,1,2) [2025-01-17 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266885', 'tblTempUsageDetail_20' ) start [2025-01-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266885', 'tblTempUsageDetail_20' ) end [2025-01-17 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:51:21] Production.INFO: ==6433== Releasing lock... [2025-01-17 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:52:05 [end_date_ymd] => 2025-01-17 07:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:52:05' and `end` < '2025-01-17 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-17 07:52:17] Production.INFO: count ==114 [2025-01-17 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:52:05 - End Time 2025-01-17 07:52:05 [2025-01-17 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266890', 'tblTempUsageDetail_20' ) start [2025-01-17 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266890', 'tblTempUsageDetail_20' ) end [2025-01-17 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266890', 'tblTempVendorCDR_20' ) start [2025-01-17 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266890', 'tblTempVendorCDR_20' ) end [2025-01-17 07:52:17] Production.INFO: ProcessCDR(1,14266890,1,1,2) [2025-01-17 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266890', 'tblTempUsageDetail_20' ) start [2025-01-17 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266890', 'tblTempUsageDetail_20' ) end [2025-01-17 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:52:20] Production.INFO: ==6513== Releasing lock... [2025-01-17 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:53:05 [end_date_ymd] => 2025-01-17 07:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:53:05' and `end` < '2025-01-17 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-17 07:53:18] Production.INFO: count ==114 [2025-01-17 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:53:05 - End Time 2025-01-17 07:53:05 [2025-01-17 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266895', 'tblTempUsageDetail_20' ) start [2025-01-17 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266895', 'tblTempUsageDetail_20' ) end [2025-01-17 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266895', 'tblTempVendorCDR_20' ) start [2025-01-17 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266895', 'tblTempVendorCDR_20' ) end [2025-01-17 07:53:18] Production.INFO: ProcessCDR(1,14266895,1,1,2) [2025-01-17 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266895', 'tblTempUsageDetail_20' ) start [2025-01-17 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266895', 'tblTempUsageDetail_20' ) end [2025-01-17 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:53:21] Production.INFO: ==6605== Releasing lock... [2025-01-17 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:54:05 [end_date_ymd] => 2025-01-17 07:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:54:05' and `end` < '2025-01-17 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-17 07:54:17] Production.INFO: count ==114 [2025-01-17 07:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:54:05 - End Time 2025-01-17 07:54:05 [2025-01-17 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266900', 'tblTempUsageDetail_20' ) start [2025-01-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266900', 'tblTempUsageDetail_20' ) end [2025-01-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266900', 'tblTempVendorCDR_20' ) start [2025-01-17 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266900', 'tblTempVendorCDR_20' ) end [2025-01-17 07:54:17] Production.INFO: ProcessCDR(1,14266900,1,1,2) [2025-01-17 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266900', 'tblTempUsageDetail_20' ) start [2025-01-17 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266900', 'tblTempUsageDetail_20' ) end [2025-01-17 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:54:20] Production.INFO: ==6678== Releasing lock... [2025-01-17 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-17 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:55:05 [end_date_ymd] => 2025-01-17 07:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:55:05' and `end` < '2025-01-17 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-17 07:55:17] Production.INFO: count ==118 [2025-01-17 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:55:05 - End Time 2025-01-17 07:55:05 [2025-01-17 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266905', 'tblTempUsageDetail_20' ) start [2025-01-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266905', 'tblTempUsageDetail_20' ) end [2025-01-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266905', 'tblTempVendorCDR_20' ) start [2025-01-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266905', 'tblTempVendorCDR_20' ) end [2025-01-17 07:55:17] Production.INFO: ProcessCDR(1,14266905,1,1,2) [2025-01-17 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266905', 'tblTempUsageDetail_20' ) start [2025-01-17 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266905', 'tblTempUsageDetail_20' ) end [2025-01-17 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:55:22] Production.INFO: ==6780== Releasing lock... [2025-01-17 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:56:05 [end_date_ymd] => 2025-01-17 07:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:56:05' and `end` < '2025-01-17 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-17 07:56:17] Production.INFO: count ==118 [2025-01-17 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:56:05 - End Time 2025-01-17 07:56:05 [2025-01-17 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266910', 'tblTempUsageDetail_20' ) start [2025-01-17 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266910', 'tblTempUsageDetail_20' ) end [2025-01-17 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266910', 'tblTempVendorCDR_20' ) start [2025-01-17 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266910', 'tblTempVendorCDR_20' ) end [2025-01-17 07:56:17] Production.INFO: ProcessCDR(1,14266910,1,1,2) [2025-01-17 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266910', 'tblTempUsageDetail_20' ) start [2025-01-17 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266910', 'tblTempUsageDetail_20' ) end [2025-01-17 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:56:20] Production.INFO: ==6859== Releasing lock... [2025-01-17 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:57:05 [end_date_ymd] => 2025-01-17 07:57:05 [RateCDR] => 1 ) [2025-01-17 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:57:05' and `end` < '2025-01-17 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:57:18] Production.INFO: count ==123 [2025-01-17 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 04:57:05 - End Time 2025-01-17 07:57:05 [2025-01-17 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266915', 'tblTempUsageDetail_20' ) start [2025-01-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266915', 'tblTempUsageDetail_20' ) end [2025-01-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266915', 'tblTempVendorCDR_20' ) start [2025-01-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266915', 'tblTempVendorCDR_20' ) end [2025-01-17 07:57:18] Production.INFO: ProcessCDR(1,14266915,1,1,2) [2025-01-17 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266915', 'tblTempUsageDetail_20' ) start [2025-01-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266915', 'tblTempUsageDetail_20' ) end [2025-01-17 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:57:21] Production.INFO: ==6993== Releasing lock... [2025-01-17 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:58:05 [end_date_ymd] => 2025-01-17 07:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 04:58:05' and `end` < '2025-01-17 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-17 07:58:17] Production.INFO: count ==124 [2025-01-17 07:58:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:58:05 - End Time 2025-01-17 07:58:05 [2025-01-17 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266920', 'tblTempUsageDetail_20' ) start [2025-01-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266920', 'tblTempUsageDetail_20' ) end [2025-01-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266920', 'tblTempVendorCDR_20' ) start [2025-01-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266920', 'tblTempVendorCDR_20' ) end [2025-01-17 07:58:17] Production.INFO: ProcessCDR(1,14266920,1,1,2) [2025-01-17 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266920', 'tblTempUsageDetail_20' ) start [2025-01-17 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266920', 'tblTempUsageDetail_20' ) end [2025-01-17 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:58:22] Production.INFO: ==7074== Releasing lock... [2025-01-17 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 04:59:05 [end_date_ymd] => 2025-01-17 07:59:05 [RateCDR] => 1 ) [2025-01-17 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 04:59:05' and `end` < '2025-01-17 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 07:59:17] Production.INFO: count ==125 [2025-01-17 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-17 04:59:05 - End Time 2025-01-17 07:59:05 [2025-01-17 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266925', 'tblTempUsageDetail_20' ) start [2025-01-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266925', 'tblTempUsageDetail_20' ) end [2025-01-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266925', 'tblTempVendorCDR_20' ) start [2025-01-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266925', 'tblTempVendorCDR_20' ) end [2025-01-17 07:59:17] Production.INFO: ProcessCDR(1,14266925,1,1,2) [2025-01-17 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266925', 'tblTempUsageDetail_20' ) start [2025-01-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266925', 'tblTempUsageDetail_20' ) end [2025-01-17 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 07:59:22] Production.INFO: ==7167== Releasing lock... [2025-01-17 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 07:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:00:06 [end_date_ymd] => 2025-01-17 08:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 05:00:06' and `end` < '2025-01-17 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-17 08:00:18] Production.INFO: count ==133 [2025-01-17 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:00:06 - End Time 2025-01-17 08:00:06 [2025-01-17 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266930', 'tblTempUsageDetail_20' ) start [2025-01-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266930', 'tblTempUsageDetail_20' ) end [2025-01-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266930', 'tblTempVendorCDR_20' ) start [2025-01-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266930', 'tblTempVendorCDR_20' ) end [2025-01-17 08:00:18] Production.INFO: ProcessCDR(1,14266930,1,1,2) [2025-01-17 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266930', 'tblTempUsageDetail_20' ) start [2025-01-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266930', 'tblTempUsageDetail_20' ) end [2025-01-17 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:00:21] Production.INFO: ==7257== Releasing lock... [2025-01-17 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-17 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:01:04 [end_date_ymd] => 2025-01-17 08:01:04 [RateCDR] => 1 ) [2025-01-17 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:01:04' and `end` < '2025-01-17 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:01:17] Production.INFO: count ==145 [2025-01-17 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:01:04 - End Time 2025-01-17 08:01:04 [2025-01-17 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266936', 'tblTempUsageDetail_20' ) start [2025-01-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266936', 'tblTempUsageDetail_20' ) end [2025-01-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266936', 'tblTempVendorCDR_20' ) start [2025-01-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266936', 'tblTempVendorCDR_20' ) end [2025-01-17 08:01:17] Production.INFO: ProcessCDR(1,14266936,1,1,2) [2025-01-17 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266936', 'tblTempUsageDetail_20' ) start [2025-01-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266936', 'tblTempUsageDetail_20' ) end [2025-01-17 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:01:20] Production.INFO: ==7354== Releasing lock... [2025-01-17 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:02:05 [end_date_ymd] => 2025-01-17 08:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:02:05' and `end` < '2025-01-17 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-17 08:02:17] Production.INFO: count ==145 [2025-01-17 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:02:05 - End Time 2025-01-17 08:02:05 [2025-01-17 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266941', 'tblTempUsageDetail_20' ) start [2025-01-17 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266941', 'tblTempUsageDetail_20' ) end [2025-01-17 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266941', 'tblTempVendorCDR_20' ) start [2025-01-17 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266941', 'tblTempVendorCDR_20' ) end [2025-01-17 08:02:17] Production.INFO: ProcessCDR(1,14266941,1,1,2) [2025-01-17 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266941', 'tblTempUsageDetail_20' ) start [2025-01-17 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266941', 'tblTempUsageDetail_20' ) end [2025-01-17 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:02:21] Production.INFO: ==7446== Releasing lock... [2025-01-17 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:03:05 [end_date_ymd] => 2025-01-17 08:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:03:05' and `end` < '2025-01-17 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-17 08:03:18] Production.INFO: count ==155 [2025-01-17 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:03:05 - End Time 2025-01-17 08:03:05 [2025-01-17 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266946', 'tblTempUsageDetail_20' ) start [2025-01-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266946', 'tblTempUsageDetail_20' ) end [2025-01-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266946', 'tblTempVendorCDR_20' ) start [2025-01-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266946', 'tblTempVendorCDR_20' ) end [2025-01-17 08:03:18] Production.INFO: ProcessCDR(1,14266946,1,1,2) [2025-01-17 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266946', 'tblTempUsageDetail_20' ) start [2025-01-17 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266946', 'tblTempUsageDetail_20' ) end [2025-01-17 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:03:21] Production.INFO: ==7538== Releasing lock... [2025-01-17 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-17 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:04:05 [end_date_ymd] => 2025-01-17 08:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:04:05' and `end` < '2025-01-17 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-17 08:04:17] Production.INFO: count ==161 [2025-01-17 08:04:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:04:05 - End Time 2025-01-17 08:04:05 [2025-01-17 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266951', 'tblTempUsageDetail_20' ) start [2025-01-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266951', 'tblTempUsageDetail_20' ) end [2025-01-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266951', 'tblTempVendorCDR_20' ) start [2025-01-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266951', 'tblTempVendorCDR_20' ) end [2025-01-17 08:04:17] Production.INFO: ProcessCDR(1,14266951,1,1,2) [2025-01-17 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266951', 'tblTempUsageDetail_20' ) start [2025-01-17 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266951', 'tblTempUsageDetail_20' ) end [2025-01-17 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:04:22] Production.INFO: ==7625== Releasing lock... [2025-01-17 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:05:06 [end_date_ymd] => 2025-01-17 08:05:06 [RateCDR] => 1 ) [2025-01-17 08: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-17 05:05:06' and `end` < '2025-01-17 08: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-17 08:05:18] Production.INFO: count ==166 [2025-01-17 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:05:06 - End Time 2025-01-17 08:05:06 [2025-01-17 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266956', 'tblTempUsageDetail_20' ) start [2025-01-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266956', 'tblTempUsageDetail_20' ) end [2025-01-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266956', 'tblTempVendorCDR_20' ) start [2025-01-17 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266956', 'tblTempVendorCDR_20' ) end [2025-01-17 08:05:18] Production.INFO: ProcessCDR(1,14266956,1,1,2) [2025-01-17 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266956', 'tblTempUsageDetail_20' ) start [2025-01-17 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266956', 'tblTempUsageDetail_20' ) end [2025-01-17 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:05:21] Production.INFO: ==7710== Releasing lock... [2025-01-17 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-17 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:06:04 [end_date_ymd] => 2025-01-17 08:06:04 [RateCDR] => 1 ) [2025-01-17 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:06:04' and `end` < '2025-01-17 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:06:18] Production.INFO: count ==167 [2025-01-17 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:06:04 - End Time 2025-01-17 08:06:04 [2025-01-17 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266961', 'tblTempUsageDetail_20' ) start [2025-01-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266961', 'tblTempUsageDetail_20' ) end [2025-01-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266961', 'tblTempVendorCDR_20' ) start [2025-01-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266961', 'tblTempVendorCDR_20' ) end [2025-01-17 08:06:18] Production.INFO: ProcessCDR(1,14266961,1,1,2) [2025-01-17 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266961', 'tblTempUsageDetail_20' ) start [2025-01-17 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266961', 'tblTempUsageDetail_20' ) end [2025-01-17 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:06:22] Production.INFO: ==7807== Releasing lock... [2025-01-17 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:07:05 [end_date_ymd] => 2025-01-17 08:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:07:05' and `end` < '2025-01-17 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-17 08:07:17] Production.INFO: count ==168 [2025-01-17 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:07:05 - End Time 2025-01-17 08:07:05 [2025-01-17 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266966', 'tblTempUsageDetail_20' ) start [2025-01-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266966', 'tblTempUsageDetail_20' ) end [2025-01-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266966', 'tblTempVendorCDR_20' ) start [2025-01-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266966', 'tblTempVendorCDR_20' ) end [2025-01-17 08:07:17] Production.INFO: ProcessCDR(1,14266966,1,1,2) [2025-01-17 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266966', 'tblTempUsageDetail_20' ) start [2025-01-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266966', 'tblTempUsageDetail_20' ) end [2025-01-17 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:07:22] Production.INFO: ==7887== Releasing lock... [2025-01-17 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-17 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:08:05 [end_date_ymd] => 2025-01-17 08:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:08:05' and `end` < '2025-01-17 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-17 08:08:17] Production.INFO: count ==172 [2025-01-17 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:08:05 - End Time 2025-01-17 08:08:05 [2025-01-17 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266971', 'tblTempUsageDetail_20' ) start [2025-01-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266971', 'tblTempUsageDetail_20' ) end [2025-01-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266971', 'tblTempVendorCDR_20' ) start [2025-01-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266971', 'tblTempVendorCDR_20' ) end [2025-01-17 08:08:17] Production.INFO: ProcessCDR(1,14266971,1,1,2) [2025-01-17 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266971', 'tblTempUsageDetail_20' ) start [2025-01-17 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266971', 'tblTempUsageDetail_20' ) end [2025-01-17 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:08:22] Production.INFO: ==7975== Releasing lock... [2025-01-17 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-17 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:09:05 [end_date_ymd] => 2025-01-17 08:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:09:05' and `end` < '2025-01-17 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-17 08:09:17] Production.INFO: count ==203 [2025-01-17 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:09:05 - End Time 2025-01-17 08:09:05 [2025-01-17 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266976', 'tblTempUsageDetail_20' ) start [2025-01-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266976', 'tblTempUsageDetail_20' ) end [2025-01-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266976', 'tblTempVendorCDR_20' ) start [2025-01-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266976', 'tblTempVendorCDR_20' ) end [2025-01-17 08:09:17] Production.INFO: ProcessCDR(1,14266976,1,1,2) [2025-01-17 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266976', 'tblTempUsageDetail_20' ) start [2025-01-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266976', 'tblTempUsageDetail_20' ) end [2025-01-17 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:09:21] Production.INFO: ==8055== Releasing lock... [2025-01-17 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-17 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:10:06 [end_date_ymd] => 2025-01-17 08:10:06 [RateCDR] => 1 ) [2025-01-17 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:10:06' and `end` < '2025-01-17 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:10:19] Production.INFO: count ==213 [2025-01-17 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:10:06 - End Time 2025-01-17 08:10:06 [2025-01-17 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266982', 'tblTempUsageDetail_20' ) start [2025-01-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266982', 'tblTempUsageDetail_20' ) end [2025-01-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266982', 'tblTempVendorCDR_20' ) start [2025-01-17 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266982', 'tblTempVendorCDR_20' ) end [2025-01-17 08:10:19] Production.INFO: ProcessCDR(1,14266982,1,1,2) [2025-01-17 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266982', 'tblTempUsageDetail_20' ) start [2025-01-17 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266982', 'tblTempUsageDetail_20' ) end [2025-01-17 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:10:23] Production.INFO: ==8147== Releasing lock... [2025-01-17 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-17 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:11:05 [end_date_ymd] => 2025-01-17 08:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:11:05' and `end` < '2025-01-17 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-17 08:11:18] Production.INFO: count ==234 [2025-01-17 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:11:05 - End Time 2025-01-17 08:11:05 [2025-01-17 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266987', 'tblTempUsageDetail_20' ) start [2025-01-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266987', 'tblTempUsageDetail_20' ) end [2025-01-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266987', 'tblTempVendorCDR_20' ) start [2025-01-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266987', 'tblTempVendorCDR_20' ) end [2025-01-17 08:11:18] Production.INFO: ProcessCDR(1,14266987,1,1,2) [2025-01-17 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266987', 'tblTempUsageDetail_20' ) start [2025-01-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266987', 'tblTempUsageDetail_20' ) end [2025-01-17 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:11:22] Production.INFO: ==8220== Releasing lock... [2025-01-17 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-17 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:12:05 [end_date_ymd] => 2025-01-17 08:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:12:05' and `end` < '2025-01-17 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-17 08:12:18] Production.INFO: count ==248 [2025-01-17 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:12:05 - End Time 2025-01-17 08:12:05 [2025-01-17 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266992', 'tblTempUsageDetail_20' ) start [2025-01-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266992', 'tblTempUsageDetail_20' ) end [2025-01-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266992', 'tblTempVendorCDR_20' ) start [2025-01-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266992', 'tblTempVendorCDR_20' ) end [2025-01-17 08:12:18] Production.INFO: ProcessCDR(1,14266992,1,1,2) [2025-01-17 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266992', 'tblTempUsageDetail_20' ) start [2025-01-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266992', 'tblTempUsageDetail_20' ) end [2025-01-17 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:12:22] Production.INFO: ==8290== Releasing lock... [2025-01-17 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:12:22] Production.INFO: 30 MB #Memory Used# [2025-01-17 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:13:05 [end_date_ymd] => 2025-01-17 08:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:13:05' and `end` < '2025-01-17 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-17 08:13:18] Production.INFO: count ==251 [2025-01-17 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:13:05 - End Time 2025-01-17 08:13:05 [2025-01-17 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266997', 'tblTempUsageDetail_20' ) start [2025-01-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14266997', 'tblTempUsageDetail_20' ) end [2025-01-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266997', 'tblTempVendorCDR_20' ) start [2025-01-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14266997', 'tblTempVendorCDR_20' ) end [2025-01-17 08:13:18] Production.INFO: ProcessCDR(1,14266997,1,1,2) [2025-01-17 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14266997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14266997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14266997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14266997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266997', 'tblTempUsageDetail_20' ) start [2025-01-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14266997', 'tblTempUsageDetail_20' ) end [2025-01-17 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:13:21] Production.INFO: ==8401== Releasing lock... [2025-01-17 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-17 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:14:05 [end_date_ymd] => 2025-01-17 08:14:05 [RateCDR] => 1 ) [2025-01-17 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:14:05' and `end` < '2025-01-17 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:14:19] Production.INFO: count ==256 [2025-01-17 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:14:05 - End Time 2025-01-17 08:14:05 [2025-01-17 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267002', 'tblTempUsageDetail_20' ) start [2025-01-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267002', 'tblTempUsageDetail_20' ) end [2025-01-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267002', 'tblTempVendorCDR_20' ) start [2025-01-17 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267002', 'tblTempVendorCDR_20' ) end [2025-01-17 08:14:19] Production.INFO: ProcessCDR(1,14267002,1,1,2) [2025-01-17 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267002', 'tblTempUsageDetail_20' ) start [2025-01-17 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267002', 'tblTempUsageDetail_20' ) end [2025-01-17 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:14:22] Production.INFO: ==8472== Releasing lock... [2025-01-17 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-17 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:15:04 [end_date_ymd] => 2025-01-17 08:15:04 [RateCDR] => 1 ) [2025-01-17 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:15:04' and `end` < '2025-01-17 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:15:17] Production.INFO: count ==262 [2025-01-17 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:15:04 - End Time 2025-01-17 08:15:04 [2025-01-17 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267007', 'tblTempUsageDetail_20' ) start [2025-01-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267007', 'tblTempUsageDetail_20' ) end [2025-01-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267007', 'tblTempVendorCDR_20' ) start [2025-01-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267007', 'tblTempVendorCDR_20' ) end [2025-01-17 08:15:17] Production.INFO: ProcessCDR(1,14267007,1,1,2) [2025-01-17 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267007', 'tblTempUsageDetail_20' ) start [2025-01-17 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267007', 'tblTempUsageDetail_20' ) end [2025-01-17 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:15:20] Production.INFO: ==8543== Releasing lock... [2025-01-17 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-17 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:16:05 [end_date_ymd] => 2025-01-17 08:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:16:05' and `end` < '2025-01-17 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-17 08:16:17] Production.INFO: count ==275 [2025-01-17 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:16:05 - End Time 2025-01-17 08:16:05 [2025-01-17 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267012', 'tblTempUsageDetail_20' ) start [2025-01-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267012', 'tblTempUsageDetail_20' ) end [2025-01-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267012', 'tblTempVendorCDR_20' ) start [2025-01-17 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267012', 'tblTempVendorCDR_20' ) end [2025-01-17 08:16:18] Production.INFO: ProcessCDR(1,14267012,1,1,2) [2025-01-17 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267012', 'tblTempUsageDetail_20' ) start [2025-01-17 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267012', 'tblTempUsageDetail_20' ) end [2025-01-17 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:16:22] Production.INFO: ==8614== Releasing lock... [2025-01-17 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-17 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:17:05 [end_date_ymd] => 2025-01-17 08:17:05 [RateCDR] => 1 ) [2025-01-17 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:17:05' and `end` < '2025-01-17 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:17:19] Production.INFO: count ==299 [2025-01-17 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:17:05 - End Time 2025-01-17 08:17:05 [2025-01-17 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267017', 'tblTempUsageDetail_20' ) start [2025-01-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267017', 'tblTempUsageDetail_20' ) end [2025-01-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267017', 'tblTempVendorCDR_20' ) start [2025-01-17 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267017', 'tblTempVendorCDR_20' ) end [2025-01-17 08:17:19] Production.INFO: ProcessCDR(1,14267017,1,1,2) [2025-01-17 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267017', 'tblTempUsageDetail_20' ) start [2025-01-17 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267017', 'tblTempUsageDetail_20' ) end [2025-01-17 08:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:17:24] Production.INFO: ==8684== Releasing lock... [2025-01-17 08:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:17:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-17 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:18:05 [end_date_ymd] => 2025-01-17 08:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:18:05' and `end` < '2025-01-17 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-17 08:18:17] Production.INFO: count ==315 [2025-01-17 08:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:18:05 - End Time 2025-01-17 08:18:05 [2025-01-17 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267022', 'tblTempUsageDetail_20' ) start [2025-01-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267022', 'tblTempUsageDetail_20' ) end [2025-01-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267022', 'tblTempVendorCDR_20' ) start [2025-01-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267022', 'tblTempVendorCDR_20' ) end [2025-01-17 08:18:17] Production.INFO: ProcessCDR(1,14267022,1,1,2) [2025-01-17 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267022', 'tblTempUsageDetail_20' ) start [2025-01-17 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267022', 'tblTempUsageDetail_20' ) end [2025-01-17 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:18:22] Production.INFO: ==8765== Releasing lock... [2025-01-17 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-01-17 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:19:06 [end_date_ymd] => 2025-01-17 08:19:06 [RateCDR] => 1 ) [2025-01-17 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:19:06' and `end` < '2025-01-17 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:19:19] Production.INFO: count ==336 [2025-01-17 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:19:06 - End Time 2025-01-17 08:19:06 [2025-01-17 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267027', 'tblTempUsageDetail_20' ) start [2025-01-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267027', 'tblTempUsageDetail_20' ) end [2025-01-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267027', 'tblTempVendorCDR_20' ) start [2025-01-17 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267027', 'tblTempVendorCDR_20' ) end [2025-01-17 08:19:19] Production.INFO: ProcessCDR(1,14267027,1,1,2) [2025-01-17 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267027', 'tblTempUsageDetail_20' ) start [2025-01-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267027', 'tblTempUsageDetail_20' ) end [2025-01-17 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:19:22] Production.INFO: ==8836== Releasing lock... [2025-01-17 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:19:22] Production.INFO: 31 MB #Memory Used# [2025-01-17 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:20:06 [end_date_ymd] => 2025-01-17 08:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 05:20:06' and `end` < '2025-01-17 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-17 08:20:18] Production.INFO: count ==359 [2025-01-17 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:20:06 - End Time 2025-01-17 08:20:06 [2025-01-17 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267033', 'tblTempUsageDetail_20' ) start [2025-01-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267033', 'tblTempUsageDetail_20' ) end [2025-01-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267033', 'tblTempVendorCDR_20' ) start [2025-01-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267033', 'tblTempVendorCDR_20' ) end [2025-01-17 08:20:18] Production.INFO: ProcessCDR(1,14267033,1,1,2) [2025-01-17 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267033', 'tblTempUsageDetail_20' ) start [2025-01-17 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267033', 'tblTempUsageDetail_20' ) end [2025-01-17 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:20:23] Production.INFO: ==8914== Releasing lock... [2025-01-17 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-17 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:21:05 [end_date_ymd] => 2025-01-17 08:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:21:05' and `end` < '2025-01-17 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-17 08:21:17] Production.INFO: count ==377 [2025-01-17 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:21:05 - End Time 2025-01-17 08:21:05 [2025-01-17 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267038', 'tblTempUsageDetail_20' ) start [2025-01-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267038', 'tblTempUsageDetail_20' ) end [2025-01-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267038', 'tblTempVendorCDR_20' ) start [2025-01-17 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267038', 'tblTempVendorCDR_20' ) end [2025-01-17 08:21:17] Production.INFO: ProcessCDR(1,14267038,1,1,2) [2025-01-17 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267038', 'tblTempUsageDetail_20' ) start [2025-01-17 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267038', 'tblTempUsageDetail_20' ) end [2025-01-17 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:21:22] Production.INFO: ==8988== Releasing lock... [2025-01-17 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-17 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:22:05 [end_date_ymd] => 2025-01-17 08:22:05 [RateCDR] => 1 ) [2025-01-17 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:22:05' and `end` < '2025-01-17 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:22:18] Production.INFO: count ==389 [2025-01-17 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:22:05 - End Time 2025-01-17 08:22:05 [2025-01-17 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267043', 'tblTempUsageDetail_20' ) start [2025-01-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267043', 'tblTempUsageDetail_20' ) end [2025-01-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267043', 'tblTempVendorCDR_20' ) start [2025-01-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267043', 'tblTempVendorCDR_20' ) end [2025-01-17 08:22:18] Production.INFO: ProcessCDR(1,14267043,1,1,2) [2025-01-17 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267043', 'tblTempUsageDetail_20' ) start [2025-01-17 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267043', 'tblTempUsageDetail_20' ) end [2025-01-17 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:22:23] Production.INFO: ==9059== Releasing lock... [2025-01-17 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:22:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-17 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:23:05 [end_date_ymd] => 2025-01-17 08:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:23:05' and `end` < '2025-01-17 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-17 08:23:18] Production.INFO: count ==397 [2025-01-17 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:23:05 - End Time 2025-01-17 08:23:05 [2025-01-17 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267048', 'tblTempUsageDetail_20' ) start [2025-01-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267048', 'tblTempUsageDetail_20' ) end [2025-01-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267048', 'tblTempVendorCDR_20' ) start [2025-01-17 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267048', 'tblTempVendorCDR_20' ) end [2025-01-17 08:23:18] Production.INFO: ProcessCDR(1,14267048,1,1,2) [2025-01-17 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267048', 'tblTempUsageDetail_20' ) start [2025-01-17 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267048', 'tblTempUsageDetail_20' ) end [2025-01-17 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:23:22] Production.INFO: ==9129== Releasing lock... [2025-01-17 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-17 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:24:04 [end_date_ymd] => 2025-01-17 08:24:04 [RateCDR] => 1 ) [2025-01-17 08: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-17 05:24:04' and `end` < '2025-01-17 08: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-17 08:24:17] Production.INFO: count ==420 [2025-01-17 08:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:24:04 - End Time 2025-01-17 08:24:04 [2025-01-17 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267053', 'tblTempUsageDetail_20' ) start [2025-01-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267053', 'tblTempUsageDetail_20' ) end [2025-01-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267053', 'tblTempVendorCDR_20' ) start [2025-01-17 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267053', 'tblTempVendorCDR_20' ) end [2025-01-17 08:24:17] Production.INFO: ProcessCDR(1,14267053,1,1,2) [2025-01-17 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267053', 'tblTempUsageDetail_20' ) start [2025-01-17 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267053', 'tblTempUsageDetail_20' ) end [2025-01-17 08:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:24:20] Production.INFO: ==9199== Releasing lock... [2025-01-17 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:24:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:25:05 [end_date_ymd] => 2025-01-17 08:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:25:05' and `end` < '2025-01-17 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-17 08:25:17] Production.INFO: count ==425 [2025-01-17 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:25:05 - End Time 2025-01-17 08:25:05 [2025-01-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267058', 'tblTempUsageDetail_20' ) start [2025-01-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267058', 'tblTempUsageDetail_20' ) end [2025-01-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267058', 'tblTempVendorCDR_20' ) start [2025-01-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267058', 'tblTempVendorCDR_20' ) end [2025-01-17 08:25:17] Production.INFO: ProcessCDR(1,14267058,1,1,2) [2025-01-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267058', 'tblTempUsageDetail_20' ) start [2025-01-17 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267058', 'tblTempUsageDetail_20' ) end [2025-01-17 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:25:21] Production.INFO: ==9269== Releasing lock... [2025-01-17 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-17 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:26:05 [end_date_ymd] => 2025-01-17 08:26:05 [RateCDR] => 1 ) [2025-01-17 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:26:05' and `end` < '2025-01-17 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:26:19] Production.INFO: count ==425 [2025-01-17 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:26:05 - End Time 2025-01-17 08:26:05 [2025-01-17 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267063', 'tblTempUsageDetail_20' ) start [2025-01-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267063', 'tblTempUsageDetail_20' ) end [2025-01-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267063', 'tblTempVendorCDR_20' ) start [2025-01-17 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267063', 'tblTempVendorCDR_20' ) end [2025-01-17 08:26:19] Production.INFO: ProcessCDR(1,14267063,1,1,2) [2025-01-17 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267063', 'tblTempUsageDetail_20' ) start [2025-01-17 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267063', 'tblTempUsageDetail_20' ) end [2025-01-17 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:26:22] Production.INFO: ==9340== Releasing lock... [2025-01-17 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-17 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:27:05 [end_date_ymd] => 2025-01-17 08:27:05 [RateCDR] => 1 ) [2025-01-17 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:27:05' and `end` < '2025-01-17 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:27:17] Production.INFO: count ==428 [2025-01-17 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:27:05 - End Time 2025-01-17 08:27:05 [2025-01-17 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267068', 'tblTempUsageDetail_20' ) start [2025-01-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267068', 'tblTempUsageDetail_20' ) end [2025-01-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267068', 'tblTempVendorCDR_20' ) start [2025-01-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267068', 'tblTempVendorCDR_20' ) end [2025-01-17 08:27:17] Production.INFO: ProcessCDR(1,14267068,1,1,2) [2025-01-17 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267068', 'tblTempUsageDetail_20' ) start [2025-01-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267068', 'tblTempUsageDetail_20' ) end [2025-01-17 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:27:21] Production.INFO: ==9414== Releasing lock... [2025-01-17 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:28:06 [end_date_ymd] => 2025-01-17 08:28:06 [RateCDR] => 1 ) [2025-01-17 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:28:06' and `end` < '2025-01-17 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:28:18] Production.INFO: count ==430 [2025-01-17 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:28:06 - End Time 2025-01-17 08:28:06 [2025-01-17 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267073', 'tblTempUsageDetail_20' ) start [2025-01-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267073', 'tblTempUsageDetail_20' ) end [2025-01-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267073', 'tblTempVendorCDR_20' ) start [2025-01-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267073', 'tblTempVendorCDR_20' ) end [2025-01-17 08:28:18] Production.INFO: ProcessCDR(1,14267073,1,1,2) [2025-01-17 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267073', 'tblTempUsageDetail_20' ) start [2025-01-17 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267073', 'tblTempUsageDetail_20' ) end [2025-01-17 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:28:21] Production.INFO: ==9485== Releasing lock... [2025-01-17 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:28:21] Production.INFO: 32 MB #Memory Used# [2025-01-17 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:29:05 [end_date_ymd] => 2025-01-17 08:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:29:05' and `end` < '2025-01-17 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-17 08:29:17] Production.INFO: count ==430 [2025-01-17 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:29:05 - End Time 2025-01-17 08:29:05 [2025-01-17 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267078', 'tblTempUsageDetail_20' ) start [2025-01-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267078', 'tblTempUsageDetail_20' ) end [2025-01-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267078', 'tblTempVendorCDR_20' ) start [2025-01-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267078', 'tblTempVendorCDR_20' ) end [2025-01-17 08:29:17] Production.INFO: ProcessCDR(1,14267078,1,1,2) [2025-01-17 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267078', 'tblTempUsageDetail_20' ) start [2025-01-17 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267078', 'tblTempUsageDetail_20' ) end [2025-01-17 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:29:20] Production.INFO: ==9594== Releasing lock... [2025-01-17 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:29:20] Production.INFO: 32 MB #Memory Used# [2025-01-17 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:30:05 [end_date_ymd] => 2025-01-17 08:30:05 [RateCDR] => 1 ) [2025-01-17 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:30:05' and `end` < '2025-01-17 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:30:18] Production.INFO: count ==434 [2025-01-17 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:30:05 - End Time 2025-01-17 08:30:05 [2025-01-17 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267083', 'tblTempUsageDetail_20' ) start [2025-01-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267083', 'tblTempUsageDetail_20' ) end [2025-01-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267083', 'tblTempVendorCDR_20' ) start [2025-01-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267083', 'tblTempVendorCDR_20' ) end [2025-01-17 08:30:18] Production.INFO: ProcessCDR(1,14267083,1,1,2) [2025-01-17 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267083', 'tblTempUsageDetail_20' ) start [2025-01-17 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267083', 'tblTempUsageDetail_20' ) end [2025-01-17 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:30:22] Production.INFO: ==9667== Releasing lock... [2025-01-17 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:30:22] Production.INFO: 32 MB #Memory Used# [2025-01-17 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:31:04 [end_date_ymd] => 2025-01-17 08:31:04 [RateCDR] => 1 ) [2025-01-17 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-17 05:31:04' and `end` < '2025-01-17 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-17 08:31:17] Production.INFO: count ==452 [2025-01-17 08:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:31:04 - End Time 2025-01-17 08:31:04 [2025-01-17 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267089', 'tblTempUsageDetail_20' ) start [2025-01-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267089', 'tblTempUsageDetail_20' ) end [2025-01-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267089', 'tblTempVendorCDR_20' ) start [2025-01-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267089', 'tblTempVendorCDR_20' ) end [2025-01-17 08:31:17] Production.INFO: ProcessCDR(1,14267089,1,1,2) [2025-01-17 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267089', 'tblTempUsageDetail_20' ) start [2025-01-17 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267089', 'tblTempUsageDetail_20' ) end [2025-01-17 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:31:23] Production.INFO: ==9739== Releasing lock... [2025-01-17 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:31:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:32:05 [end_date_ymd] => 2025-01-17 08:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:32:05' and `end` < '2025-01-17 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-17 08:32:18] Production.INFO: count ==454 [2025-01-17 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:32:05 - End Time 2025-01-17 08:32:05 [2025-01-17 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267094', 'tblTempUsageDetail_20' ) start [2025-01-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267094', 'tblTempUsageDetail_20' ) end [2025-01-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267094', 'tblTempVendorCDR_20' ) start [2025-01-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267094', 'tblTempVendorCDR_20' ) end [2025-01-17 08:32:18] Production.INFO: ProcessCDR(1,14267094,1,1,2) [2025-01-17 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267094', 'tblTempUsageDetail_20' ) start [2025-01-17 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267094', 'tblTempUsageDetail_20' ) end [2025-01-17 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:32:21] Production.INFO: ==9809== Releasing lock... [2025-01-17 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:33:06 [end_date_ymd] => 2025-01-17 08:33:06 [RateCDR] => 1 ) [2025-01-17 08: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-17 05:33:06' and `end` < '2025-01-17 08: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-17 08:33:18] Production.INFO: count ==470 [2025-01-17 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:33:06 - End Time 2025-01-17 08:33:06 [2025-01-17 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267099', 'tblTempUsageDetail_20' ) start [2025-01-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267099', 'tblTempUsageDetail_20' ) end [2025-01-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267099', 'tblTempVendorCDR_20' ) start [2025-01-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267099', 'tblTempVendorCDR_20' ) end [2025-01-17 08:33:18] Production.INFO: ProcessCDR(1,14267099,1,1,2) [2025-01-17 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267099', 'tblTempUsageDetail_20' ) start [2025-01-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267099', 'tblTempUsageDetail_20' ) end [2025-01-17 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:33:22] Production.INFO: ==9880== Releasing lock... [2025-01-17 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:34:05 [end_date_ymd] => 2025-01-17 08:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:34:05' and `end` < '2025-01-17 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-17 08:34:18] Production.INFO: count ==476 [2025-01-17 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:34:05 - End Time 2025-01-17 08:34:05 [2025-01-17 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267104', 'tblTempUsageDetail_20' ) start [2025-01-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267104', 'tblTempUsageDetail_20' ) end [2025-01-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267104', 'tblTempVendorCDR_20' ) start [2025-01-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267104', 'tblTempVendorCDR_20' ) end [2025-01-17 08:34:18] Production.INFO: ProcessCDR(1,14267104,1,1,2) [2025-01-17 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267104', 'tblTempUsageDetail_20' ) start [2025-01-17 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267104', 'tblTempUsageDetail_20' ) end [2025-01-17 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:34:22] Production.INFO: ==9957== Releasing lock... [2025-01-17 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-17 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:35:04 [end_date_ymd] => 2025-01-17 08:35:04 [RateCDR] => 1 ) [2025-01-17 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-17 05:35:04' and `end` < '2025-01-17 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-17 08:35:16] Production.INFO: count ==483 [2025-01-17 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:35:04 - End Time 2025-01-17 08:35:04 [2025-01-17 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267109', 'tblTempUsageDetail_20' ) start [2025-01-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267109', 'tblTempUsageDetail_20' ) end [2025-01-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267109', 'tblTempVendorCDR_20' ) start [2025-01-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267109', 'tblTempVendorCDR_20' ) end [2025-01-17 08:35:17] Production.INFO: ProcessCDR(1,14267109,1,1,2) [2025-01-17 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267109', 'tblTempUsageDetail_20' ) start [2025-01-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267109', 'tblTempUsageDetail_20' ) end [2025-01-17 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:35:21] Production.INFO: ==10027== Releasing lock... [2025-01-17 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:36:05 [end_date_ymd] => 2025-01-17 08:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:36:05' and `end` < '2025-01-17 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-17 08:36:18] Production.INFO: count ==489 [2025-01-17 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:36:05 - End Time 2025-01-17 08:36:05 [2025-01-17 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267114', 'tblTempUsageDetail_20' ) start [2025-01-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267114', 'tblTempUsageDetail_20' ) end [2025-01-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267114', 'tblTempVendorCDR_20' ) start [2025-01-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267114', 'tblTempVendorCDR_20' ) end [2025-01-17 08:36:18] Production.INFO: ProcessCDR(1,14267114,1,1,2) [2025-01-17 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267114', 'tblTempUsageDetail_20' ) start [2025-01-17 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267114', 'tblTempUsageDetail_20' ) end [2025-01-17 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:36:23] Production.INFO: ==10098== Releasing lock... [2025-01-17 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-17 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:37:05 [end_date_ymd] => 2025-01-17 08:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:37:05' and `end` < '2025-01-17 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-17 08:37:19] Production.INFO: count ==491 [2025-01-17 08:37:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:37:05 - End Time 2025-01-17 08:37:05 [2025-01-17 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267119', 'tblTempUsageDetail_20' ) start [2025-01-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267119', 'tblTempUsageDetail_20' ) end [2025-01-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267119', 'tblTempVendorCDR_20' ) start [2025-01-17 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267119', 'tblTempVendorCDR_20' ) end [2025-01-17 08:37:19] Production.INFO: ProcessCDR(1,14267119,1,1,2) [2025-01-17 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267119', 'tblTempUsageDetail_20' ) start [2025-01-17 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267119', 'tblTempUsageDetail_20' ) end [2025-01-17 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:37:24] Production.INFO: ==10169== Releasing lock... [2025-01-17 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:37:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:38:05 [end_date_ymd] => 2025-01-17 08:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:38:05' and `end` < '2025-01-17 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-17 08:38:18] Production.INFO: count ==506 [2025-01-17 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:38:05 - End Time 2025-01-17 08:38:05 [2025-01-17 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267124', 'tblTempUsageDetail_20' ) start [2025-01-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267124', 'tblTempUsageDetail_20' ) end [2025-01-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267124', 'tblTempVendorCDR_20' ) start [2025-01-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267124', 'tblTempVendorCDR_20' ) end [2025-01-17 08:38:18] Production.INFO: ProcessCDR(1,14267124,1,1,2) [2025-01-17 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267124', 'tblTempUsageDetail_20' ) start [2025-01-17 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267124', 'tblTempUsageDetail_20' ) end [2025-01-17 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:38:22] Production.INFO: ==10238== Releasing lock... [2025-01-17 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-17 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:39:05 [end_date_ymd] => 2025-01-17 08:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:39:05' and `end` < '2025-01-17 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-17 08:39:18] Production.INFO: count ==512 [2025-01-17 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:39:05 - End Time 2025-01-17 08:39:05 [2025-01-17 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267129', 'tblTempUsageDetail_20' ) start [2025-01-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267129', 'tblTempUsageDetail_20' ) end [2025-01-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267129', 'tblTempVendorCDR_20' ) start [2025-01-17 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267129', 'tblTempVendorCDR_20' ) end [2025-01-17 08:39:18] Production.INFO: ProcessCDR(1,14267129,1,1,2) [2025-01-17 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267129', 'tblTempUsageDetail_20' ) start [2025-01-17 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267129', 'tblTempUsageDetail_20' ) end [2025-01-17 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:39:21] Production.INFO: ==10310== Releasing lock... [2025-01-17 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-17 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:40:06 [end_date_ymd] => 2025-01-17 08:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 05:40:06' and `end` < '2025-01-17 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-17 08:40:18] Production.INFO: count ==513 [2025-01-17 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:40:06 - End Time 2025-01-17 08:40:06 [2025-01-17 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267134', 'tblTempUsageDetail_20' ) start [2025-01-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267134', 'tblTempUsageDetail_20' ) end [2025-01-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267134', 'tblTempVendorCDR_20' ) start [2025-01-17 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267134', 'tblTempVendorCDR_20' ) end [2025-01-17 08:40:18] Production.INFO: ProcessCDR(1,14267134,1,1,2) [2025-01-17 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267134', 'tblTempUsageDetail_20' ) start [2025-01-17 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267134', 'tblTempUsageDetail_20' ) end [2025-01-17 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:40:22] Production.INFO: ==10384== Releasing lock... [2025-01-17 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-17 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:41:05 [end_date_ymd] => 2025-01-17 08:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:41:05' and `end` < '2025-01-17 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-17 08:41:18] Production.INFO: count ==549 [2025-01-17 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:41:05 - End Time 2025-01-17 08:41:05 [2025-01-17 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267140', 'tblTempUsageDetail_20' ) start [2025-01-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267140', 'tblTempUsageDetail_20' ) end [2025-01-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267140', 'tblTempVendorCDR_20' ) start [2025-01-17 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267140', 'tblTempVendorCDR_20' ) end [2025-01-17 08:41:18] Production.INFO: ProcessCDR(1,14267140,1,1,2) [2025-01-17 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267140', 'tblTempUsageDetail_20' ) start [2025-01-17 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267140', 'tblTempUsageDetail_20' ) end [2025-01-17 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:41:21] Production.INFO: ==10455== Releasing lock... [2025-01-17 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:41:21] Production.INFO: 33 MB #Memory Used# [2025-01-17 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:42:04 [end_date_ymd] => 2025-01-17 08:42:04 [RateCDR] => 1 ) [2025-01-17 08:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:42:04' and `end` < '2025-01-17 08:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:42:18] Production.INFO: count ==563 [2025-01-17 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:42:04 - End Time 2025-01-17 08:42:04 [2025-01-17 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267145', 'tblTempUsageDetail_20' ) start [2025-01-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267145', 'tblTempUsageDetail_20' ) end [2025-01-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267145', 'tblTempVendorCDR_20' ) start [2025-01-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267145', 'tblTempVendorCDR_20' ) end [2025-01-17 08:42:18] Production.INFO: ProcessCDR(1,14267145,1,1,2) [2025-01-17 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267145', 'tblTempUsageDetail_20' ) start [2025-01-17 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267145', 'tblTempUsageDetail_20' ) end [2025-01-17 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:42:21] Production.INFO: ==10524== Releasing lock... [2025-01-17 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:42:21] Production.INFO: 33 MB #Memory Used# [2025-01-17 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:43:05 [end_date_ymd] => 2025-01-17 08:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:43:05' and `end` < '2025-01-17 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-17 08:43:17] Production.INFO: count ==568 [2025-01-17 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:43:05 - End Time 2025-01-17 08:43:05 [2025-01-17 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267150', 'tblTempUsageDetail_20' ) start [2025-01-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267150', 'tblTempUsageDetail_20' ) end [2025-01-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267150', 'tblTempVendorCDR_20' ) start [2025-01-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267150', 'tblTempVendorCDR_20' ) end [2025-01-17 08:43:17] Production.INFO: ProcessCDR(1,14267150,1,1,2) [2025-01-17 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267150', 'tblTempUsageDetail_20' ) start [2025-01-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267150', 'tblTempUsageDetail_20' ) end [2025-01-17 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:43:22] Production.INFO: ==10596== Releasing lock... [2025-01-17 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:43:22] Production.INFO: 33 MB #Memory Used# [2025-01-17 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:44:05 [end_date_ymd] => 2025-01-17 08:44:05 [RateCDR] => 1 ) [2025-01-17 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:44:05' and `end` < '2025-01-17 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:44:18] Production.INFO: count ==569 [2025-01-17 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:44:05 - End Time 2025-01-17 08:44:05 [2025-01-17 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267155', 'tblTempUsageDetail_20' ) start [2025-01-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267155', 'tblTempUsageDetail_20' ) end [2025-01-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267155', 'tblTempVendorCDR_20' ) start [2025-01-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267155', 'tblTempVendorCDR_20' ) end [2025-01-17 08:44:18] Production.INFO: ProcessCDR(1,14267155,1,1,2) [2025-01-17 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267155', 'tblTempUsageDetail_20' ) start [2025-01-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267155', 'tblTempUsageDetail_20' ) end [2025-01-17 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:44:22] Production.INFO: ==10705== Releasing lock... [2025-01-17 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:44:22] Production.INFO: 33 MB #Memory Used# [2025-01-17 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:45:05 [end_date_ymd] => 2025-01-17 08:45:05 [RateCDR] => 1 ) [2025-01-17 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:45:05' and `end` < '2025-01-17 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:45:17] Production.INFO: count ==576 [2025-01-17 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:45:05 - End Time 2025-01-17 08:45:05 [2025-01-17 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267160', 'tblTempUsageDetail_20' ) start [2025-01-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267160', 'tblTempUsageDetail_20' ) end [2025-01-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267160', 'tblTempVendorCDR_20' ) start [2025-01-17 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267160', 'tblTempVendorCDR_20' ) end [2025-01-17 08:45:17] Production.INFO: ProcessCDR(1,14267160,1,1,2) [2025-01-17 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267160', 'tblTempUsageDetail_20' ) start [2025-01-17 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267160', 'tblTempUsageDetail_20' ) end [2025-01-17 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:45:22] Production.INFO: ==10777== Releasing lock... [2025-01-17 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-17 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:46:05 [end_date_ymd] => 2025-01-17 08:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:46:05' and `end` < '2025-01-17 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-17 08:46:18] Production.INFO: count ==577 [2025-01-17 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:46:05 - End Time 2025-01-17 08:46:05 [2025-01-17 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267165', 'tblTempUsageDetail_20' ) start [2025-01-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267165', 'tblTempUsageDetail_20' ) end [2025-01-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267165', 'tblTempVendorCDR_20' ) start [2025-01-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267165', 'tblTempVendorCDR_20' ) end [2025-01-17 08:46:18] Production.INFO: ProcessCDR(1,14267165,1,1,2) [2025-01-17 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267165', 'tblTempUsageDetail_20' ) start [2025-01-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267165', 'tblTempUsageDetail_20' ) end [2025-01-17 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:46:22] Production.INFO: ==10852== Releasing lock... [2025-01-17 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-17 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:47:04 [end_date_ymd] => 2025-01-17 08:47:04 [RateCDR] => 1 ) [2025-01-17 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:47:04' and `end` < '2025-01-17 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:47:17] Production.INFO: count ==592 [2025-01-17 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:47:04 - End Time 2025-01-17 08:47:04 [2025-01-17 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267170', 'tblTempUsageDetail_20' ) start [2025-01-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267170', 'tblTempUsageDetail_20' ) end [2025-01-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267170', 'tblTempVendorCDR_20' ) start [2025-01-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267170', 'tblTempVendorCDR_20' ) end [2025-01-17 08:47:17] Production.INFO: ProcessCDR(1,14267170,1,1,2) [2025-01-17 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267170', 'tblTempUsageDetail_20' ) start [2025-01-17 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267170', 'tblTempUsageDetail_20' ) end [2025-01-17 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:47:22] Production.INFO: ==10923== Releasing lock... [2025-01-17 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-17 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:48:05 [end_date_ymd] => 2025-01-17 08:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:48:05' and `end` < '2025-01-17 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-17 08:48:18] Production.INFO: count ==606 [2025-01-17 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:48:05 - End Time 2025-01-17 08:48:05 [2025-01-17 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267175', 'tblTempUsageDetail_20' ) start [2025-01-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267175', 'tblTempUsageDetail_20' ) end [2025-01-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267175', 'tblTempVendorCDR_20' ) start [2025-01-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267175', 'tblTempVendorCDR_20' ) end [2025-01-17 08:48:18] Production.INFO: ProcessCDR(1,14267175,1,1,2) [2025-01-17 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267175', 'tblTempUsageDetail_20' ) start [2025-01-17 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267175', 'tblTempUsageDetail_20' ) end [2025-01-17 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:48:21] Production.INFO: ==10994== Releasing lock... [2025-01-17 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-17 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:49:05 [end_date_ymd] => 2025-01-17 08:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:49:05' and `end` < '2025-01-17 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-17 08:49:18] Production.INFO: count ==621 [2025-01-17 08:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 05:49:05 - End Time 2025-01-17 08:49:05 [2025-01-17 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267180', 'tblTempUsageDetail_20' ) start [2025-01-17 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267180', 'tblTempUsageDetail_20' ) end [2025-01-17 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267180', 'tblTempVendorCDR_20' ) start [2025-01-17 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267180', 'tblTempVendorCDR_20' ) end [2025-01-17 08:49:19] Production.INFO: ProcessCDR(1,14267180,1,1,2) [2025-01-17 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267180', 'tblTempUsageDetail_20' ) start [2025-01-17 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267180', 'tblTempUsageDetail_20' ) end [2025-01-17 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:49:22] Production.INFO: ==11067== Releasing lock... [2025-01-17 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-17 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:50:05 [end_date_ymd] => 2025-01-17 08:50:05 [RateCDR] => 1 ) [2025-01-17 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:50:05' and `end` < '2025-01-17 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:50:18] Production.INFO: count ==630 [2025-01-17 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:50:05 - End Time 2025-01-17 08:50:05 [2025-01-17 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267185', 'tblTempUsageDetail_20' ) start [2025-01-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267185', 'tblTempUsageDetail_20' ) end [2025-01-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267185', 'tblTempVendorCDR_20' ) start [2025-01-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267185', 'tblTempVendorCDR_20' ) end [2025-01-17 08:50:18] Production.INFO: ProcessCDR(1,14267185,1,1,2) [2025-01-17 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267185', 'tblTempUsageDetail_20' ) start [2025-01-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267185', 'tblTempUsageDetail_20' ) end [2025-01-17 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:50:21] Production.INFO: ==11139== Releasing lock... [2025-01-17 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:50:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-17 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:51:04 [end_date_ymd] => 2025-01-17 08:51:04 [RateCDR] => 1 ) [2025-01-17 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 05:51:04' and `end` < '2025-01-17 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 08:51:17] Production.INFO: count ==678 [2025-01-17 08:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:51:04 - End Time 2025-01-17 08:51:04 [2025-01-17 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267191', 'tblTempUsageDetail_20' ) start [2025-01-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267191', 'tblTempUsageDetail_20' ) end [2025-01-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267191', 'tblTempVendorCDR_20' ) start [2025-01-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267191', 'tblTempVendorCDR_20' ) end [2025-01-17 08:51:17] Production.INFO: ProcessCDR(1,14267191,1,1,2) [2025-01-17 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267191', 'tblTempUsageDetail_20' ) start [2025-01-17 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267191', 'tblTempUsageDetail_20' ) end [2025-01-17 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:51:22] Production.INFO: ==11211== Releasing lock... [2025-01-17 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-17 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:52:05 [end_date_ymd] => 2025-01-17 08:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:52:05' and `end` < '2025-01-17 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-17 08:52:17] Production.INFO: count ==680 [2025-01-17 08:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:52:05 - End Time 2025-01-17 08:52:05 [2025-01-17 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267196', 'tblTempUsageDetail_20' ) start [2025-01-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267196', 'tblTempUsageDetail_20' ) end [2025-01-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267196', 'tblTempVendorCDR_20' ) start [2025-01-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267196', 'tblTempVendorCDR_20' ) end [2025-01-17 08:52:17] Production.INFO: ProcessCDR(1,14267196,1,1,2) [2025-01-17 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267196', 'tblTempUsageDetail_20' ) start [2025-01-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267196', 'tblTempUsageDetail_20' ) end [2025-01-17 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:52:21] Production.INFO: ==11282== Releasing lock... [2025-01-17 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-17 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:53:05 [end_date_ymd] => 2025-01-17 08:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:53:05' and `end` < '2025-01-17 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-17 08:53:18] Production.INFO: count ==702 [2025-01-17 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:53:05 - End Time 2025-01-17 08:53:05 [2025-01-17 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267201', 'tblTempUsageDetail_20' ) start [2025-01-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267201', 'tblTempUsageDetail_20' ) end [2025-01-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267201', 'tblTempVendorCDR_20' ) start [2025-01-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267201', 'tblTempVendorCDR_20' ) end [2025-01-17 08:53:18] Production.INFO: ProcessCDR(1,14267201,1,1,2) [2025-01-17 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267201', 'tblTempUsageDetail_20' ) start [2025-01-17 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267201', 'tblTempUsageDetail_20' ) end [2025-01-17 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:53:21] Production.INFO: ==11354== Releasing lock... [2025-01-17 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:53:21] Production.INFO: 34 MB #Memory Used# [2025-01-17 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:54:05 [end_date_ymd] => 2025-01-17 08:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:54:05' and `end` < '2025-01-17 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-17 08:54:17] Production.INFO: count ==702 [2025-01-17 08:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 05:54:05 - End Time 2025-01-17 08:54:05 [2025-01-17 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267206', 'tblTempUsageDetail_20' ) start [2025-01-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267206', 'tblTempUsageDetail_20' ) end [2025-01-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267206', 'tblTempVendorCDR_20' ) start [2025-01-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267206', 'tblTempVendorCDR_20' ) end [2025-01-17 08:54:17] Production.INFO: ProcessCDR(1,14267206,1,1,2) [2025-01-17 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267206', 'tblTempUsageDetail_20' ) start [2025-01-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267206', 'tblTempUsageDetail_20' ) end [2025-01-17 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:54:21] Production.INFO: ==11424== Releasing lock... [2025-01-17 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:54:21] Production.INFO: 34 MB #Memory Used# [2025-01-17 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:55:06 [end_date_ymd] => 2025-01-17 08:55:06 [RateCDR] => 1 ) [2025-01-17 08: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-17 05:55:06' and `end` < '2025-01-17 08: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-17 08:55:18] Production.INFO: count ==714 [2025-01-17 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:55:06 - End Time 2025-01-17 08:55:06 [2025-01-17 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267211', 'tblTempUsageDetail_20' ) start [2025-01-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267211', 'tblTempUsageDetail_20' ) end [2025-01-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267211', 'tblTempVendorCDR_20' ) start [2025-01-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267211', 'tblTempVendorCDR_20' ) end [2025-01-17 08:55:18] Production.INFO: ProcessCDR(1,14267211,1,1,2) [2025-01-17 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267211', 'tblTempUsageDetail_20' ) start [2025-01-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267211', 'tblTempUsageDetail_20' ) end [2025-01-17 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:55:23] Production.INFO: ==11494== Releasing lock... [2025-01-17 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:55:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-17 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:56:05 [end_date_ymd] => 2025-01-17 08:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:56:05' and `end` < '2025-01-17 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-17 08:56:18] Production.INFO: count ==756 [2025-01-17 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:56:05 - End Time 2025-01-17 08:56:05 [2025-01-17 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267216', 'tblTempUsageDetail_20' ) start [2025-01-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267216', 'tblTempUsageDetail_20' ) end [2025-01-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267216', 'tblTempVendorCDR_20' ) start [2025-01-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267216', 'tblTempVendorCDR_20' ) end [2025-01-17 08:56:18] Production.INFO: ProcessCDR(1,14267216,1,1,2) [2025-01-17 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267216', 'tblTempUsageDetail_20' ) start [2025-01-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267216', 'tblTempUsageDetail_20' ) end [2025-01-17 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:56:22] Production.INFO: ==11564== Releasing lock... [2025-01-17 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-17 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:57:06 [end_date_ymd] => 2025-01-17 08:57:06 [RateCDR] => 1 ) [2025-01-17 08: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-17 05:57:06' and `end` < '2025-01-17 08: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-17 08:57:18] Production.INFO: count ==758 [2025-01-17 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:57:06 - End Time 2025-01-17 08:57:06 [2025-01-17 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267221', 'tblTempUsageDetail_20' ) start [2025-01-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267221', 'tblTempUsageDetail_20' ) end [2025-01-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267221', 'tblTempVendorCDR_20' ) start [2025-01-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267221', 'tblTempVendorCDR_20' ) end [2025-01-17 08:57:18] Production.INFO: ProcessCDR(1,14267221,1,1,2) [2025-01-17 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267221', 'tblTempUsageDetail_20' ) start [2025-01-17 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267221', 'tblTempUsageDetail_20' ) end [2025-01-17 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:57:22] Production.INFO: ==11635== Releasing lock... [2025-01-17 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:57:22] Production.INFO: 34 MB #Memory Used# [2025-01-17 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:58:05 [end_date_ymd] => 2025-01-17 08:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:58:05' and `end` < '2025-01-17 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-17 08:58:18] Production.INFO: count ==760 [2025-01-17 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:58:05 - End Time 2025-01-17 08:58:05 [2025-01-17 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267226', 'tblTempUsageDetail_20' ) start [2025-01-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267226', 'tblTempUsageDetail_20' ) end [2025-01-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267226', 'tblTempVendorCDR_20' ) start [2025-01-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267226', 'tblTempVendorCDR_20' ) end [2025-01-17 08:58:18] Production.INFO: ProcessCDR(1,14267226,1,1,2) [2025-01-17 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267226', 'tblTempUsageDetail_20' ) start [2025-01-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267226', 'tblTempUsageDetail_20' ) end [2025-01-17 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:58:23] Production.INFO: ==11705== Releasing lock... [2025-01-17 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:58:23] Production.INFO: 34 MB #Memory Used# [2025-01-17 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 05:59:05 [end_date_ymd] => 2025-01-17 08:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 05:59:05' and `end` < '2025-01-17 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-17 08:59:18] Production.INFO: count ==780 [2025-01-17 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 05:59:05 - End Time 2025-01-17 08:59:05 [2025-01-17 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267231', 'tblTempUsageDetail_20' ) start [2025-01-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267231', 'tblTempUsageDetail_20' ) end [2025-01-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267231', 'tblTempVendorCDR_20' ) start [2025-01-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267231', 'tblTempVendorCDR_20' ) end [2025-01-17 08:59:18] Production.INFO: ProcessCDR(1,14267231,1,1,2) [2025-01-17 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267231', 'tblTempUsageDetail_20' ) start [2025-01-17 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267231', 'tblTempUsageDetail_20' ) end [2025-01-17 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 08:59:23] Production.INFO: ==11777== Releasing lock... [2025-01-17 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 08:59:23] Production.INFO: 34 MB #Memory Used# [2025-01-17 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:00:05 [end_date_ymd] => 2025-01-17 09:00:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:00:05' and `end` < '2025-01-17 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-17 09:00:18] Production.INFO: count ==806 [2025-01-17 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:00:05 - End Time 2025-01-17 09:00:05 [2025-01-17 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267237', 'tblTempUsageDetail_20' ) start [2025-01-17 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267237', 'tblTempUsageDetail_20' ) end [2025-01-17 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267237', 'tblTempVendorCDR_20' ) start [2025-01-17 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267237', 'tblTempVendorCDR_20' ) end [2025-01-17 09:00:18] Production.INFO: ProcessCDR(1,14267237,1,1,2) [2025-01-17 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267237', 'tblTempUsageDetail_20' ) start [2025-01-17 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267237', 'tblTempUsageDetail_20' ) end [2025-01-17 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:00:23] Production.INFO: ==11888== Releasing lock... [2025-01-17 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-17 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:01:05 [end_date_ymd] => 2025-01-17 09:01:05 [RateCDR] => 1 ) [2025-01-17 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:01:05' and `end` < '2025-01-17 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:01:17] Production.INFO: count ==857 [2025-01-17 09:01:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:01:05 - End Time 2025-01-17 09:01:05 [2025-01-17 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267242', 'tblTempUsageDetail_20' ) start [2025-01-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267242', 'tblTempUsageDetail_20' ) end [2025-01-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267242', 'tblTempVendorCDR_20' ) start [2025-01-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267242', 'tblTempVendorCDR_20' ) end [2025-01-17 09:01:17] Production.INFO: ProcessCDR(1,14267242,1,1,2) [2025-01-17 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267242', 'tblTempUsageDetail_20' ) start [2025-01-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267242', 'tblTempUsageDetail_20' ) end [2025-01-17 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:01:22] Production.INFO: ==11971== Releasing lock... [2025-01-17 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:01:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-17 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:02:05 [end_date_ymd] => 2025-01-17 09:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:02:05' and `end` < '2025-01-17 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-17 09:02:17] Production.INFO: count ==864 [2025-01-17 09:02:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:02:05 - End Time 2025-01-17 09:02:05 [2025-01-17 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267247', 'tblTempUsageDetail_20' ) start [2025-01-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267247', 'tblTempUsageDetail_20' ) end [2025-01-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267247', 'tblTempVendorCDR_20' ) start [2025-01-17 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267247', 'tblTempVendorCDR_20' ) end [2025-01-17 09:02:17] Production.INFO: ProcessCDR(1,14267247,1,1,2) [2025-01-17 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267247', 'tblTempUsageDetail_20' ) start [2025-01-17 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267247', 'tblTempUsageDetail_20' ) end [2025-01-17 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:02:21] Production.INFO: ==12042== Releasing lock... [2025-01-17 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:02:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:03:05 [end_date_ymd] => 2025-01-17 09:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:03:05' and `end` < '2025-01-17 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-17 09:03:18] Production.INFO: count ==881 [2025-01-17 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:03:05 - End Time 2025-01-17 09:03:05 [2025-01-17 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267252', 'tblTempUsageDetail_20' ) start [2025-01-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267252', 'tblTempUsageDetail_20' ) end [2025-01-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267252', 'tblTempVendorCDR_20' ) start [2025-01-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267252', 'tblTempVendorCDR_20' ) end [2025-01-17 09:03:18] Production.INFO: ProcessCDR(1,14267252,1,1,2) [2025-01-17 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267252', 'tblTempUsageDetail_20' ) start [2025-01-17 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267252', 'tblTempUsageDetail_20' ) end [2025-01-17 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:03:22] Production.INFO: ==12118== Releasing lock... [2025-01-17 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:03:22] Production.INFO: 35 MB #Memory Used# [2025-01-17 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:04:04 [end_date_ymd] => 2025-01-17 09:04:04 [RateCDR] => 1 ) [2025-01-17 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:04:04' and `end` < '2025-01-17 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:04:17] Production.INFO: count ==888 [2025-01-17 09:04:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:04:04 - End Time 2025-01-17 09:04:04 [2025-01-17 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267257', 'tblTempUsageDetail_20' ) start [2025-01-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267257', 'tblTempUsageDetail_20' ) end [2025-01-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267257', 'tblTempVendorCDR_20' ) start [2025-01-17 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267257', 'tblTempVendorCDR_20' ) end [2025-01-17 09:04:17] Production.INFO: ProcessCDR(1,14267257,1,1,2) [2025-01-17 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267257', 'tblTempUsageDetail_20' ) start [2025-01-17 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267257', 'tblTempUsageDetail_20' ) end [2025-01-17 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:04:22] Production.INFO: ==12186== Releasing lock... [2025-01-17 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:05:05 [end_date_ymd] => 2025-01-17 09:05:05 [RateCDR] => 1 ) [2025-01-17 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:05:05' and `end` < '2025-01-17 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:05:17] Production.INFO: count ==897 [2025-01-17 09:05:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:05:05 - End Time 2025-01-17 09:05:05 [2025-01-17 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267262', 'tblTempUsageDetail_20' ) start [2025-01-17 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267262', 'tblTempUsageDetail_20' ) end [2025-01-17 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267262', 'tblTempVendorCDR_20' ) start [2025-01-17 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267262', 'tblTempVendorCDR_20' ) end [2025-01-17 09:05:17] Production.INFO: ProcessCDR(1,14267262,1,1,2) [2025-01-17 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267262', 'tblTempUsageDetail_20' ) start [2025-01-17 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267262', 'tblTempUsageDetail_20' ) end [2025-01-17 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:05:20] Production.INFO: ==12258== Releasing lock... [2025-01-17 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:05:20] Production.INFO: 35 MB #Memory Used# [2025-01-17 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:06:05 [end_date_ymd] => 2025-01-17 09:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:06:05' and `end` < '2025-01-17 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-17 09:06:18] Production.INFO: count ==924 [2025-01-17 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:06:05 - End Time 2025-01-17 09:06:05 [2025-01-17 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267267', 'tblTempUsageDetail_20' ) start [2025-01-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267267', 'tblTempUsageDetail_20' ) end [2025-01-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267267', 'tblTempVendorCDR_20' ) start [2025-01-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267267', 'tblTempVendorCDR_20' ) end [2025-01-17 09:06:18] Production.INFO: ProcessCDR(1,14267267,1,1,2) [2025-01-17 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267267', 'tblTempUsageDetail_20' ) start [2025-01-17 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267267', 'tblTempUsageDetail_20' ) end [2025-01-17 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:06:23] Production.INFO: ==12330== Releasing lock... [2025-01-17 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:06:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-17 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:07:05 [end_date_ymd] => 2025-01-17 09:07:05 [RateCDR] => 1 ) [2025-01-17 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:07:05' and `end` < '2025-01-17 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:07:17] Production.INFO: count ==940 [2025-01-17 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:07:05 - End Time 2025-01-17 09:07:05 [2025-01-17 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267272', 'tblTempUsageDetail_20' ) start [2025-01-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267272', 'tblTempUsageDetail_20' ) end [2025-01-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267272', 'tblTempVendorCDR_20' ) start [2025-01-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267272', 'tblTempVendorCDR_20' ) end [2025-01-17 09:07:18] Production.INFO: ProcessCDR(1,14267272,1,1,2) [2025-01-17 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267272', 'tblTempUsageDetail_20' ) start [2025-01-17 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267272', 'tblTempUsageDetail_20' ) end [2025-01-17 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:07:23] Production.INFO: ==12400== Releasing lock... [2025-01-17 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:07:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:08:05 [end_date_ymd] => 2025-01-17 09:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:08:05' and `end` < '2025-01-17 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-17 09:08:18] Production.INFO: count ==969 [2025-01-17 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:08:05 - End Time 2025-01-17 09:08:05 [2025-01-17 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267277', 'tblTempUsageDetail_20' ) start [2025-01-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267277', 'tblTempUsageDetail_20' ) end [2025-01-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267277', 'tblTempVendorCDR_20' ) start [2025-01-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267277', 'tblTempVendorCDR_20' ) end [2025-01-17 09:08:18] Production.INFO: ProcessCDR(1,14267277,1,1,2) [2025-01-17 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267277', 'tblTempUsageDetail_20' ) start [2025-01-17 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267277', 'tblTempUsageDetail_20' ) end [2025-01-17 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:08:23] Production.INFO: ==12472== Releasing lock... [2025-01-17 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:09:04 [end_date_ymd] => 2025-01-17 09:09:04 [RateCDR] => 1 ) [2025-01-17 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:09:04' and `end` < '2025-01-17 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:09:17] Production.INFO: count ==996 [2025-01-17 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:09:04 - End Time 2025-01-17 09:09:04 [2025-01-17 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267282', 'tblTempUsageDetail_20' ) start [2025-01-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267282', 'tblTempUsageDetail_20' ) end [2025-01-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267282', 'tblTempVendorCDR_20' ) start [2025-01-17 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267282', 'tblTempVendorCDR_20' ) end [2025-01-17 09:09:17] Production.INFO: ProcessCDR(1,14267282,1,1,2) [2025-01-17 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267282', 'tblTempUsageDetail_20' ) start [2025-01-17 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267282', 'tblTempUsageDetail_20' ) end [2025-01-17 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:09:21] Production.INFO: ==12543== Releasing lock... [2025-01-17 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:09:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:10:05 [end_date_ymd] => 2025-01-17 09:10:05 [RateCDR] => 1 ) [2025-01-17 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:10:05' and `end` < '2025-01-17 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:10:18] Production.INFO: count ==1017 [2025-01-17 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:10:05 - End Time 2025-01-17 09:10:05 [2025-01-17 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267288', 'tblTempUsageDetail_20' ) start [2025-01-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267288', 'tblTempUsageDetail_20' ) end [2025-01-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267288', 'tblTempVendorCDR_20' ) start [2025-01-17 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267288', 'tblTempVendorCDR_20' ) end [2025-01-17 09:10:18] Production.INFO: ProcessCDR(1,14267288,1,1,2) [2025-01-17 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267288', 'tblTempUsageDetail_20' ) start [2025-01-17 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267288', 'tblTempUsageDetail_20' ) end [2025-01-17 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:10:24] Production.INFO: ==12616== Releasing lock... [2025-01-17 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:10:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:11:05 [end_date_ymd] => 2025-01-17 09:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:11:05' and `end` < '2025-01-17 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-17 09:11:18] Production.INFO: count ==1063 [2025-01-17 09:11:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:11:05 - End Time 2025-01-17 09:11:05 [2025-01-17 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267293', 'tblTempUsageDetail_20' ) start [2025-01-17 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267293', 'tblTempUsageDetail_20' ) end [2025-01-17 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267293', 'tblTempVendorCDR_20' ) start [2025-01-17 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267293', 'tblTempVendorCDR_20' ) end [2025-01-17 09:11:19] Production.INFO: ProcessCDR(1,14267293,1,1,2) [2025-01-17 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267293', 'tblTempUsageDetail_20' ) start [2025-01-17 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267293', 'tblTempUsageDetail_20' ) end [2025-01-17 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:11:22] Production.INFO: ==12690== Releasing lock... [2025-01-17 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:11:22] Production.INFO: 36 MB #Memory Used# [2025-01-17 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:12:05 [end_date_ymd] => 2025-01-17 09:12:05 [RateCDR] => 1 ) [2025-01-17 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:12:05' and `end` < '2025-01-17 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:12:17] Production.INFO: count ==1087 [2025-01-17 09:12:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:12:05 - End Time 2025-01-17 09:12:05 [2025-01-17 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267298', 'tblTempUsageDetail_20' ) start [2025-01-17 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267298', 'tblTempUsageDetail_20' ) end [2025-01-17 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267298', 'tblTempVendorCDR_20' ) start [2025-01-17 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267298', 'tblTempVendorCDR_20' ) end [2025-01-17 09:12:17] Production.INFO: ProcessCDR(1,14267298,1,1,2) [2025-01-17 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267298', 'tblTempUsageDetail_20' ) start [2025-01-17 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267298', 'tblTempUsageDetail_20' ) end [2025-01-17 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:12:21] Production.INFO: ==12760== Releasing lock... [2025-01-17 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:12:21] Production.INFO: 37 MB #Memory Used# [2025-01-17 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:13:05 [end_date_ymd] => 2025-01-17 09:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:13:05' and `end` < '2025-01-17 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-17 09:13:18] Production.INFO: count ==1089 [2025-01-17 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:13:05 - End Time 2025-01-17 09:13:05 [2025-01-17 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267303', 'tblTempUsageDetail_20' ) start [2025-01-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267303', 'tblTempUsageDetail_20' ) end [2025-01-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267303', 'tblTempVendorCDR_20' ) start [2025-01-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267303', 'tblTempVendorCDR_20' ) end [2025-01-17 09:13:18] Production.INFO: ProcessCDR(1,14267303,1,1,2) [2025-01-17 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267303', 'tblTempUsageDetail_20' ) start [2025-01-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267303', 'tblTempUsageDetail_20' ) end [2025-01-17 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:13:23] Production.INFO: ==12831== Releasing lock... [2025-01-17 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:13:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:14:05 [end_date_ymd] => 2025-01-17 09:14:05 [RateCDR] => 1 ) [2025-01-17 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:14:05' and `end` < '2025-01-17 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:14:17] Production.INFO: count ==1107 [2025-01-17 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:14:05 - End Time 2025-01-17 09:14:05 [2025-01-17 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267308', 'tblTempUsageDetail_20' ) start [2025-01-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267308', 'tblTempUsageDetail_20' ) end [2025-01-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267308', 'tblTempVendorCDR_20' ) start [2025-01-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267308', 'tblTempVendorCDR_20' ) end [2025-01-17 09:14:18] Production.INFO: ProcessCDR(1,14267308,1,1,2) [2025-01-17 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267308', 'tblTempUsageDetail_20' ) start [2025-01-17 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267308', 'tblTempUsageDetail_20' ) end [2025-01-17 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:14:22] Production.INFO: ==12902== Releasing lock... [2025-01-17 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:15:06 [end_date_ymd] => 2025-01-17 09:15:06 [RateCDR] => 1 ) [2025-01-17 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:15:06' and `end` < '2025-01-17 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:15:18] Production.INFO: count ==1123 [2025-01-17 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:15:06 - End Time 2025-01-17 09:15:06 [2025-01-17 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267313', 'tblTempUsageDetail_20' ) start [2025-01-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267313', 'tblTempUsageDetail_20' ) end [2025-01-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267313', 'tblTempVendorCDR_20' ) start [2025-01-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267313', 'tblTempVendorCDR_20' ) end [2025-01-17 09:15:18] Production.INFO: ProcessCDR(1,14267313,1,1,2) [2025-01-17 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267313', 'tblTempUsageDetail_20' ) start [2025-01-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267313', 'tblTempUsageDetail_20' ) end [2025-01-17 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:15:23] Production.INFO: ==13011== Releasing lock... [2025-01-17 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:16:05 [end_date_ymd] => 2025-01-17 09:16:05 [RateCDR] => 1 ) [2025-01-17 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:16:05' and `end` < '2025-01-17 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:16:18] Production.INFO: count ==1138 [2025-01-17 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:16:05 - End Time 2025-01-17 09:16:05 [2025-01-17 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267318', 'tblTempUsageDetail_20' ) start [2025-01-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267318', 'tblTempUsageDetail_20' ) end [2025-01-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267318', 'tblTempVendorCDR_20' ) start [2025-01-17 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267318', 'tblTempVendorCDR_20' ) end [2025-01-17 09:16:19] Production.INFO: ProcessCDR(1,14267318,1,1,2) [2025-01-17 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267318', 'tblTempUsageDetail_20' ) start [2025-01-17 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267318', 'tblTempUsageDetail_20' ) end [2025-01-17 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:16:24] Production.INFO: ==13081== Releasing lock... [2025-01-17 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:17:05 [end_date_ymd] => 2025-01-17 09:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:17:05' and `end` < '2025-01-17 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-17 09:17:18] Production.INFO: count ==1177 [2025-01-17 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:17:05 - End Time 2025-01-17 09:17:05 [2025-01-17 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267323', 'tblTempUsageDetail_20' ) start [2025-01-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267323', 'tblTempUsageDetail_20' ) end [2025-01-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267323', 'tblTempVendorCDR_20' ) start [2025-01-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267323', 'tblTempVendorCDR_20' ) end [2025-01-17 09:17:18] Production.INFO: ProcessCDR(1,14267323,1,1,2) [2025-01-17 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267323', 'tblTempUsageDetail_20' ) start [2025-01-17 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267323', 'tblTempUsageDetail_20' ) end [2025-01-17 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:17:23] Production.INFO: ==13150== Releasing lock... [2025-01-17 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:17:23] Production.INFO: 37 MB #Memory Used# [2025-01-17 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:18:05 [end_date_ymd] => 2025-01-17 09:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:18:05' and `end` < '2025-01-17 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-17 09:18:17] Production.INFO: count ==1187 [2025-01-17 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:18:05 - End Time 2025-01-17 09:18:05 [2025-01-17 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267328', 'tblTempUsageDetail_20' ) start [2025-01-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267328', 'tblTempUsageDetail_20' ) end [2025-01-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267328', 'tblTempVendorCDR_20' ) start [2025-01-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267328', 'tblTempVendorCDR_20' ) end [2025-01-17 09:18:18] Production.INFO: ProcessCDR(1,14267328,1,1,2) [2025-01-17 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267328', 'tblTempUsageDetail_20' ) start [2025-01-17 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267328', 'tblTempUsageDetail_20' ) end [2025-01-17 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:18:22] Production.INFO: ==13226== Releasing lock... [2025-01-17 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:18:22] Production.INFO: 37 MB #Memory Used# [2025-01-17 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:19:05 [end_date_ymd] => 2025-01-17 09:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:19:05' and `end` < '2025-01-17 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-17 09:19:17] Production.INFO: count ==1212 [2025-01-17 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:19:05 - End Time 2025-01-17 09:19:05 [2025-01-17 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267333', 'tblTempUsageDetail_20' ) start [2025-01-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267333', 'tblTempUsageDetail_20' ) end [2025-01-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267333', 'tblTempVendorCDR_20' ) start [2025-01-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267333', 'tblTempVendorCDR_20' ) end [2025-01-17 09:19:18] Production.INFO: ProcessCDR(1,14267333,1,1,2) [2025-01-17 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267333', 'tblTempUsageDetail_20' ) start [2025-01-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267333', 'tblTempUsageDetail_20' ) end [2025-01-17 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:19:23] Production.INFO: ==13296== Releasing lock... [2025-01-17 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-17 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:20:06 [end_date_ymd] => 2025-01-17 09:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 06:20:06' and `end` < '2025-01-17 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-17 09:20:19] Production.INFO: count ==1234 [2025-01-17 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:20:06 - End Time 2025-01-17 09:20:06 [2025-01-17 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267339', 'tblTempUsageDetail_20' ) start [2025-01-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267339', 'tblTempUsageDetail_20' ) end [2025-01-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267339', 'tblTempVendorCDR_20' ) start [2025-01-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267339', 'tblTempVendorCDR_20' ) end [2025-01-17 09:20:19] Production.INFO: ProcessCDR(1,14267339,1,1,2) [2025-01-17 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267339', 'tblTempUsageDetail_20' ) start [2025-01-17 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267339', 'tblTempUsageDetail_20' ) end [2025-01-17 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:20:24] Production.INFO: ==13369== Releasing lock... [2025-01-17 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-17 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:21:05 [end_date_ymd] => 2025-01-17 09:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:21:05' and `end` < '2025-01-17 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-17 09:21:18] Production.INFO: count ==1325 [2025-01-17 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:21:05 - End Time 2025-01-17 09:21:05 [2025-01-17 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267344', 'tblTempUsageDetail_20' ) start [2025-01-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267344', 'tblTempUsageDetail_20' ) end [2025-01-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267344', 'tblTempVendorCDR_20' ) start [2025-01-17 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267344', 'tblTempVendorCDR_20' ) end [2025-01-17 09:21:19] Production.INFO: ProcessCDR(1,14267344,1,1,2) [2025-01-17 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267344', 'tblTempUsageDetail_20' ) start [2025-01-17 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267344', 'tblTempUsageDetail_20' ) end [2025-01-17 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:21:24] Production.INFO: ==13441== Releasing lock... [2025-01-17 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:21:24] Production.INFO: 38 MB #Memory Used# [2025-01-17 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:22:06 [end_date_ymd] => 2025-01-17 09:22:06 [RateCDR] => 1 ) [2025-01-17 09: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-17 06:22:06' and `end` < '2025-01-17 09: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-17 09:22:18] Production.INFO: count ==1346 [2025-01-17 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:22:06 - End Time 2025-01-17 09:22:06 [2025-01-17 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267349', 'tblTempUsageDetail_20' ) start [2025-01-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267349', 'tblTempUsageDetail_20' ) end [2025-01-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267349', 'tblTempVendorCDR_20' ) start [2025-01-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267349', 'tblTempVendorCDR_20' ) end [2025-01-17 09:22:19] Production.INFO: ProcessCDR(1,14267349,1,1,2) [2025-01-17 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267349', 'tblTempUsageDetail_20' ) start [2025-01-17 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267349', 'tblTempUsageDetail_20' ) end [2025-01-17 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:22:24] Production.INFO: ==13516== Releasing lock... [2025-01-17 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:22:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-17 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:23:05 [end_date_ymd] => 2025-01-17 09:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:23:05' and `end` < '2025-01-17 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-17 09:23:18] Production.INFO: count ==1366 [2025-01-17 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:23:05 - End Time 2025-01-17 09:23:05 [2025-01-17 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267354', 'tblTempUsageDetail_20' ) start [2025-01-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267354', 'tblTempUsageDetail_20' ) end [2025-01-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267354', 'tblTempVendorCDR_20' ) start [2025-01-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267354', 'tblTempVendorCDR_20' ) end [2025-01-17 09:23:18] Production.INFO: ProcessCDR(1,14267354,1,1,2) [2025-01-17 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267354', 'tblTempUsageDetail_20' ) start [2025-01-17 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267354', 'tblTempUsageDetail_20' ) end [2025-01-17 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:23:23] Production.INFO: ==13592== Releasing lock... [2025-01-17 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:23:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-17 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:24:05 [end_date_ymd] => 2025-01-17 09:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:24:05' and `end` < '2025-01-17 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-17 09:24:17] Production.INFO: count ==1384 [2025-01-17 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:24:05 - End Time 2025-01-17 09:24:05 [2025-01-17 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267359', 'tblTempUsageDetail_20' ) start [2025-01-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267359', 'tblTempUsageDetail_20' ) end [2025-01-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267359', 'tblTempVendorCDR_20' ) start [2025-01-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267359', 'tblTempVendorCDR_20' ) end [2025-01-17 09:24:18] Production.INFO: ProcessCDR(1,14267359,1,1,2) [2025-01-17 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267359', 'tblTempUsageDetail_20' ) start [2025-01-17 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267359', 'tblTempUsageDetail_20' ) end [2025-01-17 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:24:23] Production.INFO: ==13671== Releasing lock... [2025-01-17 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:24:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:25:05 [end_date_ymd] => 2025-01-17 09:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:25:05' and `end` < '2025-01-17 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-17 09:25:17] Production.INFO: count ==1400 [2025-01-17 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:25:05 - End Time 2025-01-17 09:25:05 [2025-01-17 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267364', 'tblTempUsageDetail_20' ) start [2025-01-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267364', 'tblTempUsageDetail_20' ) end [2025-01-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267364', 'tblTempVendorCDR_20' ) start [2025-01-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267364', 'tblTempVendorCDR_20' ) end [2025-01-17 09:25:18] Production.INFO: ProcessCDR(1,14267364,1,1,2) [2025-01-17 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267364', 'tblTempUsageDetail_20' ) start [2025-01-17 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267364', 'tblTempUsageDetail_20' ) end [2025-01-17 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:25:24] Production.INFO: ==13753== Releasing lock... [2025-01-17 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:25:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-17 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:26:05 [end_date_ymd] => 2025-01-17 09:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:26:05' and `end` < '2025-01-17 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-17 09:26:21] Production.INFO: count ==1402 [2025-01-17 09:26:21] Production.ERROR: pbx CDR StartTime 2025-01-17 06:26:05 - End Time 2025-01-17 09:26:05 [2025-01-17 09:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267369', 'tblTempUsageDetail_20' ) start [2025-01-17 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267369', 'tblTempUsageDetail_20' ) end [2025-01-17 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267369', 'tblTempVendorCDR_20' ) start [2025-01-17 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267369', 'tblTempVendorCDR_20' ) end [2025-01-17 09:26:21] Production.INFO: ProcessCDR(1,14267369,1,1,2) [2025-01-17 09:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267369', 'tblTempUsageDetail_20' ) start [2025-01-17 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267369', 'tblTempUsageDetail_20' ) end [2025-01-17 09:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:26:26] Production.INFO: ==13830== Releasing lock... [2025-01-17 09:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:26:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:27:06 [end_date_ymd] => 2025-01-17 09:27:06 [RateCDR] => 1 ) [2025-01-17 09: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-17 06:27:06' and `end` < '2025-01-17 09: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-17 09:27:21] Production.INFO: count ==1420 [2025-01-17 09:27:22] Production.ERROR: pbx CDR StartTime 2025-01-17 06:27:06 - End Time 2025-01-17 09:27:06 [2025-01-17 09:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267374', 'tblTempUsageDetail_20' ) start [2025-01-17 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267374', 'tblTempUsageDetail_20' ) end [2025-01-17 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267374', 'tblTempVendorCDR_20' ) start [2025-01-17 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267374', 'tblTempVendorCDR_20' ) end [2025-01-17 09:27:22] Production.INFO: ProcessCDR(1,14267374,1,1,2) [2025-01-17 09:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267374', 'tblTempUsageDetail_20' ) start [2025-01-17 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267374', 'tblTempUsageDetail_20' ) end [2025-01-17 09:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:27:27] Production.INFO: ==13911== Releasing lock... [2025-01-17 09:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:27:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:28:05 [end_date_ymd] => 2025-01-17 09:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:28:05' and `end` < '2025-01-17 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-17 09:28:17] Production.INFO: count ==1433 [2025-01-17 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:28:05 - End Time 2025-01-17 09:28:05 [2025-01-17 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267379', 'tblTempUsageDetail_20' ) start [2025-01-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267379', 'tblTempUsageDetail_20' ) end [2025-01-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267379', 'tblTempVendorCDR_20' ) start [2025-01-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267379', 'tblTempVendorCDR_20' ) end [2025-01-17 09:28:18] Production.INFO: ProcessCDR(1,14267379,1,1,2) [2025-01-17 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267379', 'tblTempUsageDetail_20' ) start [2025-01-17 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267379', 'tblTempUsageDetail_20' ) end [2025-01-17 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:28:23] Production.INFO: ==13991== Releasing lock... [2025-01-17 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:28:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:29:04 [end_date_ymd] => 2025-01-17 09:29:04 [RateCDR] => 1 ) [2025-01-17 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-17 06:29:04' and `end` < '2025-01-17 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-17 09:29:17] Production.INFO: count ==1439 [2025-01-17 09:29:17] Production.ERROR: pbx CDR StartTime 2025-01-17 06:29:04 - End Time 2025-01-17 09:29:04 [2025-01-17 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267384', 'tblTempUsageDetail_20' ) start [2025-01-17 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267384', 'tblTempUsageDetail_20' ) end [2025-01-17 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267384', 'tblTempVendorCDR_20' ) start [2025-01-17 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267384', 'tblTempVendorCDR_20' ) end [2025-01-17 09:29:17] Production.INFO: ProcessCDR(1,14267384,1,1,2) [2025-01-17 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267384', 'tblTempUsageDetail_20' ) start [2025-01-17 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267384', 'tblTempUsageDetail_20' ) end [2025-01-17 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:29:22] Production.INFO: ==14068== Releasing lock... [2025-01-17 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:29:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:30:06 [end_date_ymd] => 2025-01-17 09:30:06 [RateCDR] => 1 ) [2025-01-17 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-17 06:30:06' and `end` < '2025-01-17 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-17 09:30:19] Production.INFO: count ==1450 [2025-01-17 09:30:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:30:06 - End Time 2025-01-17 09:30:06 [2025-01-17 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267390', 'tblTempUsageDetail_20' ) start [2025-01-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267390', 'tblTempUsageDetail_20' ) end [2025-01-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267390', 'tblTempVendorCDR_20' ) start [2025-01-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267390', 'tblTempVendorCDR_20' ) end [2025-01-17 09:30:20] Production.INFO: ProcessCDR(1,14267390,1,1,2) [2025-01-17 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267390', 'tblTempUsageDetail_20' ) start [2025-01-17 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267390', 'tblTempUsageDetail_20' ) end [2025-01-17 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:30:24] Production.INFO: ==14150== Releasing lock... [2025-01-17 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:30:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:31:05 [end_date_ymd] => 2025-01-17 09:31:05 [RateCDR] => 1 ) [2025-01-17 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:31:05' and `end` < '2025-01-17 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:31:21] Production.INFO: count ==1499 [2025-01-17 09:31:22] Production.ERROR: pbx CDR StartTime 2025-01-17 06:31:05 - End Time 2025-01-17 09:31:05 [2025-01-17 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267395', 'tblTempUsageDetail_20' ) start [2025-01-17 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267395', 'tblTempUsageDetail_20' ) end [2025-01-17 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267395', 'tblTempVendorCDR_20' ) start [2025-01-17 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267395', 'tblTempVendorCDR_20' ) end [2025-01-17 09:31:22] Production.INFO: ProcessCDR(1,14267395,1,1,2) [2025-01-17 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267395', 'tblTempUsageDetail_20' ) start [2025-01-17 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267395', 'tblTempUsageDetail_20' ) end [2025-01-17 09:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:31:27] Production.INFO: ==14273== Releasing lock... [2025-01-17 09:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:31:27] Production.INFO: 39.25 MB #Memory Used# [2025-01-17 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:32:05 [end_date_ymd] => 2025-01-17 09:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:32:05' and `end` < '2025-01-17 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-17 09:32:19] Production.INFO: count ==1507 [2025-01-17 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:32:05 - End Time 2025-01-17 09:32:05 [2025-01-17 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267400', 'tblTempUsageDetail_20' ) start [2025-01-17 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267400', 'tblTempUsageDetail_20' ) end [2025-01-17 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267400', 'tblTempVendorCDR_20' ) start [2025-01-17 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267400', 'tblTempVendorCDR_20' ) end [2025-01-17 09:32:20] Production.INFO: ProcessCDR(1,14267400,1,1,2) [2025-01-17 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267400', 'tblTempUsageDetail_20' ) start [2025-01-17 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267400', 'tblTempUsageDetail_20' ) end [2025-01-17 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:32:25] Production.INFO: ==14364== Releasing lock... [2025-01-17 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:32:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-17 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:33:05 [end_date_ymd] => 2025-01-17 09:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:33:05' and `end` < '2025-01-17 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-17 09:33:18] Production.INFO: count ==1512 [2025-01-17 09:33:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:33:05 - End Time 2025-01-17 09:33:05 [2025-01-17 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267405', 'tblTempUsageDetail_20' ) start [2025-01-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267405', 'tblTempUsageDetail_20' ) end [2025-01-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267405', 'tblTempVendorCDR_20' ) start [2025-01-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267405', 'tblTempVendorCDR_20' ) end [2025-01-17 09:33:19] Production.INFO: ProcessCDR(1,14267405,1,1,2) [2025-01-17 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267405', 'tblTempUsageDetail_20' ) start [2025-01-17 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267405', 'tblTempUsageDetail_20' ) end [2025-01-17 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:33:24] Production.INFO: ==14454== Releasing lock... [2025-01-17 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:33:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-17 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:34:05 [end_date_ymd] => 2025-01-17 09:34:05 [RateCDR] => 1 ) [2025-01-17 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:34:05' and `end` < '2025-01-17 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:34:18] Production.INFO: count ==1518 [2025-01-17 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:34:05 - End Time 2025-01-17 09:34:05 [2025-01-17 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267410', 'tblTempUsageDetail_20' ) start [2025-01-17 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267410', 'tblTempUsageDetail_20' ) end [2025-01-17 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267410', 'tblTempVendorCDR_20' ) start [2025-01-17 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267410', 'tblTempVendorCDR_20' ) end [2025-01-17 09:34:19] Production.INFO: ProcessCDR(1,14267410,1,1,2) [2025-01-17 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267410', 'tblTempUsageDetail_20' ) start [2025-01-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267410', 'tblTempUsageDetail_20' ) end [2025-01-17 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:34:23] Production.INFO: ==14546== Releasing lock... [2025-01-17 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-17 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:35:05 [end_date_ymd] => 2025-01-17 09:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:35:05' and `end` < '2025-01-17 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-17 09:35:17] Production.INFO: count ==1525 [2025-01-17 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:35:05 - End Time 2025-01-17 09:35:05 [2025-01-17 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267415', 'tblTempUsageDetail_20' ) start [2025-01-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267415', 'tblTempUsageDetail_20' ) end [2025-01-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267415', 'tblTempVendorCDR_20' ) start [2025-01-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267415', 'tblTempVendorCDR_20' ) end [2025-01-17 09:35:18] Production.INFO: ProcessCDR(1,14267415,1,1,2) [2025-01-17 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267415', 'tblTempUsageDetail_20' ) start [2025-01-17 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267415', 'tblTempUsageDetail_20' ) end [2025-01-17 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:35:23] Production.INFO: ==14636== Releasing lock... [2025-01-17 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:35:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-17 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:36:04 [end_date_ymd] => 2025-01-17 09:36:04 [RateCDR] => 1 ) [2025-01-17 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-17 06:36:04' and `end` < '2025-01-17 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-17 09:36:18] Production.INFO: count ==1530 [2025-01-17 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:36:04 - End Time 2025-01-17 09:36:04 [2025-01-17 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267420', 'tblTempUsageDetail_20' ) start [2025-01-17 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267420', 'tblTempUsageDetail_20' ) end [2025-01-17 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267420', 'tblTempVendorCDR_20' ) start [2025-01-17 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267420', 'tblTempVendorCDR_20' ) end [2025-01-17 09:36:18] Production.INFO: ProcessCDR(1,14267420,1,1,2) [2025-01-17 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267420', 'tblTempUsageDetail_20' ) start [2025-01-17 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267420', 'tblTempUsageDetail_20' ) end [2025-01-17 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:36:23] Production.INFO: ==14731== Releasing lock... [2025-01-17 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:36:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-17 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:37:05 [end_date_ymd] => 2025-01-17 09:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:37:05' and `end` < '2025-01-17 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-17 09:37:21] Production.INFO: count ==1535 [2025-01-17 09:37:21] Production.ERROR: pbx CDR StartTime 2025-01-17 06:37:05 - End Time 2025-01-17 09:37:05 [2025-01-17 09:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267425', 'tblTempUsageDetail_20' ) start [2025-01-17 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267425', 'tblTempUsageDetail_20' ) end [2025-01-17 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267425', 'tblTempVendorCDR_20' ) start [2025-01-17 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267425', 'tblTempVendorCDR_20' ) end [2025-01-17 09:37:21] Production.INFO: ProcessCDR(1,14267425,1,1,2) [2025-01-17 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267425', 'tblTempUsageDetail_20' ) start [2025-01-17 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267425', 'tblTempUsageDetail_20' ) end [2025-01-17 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:37:26] Production.INFO: ==14825== Releasing lock... [2025-01-17 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:37:26] Production.INFO: 40 MB #Memory Used# [2025-01-17 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:38:05 [end_date_ymd] => 2025-01-17 09:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:38:05' and `end` < '2025-01-17 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-17 09:38:18] Production.INFO: count ==1553 [2025-01-17 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:38:05 - End Time 2025-01-17 09:38:05 [2025-01-17 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267430', 'tblTempUsageDetail_20' ) start [2025-01-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267430', 'tblTempUsageDetail_20' ) end [2025-01-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267430', 'tblTempVendorCDR_20' ) start [2025-01-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267430', 'tblTempVendorCDR_20' ) end [2025-01-17 09:38:18] Production.INFO: ProcessCDR(1,14267430,1,1,2) [2025-01-17 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267430', 'tblTempUsageDetail_20' ) start [2025-01-17 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267430', 'tblTempUsageDetail_20' ) end [2025-01-17 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:38:23] Production.INFO: ==14922== Releasing lock... [2025-01-17 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:38:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-17 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:39:04 [end_date_ymd] => 2025-01-17 09:39:04 [RateCDR] => 1 ) [2025-01-17 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:39:04' and `end` < '2025-01-17 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:39:20] Production.INFO: count ==1577 [2025-01-17 09:39:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:39:04 - End Time 2025-01-17 09:39:04 [2025-01-17 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267435', 'tblTempUsageDetail_20' ) start [2025-01-17 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267435', 'tblTempUsageDetail_20' ) end [2025-01-17 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267435', 'tblTempVendorCDR_20' ) start [2025-01-17 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267435', 'tblTempVendorCDR_20' ) end [2025-01-17 09:39:21] Production.INFO: ProcessCDR(1,14267435,1,1,2) [2025-01-17 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267435', 'tblTempUsageDetail_20' ) start [2025-01-17 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267435', 'tblTempUsageDetail_20' ) end [2025-01-17 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:39:26] Production.INFO: ==15014== Releasing lock... [2025-01-17 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:39:26] Production.INFO: 40 MB #Memory Used# [2025-01-17 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:40:06 [end_date_ymd] => 2025-01-17 09:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 06:40:06' and `end` < '2025-01-17 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-17 09:40:18] Production.INFO: count ==1591 [2025-01-17 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:40:06 - End Time 2025-01-17 09:40:06 [2025-01-17 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267441', 'tblTempUsageDetail_20' ) start [2025-01-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267441', 'tblTempUsageDetail_20' ) end [2025-01-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267441', 'tblTempVendorCDR_20' ) start [2025-01-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267441', 'tblTempVendorCDR_20' ) end [2025-01-17 09:40:19] Production.INFO: ProcessCDR(1,14267441,1,1,2) [2025-01-17 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267441', 'tblTempUsageDetail_20' ) start [2025-01-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267441', 'tblTempUsageDetail_20' ) end [2025-01-17 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:40:24] Production.INFO: ==15095== Releasing lock... [2025-01-17 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:40:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-17 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:41:05 [end_date_ymd] => 2025-01-17 09:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:41:05' and `end` < '2025-01-17 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-17 09:41:19] Production.INFO: count ==1691 [2025-01-17 09:41:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:41:05 - End Time 2025-01-17 09:41:05 [2025-01-17 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267446', 'tblTempUsageDetail_20' ) start [2025-01-17 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267446', 'tblTempUsageDetail_20' ) end [2025-01-17 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267446', 'tblTempVendorCDR_20' ) start [2025-01-17 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267446', 'tblTempVendorCDR_20' ) end [2025-01-17 09:41:20] Production.INFO: ProcessCDR(1,14267446,1,1,2) [2025-01-17 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267446', 'tblTempUsageDetail_20' ) start [2025-01-17 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267446', 'tblTempUsageDetail_20' ) end [2025-01-17 09:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:41:25] Production.INFO: ==15174== Releasing lock... [2025-01-17 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:41:25] Production.INFO: 41 MB #Memory Used# [2025-01-17 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:42:05 [end_date_ymd] => 2025-01-17 09:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:42:05' and `end` < '2025-01-17 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-17 09:42:18] Production.INFO: count ==1700 [2025-01-17 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:42:05 - End Time 2025-01-17 09:42:05 [2025-01-17 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267451', 'tblTempUsageDetail_20' ) start [2025-01-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267451', 'tblTempUsageDetail_20' ) end [2025-01-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267451', 'tblTempVendorCDR_20' ) start [2025-01-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267451', 'tblTempVendorCDR_20' ) end [2025-01-17 09:42:19] Production.INFO: ProcessCDR(1,14267451,1,1,2) [2025-01-17 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267451', 'tblTempUsageDetail_20' ) start [2025-01-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267451', 'tblTempUsageDetail_20' ) end [2025-01-17 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:42:23] Production.INFO: ==15250== Releasing lock... [2025-01-17 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-17 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:43:05 [end_date_ymd] => 2025-01-17 09:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:43:05' and `end` < '2025-01-17 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-17 09:43:19] Production.INFO: count ==1713 [2025-01-17 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:43:05 - End Time 2025-01-17 09:43:05 [2025-01-17 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267456', 'tblTempUsageDetail_20' ) start [2025-01-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267456', 'tblTempUsageDetail_20' ) end [2025-01-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267456', 'tblTempVendorCDR_20' ) start [2025-01-17 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267456', 'tblTempVendorCDR_20' ) end [2025-01-17 09:43:20] Production.INFO: ProcessCDR(1,14267456,1,1,2) [2025-01-17 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267456', 'tblTempUsageDetail_20' ) start [2025-01-17 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267456', 'tblTempUsageDetail_20' ) end [2025-01-17 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:43:25] Production.INFO: ==15322== Releasing lock... [2025-01-17 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:43:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:44:05 [end_date_ymd] => 2025-01-17 09:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:44:05' and `end` < '2025-01-17 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-17 09:44:27] Production.INFO: count ==1722 [2025-01-17 09:44:28] Production.ERROR: pbx CDR StartTime 2025-01-17 06:44:05 - End Time 2025-01-17 09:44:05 [2025-01-17 09:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267461', 'tblTempUsageDetail_20' ) start [2025-01-17 09:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267461', 'tblTempUsageDetail_20' ) end [2025-01-17 09:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267461', 'tblTempVendorCDR_20' ) start [2025-01-17 09:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267461', 'tblTempVendorCDR_20' ) end [2025-01-17 09:44:28] Production.INFO: ProcessCDR(1,14267461,1,1,2) [2025-01-17 09:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267461', 'tblTempUsageDetail_20' ) start [2025-01-17 09:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267461', 'tblTempUsageDetail_20' ) end [2025-01-17 09:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:44:33] Production.INFO: ==15393== Releasing lock... [2025-01-17 09:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:44:33] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:45:04 [end_date_ymd] => 2025-01-17 09:45:04 [RateCDR] => 1 ) [2025-01-17 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-17 06:45:04' and `end` < '2025-01-17 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-17 09:45:23] Production.INFO: count ==1748 [2025-01-17 09:45:24] Production.ERROR: pbx CDR StartTime 2025-01-17 06:45:04 - End Time 2025-01-17 09:45:04 [2025-01-17 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267466', 'tblTempUsageDetail_20' ) start [2025-01-17 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267466', 'tblTempUsageDetail_20' ) end [2025-01-17 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267466', 'tblTempVendorCDR_20' ) start [2025-01-17 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267466', 'tblTempVendorCDR_20' ) end [2025-01-17 09:45:24] Production.INFO: ProcessCDR(1,14267466,1,1,2) [2025-01-17 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267466', 'tblTempUsageDetail_20' ) start [2025-01-17 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267466', 'tblTempUsageDetail_20' ) end [2025-01-17 09:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:45:29] Production.INFO: ==15465== Releasing lock... [2025-01-17 09:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:45:29] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:46:05 [end_date_ymd] => 2025-01-17 09:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:46:05' and `end` < '2025-01-17 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-17 09:46:18] Production.INFO: count ==1751 [2025-01-17 09:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 06:46:05 - End Time 2025-01-17 09:46:05 [2025-01-17 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267471', 'tblTempUsageDetail_20' ) start [2025-01-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267471', 'tblTempUsageDetail_20' ) end [2025-01-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267471', 'tblTempVendorCDR_20' ) start [2025-01-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267471', 'tblTempVendorCDR_20' ) end [2025-01-17 09:46:19] Production.INFO: ProcessCDR(1,14267471,1,1,2) [2025-01-17 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267471', 'tblTempUsageDetail_20' ) start [2025-01-17 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267471', 'tblTempUsageDetail_20' ) end [2025-01-17 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:46:23] Production.INFO: ==15538== Releasing lock... [2025-01-17 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:46:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:47:04 [end_date_ymd] => 2025-01-17 09:47:04 [RateCDR] => 1 ) [2025-01-17 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:47:04' and `end` < '2025-01-17 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:47:20] Production.INFO: count ==1765 [2025-01-17 09:47:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:47:04 - End Time 2025-01-17 09:47:04 [2025-01-17 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267476', 'tblTempUsageDetail_20' ) start [2025-01-17 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267476', 'tblTempUsageDetail_20' ) end [2025-01-17 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267476', 'tblTempVendorCDR_20' ) start [2025-01-17 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267476', 'tblTempVendorCDR_20' ) end [2025-01-17 09:47:20] Production.INFO: ProcessCDR(1,14267476,1,1,2) [2025-01-17 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267476', 'tblTempUsageDetail_20' ) start [2025-01-17 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267476', 'tblTempUsageDetail_20' ) end [2025-01-17 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:47:26] Production.INFO: ==15654== Releasing lock... [2025-01-17 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:47:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:48:05 [end_date_ymd] => 2025-01-17 09:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:48:05' and `end` < '2025-01-17 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-17 09:48:26] Production.INFO: count ==1779 [2025-01-17 09:48:27] Production.ERROR: pbx CDR StartTime 2025-01-17 06:48:05 - End Time 2025-01-17 09:48:05 [2025-01-17 09:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267481', 'tblTempUsageDetail_20' ) start [2025-01-17 09:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267481', 'tblTempUsageDetail_20' ) end [2025-01-17 09:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267481', 'tblTempVendorCDR_20' ) start [2025-01-17 09:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267481', 'tblTempVendorCDR_20' ) end [2025-01-17 09:48:27] Production.INFO: ProcessCDR(1,14267481,1,1,2) [2025-01-17 09:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267481', 'tblTempUsageDetail_20' ) start [2025-01-17 09:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267481', 'tblTempUsageDetail_20' ) end [2025-01-17 09:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:48:32] Production.INFO: ==15727== Releasing lock... [2025-01-17 09:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:48:32] Production.INFO: 41.75 MB #Memory Used# [2025-01-17 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:49:04 [end_date_ymd] => 2025-01-17 09:49:04 [RateCDR] => 1 ) [2025-01-17 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-17 06:49:04' and `end` < '2025-01-17 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-17 09:49:20] Production.INFO: count ==1797 [2025-01-17 09:49:21] Production.ERROR: pbx CDR StartTime 2025-01-17 06:49:04 - End Time 2025-01-17 09:49:04 [2025-01-17 09:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267486', 'tblTempUsageDetail_20' ) start [2025-01-17 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267486', 'tblTempUsageDetail_20' ) end [2025-01-17 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267486', 'tblTempVendorCDR_20' ) start [2025-01-17 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267486', 'tblTempVendorCDR_20' ) end [2025-01-17 09:49:21] Production.INFO: ProcessCDR(1,14267486,1,1,2) [2025-01-17 09:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267486', 'tblTempUsageDetail_20' ) start [2025-01-17 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267486', 'tblTempUsageDetail_20' ) end [2025-01-17 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:49:26] Production.INFO: ==15796== Releasing lock... [2025-01-17 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:49:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-17 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:50:06 [end_date_ymd] => 2025-01-17 09:50:06 [RateCDR] => 1 ) [2025-01-17 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:50:06' and `end` < '2025-01-17 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:50:20] Production.INFO: count ==1812 [2025-01-17 09:50:21] Production.ERROR: pbx CDR StartTime 2025-01-17 06:50:06 - End Time 2025-01-17 09:50:06 [2025-01-17 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267492', 'tblTempUsageDetail_20' ) start [2025-01-17 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267492', 'tblTempUsageDetail_20' ) end [2025-01-17 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267492', 'tblTempVendorCDR_20' ) start [2025-01-17 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267492', 'tblTempVendorCDR_20' ) end [2025-01-17 09:50:21] Production.INFO: ProcessCDR(1,14267492,1,1,2) [2025-01-17 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267492', 'tblTempUsageDetail_20' ) start [2025-01-17 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267492', 'tblTempUsageDetail_20' ) end [2025-01-17 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:50:26] Production.INFO: ==15870== Releasing lock... [2025-01-17 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:50:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-17 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:51:05 [end_date_ymd] => 2025-01-17 09:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:51:05' and `end` < '2025-01-17 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-17 09:51:21] Production.INFO: count ==1872 [2025-01-17 09:51:22] Production.ERROR: pbx CDR StartTime 2025-01-17 06:51:05 - End Time 2025-01-17 09:51:05 [2025-01-17 09:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267497', 'tblTempUsageDetail_20' ) start [2025-01-17 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267497', 'tblTempUsageDetail_20' ) end [2025-01-17 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267497', 'tblTempVendorCDR_20' ) start [2025-01-17 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267497', 'tblTempVendorCDR_20' ) end [2025-01-17 09:51:22] Production.INFO: ProcessCDR(1,14267497,1,1,2) [2025-01-17 09:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267497', 'tblTempUsageDetail_20' ) start [2025-01-17 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267497', 'tblTempUsageDetail_20' ) end [2025-01-17 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:51:26] Production.INFO: ==15943== Releasing lock... [2025-01-17 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:51:26] Production.INFO: 42 MB #Memory Used# [2025-01-17 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:52:04 [end_date_ymd] => 2025-01-17 09:52:04 [RateCDR] => 1 ) [2025-01-17 09: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-17 06:52:04' and `end` < '2025-01-17 09: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-17 09:52:23] Production.INFO: count ==1882 [2025-01-17 09:52:24] Production.ERROR: pbx CDR StartTime 2025-01-17 06:52:04 - End Time 2025-01-17 09:52:04 [2025-01-17 09:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267502', 'tblTempUsageDetail_20' ) start [2025-01-17 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267502', 'tblTempUsageDetail_20' ) end [2025-01-17 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267502', 'tblTempVendorCDR_20' ) start [2025-01-17 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267502', 'tblTempVendorCDR_20' ) end [2025-01-17 09:52:24] Production.INFO: ProcessCDR(1,14267502,1,1,2) [2025-01-17 09:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267502', 'tblTempUsageDetail_20' ) start [2025-01-17 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267502', 'tblTempUsageDetail_20' ) end [2025-01-17 09:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:52:28] Production.INFO: ==16012== Releasing lock... [2025-01-17 09:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:52:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-17 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:53:05 [end_date_ymd] => 2025-01-17 09:53:05 [RateCDR] => 1 ) [2025-01-17 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:53:05' and `end` < '2025-01-17 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:53:23] Production.INFO: count ==1906 [2025-01-17 09:53:23] Production.ERROR: pbx CDR StartTime 2025-01-17 06:53:05 - End Time 2025-01-17 09:53:05 [2025-01-17 09:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267507', 'tblTempUsageDetail_20' ) start [2025-01-17 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267507', 'tblTempUsageDetail_20' ) end [2025-01-17 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267507', 'tblTempVendorCDR_20' ) start [2025-01-17 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267507', 'tblTempVendorCDR_20' ) end [2025-01-17 09:53:23] Production.INFO: ProcessCDR(1,14267507,1,1,2) [2025-01-17 09:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267507', 'tblTempUsageDetail_20' ) start [2025-01-17 09:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267507', 'tblTempUsageDetail_20' ) end [2025-01-17 09:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:53:28] Production.INFO: ==16084== Releasing lock... [2025-01-17 09:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:53:28] Production.INFO: 42.25 MB #Memory Used# [2025-01-17 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:54:04 [end_date_ymd] => 2025-01-17 09:54:04 [RateCDR] => 1 ) [2025-01-17 09:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:54:04' and `end` < '2025-01-17 09:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:54:17] Production.INFO: count ==1917 [2025-01-17 09:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:54:04 - End Time 2025-01-17 09:54:04 [2025-01-17 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267512', 'tblTempUsageDetail_20' ) start [2025-01-17 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267512', 'tblTempUsageDetail_20' ) end [2025-01-17 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267512', 'tblTempVendorCDR_20' ) start [2025-01-17 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267512', 'tblTempVendorCDR_20' ) end [2025-01-17 09:54:18] Production.INFO: ProcessCDR(1,14267512,1,1,2) [2025-01-17 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267512', 'tblTempUsageDetail_20' ) start [2025-01-17 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267512', 'tblTempUsageDetail_20' ) end [2025-01-17 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:54:22] Production.INFO: ==16155== Releasing lock... [2025-01-17 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:54:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-17 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:55:05 [end_date_ymd] => 2025-01-17 09:55:05 [RateCDR] => 1 ) [2025-01-17 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:55:05' and `end` < '2025-01-17 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:55:23] Production.INFO: count ==1922 [2025-01-17 09:55:23] Production.ERROR: pbx CDR StartTime 2025-01-17 06:55:05 - End Time 2025-01-17 09:55:05 [2025-01-17 09:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267517', 'tblTempUsageDetail_20' ) start [2025-01-17 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267517', 'tblTempUsageDetail_20' ) end [2025-01-17 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267517', 'tblTempVendorCDR_20' ) start [2025-01-17 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267517', 'tblTempVendorCDR_20' ) end [2025-01-17 09:55:23] Production.INFO: ProcessCDR(1,14267517,1,1,2) [2025-01-17 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267517', 'tblTempUsageDetail_20' ) start [2025-01-17 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267517', 'tblTempUsageDetail_20' ) end [2025-01-17 09:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:55:28] Production.INFO: ==16226== Releasing lock... [2025-01-17 09:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:55:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-17 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:56:05 [end_date_ymd] => 2025-01-17 09:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:56:05' and `end` < '2025-01-17 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-17 09:56:20] Production.INFO: count ==1926 [2025-01-17 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-17 06:56:05 - End Time 2025-01-17 09:56:05 [2025-01-17 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267522', 'tblTempUsageDetail_20' ) start [2025-01-17 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267522', 'tblTempUsageDetail_20' ) end [2025-01-17 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267522', 'tblTempVendorCDR_20' ) start [2025-01-17 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267522', 'tblTempVendorCDR_20' ) end [2025-01-17 09:56:21] Production.INFO: ProcessCDR(1,14267522,1,1,2) [2025-01-17 09:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267522', 'tblTempUsageDetail_20' ) start [2025-01-17 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267522', 'tblTempUsageDetail_20' ) end [2025-01-17 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:56:25] Production.INFO: ==16297== Releasing lock... [2025-01-17 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:56:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-17 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:57:05 [end_date_ymd] => 2025-01-17 09:57:05 [RateCDR] => 1 ) [2025-01-17 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 06:57:05' and `end` < '2025-01-17 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 09:57:17] Production.INFO: count ==1939 [2025-01-17 09:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 06:57:05 - End Time 2025-01-17 09:57:05 [2025-01-17 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267527', 'tblTempUsageDetail_20' ) start [2025-01-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267527', 'tblTempUsageDetail_20' ) end [2025-01-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267527', 'tblTempVendorCDR_20' ) start [2025-01-17 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267527', 'tblTempVendorCDR_20' ) end [2025-01-17 09:57:18] Production.INFO: ProcessCDR(1,14267527,1,1,2) [2025-01-17 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267527', 'tblTempUsageDetail_20' ) start [2025-01-17 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267527', 'tblTempUsageDetail_20' ) end [2025-01-17 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:57:23] Production.INFO: ==16367== Releasing lock... [2025-01-17 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:57:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-17 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:58:05 [end_date_ymd] => 2025-01-17 09:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 06:58:05' and `end` < '2025-01-17 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-17 09:58:28] Production.INFO: count ==1962 [2025-01-17 09:58:28] Production.ERROR: pbx CDR StartTime 2025-01-17 06:58:05 - End Time 2025-01-17 09:58:05 [2025-01-17 09:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267532', 'tblTempUsageDetail_20' ) start [2025-01-17 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267532', 'tblTempUsageDetail_20' ) end [2025-01-17 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267532', 'tblTempVendorCDR_20' ) start [2025-01-17 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267532', 'tblTempVendorCDR_20' ) end [2025-01-17 09:58:28] Production.INFO: ProcessCDR(1,14267532,1,1,2) [2025-01-17 09:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267532', 'tblTempUsageDetail_20' ) start [2025-01-17 09:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267532', 'tblTempUsageDetail_20' ) end [2025-01-17 09:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:58:33] Production.INFO: ==16440== Releasing lock... [2025-01-17 09:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:58:33] Production.INFO: 42.75 MB #Memory Used# [2025-01-17 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 06:59:04 [end_date_ymd] => 2025-01-17 09:59:04 [RateCDR] => 1 ) [2025-01-17 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-17 06:59:04' and `end` < '2025-01-17 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-17 09:59:21] Production.INFO: count ==1975 [2025-01-17 09:59:22] Production.ERROR: pbx CDR StartTime 2025-01-17 06:59:04 - End Time 2025-01-17 09:59:04 [2025-01-17 09:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267537', 'tblTempUsageDetail_20' ) start [2025-01-17 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267537', 'tblTempUsageDetail_20' ) end [2025-01-17 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267537', 'tblTempVendorCDR_20' ) start [2025-01-17 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267537', 'tblTempVendorCDR_20' ) end [2025-01-17 09:59:22] Production.INFO: ProcessCDR(1,14267537,1,1,2) [2025-01-17 09:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267537', 'tblTempUsageDetail_20' ) start [2025-01-17 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267537', 'tblTempUsageDetail_20' ) end [2025-01-17 09:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 09:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 09:59:27] Production.INFO: ==16512== Releasing lock... [2025-01-17 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 09:59:27] Production.INFO: 42.75 MB #Memory Used# [2025-01-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:00:06 [end_date_ymd] => 2025-01-17 10:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 07:00:06' and `end` < '2025-01-17 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-17 10:00:24] Production.INFO: count ==1994 [2025-01-17 10:00:24] Production.ERROR: pbx CDR StartTime 2025-01-17 07:00:06 - End Time 2025-01-17 10:00:06 [2025-01-17 10:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267543', 'tblTempUsageDetail_20' ) start [2025-01-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267543', 'tblTempUsageDetail_20' ) end [2025-01-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267543', 'tblTempVendorCDR_20' ) start [2025-01-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267543', 'tblTempVendorCDR_20' ) end [2025-01-17 10:00:24] Production.INFO: ProcessCDR(1,14267543,1,1,2) [2025-01-17 10:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267543', 'tblTempUsageDetail_20' ) start [2025-01-17 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267543', 'tblTempUsageDetail_20' ) end [2025-01-17 10:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:00:29] Production.INFO: ==16586== Releasing lock... [2025-01-17 10:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:00:29] Production.INFO: 43.5 MB #Memory Used# [2025-01-17 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:01:04 [end_date_ymd] => 2025-01-17 10:01:04 [RateCDR] => 1 ) [2025-01-17 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:01:04' and `end` < '2025-01-17 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:01:22] Production.INFO: count ==2050 [2025-01-17 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:01:04 - End Time 2025-01-17 10:01:04 [2025-01-17 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267548', 'tblTempUsageDetail_20' ) start [2025-01-17 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267548', 'tblTempUsageDetail_20' ) end [2025-01-17 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267548', 'tblTempVendorCDR_20' ) start [2025-01-17 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267548', 'tblTempVendorCDR_20' ) end [2025-01-17 10:01:23] Production.INFO: ProcessCDR(1,14267548,1,1,2) [2025-01-17 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267548', 'tblTempUsageDetail_20' ) start [2025-01-17 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267548', 'tblTempUsageDetail_20' ) end [2025-01-17 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:01:27] Production.INFO: ==16673== Releasing lock... [2025-01-17 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:01:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-17 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:02:05 [end_date_ymd] => 2025-01-17 10:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:02:05' and `end` < '2025-01-17 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-17 10:02:22] Production.INFO: count ==2061 [2025-01-17 10:02:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:02:05 - End Time 2025-01-17 10:02:05 [2025-01-17 10:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267553', 'tblTempUsageDetail_20' ) start [2025-01-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267553', 'tblTempUsageDetail_20' ) end [2025-01-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267553', 'tblTempVendorCDR_20' ) start [2025-01-17 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267553', 'tblTempVendorCDR_20' ) end [2025-01-17 10:02:22] Production.INFO: ProcessCDR(1,14267553,1,1,2) [2025-01-17 10:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267553', 'tblTempUsageDetail_20' ) start [2025-01-17 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267553', 'tblTempUsageDetail_20' ) end [2025-01-17 10:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:02:27] Production.INFO: ==16791== Releasing lock... [2025-01-17 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:02:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-17 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:03:06 [end_date_ymd] => 2025-01-17 10:03:06 [RateCDR] => 1 ) [2025-01-17 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:03:06' and `end` < '2025-01-17 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:03:20] Production.INFO: count ==2065 [2025-01-17 10:03:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:03:06 - End Time 2025-01-17 10:03:06 [2025-01-17 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267558', 'tblTempUsageDetail_20' ) start [2025-01-17 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267558', 'tblTempUsageDetail_20' ) end [2025-01-17 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267558', 'tblTempVendorCDR_20' ) start [2025-01-17 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267558', 'tblTempVendorCDR_20' ) end [2025-01-17 10:03:20] Production.INFO: ProcessCDR(1,14267558,1,1,2) [2025-01-17 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267558', 'tblTempUsageDetail_20' ) start [2025-01-17 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267558', 'tblTempUsageDetail_20' ) end [2025-01-17 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:03:25] Production.INFO: ==16861== Releasing lock... [2025-01-17 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:03:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-17 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:04:05 [end_date_ymd] => 2025-01-17 10:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:04:05' and `end` < '2025-01-17 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-17 10:04:17] Production.INFO: count ==2075 [2025-01-17 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 07:04:05 - End Time 2025-01-17 10:04:05 [2025-01-17 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267563', 'tblTempUsageDetail_20' ) start [2025-01-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267563', 'tblTempUsageDetail_20' ) end [2025-01-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267563', 'tblTempVendorCDR_20' ) start [2025-01-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267563', 'tblTempVendorCDR_20' ) end [2025-01-17 10:04:18] Production.INFO: ProcessCDR(1,14267563,1,1,2) [2025-01-17 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267563', 'tblTempUsageDetail_20' ) start [2025-01-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267563', 'tblTempUsageDetail_20' ) end [2025-01-17 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:04:23] Production.INFO: ==16932== Releasing lock... [2025-01-17 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:04:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:05:05 [end_date_ymd] => 2025-01-17 10:05:05 [RateCDR] => 1 ) [2025-01-17 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:05:05' and `end` < '2025-01-17 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:05:20] Production.INFO: count ==2088 [2025-01-17 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:05:05 - End Time 2025-01-17 10:05:05 [2025-01-17 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267568', 'tblTempUsageDetail_20' ) start [2025-01-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267568', 'tblTempUsageDetail_20' ) end [2025-01-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267568', 'tblTempVendorCDR_20' ) start [2025-01-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267568', 'tblTempVendorCDR_20' ) end [2025-01-17 10:05:20] Production.INFO: ProcessCDR(1,14267568,1,1,2) [2025-01-17 10:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267568', 'tblTempUsageDetail_20' ) start [2025-01-17 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267568', 'tblTempUsageDetail_20' ) end [2025-01-17 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:05:25] Production.INFO: ==17003== Releasing lock... [2025-01-17 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:05:25] Production.INFO: 44 MB #Memory Used# [2025-01-17 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:06:05 [end_date_ymd] => 2025-01-17 10:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:06:05' and `end` < '2025-01-17 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-17 10:06:18] Production.INFO: count ==2102 [2025-01-17 10:06:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:06:05 - End Time 2025-01-17 10:06:05 [2025-01-17 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267573', 'tblTempUsageDetail_20' ) start [2025-01-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267573', 'tblTempUsageDetail_20' ) end [2025-01-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267573', 'tblTempVendorCDR_20' ) start [2025-01-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267573', 'tblTempVendorCDR_20' ) end [2025-01-17 10:06:19] Production.INFO: ProcessCDR(1,14267573,1,1,2) [2025-01-17 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267573', 'tblTempUsageDetail_20' ) start [2025-01-17 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267573', 'tblTempUsageDetail_20' ) end [2025-01-17 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:06:22] Production.INFO: ==17072== Releasing lock... [2025-01-17 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:07:06 [end_date_ymd] => 2025-01-17 10:07:06 [RateCDR] => 1 ) [2025-01-17 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:07:06' and `end` < '2025-01-17 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:07:19] Production.INFO: count ==2130 [2025-01-17 10:07:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:07:06 - End Time 2025-01-17 10:07:06 [2025-01-17 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267578', 'tblTempUsageDetail_20' ) start [2025-01-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267578', 'tblTempUsageDetail_20' ) end [2025-01-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267578', 'tblTempVendorCDR_20' ) start [2025-01-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267578', 'tblTempVendorCDR_20' ) end [2025-01-17 10:07:20] Production.INFO: ProcessCDR(1,14267578,1,1,2) [2025-01-17 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267578', 'tblTempUsageDetail_20' ) start [2025-01-17 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267578', 'tblTempUsageDetail_20' ) end [2025-01-17 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:07:24] Production.INFO: ==17144== Releasing lock... [2025-01-17 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:07:24] Production.INFO: 44 MB #Memory Used# [2025-01-17 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:08:05 [end_date_ymd] => 2025-01-17 10:08:05 [RateCDR] => 1 ) [2025-01-17 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:08:05' and `end` < '2025-01-17 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:08:17] Production.INFO: count ==2149 [2025-01-17 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 07:08:05 - End Time 2025-01-17 10:08:05 [2025-01-17 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267583', 'tblTempUsageDetail_20' ) start [2025-01-17 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267583', 'tblTempUsageDetail_20' ) end [2025-01-17 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267583', 'tblTempVendorCDR_20' ) start [2025-01-17 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267583', 'tblTempVendorCDR_20' ) end [2025-01-17 10:08:18] Production.INFO: ProcessCDR(1,14267583,1,1,2) [2025-01-17 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267583', 'tblTempUsageDetail_20' ) start [2025-01-17 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267583', 'tblTempUsageDetail_20' ) end [2025-01-17 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:08:22] Production.INFO: ==17214== Releasing lock... [2025-01-17 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:08:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-17 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:09:05 [end_date_ymd] => 2025-01-17 10:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:09:05' and `end` < '2025-01-17 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-17 10:09:21] Production.INFO: count ==2163 [2025-01-17 10:09:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:09:05 - End Time 2025-01-17 10:09:05 [2025-01-17 10:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267588', 'tblTempUsageDetail_20' ) start [2025-01-17 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267588', 'tblTempUsageDetail_20' ) end [2025-01-17 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267588', 'tblTempVendorCDR_20' ) start [2025-01-17 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267588', 'tblTempVendorCDR_20' ) end [2025-01-17 10:09:22] Production.INFO: ProcessCDR(1,14267588,1,1,2) [2025-01-17 10:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267588', 'tblTempUsageDetail_20' ) start [2025-01-17 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267588', 'tblTempUsageDetail_20' ) end [2025-01-17 10:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:09:27] Production.INFO: ==17285== Releasing lock... [2025-01-17 10:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:09:27] Production.INFO: 44.25 MB #Memory Used# [2025-01-17 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:10:05 [end_date_ymd] => 2025-01-17 10:10:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:10:05' and `end` < '2025-01-17 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-17 10:10:19] Production.INFO: count ==2177 [2025-01-17 10:10:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:10:05 - End Time 2025-01-17 10:10:05 [2025-01-17 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267593', 'tblTempUsageDetail_20' ) start [2025-01-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267593', 'tblTempUsageDetail_20' ) end [2025-01-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267593', 'tblTempVendorCDR_20' ) start [2025-01-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267593', 'tblTempVendorCDR_20' ) end [2025-01-17 10:10:20] Production.INFO: ProcessCDR(1,14267593,1,1,2) [2025-01-17 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267593', 'tblTempUsageDetail_20' ) start [2025-01-17 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267593', 'tblTempUsageDetail_20' ) end [2025-01-17 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:10:24] Production.INFO: ==17358== Releasing lock... [2025-01-17 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:10:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-17 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:11:05 [end_date_ymd] => 2025-01-17 10:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:11:05' and `end` < '2025-01-17 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-17 10:11:32] Production.INFO: count ==2330 [2025-01-17 10:11:33] Production.ERROR: pbx CDR StartTime 2025-01-17 07:11:05 - End Time 2025-01-17 10:11:05 [2025-01-17 10:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267599', 'tblTempUsageDetail_20' ) start [2025-01-17 10:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267599', 'tblTempUsageDetail_20' ) end [2025-01-17 10:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267599', 'tblTempVendorCDR_20' ) start [2025-01-17 10:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267599', 'tblTempVendorCDR_20' ) end [2025-01-17 10:11:33] Production.INFO: ProcessCDR(1,14267599,1,1,2) [2025-01-17 10:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267599', 'tblTempUsageDetail_20' ) start [2025-01-17 10:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267599', 'tblTempUsageDetail_20' ) end [2025-01-17 10:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:11:38] Production.INFO: ==17432== Releasing lock... [2025-01-17 10:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:11:38] Production.INFO: 45.75 MB #Memory Used# [2025-01-17 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:12:05 [end_date_ymd] => 2025-01-17 10:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:12:05' and `end` < '2025-01-17 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-17 10:12:24] Production.INFO: count ==2353 [2025-01-17 10:12:25] Production.ERROR: pbx CDR StartTime 2025-01-17 07:12:05 - End Time 2025-01-17 10:12:05 [2025-01-17 10:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267604', 'tblTempUsageDetail_20' ) start [2025-01-17 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267604', 'tblTempUsageDetail_20' ) end [2025-01-17 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267604', 'tblTempVendorCDR_20' ) start [2025-01-17 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267604', 'tblTempVendorCDR_20' ) end [2025-01-17 10:12:25] Production.INFO: ProcessCDR(1,14267604,1,1,2) [2025-01-17 10:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267604', 'tblTempUsageDetail_20' ) start [2025-01-17 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267604', 'tblTempUsageDetail_20' ) end [2025-01-17 10:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:12:28] Production.INFO: ==17501== Releasing lock... [2025-01-17 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:12:28] Production.INFO: 45.75 MB #Memory Used# [2025-01-17 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:13:05 [end_date_ymd] => 2025-01-17 10:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:13:05' and `end` < '2025-01-17 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-17 10:13:20] Production.INFO: count ==2371 [2025-01-17 10:13:21] Production.ERROR: pbx CDR StartTime 2025-01-17 07:13:05 - End Time 2025-01-17 10:13:05 [2025-01-17 10:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267609', 'tblTempUsageDetail_20' ) start [2025-01-17 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267609', 'tblTempUsageDetail_20' ) end [2025-01-17 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267609', 'tblTempVendorCDR_20' ) start [2025-01-17 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267609', 'tblTempVendorCDR_20' ) end [2025-01-17 10:13:21] Production.INFO: ProcessCDR(1,14267609,1,1,2) [2025-01-17 10:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267609', 'tblTempUsageDetail_20' ) start [2025-01-17 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267609', 'tblTempUsageDetail_20' ) end [2025-01-17 10:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:13:26] Production.INFO: ==17571== Releasing lock... [2025-01-17 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:13:26] Production.INFO: 45.75 MB #Memory Used# [2025-01-17 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:14:04 [end_date_ymd] => 2025-01-17 10:14:04 [RateCDR] => 1 ) [2025-01-17 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-17 07:14:04' and `end` < '2025-01-17 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-17 10:14:19] Production.INFO: count ==2377 [2025-01-17 10:14:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:14:04 - End Time 2025-01-17 10:14:04 [2025-01-17 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267614', 'tblTempUsageDetail_20' ) start [2025-01-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267614', 'tblTempUsageDetail_20' ) end [2025-01-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267614', 'tblTempVendorCDR_20' ) start [2025-01-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267614', 'tblTempVendorCDR_20' ) end [2025-01-17 10:14:20] Production.INFO: ProcessCDR(1,14267614,1,1,2) [2025-01-17 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267614', 'tblTempUsageDetail_20' ) start [2025-01-17 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267614', 'tblTempUsageDetail_20' ) end [2025-01-17 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:14:25] Production.INFO: ==17643== Releasing lock... [2025-01-17 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:14:25] Production.INFO: 46 MB #Memory Used# [2025-01-17 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:15:05 [end_date_ymd] => 2025-01-17 10:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:15:05' and `end` < '2025-01-17 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-17 10:15:19] Production.INFO: count ==2395 [2025-01-17 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:15:05 - End Time 2025-01-17 10:15:05 [2025-01-17 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267619', 'tblTempUsageDetail_20' ) start [2025-01-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267619', 'tblTempUsageDetail_20' ) end [2025-01-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267619', 'tblTempVendorCDR_20' ) start [2025-01-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267619', 'tblTempVendorCDR_20' ) end [2025-01-17 10:15:19] Production.INFO: ProcessCDR(1,14267619,1,1,2) [2025-01-17 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267619', 'tblTempUsageDetail_20' ) start [2025-01-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267619', 'tblTempUsageDetail_20' ) end [2025-01-17 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:15:24] Production.INFO: ==17713== Releasing lock... [2025-01-17 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:15:24] Production.INFO: 46 MB #Memory Used# [2025-01-17 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:16:06 [end_date_ymd] => 2025-01-17 10:16:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:16:06' and `end` < '2025-01-17 10: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-17 10:16:23] Production.INFO: count ==2407 [2025-01-17 10:16:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:16:06 - End Time 2025-01-17 10:16:06 [2025-01-17 10:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267624', 'tblTempUsageDetail_20' ) start [2025-01-17 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267624', 'tblTempUsageDetail_20' ) end [2025-01-17 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267624', 'tblTempVendorCDR_20' ) start [2025-01-17 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267624', 'tblTempVendorCDR_20' ) end [2025-01-17 10:16:23] Production.INFO: ProcessCDR(1,14267624,1,1,2) [2025-01-17 10:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267624', 'tblTempUsageDetail_20' ) start [2025-01-17 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267624', 'tblTempUsageDetail_20' ) end [2025-01-17 10:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:16:29] Production.INFO: ==17787== Releasing lock... [2025-01-17 10:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:16:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-17 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:17:05 [end_date_ymd] => 2025-01-17 10:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:17:05' and `end` < '2025-01-17 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-17 10:17:22] Production.INFO: count ==2446 [2025-01-17 10:17:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:17:05 - End Time 2025-01-17 10:17:05 [2025-01-17 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267629', 'tblTempUsageDetail_20' ) start [2025-01-17 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267629', 'tblTempUsageDetail_20' ) end [2025-01-17 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267629', 'tblTempVendorCDR_20' ) start [2025-01-17 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267629', 'tblTempVendorCDR_20' ) end [2025-01-17 10:17:23] Production.INFO: ProcessCDR(1,14267629,1,1,2) [2025-01-17 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267629', 'tblTempUsageDetail_20' ) start [2025-01-17 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267629', 'tblTempUsageDetail_20' ) end [2025-01-17 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:17:28] Production.INFO: ==17859== Releasing lock... [2025-01-17 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:17:28] Production.INFO: 46.5 MB #Memory Used# [2025-01-17 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:18:06 [end_date_ymd] => 2025-01-17 10:18:06 [RateCDR] => 1 ) [2025-01-17 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:18:06' and `end` < '2025-01-17 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:18:20] Production.INFO: count ==2470 [2025-01-17 10:18:21] Production.ERROR: pbx CDR StartTime 2025-01-17 07:18:06 - End Time 2025-01-17 10:18:06 [2025-01-17 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267634', 'tblTempUsageDetail_20' ) start [2025-01-17 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267634', 'tblTempUsageDetail_20' ) end [2025-01-17 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267634', 'tblTempVendorCDR_20' ) start [2025-01-17 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267634', 'tblTempVendorCDR_20' ) end [2025-01-17 10:18:21] Production.INFO: ProcessCDR(1,14267634,1,1,2) [2025-01-17 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267634', 'tblTempUsageDetail_20' ) start [2025-01-17 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267634', 'tblTempUsageDetail_20' ) end [2025-01-17 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:18:26] Production.INFO: ==17969== Releasing lock... [2025-01-17 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:18:26] Production.INFO: 46.5 MB #Memory Used# [2025-01-17 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:19:05 [end_date_ymd] => 2025-01-17 10:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:19:05' and `end` < '2025-01-17 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-17 10:19:20] Production.INFO: count ==2487 [2025-01-17 10:19:21] Production.ERROR: pbx CDR StartTime 2025-01-17 07:19:05 - End Time 2025-01-17 10:19:05 [2025-01-17 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267639', 'tblTempUsageDetail_20' ) start [2025-01-17 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267639', 'tblTempUsageDetail_20' ) end [2025-01-17 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267639', 'tblTempVendorCDR_20' ) start [2025-01-17 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267639', 'tblTempVendorCDR_20' ) end [2025-01-17 10:19:21] Production.INFO: ProcessCDR(1,14267639,1,1,2) [2025-01-17 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267639', 'tblTempUsageDetail_20' ) start [2025-01-17 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267639', 'tblTempUsageDetail_20' ) end [2025-01-17 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:19:25] Production.INFO: ==18039== Releasing lock... [2025-01-17 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:19:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-17 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:20:06 [end_date_ymd] => 2025-01-17 10:20:06 [RateCDR] => 1 ) [2025-01-17 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:20:06' and `end` < '2025-01-17 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:20:24] Production.INFO: count ==2500 [2025-01-17 10:20:25] Production.ERROR: pbx CDR StartTime 2025-01-17 07:20:06 - End Time 2025-01-17 10:20:06 [2025-01-17 10:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267644', 'tblTempUsageDetail_20' ) start [2025-01-17 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267644', 'tblTempUsageDetail_20' ) end [2025-01-17 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267644', 'tblTempVendorCDR_20' ) start [2025-01-17 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267644', 'tblTempVendorCDR_20' ) end [2025-01-17 10:20:25] Production.INFO: ProcessCDR(1,14267644,1,1,2) [2025-01-17 10:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267644', 'tblTempUsageDetail_20' ) start [2025-01-17 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267644', 'tblTempUsageDetail_20' ) end [2025-01-17 10:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:20:29] Production.INFO: ==18112== Releasing lock... [2025-01-17 10:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:20:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-17 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:21:05 [end_date_ymd] => 2025-01-17 10:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:21:05' and `end` < '2025-01-17 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-17 10:21:21] Production.INFO: count ==2612 [2025-01-17 10:21:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:21:05 - End Time 2025-01-17 10:21:05 [2025-01-17 10:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267650', 'tblTempUsageDetail_20' ) start [2025-01-17 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267650', 'tblTempUsageDetail_20' ) end [2025-01-17 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267650', 'tblTempVendorCDR_20' ) start [2025-01-17 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267650', 'tblTempVendorCDR_20' ) end [2025-01-17 10:21:22] Production.INFO: ProcessCDR(1,14267650,1,1,2) [2025-01-17 10:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267650', 'tblTempUsageDetail_20' ) start [2025-01-17 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267650', 'tblTempUsageDetail_20' ) end [2025-01-17 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:21:26] Production.INFO: ==18183== Releasing lock... [2025-01-17 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:21:26] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:22:05 [end_date_ymd] => 2025-01-17 10:22:05 [RateCDR] => 1 ) [2025-01-17 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:22:05' and `end` < '2025-01-17 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:22:20] Production.INFO: count ==2618 [2025-01-17 10:22:21] Production.ERROR: pbx CDR StartTime 2025-01-17 07:22:05 - End Time 2025-01-17 10:22:05 [2025-01-17 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267655', 'tblTempUsageDetail_20' ) start [2025-01-17 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267655', 'tblTempUsageDetail_20' ) end [2025-01-17 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267655', 'tblTempVendorCDR_20' ) start [2025-01-17 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267655', 'tblTempVendorCDR_20' ) end [2025-01-17 10:22:21] Production.INFO: ProcessCDR(1,14267655,1,1,2) [2025-01-17 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267655', 'tblTempUsageDetail_20' ) start [2025-01-17 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267655', 'tblTempUsageDetail_20' ) end [2025-01-17 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:22:25] Production.INFO: ==18253== Releasing lock... [2025-01-17 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:22:25] Production.INFO: 48 MB #Memory Used# [2025-01-17 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:23:04 [end_date_ymd] => 2025-01-17 10:23:04 [RateCDR] => 1 ) [2025-01-17 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:23:04' and `end` < '2025-01-17 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:23:21] Production.INFO: count ==2636 [2025-01-17 10:23:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:23:04 - End Time 2025-01-17 10:23:04 [2025-01-17 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267660', 'tblTempUsageDetail_20' ) start [2025-01-17 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267660', 'tblTempUsageDetail_20' ) end [2025-01-17 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267660', 'tblTempVendorCDR_20' ) start [2025-01-17 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267660', 'tblTempVendorCDR_20' ) end [2025-01-17 10:23:22] Production.INFO: ProcessCDR(1,14267660,1,1,2) [2025-01-17 10:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267660', 'tblTempUsageDetail_20' ) start [2025-01-17 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267660', 'tblTempUsageDetail_20' ) end [2025-01-17 10:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:23:27] Production.INFO: ==18322== Releasing lock... [2025-01-17 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:23:27] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:24:05 [end_date_ymd] => 2025-01-17 10:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:24:05' and `end` < '2025-01-17 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-17 10:24:22] Production.INFO: count ==2659 [2025-01-17 10:24:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:24:05 - End Time 2025-01-17 10:24:05 [2025-01-17 10:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267665', 'tblTempUsageDetail_20' ) start [2025-01-17 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267665', 'tblTempUsageDetail_20' ) end [2025-01-17 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267665', 'tblTempVendorCDR_20' ) start [2025-01-17 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267665', 'tblTempVendorCDR_20' ) end [2025-01-17 10:24:23] Production.INFO: ProcessCDR(1,14267665,1,1,2) [2025-01-17 10:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267665', 'tblTempUsageDetail_20' ) start [2025-01-17 10:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267665', 'tblTempUsageDetail_20' ) end [2025-01-17 10:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:24:28] Production.INFO: ==18394== Releasing lock... [2025-01-17 10:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:24:28] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:25:06 [end_date_ymd] => 2025-01-17 10:25:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:25:06' and `end` < '2025-01-17 10: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-17 10:25:29] Production.INFO: count ==2696 [2025-01-17 10:25:30] Production.ERROR: pbx CDR StartTime 2025-01-17 07:25:06 - End Time 2025-01-17 10:25:06 [2025-01-17 10:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267670', 'tblTempUsageDetail_20' ) start [2025-01-17 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267670', 'tblTempUsageDetail_20' ) end [2025-01-17 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267670', 'tblTempVendorCDR_20' ) start [2025-01-17 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267670', 'tblTempVendorCDR_20' ) end [2025-01-17 10:25:30] Production.INFO: ProcessCDR(1,14267670,1,1,2) [2025-01-17 10:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267670', 'tblTempUsageDetail_20' ) start [2025-01-17 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267670', 'tblTempUsageDetail_20' ) end [2025-01-17 10:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:25:35] Production.INFO: ==18468== Releasing lock... [2025-01-17 10:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:25:35] Production.INFO: 48.25 MB #Memory Used# [2025-01-17 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:26:05 [end_date_ymd] => 2025-01-17 10:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:26:05' and `end` < '2025-01-17 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-17 10:26:29] Production.INFO: count ==2715 [2025-01-17 10:26:30] Production.ERROR: pbx CDR StartTime 2025-01-17 07:26:05 - End Time 2025-01-17 10:26:05 [2025-01-17 10:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267675', 'tblTempUsageDetail_20' ) start [2025-01-17 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267675', 'tblTempUsageDetail_20' ) end [2025-01-17 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267675', 'tblTempVendorCDR_20' ) start [2025-01-17 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267675', 'tblTempVendorCDR_20' ) end [2025-01-17 10:26:30] Production.INFO: ProcessCDR(1,14267675,1,1,2) [2025-01-17 10:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267675', 'tblTempUsageDetail_20' ) start [2025-01-17 10:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267675', 'tblTempUsageDetail_20' ) end [2025-01-17 10:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:26:35] Production.INFO: ==18541== Releasing lock... [2025-01-17 10:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:26:35] Production.INFO: 48.5 MB #Memory Used# [2025-01-17 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:27:05 [end_date_ymd] => 2025-01-17 10:27:05 [RateCDR] => 1 ) [2025-01-17 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:27:05' and `end` < '2025-01-17 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:27:24] Production.INFO: count ==2738 [2025-01-17 10:27:25] Production.ERROR: pbx CDR StartTime 2025-01-17 07:27:05 - End Time 2025-01-17 10:27:05 [2025-01-17 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267680', 'tblTempUsageDetail_20' ) start [2025-01-17 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267680', 'tblTempUsageDetail_20' ) end [2025-01-17 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267680', 'tblTempVendorCDR_20' ) start [2025-01-17 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267680', 'tblTempVendorCDR_20' ) end [2025-01-17 10:27:25] Production.INFO: ProcessCDR(1,14267680,1,1,2) [2025-01-17 10:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267680', 'tblTempUsageDetail_20' ) start [2025-01-17 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267680', 'tblTempUsageDetail_20' ) end [2025-01-17 10:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:27:30] Production.INFO: ==18610== Releasing lock... [2025-01-17 10:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:27:30] Production.INFO: 48.5 MB #Memory Used# [2025-01-17 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:28:05 [end_date_ymd] => 2025-01-17 10:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:28:05' and `end` < '2025-01-17 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-17 10:28:22] Production.INFO: count ==2765 [2025-01-17 10:28:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:28:05 - End Time 2025-01-17 10:28:05 [2025-01-17 10:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267685', 'tblTempUsageDetail_20' ) start [2025-01-17 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267685', 'tblTempUsageDetail_20' ) end [2025-01-17 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267685', 'tblTempVendorCDR_20' ) start [2025-01-17 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267685', 'tblTempVendorCDR_20' ) end [2025-01-17 10:28:23] Production.INFO: ProcessCDR(1,14267685,1,1,2) [2025-01-17 10:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267685', 'tblTempUsageDetail_20' ) start [2025-01-17 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267685', 'tblTempUsageDetail_20' ) end [2025-01-17 10:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:28:29] Production.INFO: ==18681== Releasing lock... [2025-01-17 10:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:28:29] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:29:06 [end_date_ymd] => 2025-01-17 10:29:06 [RateCDR] => 1 ) [2025-01-17 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:29:06' and `end` < '2025-01-17 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:29:20] Production.INFO: count ==2780 [2025-01-17 10:29:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:29:06 - End Time 2025-01-17 10:29:06 [2025-01-17 10:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267690', 'tblTempUsageDetail_20' ) start [2025-01-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267690', 'tblTempUsageDetail_20' ) end [2025-01-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267690', 'tblTempVendorCDR_20' ) start [2025-01-17 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267690', 'tblTempVendorCDR_20' ) end [2025-01-17 10:29:22] Production.INFO: ProcessCDR(1,14267690,1,1,2) [2025-01-17 10:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267690', 'tblTempUsageDetail_20' ) start [2025-01-17 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267690', 'tblTempUsageDetail_20' ) end [2025-01-17 10:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:29:27] Production.INFO: ==18756== Releasing lock... [2025-01-17 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:29:27] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:30:06 [end_date_ymd] => 2025-01-17 10:30:06 [RateCDR] => 1 ) [2025-01-17 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-17 07:30:06' and `end` < '2025-01-17 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-17 10:30:24] Production.INFO: count ==2797 [2025-01-17 10:30:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:30:06 - End Time 2025-01-17 10:30:06 [2025-01-17 10:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267696', 'tblTempUsageDetail_20' ) start [2025-01-17 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267696', 'tblTempUsageDetail_20' ) end [2025-01-17 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267696', 'tblTempVendorCDR_20' ) start [2025-01-17 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267696', 'tblTempVendorCDR_20' ) end [2025-01-17 10:30:26] Production.INFO: ProcessCDR(1,14267696,1,1,2) [2025-01-17 10:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267696', 'tblTempUsageDetail_20' ) start [2025-01-17 10:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267696', 'tblTempUsageDetail_20' ) end [2025-01-17 10:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:30:31] Production.INFO: ==18828== Releasing lock... [2025-01-17 10:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:30:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:31:05 [end_date_ymd] => 2025-01-17 10:31:05 [RateCDR] => 1 ) [2025-01-17 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:31:05' and `end` < '2025-01-17 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:31:31] Production.INFO: count ==2876 [2025-01-17 10:31:32] Production.ERROR: pbx CDR StartTime 2025-01-17 07:31:05 - End Time 2025-01-17 10:31:05 [2025-01-17 10:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267701', 'tblTempUsageDetail_20' ) start [2025-01-17 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267701', 'tblTempUsageDetail_20' ) end [2025-01-17 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267701', 'tblTempVendorCDR_20' ) start [2025-01-17 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267701', 'tblTempVendorCDR_20' ) end [2025-01-17 10:31:32] Production.INFO: ProcessCDR(1,14267701,1,1,2) [2025-01-17 10:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267701', 'tblTempUsageDetail_20' ) start [2025-01-17 10:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267701', 'tblTempUsageDetail_20' ) end [2025-01-17 10:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:31:37] Production.INFO: ==18905== Releasing lock... [2025-01-17 10:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:31:37] Production.INFO: 49.5 MB #Memory Used# [2025-01-17 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:32:04 [end_date_ymd] => 2025-01-17 10:32:04 [RateCDR] => 1 ) [2025-01-17 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:32:04' and `end` < '2025-01-17 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:32:22] Production.INFO: count ==2888 [2025-01-17 10:32:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:32:04 - End Time 2025-01-17 10:32:04 [2025-01-17 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267706', 'tblTempUsageDetail_20' ) start [2025-01-17 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267706', 'tblTempUsageDetail_20' ) end [2025-01-17 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267706', 'tblTempVendorCDR_20' ) start [2025-01-17 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267706', 'tblTempVendorCDR_20' ) end [2025-01-17 10:32:23] Production.INFO: ProcessCDR(1,14267706,1,1,2) [2025-01-17 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267706', 'tblTempUsageDetail_20' ) start [2025-01-17 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267706', 'tblTempUsageDetail_20' ) end [2025-01-17 10:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:32:28] Production.INFO: ==18975== Releasing lock... [2025-01-17 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:32:28] Production.INFO: 49.5 MB #Memory Used# [2025-01-17 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:33:06 [end_date_ymd] => 2025-01-17 10:33:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:33:06' and `end` < '2025-01-17 10: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-17 10:33:20] Production.INFO: count ==2905 [2025-01-17 10:33:21] Production.ERROR: pbx CDR StartTime 2025-01-17 07:33:06 - End Time 2025-01-17 10:33:06 [2025-01-17 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267711', 'tblTempUsageDetail_20' ) start [2025-01-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267711', 'tblTempUsageDetail_20' ) end [2025-01-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267711', 'tblTempVendorCDR_20' ) start [2025-01-17 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267711', 'tblTempVendorCDR_20' ) end [2025-01-17 10:33:21] Production.INFO: ProcessCDR(1,14267711,1,1,2) [2025-01-17 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267711', 'tblTempUsageDetail_20' ) start [2025-01-17 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267711', 'tblTempUsageDetail_20' ) end [2025-01-17 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:33:26] Production.INFO: ==19084== Releasing lock... [2025-01-17 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:33:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-17 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:34:04 [end_date_ymd] => 2025-01-17 10:34:04 [RateCDR] => 1 ) [2025-01-17 10:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:34:04' and `end` < '2025-01-17 10:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:34:17] Production.INFO: count ==2907 [2025-01-17 10:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:34:04 - End Time 2025-01-17 10:34:04 [2025-01-17 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267716', 'tblTempUsageDetail_20' ) start [2025-01-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267716', 'tblTempUsageDetail_20' ) end [2025-01-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267716', 'tblTempVendorCDR_20' ) start [2025-01-17 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267716', 'tblTempVendorCDR_20' ) end [2025-01-17 10:34:19] Production.INFO: ProcessCDR(1,14267716,1,1,2) [2025-01-17 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267716', 'tblTempUsageDetail_20' ) start [2025-01-17 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267716', 'tblTempUsageDetail_20' ) end [2025-01-17 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:34:22] Production.INFO: ==19153== Releasing lock... [2025-01-17 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:34:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-17 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:35:06 [end_date_ymd] => 2025-01-17 10:35:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:35:06' and `end` < '2025-01-17 10: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-17 10:35:24] Production.INFO: count ==2920 [2025-01-17 10:35:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:35:06 - End Time 2025-01-17 10:35:06 [2025-01-17 10:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267721', 'tblTempUsageDetail_20' ) start [2025-01-17 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267721', 'tblTempUsageDetail_20' ) end [2025-01-17 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267721', 'tblTempVendorCDR_20' ) start [2025-01-17 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267721', 'tblTempVendorCDR_20' ) end [2025-01-17 10:35:26] Production.INFO: ProcessCDR(1,14267721,1,1,2) [2025-01-17 10:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267721', 'tblTempUsageDetail_20' ) start [2025-01-17 10:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267721', 'tblTempUsageDetail_20' ) end [2025-01-17 10:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:35:31] Production.INFO: ==19225== Releasing lock... [2025-01-17 10:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:35:31] Production.INFO: 49.75 MB #Memory Used# [2025-01-17 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:36:05 [end_date_ymd] => 2025-01-17 10:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:36:05' and `end` < '2025-01-17 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-17 10:36:19] Production.INFO: count ==2928 [2025-01-17 10:36:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:36:05 - End Time 2025-01-17 10:36:05 [2025-01-17 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267726', 'tblTempUsageDetail_20' ) start [2025-01-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267726', 'tblTempUsageDetail_20' ) end [2025-01-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267726', 'tblTempVendorCDR_20' ) start [2025-01-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267726', 'tblTempVendorCDR_20' ) end [2025-01-17 10:36:20] Production.INFO: ProcessCDR(1,14267726,1,1,2) [2025-01-17 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267726', 'tblTempUsageDetail_20' ) start [2025-01-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267726', 'tblTempUsageDetail_20' ) end [2025-01-17 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:36:25] Production.INFO: ==19294== Releasing lock... [2025-01-17 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:36:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-17 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:37:05 [end_date_ymd] => 2025-01-17 10:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:37:05' and `end` < '2025-01-17 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-17 10:37:18] Production.INFO: count ==2938 [2025-01-17 10:37:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:37:05 - End Time 2025-01-17 10:37:05 [2025-01-17 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267731', 'tblTempUsageDetail_20' ) start [2025-01-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267731', 'tblTempUsageDetail_20' ) end [2025-01-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267731', 'tblTempVendorCDR_20' ) start [2025-01-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267731', 'tblTempVendorCDR_20' ) end [2025-01-17 10:37:20] Production.INFO: ProcessCDR(1,14267731,1,1,2) [2025-01-17 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267731', 'tblTempUsageDetail_20' ) start [2025-01-17 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267731', 'tblTempUsageDetail_20' ) end [2025-01-17 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:37:24] Production.INFO: ==19364== Releasing lock... [2025-01-17 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:37:24] Production.INFO: 50 MB #Memory Used# [2025-01-17 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:38:05 [end_date_ymd] => 2025-01-17 10:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:38:05' and `end` < '2025-01-17 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-17 10:38:19] Production.INFO: count ==2961 [2025-01-17 10:38:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:38:05 - End Time 2025-01-17 10:38:05 [2025-01-17 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267736', 'tblTempUsageDetail_20' ) start [2025-01-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267736', 'tblTempUsageDetail_20' ) end [2025-01-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267736', 'tblTempVendorCDR_20' ) start [2025-01-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267736', 'tblTempVendorCDR_20' ) end [2025-01-17 10:38:20] Production.INFO: ProcessCDR(1,14267736,1,1,2) [2025-01-17 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267736', 'tblTempUsageDetail_20' ) start [2025-01-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267736', 'tblTempUsageDetail_20' ) end [2025-01-17 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:38:25] Production.INFO: ==19433== Releasing lock... [2025-01-17 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:38:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-17 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:39:05 [end_date_ymd] => 2025-01-17 10:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:39:05' and `end` < '2025-01-17 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-17 10:39:18] Production.INFO: count ==2971 [2025-01-17 10:39:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:39:05 - End Time 2025-01-17 10:39:05 [2025-01-17 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267741', 'tblTempUsageDetail_20' ) start [2025-01-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267741', 'tblTempUsageDetail_20' ) end [2025-01-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267741', 'tblTempVendorCDR_20' ) start [2025-01-17 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267741', 'tblTempVendorCDR_20' ) end [2025-01-17 10:39:19] Production.INFO: ProcessCDR(1,14267741,1,1,2) [2025-01-17 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267741', 'tblTempUsageDetail_20' ) start [2025-01-17 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267741', 'tblTempUsageDetail_20' ) end [2025-01-17 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:39:24] Production.INFO: ==19504== Releasing lock... [2025-01-17 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:39:24] Production.INFO: 50 MB #Memory Used# [2025-01-17 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:40:06 [end_date_ymd] => 2025-01-17 10:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 07:40:06' and `end` < '2025-01-17 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-17 10:40:25] Production.INFO: count ==2996 [2025-01-17 10:40:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:40:06 - End Time 2025-01-17 10:40:06 [2025-01-17 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267747', 'tblTempUsageDetail_20' ) start [2025-01-17 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267747', 'tblTempUsageDetail_20' ) end [2025-01-17 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267747', 'tblTempVendorCDR_20' ) start [2025-01-17 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267747', 'tblTempVendorCDR_20' ) end [2025-01-17 10:40:26] Production.INFO: ProcessCDR(1,14267747,1,1,2) [2025-01-17 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267747', 'tblTempUsageDetail_20' ) start [2025-01-17 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267747', 'tblTempUsageDetail_20' ) end [2025-01-17 10:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:40:32] Production.INFO: ==19579== Releasing lock... [2025-01-17 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:40:32] Production.INFO: 50.25 MB #Memory Used# [2025-01-17 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:41:05 [end_date_ymd] => 2025-01-17 10:41:05 [RateCDR] => 1 ) [2025-01-17 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:41:05' and `end` < '2025-01-17 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:41:24] Production.INFO: count ==3125 [2025-01-17 10:41:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:41:05 - End Time 2025-01-17 10:41:05 [2025-01-17 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267752', 'tblTempUsageDetail_20' ) start [2025-01-17 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267752', 'tblTempUsageDetail_20' ) end [2025-01-17 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267752', 'tblTempVendorCDR_20' ) start [2025-01-17 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267752', 'tblTempVendorCDR_20' ) end [2025-01-17 10:41:26] Production.INFO: ProcessCDR(1,14267752,1,1,2) [2025-01-17 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267752', 'tblTempUsageDetail_20' ) start [2025-01-17 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267752', 'tblTempUsageDetail_20' ) end [2025-01-17 10:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:41:31] Production.INFO: ==19651== Releasing lock... [2025-01-17 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:41:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:42:05 [end_date_ymd] => 2025-01-17 10:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:42:05' and `end` < '2025-01-17 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-17 10:42:24] Production.INFO: count ==3134 [2025-01-17 10:42:25] Production.ERROR: pbx CDR StartTime 2025-01-17 07:42:05 - End Time 2025-01-17 10:42:05 [2025-01-17 10:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267757', 'tblTempUsageDetail_20' ) start [2025-01-17 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267757', 'tblTempUsageDetail_20' ) end [2025-01-17 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267757', 'tblTempVendorCDR_20' ) start [2025-01-17 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267757', 'tblTempVendorCDR_20' ) end [2025-01-17 10:42:26] Production.INFO: ProcessCDR(1,14267757,1,1,2) [2025-01-17 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267757', 'tblTempUsageDetail_20' ) start [2025-01-17 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267757', 'tblTempUsageDetail_20' ) end [2025-01-17 10:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:42:31] Production.INFO: ==19723== Releasing lock... [2025-01-17 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:42:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:43:05 [end_date_ymd] => 2025-01-17 10:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:43:05' and `end` < '2025-01-17 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-17 10:43:19] Production.INFO: count ==3147 [2025-01-17 10:43:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:43:05 - End Time 2025-01-17 10:43:05 [2025-01-17 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267762', 'tblTempUsageDetail_20' ) start [2025-01-17 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267762', 'tblTempUsageDetail_20' ) end [2025-01-17 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267762', 'tblTempVendorCDR_20' ) start [2025-01-17 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267762', 'tblTempVendorCDR_20' ) end [2025-01-17 10:43:21] Production.INFO: ProcessCDR(1,14267762,1,1,2) [2025-01-17 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267762', 'tblTempUsageDetail_20' ) start [2025-01-17 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267762', 'tblTempUsageDetail_20' ) end [2025-01-17 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:43:26] Production.INFO: ==19792== Releasing lock... [2025-01-17 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:43:26] Production.INFO: 51.75 MB #Memory Used# [2025-01-17 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:44:05 [end_date_ymd] => 2025-01-17 10:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:44:05' and `end` < '2025-01-17 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-17 10:44:27] Production.INFO: count ==3177 [2025-01-17 10:44:28] Production.ERROR: pbx CDR StartTime 2025-01-17 07:44:05 - End Time 2025-01-17 10:44:05 [2025-01-17 10:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267767', 'tblTempUsageDetail_20' ) start [2025-01-17 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267767', 'tblTempUsageDetail_20' ) end [2025-01-17 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267767', 'tblTempVendorCDR_20' ) start [2025-01-17 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267767', 'tblTempVendorCDR_20' ) end [2025-01-17 10:44:28] Production.INFO: ProcessCDR(1,14267767,1,1,2) [2025-01-17 10:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267767', 'tblTempUsageDetail_20' ) start [2025-01-17 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267767', 'tblTempUsageDetail_20' ) end [2025-01-17 10:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:44:33] Production.INFO: ==19862== Releasing lock... [2025-01-17 10:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:44:33] Production.INFO: 52 MB #Memory Used# [2025-01-17 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:45:04 [end_date_ymd] => 2025-01-17 10:45:04 [RateCDR] => 1 ) [2025-01-17 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-17 07:45:04' and `end` < '2025-01-17 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:45:32] Production.INFO: count ==3188 [2025-01-17 10:45:33] Production.ERROR: pbx CDR StartTime 2025-01-17 07:45:04 - End Time 2025-01-17 10:45:04 [2025-01-17 10:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267772', 'tblTempUsageDetail_20' ) start [2025-01-17 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267772', 'tblTempUsageDetail_20' ) end [2025-01-17 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267772', 'tblTempVendorCDR_20' ) start [2025-01-17 10:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267772', 'tblTempVendorCDR_20' ) end [2025-01-17 10:45:33] Production.INFO: ProcessCDR(1,14267772,1,1,2) [2025-01-17 10:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267772', 'tblTempUsageDetail_20' ) start [2025-01-17 10:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267772', 'tblTempUsageDetail_20' ) end [2025-01-17 10:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:45:38] Production.INFO: ==19935== Releasing lock... [2025-01-17 10:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:45:38] Production.INFO: 52 MB #Memory Used# [2025-01-17 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:46:05 [end_date_ymd] => 2025-01-17 10:46:05 [RateCDR] => 1 ) [2025-01-17 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:46:05' and `end` < '2025-01-17 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:46:22] Production.INFO: count ==3207 [2025-01-17 10:46:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:46:05 - End Time 2025-01-17 10:46:05 [2025-01-17 10:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267777', 'tblTempUsageDetail_20' ) start [2025-01-17 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267777', 'tblTempUsageDetail_20' ) end [2025-01-17 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267777', 'tblTempVendorCDR_20' ) start [2025-01-17 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267777', 'tblTempVendorCDR_20' ) end [2025-01-17 10:46:23] Production.INFO: ProcessCDR(1,14267777,1,1,2) [2025-01-17 10:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267777', 'tblTempUsageDetail_20' ) start [2025-01-17 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267777', 'tblTempUsageDetail_20' ) end [2025-01-17 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:46:28] Production.INFO: ==20008== Releasing lock... [2025-01-17 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:46:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:47:04 [end_date_ymd] => 2025-01-17 10:47:04 [RateCDR] => 1 ) [2025-01-17 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:47:04' and `end` < '2025-01-17 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:47:19] Production.INFO: count ==3227 [2025-01-17 10:47:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:47:04 - End Time 2025-01-17 10:47:04 [2025-01-17 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267782', 'tblTempUsageDetail_20' ) start [2025-01-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267782', 'tblTempUsageDetail_20' ) end [2025-01-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267782', 'tblTempVendorCDR_20' ) start [2025-01-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267782', 'tblTempVendorCDR_20' ) end [2025-01-17 10:47:20] Production.INFO: ProcessCDR(1,14267782,1,1,2) [2025-01-17 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267782', 'tblTempUsageDetail_20' ) start [2025-01-17 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267782', 'tblTempUsageDetail_20' ) end [2025-01-17 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:47:25] Production.INFO: ==20080== Releasing lock... [2025-01-17 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:47:25] Production.INFO: 52 MB #Memory Used# [2025-01-17 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:48:05 [end_date_ymd] => 2025-01-17 10:48:05 [RateCDR] => 1 ) [2025-01-17 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:48:05' and `end` < '2025-01-17 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:48:18] Production.INFO: count ==3232 [2025-01-17 10:48:19] Production.ERROR: pbx CDR StartTime 2025-01-17 07:48:05 - End Time 2025-01-17 10:48:05 [2025-01-17 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267787', 'tblTempUsageDetail_20' ) start [2025-01-17 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267787', 'tblTempUsageDetail_20' ) end [2025-01-17 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267787', 'tblTempVendorCDR_20' ) start [2025-01-17 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267787', 'tblTempVendorCDR_20' ) end [2025-01-17 10:48:19] Production.INFO: ProcessCDR(1,14267787,1,1,2) [2025-01-17 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267787', 'tblTempUsageDetail_20' ) start [2025-01-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267787', 'tblTempUsageDetail_20' ) end [2025-01-17 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:48:24] Production.INFO: ==20152== Releasing lock... [2025-01-17 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:48:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-17 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:49:05 [end_date_ymd] => 2025-01-17 10:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:49:05' and `end` < '2025-01-17 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-17 10:49:19] Production.INFO: count ==3242 [2025-01-17 10:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:49:05 - End Time 2025-01-17 10:49:05 [2025-01-17 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267792', 'tblTempUsageDetail_20' ) start [2025-01-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267792', 'tblTempUsageDetail_20' ) end [2025-01-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267792', 'tblTempVendorCDR_20' ) start [2025-01-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267792', 'tblTempVendorCDR_20' ) end [2025-01-17 10:49:20] Production.INFO: ProcessCDR(1,14267792,1,1,2) [2025-01-17 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267792', 'tblTempUsageDetail_20' ) start [2025-01-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267792', 'tblTempUsageDetail_20' ) end [2025-01-17 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:49:25] Production.INFO: ==20260== Releasing lock... [2025-01-17 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:49:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:50:06 [end_date_ymd] => 2025-01-17 10:50:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:50:06' and `end` < '2025-01-17 10: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-17 10:50:22] Production.INFO: count ==3249 [2025-01-17 10:50:23] Production.ERROR: pbx CDR StartTime 2025-01-17 07:50:06 - End Time 2025-01-17 10:50:06 [2025-01-17 10:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267798', 'tblTempUsageDetail_20' ) start [2025-01-17 10:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267798', 'tblTempUsageDetail_20' ) end [2025-01-17 10:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267798', 'tblTempVendorCDR_20' ) start [2025-01-17 10:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267798', 'tblTempVendorCDR_20' ) end [2025-01-17 10:50:23] Production.INFO: ProcessCDR(1,14267798,1,1,2) [2025-01-17 10:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267798', 'tblTempUsageDetail_20' ) start [2025-01-17 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267798', 'tblTempUsageDetail_20' ) end [2025-01-17 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:50:28] Production.INFO: ==20332== Releasing lock... [2025-01-17 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:50:28] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:51:05 [end_date_ymd] => 2025-01-17 10:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:51:05' and `end` < '2025-01-17 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-17 10:51:25] Production.INFO: count ==3353 [2025-01-17 10:51:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:51:05 - End Time 2025-01-17 10:51:05 [2025-01-17 10:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267803', 'tblTempUsageDetail_20' ) start [2025-01-17 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267803', 'tblTempUsageDetail_20' ) end [2025-01-17 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267803', 'tblTempVendorCDR_20' ) start [2025-01-17 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267803', 'tblTempVendorCDR_20' ) end [2025-01-17 10:51:27] Production.INFO: ProcessCDR(1,14267803,1,1,2) [2025-01-17 10:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267803', 'tblTempUsageDetail_20' ) start [2025-01-17 10:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267803', 'tblTempUsageDetail_20' ) end [2025-01-17 10:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:51:32] Production.INFO: ==20404== Releasing lock... [2025-01-17 10:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:51:32] Production.INFO: 53 MB #Memory Used# [2025-01-17 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:52:05 [end_date_ymd] => 2025-01-17 10:52:05 [RateCDR] => 1 ) [2025-01-17 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:52:05' and `end` < '2025-01-17 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:52:23] Production.INFO: count ==3374 [2025-01-17 10:52:24] Production.ERROR: pbx CDR StartTime 2025-01-17 07:52:05 - End Time 2025-01-17 10:52:05 [2025-01-17 10:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267808', 'tblTempUsageDetail_20' ) start [2025-01-17 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267808', 'tblTempUsageDetail_20' ) end [2025-01-17 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267808', 'tblTempVendorCDR_20' ) start [2025-01-17 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267808', 'tblTempVendorCDR_20' ) end [2025-01-17 10:52:24] Production.INFO: ProcessCDR(1,14267808,1,1,2) [2025-01-17 10:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267808', 'tblTempUsageDetail_20' ) start [2025-01-17 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267808', 'tblTempUsageDetail_20' ) end [2025-01-17 10:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:52:29] Production.INFO: ==20478== Releasing lock... [2025-01-17 10:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:52:29] Production.INFO: 53.25 MB #Memory Used# [2025-01-17 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:53:05 [end_date_ymd] => 2025-01-17 10:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:53:05' and `end` < '2025-01-17 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-17 10:53:18] Production.INFO: count ==3394 [2025-01-17 10:53:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:53:05 - End Time 2025-01-17 10:53:05 [2025-01-17 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267813', 'tblTempUsageDetail_20' ) start [2025-01-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267813', 'tblTempUsageDetail_20' ) end [2025-01-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267813', 'tblTempVendorCDR_20' ) start [2025-01-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267813', 'tblTempVendorCDR_20' ) end [2025-01-17 10:53:20] Production.INFO: ProcessCDR(1,14267813,1,1,2) [2025-01-17 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267813', 'tblTempUsageDetail_20' ) start [2025-01-17 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267813', 'tblTempUsageDetail_20' ) end [2025-01-17 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:53:25] Production.INFO: ==20555== Releasing lock... [2025-01-17 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:53:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-17 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:54:05 [end_date_ymd] => 2025-01-17 10:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:54:05' and `end` < '2025-01-17 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-17 10:54:21] Production.INFO: count ==3406 [2025-01-17 10:54:22] Production.ERROR: pbx CDR StartTime 2025-01-17 07:54:05 - End Time 2025-01-17 10:54:05 [2025-01-17 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267818', 'tblTempUsageDetail_20' ) start [2025-01-17 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267818', 'tblTempUsageDetail_20' ) end [2025-01-17 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267818', 'tblTempVendorCDR_20' ) start [2025-01-17 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267818', 'tblTempVendorCDR_20' ) end [2025-01-17 10:54:22] Production.INFO: ProcessCDR(1,14267818,1,1,2) [2025-01-17 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267818', 'tblTempUsageDetail_20' ) start [2025-01-17 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267818', 'tblTempUsageDetail_20' ) end [2025-01-17 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:54:27] Production.INFO: ==20628== Releasing lock... [2025-01-17 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:54:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-17 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:55:06 [end_date_ymd] => 2025-01-17 10:55:06 [RateCDR] => 1 ) [2025-01-17 10: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-17 07:55:06' and `end` < '2025-01-17 10: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-17 10:55:26] Production.INFO: count ==3443 [2025-01-17 10:55:28] Production.ERROR: pbx CDR StartTime 2025-01-17 07:55:06 - End Time 2025-01-17 10:55:06 [2025-01-17 10:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267822', 'tblTempUsageDetail_20' ) start [2025-01-17 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267822', 'tblTempUsageDetail_20' ) end [2025-01-17 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267822', 'tblTempVendorCDR_20' ) start [2025-01-17 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267822', 'tblTempVendorCDR_20' ) end [2025-01-17 10:55:28] Production.INFO: ProcessCDR(1,14267822,1,1,2) [2025-01-17 10:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267822', 'tblTempUsageDetail_20' ) start [2025-01-17 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267822', 'tblTempUsageDetail_20' ) end [2025-01-17 10:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:55:34] Production.INFO: ==20701== Releasing lock... [2025-01-17 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:55:34] Production.INFO: 54 MB #Memory Used# [2025-01-17 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:56:06 [end_date_ymd] => 2025-01-17 10:56:06 [RateCDR] => 1 ) [2025-01-17 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:56:06' and `end` < '2025-01-17 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:56:23] Production.INFO: count ==3455 [2025-01-17 10:56:24] Production.ERROR: pbx CDR StartTime 2025-01-17 07:56:06 - End Time 2025-01-17 10:56:06 [2025-01-17 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267828', 'tblTempUsageDetail_20' ) start [2025-01-17 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267828', 'tblTempUsageDetail_20' ) end [2025-01-17 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267828', 'tblTempVendorCDR_20' ) start [2025-01-17 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267828', 'tblTempVendorCDR_20' ) end [2025-01-17 10:56:24] Production.INFO: ProcessCDR(1,14267828,1,1,2) [2025-01-17 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267828', 'tblTempUsageDetail_20' ) start [2025-01-17 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267828', 'tblTempUsageDetail_20' ) end [2025-01-17 10:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:56:30] Production.INFO: ==20771== Releasing lock... [2025-01-17 10:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:56:30] Production.INFO: 53.75 MB #Memory Used# [2025-01-17 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:57:05 [end_date_ymd] => 2025-01-17 10:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:57:05' and `end` < '2025-01-17 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-17 10:57:18] Production.INFO: count ==3471 [2025-01-17 10:57:20] Production.ERROR: pbx CDR StartTime 2025-01-17 07:57:05 - End Time 2025-01-17 10:57:05 [2025-01-17 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267833', 'tblTempUsageDetail_20' ) start [2025-01-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267833', 'tblTempUsageDetail_20' ) end [2025-01-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267833', 'tblTempVendorCDR_20' ) start [2025-01-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267833', 'tblTempVendorCDR_20' ) end [2025-01-17 10:57:20] Production.INFO: ProcessCDR(1,14267833,1,1,2) [2025-01-17 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267833', 'tblTempUsageDetail_20' ) start [2025-01-17 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267833', 'tblTempUsageDetail_20' ) end [2025-01-17 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:57:25] Production.INFO: ==20841== Releasing lock... [2025-01-17 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:57:25] Production.INFO: 54 MB #Memory Used# [2025-01-17 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:58:05 [end_date_ymd] => 2025-01-17 10:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 07:58:05' and `end` < '2025-01-17 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-17 10:58:26] Production.INFO: count ==3507 [2025-01-17 10:58:28] Production.ERROR: pbx CDR StartTime 2025-01-17 07:58:05 - End Time 2025-01-17 10:58:05 [2025-01-17 10:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267838', 'tblTempUsageDetail_20' ) start [2025-01-17 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267838', 'tblTempUsageDetail_20' ) end [2025-01-17 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267838', 'tblTempVendorCDR_20' ) start [2025-01-17 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267838', 'tblTempVendorCDR_20' ) end [2025-01-17 10:58:28] Production.INFO: ProcessCDR(1,14267838,1,1,2) [2025-01-17 10:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267838', 'tblTempUsageDetail_20' ) start [2025-01-17 10:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267838', 'tblTempUsageDetail_20' ) end [2025-01-17 10:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:58:33] Production.INFO: ==20912== Releasing lock... [2025-01-17 10:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:58:33] Production.INFO: 54.25 MB #Memory Used# [2025-01-17 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 07:59:04 [end_date_ymd] => 2025-01-17 10:59:04 [RateCDR] => 1 ) [2025-01-17 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 07:59:04' and `end` < '2025-01-17 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 10:59:25] Production.INFO: count ==3526 [2025-01-17 10:59:26] Production.ERROR: pbx CDR StartTime 2025-01-17 07:59:04 - End Time 2025-01-17 10:59:04 [2025-01-17 10:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267843', 'tblTempUsageDetail_20' ) start [2025-01-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267843', 'tblTempUsageDetail_20' ) end [2025-01-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267843', 'tblTempVendorCDR_20' ) start [2025-01-17 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267843', 'tblTempVendorCDR_20' ) end [2025-01-17 10:59:26] Production.INFO: ProcessCDR(1,14267843,1,1,2) [2025-01-17 10:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 10:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267843', 'tblTempUsageDetail_20' ) start [2025-01-17 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267843', 'tblTempUsageDetail_20' ) end [2025-01-17 10:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 10:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 10:59:31] Production.INFO: ==20981== Releasing lock... [2025-01-17 10:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 10:59:31] Production.INFO: 54.25 MB #Memory Used# [2025-01-17 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:00:05 [end_date_ymd] => 2025-01-17 11:00:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:00:05' and `end` < '2025-01-17 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-17 11:00:22] Production.INFO: count ==3532 [2025-01-17 11:00:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:00:05 - End Time 2025-01-17 11:00:05 [2025-01-17 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267848', 'tblTempUsageDetail_20' ) start [2025-01-17 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267848', 'tblTempUsageDetail_20' ) end [2025-01-17 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267848', 'tblTempVendorCDR_20' ) start [2025-01-17 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267848', 'tblTempVendorCDR_20' ) end [2025-01-17 11:00:24] Production.INFO: ProcessCDR(1,14267848,1,1,2) [2025-01-17 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267848', 'tblTempUsageDetail_20' ) start [2025-01-17 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267848', 'tblTempUsageDetail_20' ) end [2025-01-17 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:00:29] Production.INFO: ==21055== Releasing lock... [2025-01-17 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:00:29] Production.INFO: 54.25 MB #Memory Used# [2025-01-17 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:01:05 [end_date_ymd] => 2025-01-17 11:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:01:05' and `end` < '2025-01-17 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-17 11:01:23] Production.INFO: count ==3600 [2025-01-17 11:01:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:01:05 - End Time 2025-01-17 11:01:05 [2025-01-17 11:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267854', 'tblTempUsageDetail_20' ) start [2025-01-17 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267854', 'tblTempUsageDetail_20' ) end [2025-01-17 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267854', 'tblTempVendorCDR_20' ) start [2025-01-17 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267854', 'tblTempVendorCDR_20' ) end [2025-01-17 11:01:25] Production.INFO: ProcessCDR(1,14267854,1,1,2) [2025-01-17 11:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267854', 'tblTempUsageDetail_20' ) start [2025-01-17 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267854', 'tblTempUsageDetail_20' ) end [2025-01-17 11:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:01:30] Production.INFO: ==21139== Releasing lock... [2025-01-17 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:01:30] Production.INFO: 55 MB #Memory Used# [2025-01-17 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:02:05 [end_date_ymd] => 2025-01-17 11:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:02:05' and `end` < '2025-01-17 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-17 11:02:25] Production.INFO: count ==3616 [2025-01-17 11:02:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:02:05 - End Time 2025-01-17 11:02:05 [2025-01-17 11:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267859', 'tblTempUsageDetail_20' ) start [2025-01-17 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267859', 'tblTempUsageDetail_20' ) end [2025-01-17 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267859', 'tblTempVendorCDR_20' ) start [2025-01-17 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267859', 'tblTempVendorCDR_20' ) end [2025-01-17 11:02:27] Production.INFO: ProcessCDR(1,14267859,1,1,2) [2025-01-17 11:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267859', 'tblTempUsageDetail_20' ) start [2025-01-17 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267859', 'tblTempUsageDetail_20' ) end [2025-01-17 11:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:02:32] Production.INFO: ==21288== Releasing lock... [2025-01-17 11:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:02:32] Production.INFO: 55.5 MB #Memory Used# [2025-01-17 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:03:05 [end_date_ymd] => 2025-01-17 11:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:03:05' and `end` < '2025-01-17 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-17 11:03:24] Production.INFO: count ==3632 [2025-01-17 11:03:26] Production.ERROR: pbx CDR StartTime 2025-01-17 08:03:05 - End Time 2025-01-17 11:03:05 [2025-01-17 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267864', 'tblTempUsageDetail_20' ) start [2025-01-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267864', 'tblTempUsageDetail_20' ) end [2025-01-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267864', 'tblTempVendorCDR_20' ) start [2025-01-17 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267864', 'tblTempVendorCDR_20' ) end [2025-01-17 11:03:26] Production.INFO: ProcessCDR(1,14267864,1,1,2) [2025-01-17 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267864', 'tblTempUsageDetail_20' ) start [2025-01-17 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267864', 'tblTempUsageDetail_20' ) end [2025-01-17 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:03:31] Production.INFO: ==21360== Releasing lock... [2025-01-17 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:03:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-17 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:04:05 [end_date_ymd] => 2025-01-17 11:04:05 [RateCDR] => 1 ) [2025-01-17 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:04:05' and `end` < '2025-01-17 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:04:32] Production.INFO: count ==3651 [2025-01-17 11:04:33] Production.ERROR: pbx CDR StartTime 2025-01-17 08:04:05 - End Time 2025-01-17 11:04:05 [2025-01-17 11:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267869', 'tblTempUsageDetail_20' ) start [2025-01-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267869', 'tblTempUsageDetail_20' ) end [2025-01-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267869', 'tblTempVendorCDR_20' ) start [2025-01-17 11:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267869', 'tblTempVendorCDR_20' ) end [2025-01-17 11:04:34] Production.INFO: ProcessCDR(1,14267869,1,1,2) [2025-01-17 11:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267869', 'tblTempUsageDetail_20' ) start [2025-01-17 11:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267869', 'tblTempUsageDetail_20' ) end [2025-01-17 11:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:04:39] Production.INFO: ==21432== Releasing lock... [2025-01-17 11:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:04:39] Production.INFO: 55.25 MB #Memory Used# [2025-01-17 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:05:05 [end_date_ymd] => 2025-01-17 11:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:05:05' and `end` < '2025-01-17 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-17 11:05:28] Production.INFO: count ==3660 [2025-01-17 11:05:29] Production.ERROR: pbx CDR StartTime 2025-01-17 08:05:05 - End Time 2025-01-17 11:05:05 [2025-01-17 11:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267874', 'tblTempUsageDetail_20' ) start [2025-01-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267874', 'tblTempUsageDetail_20' ) end [2025-01-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267874', 'tblTempVendorCDR_20' ) start [2025-01-17 11:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267874', 'tblTempVendorCDR_20' ) end [2025-01-17 11:05:29] Production.INFO: ProcessCDR(1,14267874,1,1,2) [2025-01-17 11:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267874', 'tblTempUsageDetail_20' ) start [2025-01-17 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267874', 'tblTempUsageDetail_20' ) end [2025-01-17 11:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:05:35] Production.INFO: ==21620== Releasing lock... [2025-01-17 11:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:05:35] Production.INFO: 55.5 MB #Memory Used# [2025-01-17 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:06:05 [end_date_ymd] => 2025-01-17 11:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:06:05' and `end` < '2025-01-17 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-17 11:06:23] Production.INFO: count ==3681 [2025-01-17 11:06:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:06:05 - End Time 2025-01-17 11:06:05 [2025-01-17 11:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267879', 'tblTempUsageDetail_20' ) start [2025-01-17 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267879', 'tblTempUsageDetail_20' ) end [2025-01-17 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267879', 'tblTempVendorCDR_20' ) start [2025-01-17 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267879', 'tblTempVendorCDR_20' ) end [2025-01-17 11:06:25] Production.INFO: ProcessCDR(1,14267879,1,1,2) [2025-01-17 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267879', 'tblTempUsageDetail_20' ) start [2025-01-17 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267879', 'tblTempUsageDetail_20' ) end [2025-01-17 11:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:06:29] Production.INFO: ==21690== Releasing lock... [2025-01-17 11:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:06:29] Production.INFO: 55.5 MB #Memory Used# [2025-01-17 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:07:05 [end_date_ymd] => 2025-01-17 11:07:05 [RateCDR] => 1 ) [2025-01-17 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:07:05' and `end` < '2025-01-17 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:07:23] Production.INFO: count ==3686 [2025-01-17 11:07:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:07:05 - End Time 2025-01-17 11:07:05 [2025-01-17 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267884', 'tblTempUsageDetail_20' ) start [2025-01-17 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267884', 'tblTempUsageDetail_20' ) end [2025-01-17 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267884', 'tblTempVendorCDR_20' ) start [2025-01-17 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267884', 'tblTempVendorCDR_20' ) end [2025-01-17 11:07:24] Production.INFO: ProcessCDR(1,14267884,1,1,2) [2025-01-17 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267884', 'tblTempUsageDetail_20' ) start [2025-01-17 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267884', 'tblTempUsageDetail_20' ) end [2025-01-17 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:07:29] Production.INFO: ==21761== Releasing lock... [2025-01-17 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:07:29] Production.INFO: 55.75 MB #Memory Used# [2025-01-17 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:08:04 [end_date_ymd] => 2025-01-17 11:08:04 [RateCDR] => 1 ) [2025-01-17 11:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:08:04' and `end` < '2025-01-17 11:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:08:25] Production.INFO: count ==3715 [2025-01-17 11:08:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:08:04 - End Time 2025-01-17 11:08:04 [2025-01-17 11:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267889', 'tblTempUsageDetail_20' ) start [2025-01-17 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267889', 'tblTempUsageDetail_20' ) end [2025-01-17 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267889', 'tblTempVendorCDR_20' ) start [2025-01-17 11:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267889', 'tblTempVendorCDR_20' ) end [2025-01-17 11:08:27] Production.INFO: ProcessCDR(1,14267889,1,1,2) [2025-01-17 11:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267889', 'tblTempUsageDetail_20' ) start [2025-01-17 11:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267889', 'tblTempUsageDetail_20' ) end [2025-01-17 11:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:08:32] Production.INFO: ==21871== Releasing lock... [2025-01-17 11:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:08:32] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:09:05 [end_date_ymd] => 2025-01-17 11:09:05 [RateCDR] => 1 ) [2025-01-17 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:09:05' and `end` < '2025-01-17 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:09:21] Production.INFO: count ==3723 [2025-01-17 11:09:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:09:05 - End Time 2025-01-17 11:09:05 [2025-01-17 11:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267894', 'tblTempUsageDetail_20' ) start [2025-01-17 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267894', 'tblTempUsageDetail_20' ) end [2025-01-17 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267894', 'tblTempVendorCDR_20' ) start [2025-01-17 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267894', 'tblTempVendorCDR_20' ) end [2025-01-17 11:09:23] Production.INFO: ProcessCDR(1,14267894,1,1,2) [2025-01-17 11:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267894', 'tblTempUsageDetail_20' ) start [2025-01-17 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267894', 'tblTempUsageDetail_20' ) end [2025-01-17 11:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:09:29] Production.INFO: ==21981== Releasing lock... [2025-01-17 11:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:09:29] Production.INFO: 56 MB #Memory Used# [2025-01-17 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:10:06 [end_date_ymd] => 2025-01-17 11:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 08:10:06' and `end` < '2025-01-17 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-17 11:10:23] Production.INFO: count ==3724 [2025-01-17 11:10:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:10:06 - End Time 2025-01-17 11:10:06 [2025-01-17 11:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267899', 'tblTempUsageDetail_20' ) start [2025-01-17 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267899', 'tblTempUsageDetail_20' ) end [2025-01-17 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267899', 'tblTempVendorCDR_20' ) start [2025-01-17 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267899', 'tblTempVendorCDR_20' ) end [2025-01-17 11:10:24] Production.INFO: ProcessCDR(1,14267899,1,1,2) [2025-01-17 11:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267899', 'tblTempUsageDetail_20' ) start [2025-01-17 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267899', 'tblTempUsageDetail_20' ) end [2025-01-17 11:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:10:29] Production.INFO: ==22055== Releasing lock... [2025-01-17 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:10:29] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:11:05 [end_date_ymd] => 2025-01-17 11:11:05 [RateCDR] => 1 ) [2025-01-17 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:11:05' and `end` < '2025-01-17 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:11:31] Production.INFO: count ==3818 [2025-01-17 11:11:32] Production.ERROR: pbx CDR StartTime 2025-01-17 08:11:05 - End Time 2025-01-17 11:11:05 [2025-01-17 11:11:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267905', 'tblTempUsageDetail_20' ) start [2025-01-17 11:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267905', 'tblTempUsageDetail_20' ) end [2025-01-17 11:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267905', 'tblTempVendorCDR_20' ) start [2025-01-17 11:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267905', 'tblTempVendorCDR_20' ) end [2025-01-17 11:11:32] Production.INFO: ProcessCDR(1,14267905,1,1,2) [2025-01-17 11:11:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267905', 'tblTempUsageDetail_20' ) start [2025-01-17 11:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267905', 'tblTempUsageDetail_20' ) end [2025-01-17 11:11:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:11:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:11:37] Production.INFO: ==22130== Releasing lock... [2025-01-17 11:11:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:11:37] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:12:05 [end_date_ymd] => 2025-01-17 11:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:12:05' and `end` < '2025-01-17 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-17 11:12:28] Production.INFO: count ==3816 [2025-01-17 11:12:30] Production.ERROR: pbx CDR StartTime 2025-01-17 08:12:05 - End Time 2025-01-17 11:12:05 [2025-01-17 11:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267910', 'tblTempUsageDetail_20' ) start [2025-01-17 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267910', 'tblTempUsageDetail_20' ) end [2025-01-17 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267910', 'tblTempVendorCDR_20' ) start [2025-01-17 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267910', 'tblTempVendorCDR_20' ) end [2025-01-17 11:12:30] Production.INFO: ProcessCDR(1,14267910,1,1,2) [2025-01-17 11:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267910', 'tblTempUsageDetail_20' ) start [2025-01-17 11:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267910', 'tblTempUsageDetail_20' ) end [2025-01-17 11:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:12:35] Production.INFO: ==22278== Releasing lock... [2025-01-17 11:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:12:35] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:13:05 [end_date_ymd] => 2025-01-17 11:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:13:05' and `end` < '2025-01-17 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-17 11:13:27] Production.INFO: count ==3829 [2025-01-17 11:13:29] Production.ERROR: pbx CDR StartTime 2025-01-17 08:13:05 - End Time 2025-01-17 11:13:05 [2025-01-17 11:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267915', 'tblTempUsageDetail_20' ) start [2025-01-17 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267915', 'tblTempUsageDetail_20' ) end [2025-01-17 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267915', 'tblTempVendorCDR_20' ) start [2025-01-17 11:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267915', 'tblTempVendorCDR_20' ) end [2025-01-17 11:13:29] Production.INFO: ProcessCDR(1,14267915,1,1,2) [2025-01-17 11:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267915', 'tblTempUsageDetail_20' ) start [2025-01-17 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267915', 'tblTempUsageDetail_20' ) end [2025-01-17 11:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:13:33] Production.INFO: ==22348== Releasing lock... [2025-01-17 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:13:33] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:14:05 [end_date_ymd] => 2025-01-17 11:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:14:05' and `end` < '2025-01-17 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-17 11:14:31] Production.INFO: count ==3862 [2025-01-17 11:14:33] Production.ERROR: pbx CDR StartTime 2025-01-17 08:14:05 - End Time 2025-01-17 11:14:05 [2025-01-17 11:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267920', 'tblTempUsageDetail_20' ) start [2025-01-17 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267920', 'tblTempUsageDetail_20' ) end [2025-01-17 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267920', 'tblTempVendorCDR_20' ) start [2025-01-17 11:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267920', 'tblTempVendorCDR_20' ) end [2025-01-17 11:14:33] Production.INFO: ProcessCDR(1,14267920,1,1,2) [2025-01-17 11:14:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:14:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267920', 'tblTempUsageDetail_20' ) start [2025-01-17 11:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267920', 'tblTempUsageDetail_20' ) end [2025-01-17 11:14:38] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:14:38] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:14:38] Production.INFO: ==22418== Releasing lock... [2025-01-17 11:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:14:38] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:15:05 [end_date_ymd] => 2025-01-17 11:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:15:05' and `end` < '2025-01-17 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-17 11:15:30] Production.INFO: count ==3895 [2025-01-17 11:15:31] Production.ERROR: pbx CDR StartTime 2025-01-17 08:15:05 - End Time 2025-01-17 11:15:05 [2025-01-17 11:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267925', 'tblTempUsageDetail_20' ) start [2025-01-17 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267925', 'tblTempUsageDetail_20' ) end [2025-01-17 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267925', 'tblTempVendorCDR_20' ) start [2025-01-17 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267925', 'tblTempVendorCDR_20' ) end [2025-01-17 11:15:31] Production.INFO: ProcessCDR(1,14267925,1,1,2) [2025-01-17 11:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267925', 'tblTempUsageDetail_20' ) start [2025-01-17 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267925', 'tblTempUsageDetail_20' ) end [2025-01-17 11:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:15:37] Production.INFO: ==22572== Releasing lock... [2025-01-17 11:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:15:37] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:16:05 [end_date_ymd] => 2025-01-17 11:16:05 [RateCDR] => 1 ) [2025-01-17 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:16:05' and `end` < '2025-01-17 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:16:24] Production.INFO: count ==3900 [2025-01-17 11:16:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:16:05 - End Time 2025-01-17 11:16:05 [2025-01-17 11:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267930', 'tblTempUsageDetail_20' ) start [2025-01-17 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267930', 'tblTempUsageDetail_20' ) end [2025-01-17 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267930', 'tblTempVendorCDR_20' ) start [2025-01-17 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267930', 'tblTempVendorCDR_20' ) end [2025-01-17 11:16:26] Production.INFO: ProcessCDR(1,14267930,1,1,2) [2025-01-17 11:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267930', 'tblTempUsageDetail_20' ) start [2025-01-17 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267930', 'tblTempUsageDetail_20' ) end [2025-01-17 11:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:16:31] Production.INFO: ==22647== Releasing lock... [2025-01-17 11:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:16:31] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:17:05 [end_date_ymd] => 2025-01-17 11:17:05 [RateCDR] => 1 ) [2025-01-17 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:17:05' and `end` < '2025-01-17 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:17:18] Production.INFO: count ==3894 [2025-01-17 11:17:20] Production.ERROR: pbx CDR StartTime 2025-01-17 08:17:05 - End Time 2025-01-17 11:17:05 [2025-01-17 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267935', 'tblTempUsageDetail_20' ) start [2025-01-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267935', 'tblTempUsageDetail_20' ) end [2025-01-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267935', 'tblTempVendorCDR_20' ) start [2025-01-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267935', 'tblTempVendorCDR_20' ) end [2025-01-17 11:17:20] Production.INFO: ProcessCDR(1,14267935,1,1,2) [2025-01-17 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267935', 'tblTempUsageDetail_20' ) start [2025-01-17 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267935', 'tblTempUsageDetail_20' ) end [2025-01-17 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:17:25] Production.INFO: ==22719== Releasing lock... [2025-01-17 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:17:25] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:18:05 [end_date_ymd] => 2025-01-17 11:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:18:05' and `end` < '2025-01-17 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-17 11:18:25] Production.INFO: count ==3902 [2025-01-17 11:18:26] Production.ERROR: pbx CDR StartTime 2025-01-17 08:18:05 - End Time 2025-01-17 11:18:05 [2025-01-17 11:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267940', 'tblTempUsageDetail_20' ) start [2025-01-17 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267940', 'tblTempUsageDetail_20' ) end [2025-01-17 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267940', 'tblTempVendorCDR_20' ) start [2025-01-17 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267940', 'tblTempVendorCDR_20' ) end [2025-01-17 11:18:27] Production.INFO: ProcessCDR(1,14267940,1,1,2) [2025-01-17 11:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267940', 'tblTempUsageDetail_20' ) start [2025-01-17 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267940', 'tblTempUsageDetail_20' ) end [2025-01-17 11:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:18:32] Production.INFO: ==22789== Releasing lock... [2025-01-17 11:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:18:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-17 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:19:06 [end_date_ymd] => 2025-01-17 11:19:06 [RateCDR] => 1 ) [2025-01-17 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:19:06' and `end` < '2025-01-17 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:19:22] Production.INFO: count ==3886 [2025-01-17 11:19:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:19:06 - End Time 2025-01-17 11:19:06 [2025-01-17 11:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267945', 'tblTempUsageDetail_20' ) start [2025-01-17 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267945', 'tblTempUsageDetail_20' ) end [2025-01-17 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267945', 'tblTempVendorCDR_20' ) start [2025-01-17 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267945', 'tblTempVendorCDR_20' ) end [2025-01-17 11:19:24] Production.INFO: ProcessCDR(1,14267945,1,1,2) [2025-01-17 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267945', 'tblTempUsageDetail_20' ) start [2025-01-17 11:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267945', 'tblTempUsageDetail_20' ) end [2025-01-17 11:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:19:30] Production.INFO: ==22860== Releasing lock... [2025-01-17 11:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:19:30] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:20:06 [end_date_ymd] => 2025-01-17 11:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 08:20:06' and `end` < '2025-01-17 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-17 11:20:23] Production.INFO: count ==3884 [2025-01-17 11:20:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:20:06 - End Time 2025-01-17 11:20:06 [2025-01-17 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267951', 'tblTempUsageDetail_20' ) start [2025-01-17 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267951', 'tblTempUsageDetail_20' ) end [2025-01-17 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267951', 'tblTempVendorCDR_20' ) start [2025-01-17 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267951', 'tblTempVendorCDR_20' ) end [2025-01-17 11:20:25] Production.INFO: ProcessCDR(1,14267951,1,1,2) [2025-01-17 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267951', 'tblTempUsageDetail_20' ) start [2025-01-17 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267951', 'tblTempUsageDetail_20' ) end [2025-01-17 11:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:20:30] Production.INFO: ==22970== Releasing lock... [2025-01-17 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:20:30] Production.INFO: 57 MB #Memory Used# [2025-01-17 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:21:05 [end_date_ymd] => 2025-01-17 11:21:05 [RateCDR] => 1 ) [2025-01-17 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:21:05' and `end` < '2025-01-17 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:21:18] Production.INFO: count ==3974 [2025-01-17 11:21:19] Production.ERROR: pbx CDR StartTime 2025-01-17 08:21:05 - End Time 2025-01-17 11:21:05 [2025-01-17 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267956', 'tblTempUsageDetail_20' ) start [2025-01-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267956', 'tblTempUsageDetail_20' ) end [2025-01-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267956', 'tblTempVendorCDR_20' ) start [2025-01-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267956', 'tblTempVendorCDR_20' ) end [2025-01-17 11:21:20] Production.INFO: ProcessCDR(1,14267956,1,1,2) [2025-01-17 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267956', 'tblTempUsageDetail_20' ) start [2025-01-17 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267956', 'tblTempUsageDetail_20' ) end [2025-01-17 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:21:25] Production.INFO: ==23048== Releasing lock... [2025-01-17 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:21:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-17 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:22:04 [end_date_ymd] => 2025-01-17 11:22:04 [RateCDR] => 1 ) [2025-01-17 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:22:04' and `end` < '2025-01-17 11:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:22:30] Production.INFO: count ==3984 [2025-01-17 11:22:32] Production.ERROR: pbx CDR StartTime 2025-01-17 08:22:04 - End Time 2025-01-17 11:22:04 [2025-01-17 11:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267961', 'tblTempUsageDetail_20' ) start [2025-01-17 11:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267961', 'tblTempUsageDetail_20' ) end [2025-01-17 11:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267961', 'tblTempVendorCDR_20' ) start [2025-01-17 11:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267961', 'tblTempVendorCDR_20' ) end [2025-01-17 11:22:32] Production.INFO: ProcessCDR(1,14267961,1,1,2) [2025-01-17 11:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267961', 'tblTempUsageDetail_20' ) start [2025-01-17 11:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267961', 'tblTempUsageDetail_20' ) end [2025-01-17 11:22:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:22:37] Production.INFO: ==23120== Releasing lock... [2025-01-17 11:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:22:37] Production.INFO: 57.75 MB #Memory Used# [2025-01-17 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:23:05 [end_date_ymd] => 2025-01-17 11:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:23:05' and `end` < '2025-01-17 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-17 11:23:22] Production.INFO: count ==4022 [2025-01-17 11:23:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:23:05 - End Time 2025-01-17 11:23:05 [2025-01-17 11:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267966', 'tblTempUsageDetail_20' ) start [2025-01-17 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267966', 'tblTempUsageDetail_20' ) end [2025-01-17 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267966', 'tblTempVendorCDR_20' ) start [2025-01-17 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267966', 'tblTempVendorCDR_20' ) end [2025-01-17 11:23:24] Production.INFO: ProcessCDR(1,14267966,1,1,2) [2025-01-17 11:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267966', 'tblTempUsageDetail_20' ) start [2025-01-17 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267966', 'tblTempUsageDetail_20' ) end [2025-01-17 11:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:23:29] Production.INFO: ==23200== Releasing lock... [2025-01-17 11:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:23:29] Production.INFO: 58 MB #Memory Used# [2025-01-17 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:24:05 [end_date_ymd] => 2025-01-17 11:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:24:05' and `end` < '2025-01-17 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-17 11:24:22] Production.INFO: count ==4042 [2025-01-17 11:24:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:24:05 - End Time 2025-01-17 11:24:05 [2025-01-17 11:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267971', 'tblTempUsageDetail_20' ) start [2025-01-17 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267971', 'tblTempUsageDetail_20' ) end [2025-01-17 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267971', 'tblTempVendorCDR_20' ) start [2025-01-17 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267971', 'tblTempVendorCDR_20' ) end [2025-01-17 11:24:24] Production.INFO: ProcessCDR(1,14267971,1,1,2) [2025-01-17 11:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267971', 'tblTempUsageDetail_20' ) start [2025-01-17 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267971', 'tblTempUsageDetail_20' ) end [2025-01-17 11:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:24:28] Production.INFO: ==23302== Releasing lock... [2025-01-17 11:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:24:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:25:05 [end_date_ymd] => 2025-01-17 11:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:25:05' and `end` < '2025-01-17 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-17 11:25:21] Production.INFO: count ==4065 [2025-01-17 11:25:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:25:05 - End Time 2025-01-17 11:25:05 [2025-01-17 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267976', 'tblTempUsageDetail_20' ) start [2025-01-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267976', 'tblTempUsageDetail_20' ) end [2025-01-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267976', 'tblTempVendorCDR_20' ) start [2025-01-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267976', 'tblTempVendorCDR_20' ) end [2025-01-17 11:25:23] Production.INFO: ProcessCDR(1,14267976,1,1,2) [2025-01-17 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267976', 'tblTempUsageDetail_20' ) start [2025-01-17 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267976', 'tblTempUsageDetail_20' ) end [2025-01-17 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:25:28] Production.INFO: ==23406== Releasing lock... [2025-01-17 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:25:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-17 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:26:06 [end_date_ymd] => 2025-01-17 11:26:06 [RateCDR] => 1 ) [2025-01-17 11: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-17 08:26:06' and `end` < '2025-01-17 11: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-17 11:26:26] Production.INFO: count ==4086 [2025-01-17 11:26:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:26:06 - End Time 2025-01-17 11:26:06 [2025-01-17 11:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267981', 'tblTempUsageDetail_20' ) start [2025-01-17 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267981', 'tblTempUsageDetail_20' ) end [2025-01-17 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267981', 'tblTempVendorCDR_20' ) start [2025-01-17 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267981', 'tblTempVendorCDR_20' ) end [2025-01-17 11:26:28] Production.INFO: ProcessCDR(1,14267981,1,1,2) [2025-01-17 11:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267981', 'tblTempUsageDetail_20' ) start [2025-01-17 11:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267981', 'tblTempUsageDetail_20' ) end [2025-01-17 11:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:26:33] Production.INFO: ==23514== Releasing lock... [2025-01-17 11:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:26:33] Production.INFO: 58.5 MB #Memory Used# [2025-01-17 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:27:04 [end_date_ymd] => 2025-01-17 11:27:04 [RateCDR] => 1 ) [2025-01-17 11:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:27:04' and `end` < '2025-01-17 11:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:27:21] Production.INFO: count ==4114 [2025-01-17 11:27:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:27:04 - End Time 2025-01-17 11:27:04 [2025-01-17 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267986', 'tblTempUsageDetail_20' ) start [2025-01-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267986', 'tblTempUsageDetail_20' ) end [2025-01-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267986', 'tblTempVendorCDR_20' ) start [2025-01-17 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267986', 'tblTempVendorCDR_20' ) end [2025-01-17 11:27:23] Production.INFO: ProcessCDR(1,14267986,1,1,2) [2025-01-17 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267986', 'tblTempUsageDetail_20' ) start [2025-01-17 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267986', 'tblTempUsageDetail_20' ) end [2025-01-17 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:27:28] Production.INFO: ==23618== Releasing lock... [2025-01-17 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:27:28] Production.INFO: 58.75 MB #Memory Used# [2025-01-17 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:28:04 [end_date_ymd] => 2025-01-17 11:28:04 [RateCDR] => 1 ) [2025-01-17 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-17 08:28:04' and `end` < '2025-01-17 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-17 11:28:17] Production.INFO: count ==4132 [2025-01-17 11:28:19] Production.ERROR: pbx CDR StartTime 2025-01-17 08:28:04 - End Time 2025-01-17 11:28:04 [2025-01-17 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267991', 'tblTempUsageDetail_20' ) start [2025-01-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267991', 'tblTempUsageDetail_20' ) end [2025-01-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267991', 'tblTempVendorCDR_20' ) start [2025-01-17 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267991', 'tblTempVendorCDR_20' ) end [2025-01-17 11:28:19] Production.INFO: ProcessCDR(1,14267991,1,1,2) [2025-01-17 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267991', 'tblTempUsageDetail_20' ) start [2025-01-17 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267991', 'tblTempUsageDetail_20' ) end [2025-01-17 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:28:24] Production.INFO: ==23725== Releasing lock... [2025-01-17 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:28:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:29:04 [end_date_ymd] => 2025-01-17 11:29:04 [RateCDR] => 1 ) [2025-01-17 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:29:04' and `end` < '2025-01-17 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:29:19] Production.INFO: count ==4148 [2025-01-17 11:29:20] Production.ERROR: pbx CDR StartTime 2025-01-17 08:29:04 - End Time 2025-01-17 11:29:04 [2025-01-17 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267996', 'tblTempUsageDetail_20' ) start [2025-01-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14267996', 'tblTempUsageDetail_20' ) end [2025-01-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267996', 'tblTempVendorCDR_20' ) start [2025-01-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14267996', 'tblTempVendorCDR_20' ) end [2025-01-17 11:29:21] Production.INFO: ProcessCDR(1,14267996,1,1,2) [2025-01-17 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14267996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14267996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14267996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14267996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267996', 'tblTempUsageDetail_20' ) start [2025-01-17 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14267996', 'tblTempUsageDetail_20' ) end [2025-01-17 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:29:25] Production.INFO: ==23836== Releasing lock... [2025-01-17 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:29:25] Production.INFO: 59 MB #Memory Used# [2025-01-17 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:30:06 [end_date_ymd] => 2025-01-17 11:30:06 [RateCDR] => 1 ) [2025-01-17 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:30:06' and `end` < '2025-01-17 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:30:29] Production.INFO: count ==4165 [2025-01-17 11:30:30] Production.ERROR: pbx CDR StartTime 2025-01-17 08:30:06 - End Time 2025-01-17 11:30:06 [2025-01-17 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268002', 'tblTempUsageDetail_20' ) start [2025-01-17 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268002', 'tblTempUsageDetail_20' ) end [2025-01-17 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268002', 'tblTempVendorCDR_20' ) start [2025-01-17 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268002', 'tblTempVendorCDR_20' ) end [2025-01-17 11:30:30] Production.INFO: ProcessCDR(1,14268002,1,1,2) [2025-01-17 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268002', 'tblTempUsageDetail_20' ) start [2025-01-17 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268002', 'tblTempUsageDetail_20' ) end [2025-01-17 11:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:30:36] Production.INFO: ==23945== Releasing lock... [2025-01-17 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:30:36] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:31:05 [end_date_ymd] => 2025-01-17 11:31:05 [RateCDR] => 1 ) [2025-01-17 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:31:05' and `end` < '2025-01-17 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:31:28] Production.INFO: count ==4305 [2025-01-17 11:31:29] Production.ERROR: pbx CDR StartTime 2025-01-17 08:31:05 - End Time 2025-01-17 11:31:05 [2025-01-17 11:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268007', 'tblTempUsageDetail_20' ) start [2025-01-17 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268007', 'tblTempUsageDetail_20' ) end [2025-01-17 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268007', 'tblTempVendorCDR_20' ) start [2025-01-17 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268007', 'tblTempVendorCDR_20' ) end [2025-01-17 11:31:30] Production.INFO: ProcessCDR(1,14268007,1,1,2) [2025-01-17 11:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268007', 'tblTempUsageDetail_20' ) start [2025-01-17 11:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268007', 'tblTempUsageDetail_20' ) end [2025-01-17 11:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:31:34] Production.INFO: ==24056== Releasing lock... [2025-01-17 11:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:31:34] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:32:05 [end_date_ymd] => 2025-01-17 11:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:32:05' and `end` < '2025-01-17 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-17 11:32:25] Production.INFO: count ==4309 [2025-01-17 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-17 08:32:05 - End Time 2025-01-17 11:32:05 [2025-01-17 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268012', 'tblTempUsageDetail_20' ) start [2025-01-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268012', 'tblTempUsageDetail_20' ) end [2025-01-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268012', 'tblTempVendorCDR_20' ) start [2025-01-17 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268012', 'tblTempVendorCDR_20' ) end [2025-01-17 11:32:26] Production.INFO: ProcessCDR(1,14268012,1,1,2) [2025-01-17 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268012', 'tblTempUsageDetail_20' ) start [2025-01-17 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268012', 'tblTempUsageDetail_20' ) end [2025-01-17 11:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:32:32] Production.INFO: ==24170== Releasing lock... [2025-01-17 11:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:32:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:33:05 [end_date_ymd] => 2025-01-17 11:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:33:05' and `end` < '2025-01-17 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-17 11:33:20] Production.INFO: count ==4341 [2025-01-17 11:33:22] Production.ERROR: pbx CDR StartTime 2025-01-17 08:33:05 - End Time 2025-01-17 11:33:05 [2025-01-17 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268017', 'tblTempUsageDetail_20' ) start [2025-01-17 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268017', 'tblTempUsageDetail_20' ) end [2025-01-17 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268017', 'tblTempVendorCDR_20' ) start [2025-01-17 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268017', 'tblTempVendorCDR_20' ) end [2025-01-17 11:33:22] Production.INFO: ProcessCDR(1,14268017,1,1,2) [2025-01-17 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268017', 'tblTempUsageDetail_20' ) start [2025-01-17 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268017', 'tblTempUsageDetail_20' ) end [2025-01-17 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:33:27] Production.INFO: ==24294== Releasing lock... [2025-01-17 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:33:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:34:04 [end_date_ymd] => 2025-01-17 11:34:04 [RateCDR] => 1 ) [2025-01-17 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:34:04' and `end` < '2025-01-17 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:34:18] Production.INFO: count ==4351 [2025-01-17 11:34:20] Production.ERROR: pbx CDR StartTime 2025-01-17 08:34:04 - End Time 2025-01-17 11:34:04 [2025-01-17 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268022', 'tblTempUsageDetail_20' ) start [2025-01-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268022', 'tblTempUsageDetail_20' ) end [2025-01-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268022', 'tblTempVendorCDR_20' ) start [2025-01-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268022', 'tblTempVendorCDR_20' ) end [2025-01-17 11:34:20] Production.INFO: ProcessCDR(1,14268022,1,1,2) [2025-01-17 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268022', 'tblTempUsageDetail_20' ) start [2025-01-17 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268022', 'tblTempUsageDetail_20' ) end [2025-01-17 11:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:34:24] Production.INFO: ==24402== Releasing lock... [2025-01-17 11:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:34:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:35:05 [end_date_ymd] => 2025-01-17 11:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:35:05' and `end` < '2025-01-17 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-17 11:35:24] Production.INFO: count ==4376 [2025-01-17 11:35:26] Production.ERROR: pbx CDR StartTime 2025-01-17 08:35:05 - End Time 2025-01-17 11:35:05 [2025-01-17 11:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268027', 'tblTempUsageDetail_20' ) start [2025-01-17 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268027', 'tblTempUsageDetail_20' ) end [2025-01-17 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268027', 'tblTempVendorCDR_20' ) start [2025-01-17 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268027', 'tblTempVendorCDR_20' ) end [2025-01-17 11:35:26] Production.INFO: ProcessCDR(1,14268027,1,1,2) [2025-01-17 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268027', 'tblTempUsageDetail_20' ) start [2025-01-17 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268027', 'tblTempUsageDetail_20' ) end [2025-01-17 11:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:35:31] Production.INFO: ==24511== Releasing lock... [2025-01-17 11:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:35:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:36:04 [end_date_ymd] => 2025-01-17 11:36:04 [RateCDR] => 1 ) [2025-01-17 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-17 08:36:04' and `end` < '2025-01-17 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-17 11:36:21] Production.INFO: count ==4386 [2025-01-17 11:36:22] Production.ERROR: pbx CDR StartTime 2025-01-17 08:36:04 - End Time 2025-01-17 11:36:04 [2025-01-17 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268032', 'tblTempUsageDetail_20' ) start [2025-01-17 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268032', 'tblTempUsageDetail_20' ) end [2025-01-17 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268032', 'tblTempVendorCDR_20' ) start [2025-01-17 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268032', 'tblTempVendorCDR_20' ) end [2025-01-17 11:36:23] Production.INFO: ProcessCDR(1,14268032,1,1,2) [2025-01-17 11:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268032', 'tblTempUsageDetail_20' ) start [2025-01-17 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268032', 'tblTempUsageDetail_20' ) end [2025-01-17 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:36:28] Production.INFO: ==24677== Releasing lock... [2025-01-17 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:36:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:37:05 [end_date_ymd] => 2025-01-17 11:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:37:05' and `end` < '2025-01-17 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-17 11:37:21] Production.INFO: count ==4394 [2025-01-17 11:37:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:37:05 - End Time 2025-01-17 11:37:05 [2025-01-17 11:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268037', 'tblTempUsageDetail_20' ) start [2025-01-17 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268037', 'tblTempUsageDetail_20' ) end [2025-01-17 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268037', 'tblTempVendorCDR_20' ) start [2025-01-17 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268037', 'tblTempVendorCDR_20' ) end [2025-01-17 11:37:23] Production.INFO: ProcessCDR(1,14268037,1,1,2) [2025-01-17 11:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268037', 'tblTempUsageDetail_20' ) start [2025-01-17 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268037', 'tblTempUsageDetail_20' ) end [2025-01-17 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:37:28] Production.INFO: ==24814== Releasing lock... [2025-01-17 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:37:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:38:05 [end_date_ymd] => 2025-01-17 11:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:38:05' and `end` < '2025-01-17 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-17 11:38:18] Production.INFO: count ==4420 [2025-01-17 11:38:20] Production.ERROR: pbx CDR StartTime 2025-01-17 08:38:05 - End Time 2025-01-17 11:38:05 [2025-01-17 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268042', 'tblTempUsageDetail_20' ) start [2025-01-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268042', 'tblTempUsageDetail_20' ) end [2025-01-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268042', 'tblTempVendorCDR_20' ) start [2025-01-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268042', 'tblTempVendorCDR_20' ) end [2025-01-17 11:38:20] Production.INFO: ProcessCDR(1,14268042,1,1,2) [2025-01-17 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268042', 'tblTempUsageDetail_20' ) start [2025-01-17 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268042', 'tblTempUsageDetail_20' ) end [2025-01-17 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:38:25] Production.INFO: ==24925== Releasing lock... [2025-01-17 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:38:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:39:05 [end_date_ymd] => 2025-01-17 11:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:39:05' and `end` < '2025-01-17 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-17 11:39:27] Production.INFO: count ==4448 [2025-01-17 11:39:29] Production.ERROR: pbx CDR StartTime 2025-01-17 08:39:05 - End Time 2025-01-17 11:39:05 [2025-01-17 11:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268047', 'tblTempUsageDetail_20' ) start [2025-01-17 11:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268047', 'tblTempUsageDetail_20' ) end [2025-01-17 11:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268047', 'tblTempVendorCDR_20' ) start [2025-01-17 11:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268047', 'tblTempVendorCDR_20' ) end [2025-01-17 11:39:29] Production.INFO: ProcessCDR(1,14268047,1,1,2) [2025-01-17 11:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268047', 'tblTempUsageDetail_20' ) start [2025-01-17 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268047', 'tblTempUsageDetail_20' ) end [2025-01-17 11:39:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:39:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:39:34] Production.INFO: ==25031== Releasing lock... [2025-01-17 11:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:39:34] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:40:06 [end_date_ymd] => 2025-01-17 11:40:06 [RateCDR] => 1 ) [2025-01-17 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:40:06' and `end` < '2025-01-17 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:40:28] Production.INFO: count ==4477 [2025-01-17 11:40:29] Production.ERROR: pbx CDR StartTime 2025-01-17 08:40:06 - End Time 2025-01-17 11:40:06 [2025-01-17 11:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268053', 'tblTempUsageDetail_20' ) start [2025-01-17 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268053', 'tblTempUsageDetail_20' ) end [2025-01-17 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268053', 'tblTempVendorCDR_20' ) start [2025-01-17 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268053', 'tblTempVendorCDR_20' ) end [2025-01-17 11:40:30] Production.INFO: ProcessCDR(1,14268053,1,1,2) [2025-01-17 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268053', 'tblTempUsageDetail_20' ) start [2025-01-17 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268053', 'tblTempUsageDetail_20' ) end [2025-01-17 11:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:40:35] Production.INFO: ==25134== Releasing lock... [2025-01-17 11:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:40:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:41:05 [end_date_ymd] => 2025-01-17 11:41:05 [RateCDR] => 1 ) [2025-01-17 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:41:05' and `end` < '2025-01-17 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:41:23] Production.INFO: count ==4586 [2025-01-17 11:41:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:41:05 - End Time 2025-01-17 11:41:05 [2025-01-17 11:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268058', 'tblTempUsageDetail_20' ) start [2025-01-17 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268058', 'tblTempUsageDetail_20' ) end [2025-01-17 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268058', 'tblTempVendorCDR_20' ) start [2025-01-17 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268058', 'tblTempVendorCDR_20' ) end [2025-01-17 11:41:25] Production.INFO: ProcessCDR(1,14268058,1,1,2) [2025-01-17 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268058', 'tblTempUsageDetail_20' ) start [2025-01-17 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268058', 'tblTempUsageDetail_20' ) end [2025-01-17 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:41:30] Production.INFO: ==25222== Releasing lock... [2025-01-17 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:41:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:42:05 [end_date_ymd] => 2025-01-17 11:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:42:05' and `end` < '2025-01-17 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-17 11:42:23] Production.INFO: count ==4583 [2025-01-17 11:42:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:42:05 - End Time 2025-01-17 11:42:05 [2025-01-17 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268063', 'tblTempUsageDetail_20' ) start [2025-01-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268063', 'tblTempUsageDetail_20' ) end [2025-01-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268063', 'tblTempVendorCDR_20' ) start [2025-01-17 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268063', 'tblTempVendorCDR_20' ) end [2025-01-17 11:42:25] Production.INFO: ProcessCDR(1,14268063,1,1,2) [2025-01-17 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268063', 'tblTempUsageDetail_20' ) start [2025-01-17 11:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268063', 'tblTempUsageDetail_20' ) end [2025-01-17 11:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:42:31] Production.INFO: ==25301== Releasing lock... [2025-01-17 11:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:42:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:43:05 [end_date_ymd] => 2025-01-17 11:43:05 [RateCDR] => 1 ) [2025-01-17 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:43:05' and `end` < '2025-01-17 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:43:23] Production.INFO: count ==4583 [2025-01-17 11:43:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:43:05 - End Time 2025-01-17 11:43:05 [2025-01-17 11:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268068', 'tblTempUsageDetail_20' ) start [2025-01-17 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268068', 'tblTempUsageDetail_20' ) end [2025-01-17 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268068', 'tblTempVendorCDR_20' ) start [2025-01-17 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268068', 'tblTempVendorCDR_20' ) end [2025-01-17 11:43:25] Production.INFO: ProcessCDR(1,14268068,1,1,2) [2025-01-17 11:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268068', 'tblTempUsageDetail_20' ) start [2025-01-17 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268068', 'tblTempUsageDetail_20' ) end [2025-01-17 11:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:43:30] Production.INFO: ==25380== Releasing lock... [2025-01-17 11:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:43:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:44:05 [end_date_ymd] => 2025-01-17 11:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:44:05' and `end` < '2025-01-17 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-17 11:44:22] Production.INFO: count ==4603 [2025-01-17 11:44:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:44:05 - End Time 2025-01-17 11:44:05 [2025-01-17 11:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268073', 'tblTempUsageDetail_20' ) start [2025-01-17 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268073', 'tblTempUsageDetail_20' ) end [2025-01-17 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268073', 'tblTempVendorCDR_20' ) start [2025-01-17 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268073', 'tblTempVendorCDR_20' ) end [2025-01-17 11:44:24] Production.INFO: ProcessCDR(1,14268073,1,1,2) [2025-01-17 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268073', 'tblTempUsageDetail_20' ) start [2025-01-17 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268073', 'tblTempUsageDetail_20' ) end [2025-01-17 11:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:44:29] Production.INFO: ==25457== Releasing lock... [2025-01-17 11:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:44:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:45:05 [end_date_ymd] => 2025-01-17 11:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:45:05' and `end` < '2025-01-17 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-17 11:45:24] Production.INFO: count ==4599 [2025-01-17 11:45:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:45:05 - End Time 2025-01-17 11:45:05 [2025-01-17 11:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268078', 'tblTempUsageDetail_20' ) start [2025-01-17 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268078', 'tblTempUsageDetail_20' ) end [2025-01-17 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268078', 'tblTempVendorCDR_20' ) start [2025-01-17 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268078', 'tblTempVendorCDR_20' ) end [2025-01-17 11:45:26] Production.INFO: ProcessCDR(1,14268078,1,1,2) [2025-01-17 11:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268078', 'tblTempUsageDetail_20' ) start [2025-01-17 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268078', 'tblTempUsageDetail_20' ) end [2025-01-17 11:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:45:30] Production.INFO: ==25529== Releasing lock... [2025-01-17 11:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:45:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:46:05 [end_date_ymd] => 2025-01-17 11:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:46:05' and `end` < '2025-01-17 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-17 11:46:25] Production.INFO: count ==4598 [2025-01-17 11:46:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:46:05 - End Time 2025-01-17 11:46:05 [2025-01-17 11:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268083', 'tblTempUsageDetail_20' ) start [2025-01-17 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268083', 'tblTempUsageDetail_20' ) end [2025-01-17 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268083', 'tblTempVendorCDR_20' ) start [2025-01-17 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268083', 'tblTempVendorCDR_20' ) end [2025-01-17 11:46:27] Production.INFO: ProcessCDR(1,14268083,1,1,2) [2025-01-17 11:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268083', 'tblTempUsageDetail_20' ) start [2025-01-17 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268083', 'tblTempUsageDetail_20' ) end [2025-01-17 11:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:46:32] Production.INFO: ==25604== Releasing lock... [2025-01-17 11:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:46:32] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:47:05 [end_date_ymd] => 2025-01-17 11:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:47:05' and `end` < '2025-01-17 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-17 11:47:24] Production.INFO: count ==4604 [2025-01-17 11:47:26] Production.ERROR: pbx CDR StartTime 2025-01-17 08:47:05 - End Time 2025-01-17 11:47:05 [2025-01-17 11:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268088', 'tblTempUsageDetail_20' ) start [2025-01-17 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268088', 'tblTempUsageDetail_20' ) end [2025-01-17 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268088', 'tblTempVendorCDR_20' ) start [2025-01-17 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268088', 'tblTempVendorCDR_20' ) end [2025-01-17 11:47:26] Production.INFO: ProcessCDR(1,14268088,1,1,2) [2025-01-17 11:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268088', 'tblTempUsageDetail_20' ) start [2025-01-17 11:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268088', 'tblTempUsageDetail_20' ) end [2025-01-17 11:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:47:31] Production.INFO: ==25678== Releasing lock... [2025-01-17 11:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:47:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:48:05 [end_date_ymd] => 2025-01-17 11:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:48:05' and `end` < '2025-01-17 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-17 11:48:23] Production.INFO: count ==4612 [2025-01-17 11:48:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:48:05 - End Time 2025-01-17 11:48:05 [2025-01-17 11:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268093', 'tblTempUsageDetail_20' ) start [2025-01-17 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268093', 'tblTempUsageDetail_20' ) end [2025-01-17 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268093', 'tblTempVendorCDR_20' ) start [2025-01-17 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268093', 'tblTempVendorCDR_20' ) end [2025-01-17 11:48:25] Production.INFO: ProcessCDR(1,14268093,1,1,2) [2025-01-17 11:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268093', 'tblTempUsageDetail_20' ) start [2025-01-17 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268093', 'tblTempUsageDetail_20' ) end [2025-01-17 11:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:48:30] Production.INFO: ==25753== Releasing lock... [2025-01-17 11:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:48:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-17 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:49:05 [end_date_ymd] => 2025-01-17 11:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:49:05' and `end` < '2025-01-17 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-17 11:49:18] Production.INFO: count ==4625 [2025-01-17 11:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 08:49:05 - End Time 2025-01-17 11:49:05 [2025-01-17 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268098', 'tblTempUsageDetail_20' ) start [2025-01-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268098', 'tblTempUsageDetail_20' ) end [2025-01-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268098', 'tblTempVendorCDR_20' ) start [2025-01-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268098', 'tblTempVendorCDR_20' ) end [2025-01-17 11:49:20] Production.INFO: ProcessCDR(1,14268098,1,1,2) [2025-01-17 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268098', 'tblTempUsageDetail_20' ) start [2025-01-17 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268098', 'tblTempUsageDetail_20' ) end [2025-01-17 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:49:25] Production.INFO: ==25825== Releasing lock... [2025-01-17 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:49:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:50:05 [end_date_ymd] => 2025-01-17 11:50:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:50:05' and `end` < '2025-01-17 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-17 11:50:25] Production.INFO: count ==4629 [2025-01-17 11:50:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:50:05 - End Time 2025-01-17 11:50:05 [2025-01-17 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268104', 'tblTempUsageDetail_20' ) start [2025-01-17 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268104', 'tblTempUsageDetail_20' ) end [2025-01-17 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268104', 'tblTempVendorCDR_20' ) start [2025-01-17 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268104', 'tblTempVendorCDR_20' ) end [2025-01-17 11:50:27] Production.INFO: ProcessCDR(1,14268104,1,1,2) [2025-01-17 11:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268104', 'tblTempUsageDetail_20' ) start [2025-01-17 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268104', 'tblTempUsageDetail_20' ) end [2025-01-17 11:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:50:31] Production.INFO: ==25901== Releasing lock... [2025-01-17 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:50:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:51:05 [end_date_ymd] => 2025-01-17 11:51:05 [RateCDR] => 1 ) [2025-01-17 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:51:05' and `end` < '2025-01-17 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:51:22] Production.INFO: count ==4675 [2025-01-17 11:51:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:51:05 - End Time 2025-01-17 11:51:05 [2025-01-17 11:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268109', 'tblTempUsageDetail_20' ) start [2025-01-17 11:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268109', 'tblTempUsageDetail_20' ) end [2025-01-17 11:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268109', 'tblTempVendorCDR_20' ) start [2025-01-17 11:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268109', 'tblTempVendorCDR_20' ) end [2025-01-17 11:51:24] Production.INFO: ProcessCDR(1,14268109,1,1,2) [2025-01-17 11:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268109', 'tblTempUsageDetail_20' ) start [2025-01-17 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268109', 'tblTempUsageDetail_20' ) end [2025-01-17 11:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:51:28] Production.INFO: ==25975== Releasing lock... [2025-01-17 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:51:28] Production.INFO: 63 MB #Memory Used# [2025-01-17 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:52:04 [end_date_ymd] => 2025-01-17 11:52:04 [RateCDR] => 1 ) [2025-01-17 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:52:04' and `end` < '2025-01-17 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:52:21] Production.INFO: count ==4679 [2025-01-17 11:52:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:52:04 - End Time 2025-01-17 11:52:04 [2025-01-17 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268114', 'tblTempUsageDetail_20' ) start [2025-01-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268114', 'tblTempUsageDetail_20' ) end [2025-01-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268114', 'tblTempVendorCDR_20' ) start [2025-01-17 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268114', 'tblTempVendorCDR_20' ) end [2025-01-17 11:52:23] Production.INFO: ProcessCDR(1,14268114,1,1,2) [2025-01-17 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268114', 'tblTempUsageDetail_20' ) start [2025-01-17 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268114', 'tblTempUsageDetail_20' ) end [2025-01-17 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:52:28] Production.INFO: ==26086== Releasing lock... [2025-01-17 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:52:28] Production.INFO: 63 MB #Memory Used# [2025-01-17 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:53:05 [end_date_ymd] => 2025-01-17 11:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:53:05' and `end` < '2025-01-17 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-17 11:53:23] Production.INFO: count ==4700 [2025-01-17 11:53:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:53:05 - End Time 2025-01-17 11:53:05 [2025-01-17 11:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268119', 'tblTempUsageDetail_20' ) start [2025-01-17 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268119', 'tblTempUsageDetail_20' ) end [2025-01-17 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268119', 'tblTempVendorCDR_20' ) start [2025-01-17 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268119', 'tblTempVendorCDR_20' ) end [2025-01-17 11:53:25] Production.INFO: ProcessCDR(1,14268119,1,1,2) [2025-01-17 11:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268119', 'tblTempUsageDetail_20' ) start [2025-01-17 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268119', 'tblTempUsageDetail_20' ) end [2025-01-17 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:53:30] Production.INFO: ==26160== Releasing lock... [2025-01-17 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:53:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:54:05 [end_date_ymd] => 2025-01-17 11:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:54:05' and `end` < '2025-01-17 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-17 11:54:22] Production.INFO: count ==4714 [2025-01-17 11:54:23] Production.ERROR: pbx CDR StartTime 2025-01-17 08:54:05 - End Time 2025-01-17 11:54:05 [2025-01-17 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268124', 'tblTempUsageDetail_20' ) start [2025-01-17 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268124', 'tblTempUsageDetail_20' ) end [2025-01-17 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268124', 'tblTempVendorCDR_20' ) start [2025-01-17 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268124', 'tblTempVendorCDR_20' ) end [2025-01-17 11:54:24] Production.INFO: ProcessCDR(1,14268124,1,1,2) [2025-01-17 11:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268124', 'tblTempUsageDetail_20' ) start [2025-01-17 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268124', 'tblTempUsageDetail_20' ) end [2025-01-17 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:54:28] Production.INFO: ==26231== Releasing lock... [2025-01-17 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:54:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:55:04 [end_date_ymd] => 2025-01-17 11:55:04 [RateCDR] => 1 ) [2025-01-17 11:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:55:04' and `end` < '2025-01-17 11:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:55:22] Production.INFO: count ==4717 [2025-01-17 11:55:24] Production.ERROR: pbx CDR StartTime 2025-01-17 08:55:04 - End Time 2025-01-17 11:55:04 [2025-01-17 11:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268129', 'tblTempUsageDetail_20' ) start [2025-01-17 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268129', 'tblTempUsageDetail_20' ) end [2025-01-17 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268129', 'tblTempVendorCDR_20' ) start [2025-01-17 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268129', 'tblTempVendorCDR_20' ) end [2025-01-17 11:55:24] Production.INFO: ProcessCDR(1,14268129,1,1,2) [2025-01-17 11:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268129', 'tblTempUsageDetail_20' ) start [2025-01-17 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268129', 'tblTempUsageDetail_20' ) end [2025-01-17 11:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:55:29] Production.INFO: ==26301== Releasing lock... [2025-01-17 11:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:55:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:56:05 [end_date_ymd] => 2025-01-17 11:56:05 [RateCDR] => 1 ) [2025-01-17 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:56:05' and `end` < '2025-01-17 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:56:25] Production.INFO: count ==4696 [2025-01-17 11:56:27] Production.ERROR: pbx CDR StartTime 2025-01-17 08:56:05 - End Time 2025-01-17 11:56:05 [2025-01-17 11:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268134', 'tblTempUsageDetail_20' ) start [2025-01-17 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268134', 'tblTempUsageDetail_20' ) end [2025-01-17 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268134', 'tblTempVendorCDR_20' ) start [2025-01-17 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268134', 'tblTempVendorCDR_20' ) end [2025-01-17 11:56:27] Production.INFO: ProcessCDR(1,14268134,1,1,2) [2025-01-17 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268134', 'tblTempUsageDetail_20' ) start [2025-01-17 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268134', 'tblTempUsageDetail_20' ) end [2025-01-17 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:56:32] Production.INFO: ==26372== Releasing lock... [2025-01-17 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:56:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:57:05 [end_date_ymd] => 2025-01-17 11:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:57:05' and `end` < '2025-01-17 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-17 11:57:20] Production.INFO: count ==4703 [2025-01-17 11:57:22] Production.ERROR: pbx CDR StartTime 2025-01-17 08:57:05 - End Time 2025-01-17 11:57:05 [2025-01-17 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268139', 'tblTempUsageDetail_20' ) start [2025-01-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268139', 'tblTempUsageDetail_20' ) end [2025-01-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268139', 'tblTempVendorCDR_20' ) start [2025-01-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268139', 'tblTempVendorCDR_20' ) end [2025-01-17 11:57:22] Production.INFO: ProcessCDR(1,14268139,1,1,2) [2025-01-17 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268139', 'tblTempUsageDetail_20' ) start [2025-01-17 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268139', 'tblTempUsageDetail_20' ) end [2025-01-17 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:57:27] Production.INFO: ==26448== Releasing lock... [2025-01-17 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:57:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:58:05 [end_date_ymd] => 2025-01-17 11:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 08:58:05' and `end` < '2025-01-17 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-17 11:58:23] Production.INFO: count ==4721 [2025-01-17 11:58:25] Production.ERROR: pbx CDR StartTime 2025-01-17 08:58:05 - End Time 2025-01-17 11:58:05 [2025-01-17 11:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268144', 'tblTempUsageDetail_20' ) start [2025-01-17 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268144', 'tblTempUsageDetail_20' ) end [2025-01-17 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268144', 'tblTempVendorCDR_20' ) start [2025-01-17 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268144', 'tblTempVendorCDR_20' ) end [2025-01-17 11:58:25] Production.INFO: ProcessCDR(1,14268144,1,1,2) [2025-01-17 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268144', 'tblTempUsageDetail_20' ) start [2025-01-17 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268144', 'tblTempUsageDetail_20' ) end [2025-01-17 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:58:30] Production.INFO: ==26518== Releasing lock... [2025-01-17 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:58:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 08:59:04 [end_date_ymd] => 2025-01-17 11:59:04 [RateCDR] => 1 ) [2025-01-17 11:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 08:59:04' and `end` < '2025-01-17 11:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 11:59:17] Production.INFO: count ==4731 [2025-01-17 11:59:19] Production.ERROR: pbx CDR StartTime 2025-01-17 08:59:04 - End Time 2025-01-17 11:59:04 [2025-01-17 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268149', 'tblTempUsageDetail_20' ) start [2025-01-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268149', 'tblTempUsageDetail_20' ) end [2025-01-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268149', 'tblTempVendorCDR_20' ) start [2025-01-17 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268149', 'tblTempVendorCDR_20' ) end [2025-01-17 11:59:19] Production.INFO: ProcessCDR(1,14268149,1,1,2) [2025-01-17 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268149', 'tblTempUsageDetail_20' ) start [2025-01-17 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268149', 'tblTempUsageDetail_20' ) end [2025-01-17 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 11:59:24] Production.INFO: ==26590== Releasing lock... [2025-01-17 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 11:59:24] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:00:05 [end_date_ymd] => 2025-01-17 12:00:05 [RateCDR] => 1 ) [2025-01-17 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:00:05' and `end` < '2025-01-17 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:00:19] Production.INFO: count ==4726 [2025-01-17 12:00:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:00:05 - End Time 2025-01-17 12:00:05 [2025-01-17 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268154', 'tblTempUsageDetail_20' ) start [2025-01-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268154', 'tblTempUsageDetail_20' ) end [2025-01-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268154', 'tblTempVendorCDR_20' ) start [2025-01-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268154', 'tblTempVendorCDR_20' ) end [2025-01-17 12:00:21] Production.INFO: ProcessCDR(1,14268154,1,1,2) [2025-01-17 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268154', 'tblTempUsageDetail_20' ) start [2025-01-17 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268154', 'tblTempUsageDetail_20' ) end [2025-01-17 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:00:26] Production.INFO: ==26662== Releasing lock... [2025-01-17 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:00:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:01:05 [end_date_ymd] => 2025-01-17 12:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:01:05' and `end` < '2025-01-17 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-17 12:01:26] Production.INFO: count ==4814 [2025-01-17 12:01:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:01:05 - End Time 2025-01-17 12:01:05 [2025-01-17 12:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268160', 'tblTempUsageDetail_20' ) start [2025-01-17 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268160', 'tblTempUsageDetail_20' ) end [2025-01-17 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268160', 'tblTempVendorCDR_20' ) start [2025-01-17 12:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268160', 'tblTempVendorCDR_20' ) end [2025-01-17 12:01:29] Production.INFO: ProcessCDR(1,14268160,1,1,2) [2025-01-17 12:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268160', 'tblTempUsageDetail_20' ) start [2025-01-17 12:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268160', 'tblTempUsageDetail_20' ) end [2025-01-17 12:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:01:33] Production.INFO: ==26750== Releasing lock... [2025-01-17 12:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:01:33] Production.INFO: 64 MB #Memory Used# [2025-01-17 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:02:05 [end_date_ymd] => 2025-01-17 12:02:05 [RateCDR] => 1 ) [2025-01-17 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:02:05' and `end` < '2025-01-17 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:02:23] Production.INFO: count ==4819 [2025-01-17 12:02:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:02:05 - End Time 2025-01-17 12:02:05 [2025-01-17 12:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268165', 'tblTempUsageDetail_20' ) start [2025-01-17 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268165', 'tblTempUsageDetail_20' ) end [2025-01-17 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268165', 'tblTempVendorCDR_20' ) start [2025-01-17 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268165', 'tblTempVendorCDR_20' ) end [2025-01-17 12:02:25] Production.INFO: ProcessCDR(1,14268165,1,1,2) [2025-01-17 12:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268165', 'tblTempUsageDetail_20' ) start [2025-01-17 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268165', 'tblTempUsageDetail_20' ) end [2025-01-17 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:02:29] Production.INFO: ==26821== Releasing lock... [2025-01-17 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:02:29] Production.INFO: 64 MB #Memory Used# [2025-01-17 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:03:05 [end_date_ymd] => 2025-01-17 12:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:03:05' and `end` < '2025-01-17 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-17 12:03:26] Production.INFO: count ==4832 [2025-01-17 12:03:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:03:05 - End Time 2025-01-17 12:03:05 [2025-01-17 12:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268170', 'tblTempUsageDetail_20' ) start [2025-01-17 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268170', 'tblTempUsageDetail_20' ) end [2025-01-17 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268170', 'tblTempVendorCDR_20' ) start [2025-01-17 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268170', 'tblTempVendorCDR_20' ) end [2025-01-17 12:03:28] Production.INFO: ProcessCDR(1,14268170,1,1,2) [2025-01-17 12:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268170', 'tblTempUsageDetail_20' ) start [2025-01-17 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268170', 'tblTempUsageDetail_20' ) end [2025-01-17 12:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:03:33] Production.INFO: ==26894== Releasing lock... [2025-01-17 12:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:03:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:04:05 [end_date_ymd] => 2025-01-17 12:04:05 [RateCDR] => 1 ) [2025-01-17 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:04:05' and `end` < '2025-01-17 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:04:21] Production.INFO: count ==4840 [2025-01-17 12:04:23] Production.ERROR: pbx CDR StartTime 2025-01-17 09:04:05 - End Time 2025-01-17 12:04:05 [2025-01-17 12:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268175', 'tblTempUsageDetail_20' ) start [2025-01-17 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268175', 'tblTempUsageDetail_20' ) end [2025-01-17 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268175', 'tblTempVendorCDR_20' ) start [2025-01-17 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268175', 'tblTempVendorCDR_20' ) end [2025-01-17 12:04:23] Production.INFO: ProcessCDR(1,14268175,1,1,2) [2025-01-17 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268175', 'tblTempUsageDetail_20' ) start [2025-01-17 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268175', 'tblTempUsageDetail_20' ) end [2025-01-17 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:04:28] Production.INFO: ==26965== Releasing lock... [2025-01-17 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:04:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:05:05 [end_date_ymd] => 2025-01-17 12:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:05:05' and `end` < '2025-01-17 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-17 12:05:28] Production.INFO: count ==4856 [2025-01-17 12:05:30] Production.ERROR: pbx CDR StartTime 2025-01-17 09:05:05 - End Time 2025-01-17 12:05:05 [2025-01-17 12:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268180', 'tblTempUsageDetail_20' ) start [2025-01-17 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268180', 'tblTempUsageDetail_20' ) end [2025-01-17 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268180', 'tblTempVendorCDR_20' ) start [2025-01-17 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268180', 'tblTempVendorCDR_20' ) end [2025-01-17 12:05:30] Production.INFO: ProcessCDR(1,14268180,1,1,2) [2025-01-17 12:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268180', 'tblTempUsageDetail_20' ) start [2025-01-17 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268180', 'tblTempUsageDetail_20' ) end [2025-01-17 12:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:05:35] Production.INFO: ==27035== Releasing lock... [2025-01-17 12:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:05:35] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:06:05 [end_date_ymd] => 2025-01-17 12:06:05 [RateCDR] => 1 ) [2025-01-17 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:06:05' and `end` < '2025-01-17 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:06:26] Production.INFO: count ==4840 [2025-01-17 12:06:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:06:05 - End Time 2025-01-17 12:06:05 [2025-01-17 12:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268185', 'tblTempUsageDetail_20' ) start [2025-01-17 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268185', 'tblTempUsageDetail_20' ) end [2025-01-17 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268185', 'tblTempVendorCDR_20' ) start [2025-01-17 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268185', 'tblTempVendorCDR_20' ) end [2025-01-17 12:06:29] Production.INFO: ProcessCDR(1,14268185,1,1,2) [2025-01-17 12:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268185', 'tblTempUsageDetail_20' ) start [2025-01-17 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268185', 'tblTempUsageDetail_20' ) end [2025-01-17 12:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:06:34] Production.INFO: ==27106== Releasing lock... [2025-01-17 12:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:06:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:07:05 [end_date_ymd] => 2025-01-17 12:07:05 [RateCDR] => 1 ) [2025-01-17 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:07:05' and `end` < '2025-01-17 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:07:24] Production.INFO: count ==4853 [2025-01-17 12:07:26] Production.ERROR: pbx CDR StartTime 2025-01-17 09:07:05 - End Time 2025-01-17 12:07:05 [2025-01-17 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268190', 'tblTempUsageDetail_20' ) start [2025-01-17 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268190', 'tblTempUsageDetail_20' ) end [2025-01-17 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268190', 'tblTempVendorCDR_20' ) start [2025-01-17 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268190', 'tblTempVendorCDR_20' ) end [2025-01-17 12:07:26] Production.INFO: ProcessCDR(1,14268190,1,1,2) [2025-01-17 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268190', 'tblTempUsageDetail_20' ) start [2025-01-17 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268190', 'tblTempUsageDetail_20' ) end [2025-01-17 12:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:07:31] Production.INFO: ==27217== Releasing lock... [2025-01-17 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:07:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:08:06 [end_date_ymd] => 2025-01-17 12:08:06 [RateCDR] => 1 ) [2025-01-17 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:08:06' and `end` < '2025-01-17 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:08:25] Production.INFO: count ==4842 [2025-01-17 12:08:27] Production.ERROR: pbx CDR StartTime 2025-01-17 09:08:06 - End Time 2025-01-17 12:08:06 [2025-01-17 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268195', 'tblTempUsageDetail_20' ) start [2025-01-17 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268195', 'tblTempUsageDetail_20' ) end [2025-01-17 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268195', 'tblTempVendorCDR_20' ) start [2025-01-17 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268195', 'tblTempVendorCDR_20' ) end [2025-01-17 12:08:27] Production.INFO: ProcessCDR(1,14268195,1,1,2) [2025-01-17 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268195', 'tblTempUsageDetail_20' ) start [2025-01-17 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268195', 'tblTempUsageDetail_20' ) end [2025-01-17 12:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:08:32] Production.INFO: ==27288== Releasing lock... [2025-01-17 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:08:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:09:05 [end_date_ymd] => 2025-01-17 12:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:09:05' and `end` < '2025-01-17 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-17 12:09:32] Production.INFO: count ==4817 [2025-01-17 12:09:34] Production.ERROR: pbx CDR StartTime 2025-01-17 09:09:05 - End Time 2025-01-17 12:09:05 [2025-01-17 12:09:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268200', 'tblTempUsageDetail_20' ) start [2025-01-17 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268200', 'tblTempUsageDetail_20' ) end [2025-01-17 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268200', 'tblTempVendorCDR_20' ) start [2025-01-17 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268200', 'tblTempVendorCDR_20' ) end [2025-01-17 12:09:34] Production.INFO: ProcessCDR(1,14268200,1,1,2) [2025-01-17 12:09:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:09:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:09:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:09:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268200', 'tblTempUsageDetail_20' ) start [2025-01-17 12:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268200', 'tblTempUsageDetail_20' ) end [2025-01-17 12:09:39] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:09:39] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:09:39] Production.INFO: ==27357== Releasing lock... [2025-01-17 12:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:09:39] Production.INFO: 64 MB #Memory Used# [2025-01-17 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:10:05 [end_date_ymd] => 2025-01-17 12:10:05 [RateCDR] => 1 ) [2025-01-17 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:10:05' and `end` < '2025-01-17 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:10:28] Production.INFO: count ==4814 [2025-01-17 12:10:29] Production.ERROR: pbx CDR StartTime 2025-01-17 09:10:05 - End Time 2025-01-17 12:10:05 [2025-01-17 12:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268205', 'tblTempUsageDetail_20' ) start [2025-01-17 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268205', 'tblTempUsageDetail_20' ) end [2025-01-17 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268205', 'tblTempVendorCDR_20' ) start [2025-01-17 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268205', 'tblTempVendorCDR_20' ) end [2025-01-17 12:10:30] Production.INFO: ProcessCDR(1,14268205,1,1,2) [2025-01-17 12:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268205', 'tblTempUsageDetail_20' ) start [2025-01-17 12:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268205', 'tblTempUsageDetail_20' ) end [2025-01-17 12:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:10:35] Production.INFO: ==27429== Releasing lock... [2025-01-17 12:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:10:35] Production.INFO: 64 MB #Memory Used# [2025-01-17 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:11:04 [end_date_ymd] => 2025-01-17 12:11:04 [RateCDR] => 1 ) [2025-01-17 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:11:04' and `end` < '2025-01-17 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-17 12:11:18] Production.INFO: count ==4860 [2025-01-17 12:11:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:11:04 - End Time 2025-01-17 12:11:04 [2025-01-17 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268211', 'tblTempUsageDetail_20' ) start [2025-01-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268211', 'tblTempUsageDetail_20' ) end [2025-01-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268211', 'tblTempVendorCDR_20' ) start [2025-01-17 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268211', 'tblTempVendorCDR_20' ) end [2025-01-17 12:11:20] Production.INFO: ProcessCDR(1,14268211,1,1,2) [2025-01-17 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268211', 'tblTempUsageDetail_20' ) start [2025-01-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268211', 'tblTempUsageDetail_20' ) end [2025-01-17 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:11:25] Production.INFO: ==27502== Releasing lock... [2025-01-17 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:11:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:12:05 [end_date_ymd] => 2025-01-17 12:12:05 [RateCDR] => 1 ) [2025-01-17 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:12:05' and `end` < '2025-01-17 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:12:27] Production.INFO: count ==4863 [2025-01-17 12:12:29] Production.ERROR: pbx CDR StartTime 2025-01-17 09:12:05 - End Time 2025-01-17 12:12:05 [2025-01-17 12:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268216', 'tblTempUsageDetail_20' ) start [2025-01-17 12:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268216', 'tblTempUsageDetail_20' ) end [2025-01-17 12:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268216', 'tblTempVendorCDR_20' ) start [2025-01-17 12:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268216', 'tblTempVendorCDR_20' ) end [2025-01-17 12:12:29] Production.INFO: ProcessCDR(1,14268216,1,1,2) [2025-01-17 12:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268216', 'tblTempUsageDetail_20' ) start [2025-01-17 12:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268216', 'tblTempUsageDetail_20' ) end [2025-01-17 12:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:12:34] Production.INFO: ==27577== Releasing lock... [2025-01-17 12:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:12:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:13:04 [end_date_ymd] => 2025-01-17 12:13:04 [RateCDR] => 1 ) [2025-01-17 12:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:13:04' and `end` < '2025-01-17 12:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:13:26] Production.INFO: count ==4875 [2025-01-17 12:13:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:13:04 - End Time 2025-01-17 12:13:04 [2025-01-17 12:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268221', 'tblTempUsageDetail_20' ) start [2025-01-17 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268221', 'tblTempUsageDetail_20' ) end [2025-01-17 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268221', 'tblTempVendorCDR_20' ) start [2025-01-17 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268221', 'tblTempVendorCDR_20' ) end [2025-01-17 12:13:28] Production.INFO: ProcessCDR(1,14268221,1,1,2) [2025-01-17 12:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268221', 'tblTempUsageDetail_20' ) start [2025-01-17 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268221', 'tblTempUsageDetail_20' ) end [2025-01-17 12:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:13:33] Production.INFO: ==27648== Releasing lock... [2025-01-17 12:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:13:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:14:05 [end_date_ymd] => 2025-01-17 12:14:05 [RateCDR] => 1 ) [2025-01-17 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:14:05' and `end` < '2025-01-17 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:14:27] Production.INFO: count ==4871 [2025-01-17 12:14:29] Production.ERROR: pbx CDR StartTime 2025-01-17 09:14:05 - End Time 2025-01-17 12:14:05 [2025-01-17 12:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268226', 'tblTempUsageDetail_20' ) start [2025-01-17 12:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268226', 'tblTempUsageDetail_20' ) end [2025-01-17 12:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268226', 'tblTempVendorCDR_20' ) start [2025-01-17 12:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268226', 'tblTempVendorCDR_20' ) end [2025-01-17 12:14:29] Production.INFO: ProcessCDR(1,14268226,1,1,2) [2025-01-17 12:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268226', 'tblTempUsageDetail_20' ) start [2025-01-17 12:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268226', 'tblTempUsageDetail_20' ) end [2025-01-17 12:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:14:34] Production.INFO: ==27720== Releasing lock... [2025-01-17 12:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:14:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:15:05 [end_date_ymd] => 2025-01-17 12:15:05 [RateCDR] => 1 ) [2025-01-17 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:15:05' and `end` < '2025-01-17 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:15:23] Production.INFO: count ==4890 [2025-01-17 12:15:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:15:05 - End Time 2025-01-17 12:15:05 [2025-01-17 12:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268231', 'tblTempUsageDetail_20' ) start [2025-01-17 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268231', 'tblTempUsageDetail_20' ) end [2025-01-17 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268231', 'tblTempVendorCDR_20' ) start [2025-01-17 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268231', 'tblTempVendorCDR_20' ) end [2025-01-17 12:15:25] Production.INFO: ProcessCDR(1,14268231,1,1,2) [2025-01-17 12:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268231', 'tblTempUsageDetail_20' ) start [2025-01-17 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268231', 'tblTempUsageDetail_20' ) end [2025-01-17 12:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:15:30] Production.INFO: ==27795== Releasing lock... [2025-01-17 12:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:15:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:16:05 [end_date_ymd] => 2025-01-17 12:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:16:05' and `end` < '2025-01-17 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-17 12:16:18] Production.INFO: count ==4897 [2025-01-17 12:16:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:16:05 - End Time 2025-01-17 12:16:05 [2025-01-17 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268236', 'tblTempUsageDetail_20' ) start [2025-01-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268236', 'tblTempUsageDetail_20' ) end [2025-01-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268236', 'tblTempVendorCDR_20' ) start [2025-01-17 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268236', 'tblTempVendorCDR_20' ) end [2025-01-17 12:16:20] Production.INFO: ProcessCDR(1,14268236,1,1,2) [2025-01-17 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268236', 'tblTempUsageDetail_20' ) start [2025-01-17 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268236', 'tblTempUsageDetail_20' ) end [2025-01-17 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:16:25] Production.INFO: ==27865== Releasing lock... [2025-01-17 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:16:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:17:05 [end_date_ymd] => 2025-01-17 12:17:05 [RateCDR] => 1 ) [2025-01-17 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:17:05' and `end` < '2025-01-17 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:17:25] Production.INFO: count ==4857 [2025-01-17 12:17:27] Production.ERROR: pbx CDR StartTime 2025-01-17 09:17:05 - End Time 2025-01-17 12:17:05 [2025-01-17 12:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268241', 'tblTempUsageDetail_20' ) start [2025-01-17 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268241', 'tblTempUsageDetail_20' ) end [2025-01-17 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268241', 'tblTempVendorCDR_20' ) start [2025-01-17 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268241', 'tblTempVendorCDR_20' ) end [2025-01-17 12:17:27] Production.INFO: ProcessCDR(1,14268241,1,1,2) [2025-01-17 12:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268241', 'tblTempUsageDetail_20' ) start [2025-01-17 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268241', 'tblTempUsageDetail_20' ) end [2025-01-17 12:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:17:31] Production.INFO: ==27936== Releasing lock... [2025-01-17 12:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:17:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:18:05 [end_date_ymd] => 2025-01-17 12:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:18:05' and `end` < '2025-01-17 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-17 12:18:22] Production.INFO: count ==4866 [2025-01-17 12:18:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:18:05 - End Time 2025-01-17 12:18:05 [2025-01-17 12:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268246', 'tblTempUsageDetail_20' ) start [2025-01-17 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268246', 'tblTempUsageDetail_20' ) end [2025-01-17 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268246', 'tblTempVendorCDR_20' ) start [2025-01-17 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268246', 'tblTempVendorCDR_20' ) end [2025-01-17 12:18:24] Production.INFO: ProcessCDR(1,14268246,1,1,2) [2025-01-17 12:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268246', 'tblTempUsageDetail_20' ) start [2025-01-17 12:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268246', 'tblTempUsageDetail_20' ) end [2025-01-17 12:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:18:29] Production.INFO: ==28018== Releasing lock... [2025-01-17 12:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:18:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:19:05 [end_date_ymd] => 2025-01-17 12:19:05 [RateCDR] => 1 ) [2025-01-17 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:19:05' and `end` < '2025-01-17 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:19:22] Production.INFO: count ==4859 [2025-01-17 12:19:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:19:05 - End Time 2025-01-17 12:19:05 [2025-01-17 12:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268251', 'tblTempUsageDetail_20' ) start [2025-01-17 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268251', 'tblTempUsageDetail_20' ) end [2025-01-17 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268251', 'tblTempVendorCDR_20' ) start [2025-01-17 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268251', 'tblTempVendorCDR_20' ) end [2025-01-17 12:19:24] Production.INFO: ProcessCDR(1,14268251,1,1,2) [2025-01-17 12:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268251', 'tblTempUsageDetail_20' ) start [2025-01-17 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268251', 'tblTempUsageDetail_20' ) end [2025-01-17 12:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:19:29] Production.INFO: ==28089== Releasing lock... [2025-01-17 12:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:19:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:20:05 [end_date_ymd] => 2025-01-17 12:20:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:20:05' and `end` < '2025-01-17 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-17 12:20:29] Production.INFO: count ==4849 [2025-01-17 12:20:31] Production.ERROR: pbx CDR StartTime 2025-01-17 09:20:05 - End Time 2025-01-17 12:20:05 [2025-01-17 12:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268257', 'tblTempUsageDetail_20' ) start [2025-01-17 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268257', 'tblTempUsageDetail_20' ) end [2025-01-17 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268257', 'tblTempVendorCDR_20' ) start [2025-01-17 12:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268257', 'tblTempVendorCDR_20' ) end [2025-01-17 12:20:31] Production.INFO: ProcessCDR(1,14268257,1,1,2) [2025-01-17 12:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268257', 'tblTempUsageDetail_20' ) start [2025-01-17 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268257', 'tblTempUsageDetail_20' ) end [2025-01-17 12:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:20:36] Production.INFO: ==28162== Releasing lock... [2025-01-17 12:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:20:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-17 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:21:05 [end_date_ymd] => 2025-01-17 12:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:21:05' and `end` < '2025-01-17 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-17 12:21:23] Production.INFO: count ==4882 [2025-01-17 12:21:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:21:05 - End Time 2025-01-17 12:21:05 [2025-01-17 12:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268262', 'tblTempUsageDetail_20' ) start [2025-01-17 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268262', 'tblTempUsageDetail_20' ) end [2025-01-17 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268262', 'tblTempVendorCDR_20' ) start [2025-01-17 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268262', 'tblTempVendorCDR_20' ) end [2025-01-17 12:21:25] Production.INFO: ProcessCDR(1,14268262,1,1,2) [2025-01-17 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268262', 'tblTempUsageDetail_20' ) start [2025-01-17 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268262', 'tblTempUsageDetail_20' ) end [2025-01-17 12:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:21:30] Production.INFO: ==28235== Releasing lock... [2025-01-17 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:21:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:22:05 [end_date_ymd] => 2025-01-17 12:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:22:05' and `end` < '2025-01-17 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-17 12:22:23] Production.INFO: count ==4886 [2025-01-17 12:22:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:22:05 - End Time 2025-01-17 12:22:05 [2025-01-17 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268267', 'tblTempUsageDetail_20' ) start [2025-01-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268267', 'tblTempUsageDetail_20' ) end [2025-01-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268267', 'tblTempVendorCDR_20' ) start [2025-01-17 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268267', 'tblTempVendorCDR_20' ) end [2025-01-17 12:22:25] Production.INFO: ProcessCDR(1,14268267,1,1,2) [2025-01-17 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268267', 'tblTempUsageDetail_20' ) start [2025-01-17 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268267', 'tblTempUsageDetail_20' ) end [2025-01-17 12:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:22:29] Production.INFO: ==28306== Releasing lock... [2025-01-17 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:22:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:23:05 [end_date_ymd] => 2025-01-17 12:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:23:05' and `end` < '2025-01-17 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-17 12:23:18] Production.INFO: count ==4877 [2025-01-17 12:23:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:23:05 - End Time 2025-01-17 12:23:05 [2025-01-17 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268272', 'tblTempUsageDetail_20' ) start [2025-01-17 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268272', 'tblTempUsageDetail_20' ) end [2025-01-17 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268272', 'tblTempVendorCDR_20' ) start [2025-01-17 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268272', 'tblTempVendorCDR_20' ) end [2025-01-17 12:23:20] Production.INFO: ProcessCDR(1,14268272,1,1,2) [2025-01-17 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268272', 'tblTempUsageDetail_20' ) start [2025-01-17 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268272', 'tblTempUsageDetail_20' ) end [2025-01-17 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:23:25] Production.INFO: ==28415== Releasing lock... [2025-01-17 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:23:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:24:05 [end_date_ymd] => 2025-01-17 12:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:24:05' and `end` < '2025-01-17 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-17 12:24:20] Production.INFO: count ==4861 [2025-01-17 12:24:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:24:05 - End Time 2025-01-17 12:24:05 [2025-01-17 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268277', 'tblTempUsageDetail_20' ) start [2025-01-17 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268277', 'tblTempUsageDetail_20' ) end [2025-01-17 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268277', 'tblTempVendorCDR_20' ) start [2025-01-17 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268277', 'tblTempVendorCDR_20' ) end [2025-01-17 12:24:22] Production.INFO: ProcessCDR(1,14268277,1,1,2) [2025-01-17 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268277', 'tblTempUsageDetail_20' ) start [2025-01-17 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268277', 'tblTempUsageDetail_20' ) end [2025-01-17 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:24:26] Production.INFO: ==28486== Releasing lock... [2025-01-17 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:24:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:25:05 [end_date_ymd] => 2025-01-17 12:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:25:05' and `end` < '2025-01-17 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-17 12:25:18] Production.INFO: count ==4860 [2025-01-17 12:25:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:25:05 - End Time 2025-01-17 12:25:05 [2025-01-17 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268282', 'tblTempUsageDetail_20' ) start [2025-01-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268282', 'tblTempUsageDetail_20' ) end [2025-01-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268282', 'tblTempVendorCDR_20' ) start [2025-01-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268282', 'tblTempVendorCDR_20' ) end [2025-01-17 12:25:20] Production.INFO: ProcessCDR(1,14268282,1,1,2) [2025-01-17 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268282', 'tblTempUsageDetail_20' ) start [2025-01-17 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268282', 'tblTempUsageDetail_20' ) end [2025-01-17 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:25:26] Production.INFO: ==28557== Releasing lock... [2025-01-17 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:26:06 [end_date_ymd] => 2025-01-17 12:26:06 [RateCDR] => 1 ) [2025-01-17 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:26:06' and `end` < '2025-01-17 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:26:24] Production.INFO: count ==4880 [2025-01-17 12:26:26] Production.ERROR: pbx CDR StartTime 2025-01-17 09:26:06 - End Time 2025-01-17 12:26:06 [2025-01-17 12:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268287', 'tblTempUsageDetail_20' ) start [2025-01-17 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268287', 'tblTempUsageDetail_20' ) end [2025-01-17 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268287', 'tblTempVendorCDR_20' ) start [2025-01-17 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268287', 'tblTempVendorCDR_20' ) end [2025-01-17 12:26:26] Production.INFO: ProcessCDR(1,14268287,1,1,2) [2025-01-17 12:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268287', 'tblTempUsageDetail_20' ) start [2025-01-17 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268287', 'tblTempUsageDetail_20' ) end [2025-01-17 12:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:26:32] Production.INFO: ==28631== Releasing lock... [2025-01-17 12:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:26:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:27:05 [end_date_ymd] => 2025-01-17 12:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:27:05' and `end` < '2025-01-17 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-17 12:27:23] Production.INFO: count ==4873 [2025-01-17 12:27:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:27:05 - End Time 2025-01-17 12:27:05 [2025-01-17 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268292', 'tblTempUsageDetail_20' ) start [2025-01-17 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268292', 'tblTempUsageDetail_20' ) end [2025-01-17 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268292', 'tblTempVendorCDR_20' ) start [2025-01-17 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268292', 'tblTempVendorCDR_20' ) end [2025-01-17 12:27:25] Production.INFO: ProcessCDR(1,14268292,1,1,2) [2025-01-17 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268292', 'tblTempUsageDetail_20' ) start [2025-01-17 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268292', 'tblTempUsageDetail_20' ) end [2025-01-17 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:27:30] Production.INFO: ==28702== Releasing lock... [2025-01-17 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:27:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:28:05 [end_date_ymd] => 2025-01-17 12:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:28:05' and `end` < '2025-01-17 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-17 12:28:24] Production.INFO: count ==4885 [2025-01-17 12:28:26] Production.ERROR: pbx CDR StartTime 2025-01-17 09:28:05 - End Time 2025-01-17 12:28:05 [2025-01-17 12:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268297', 'tblTempUsageDetail_20' ) start [2025-01-17 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268297', 'tblTempUsageDetail_20' ) end [2025-01-17 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268297', 'tblTempVendorCDR_20' ) start [2025-01-17 12:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268297', 'tblTempVendorCDR_20' ) end [2025-01-17 12:28:26] Production.INFO: ProcessCDR(1,14268297,1,1,2) [2025-01-17 12:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268297', 'tblTempUsageDetail_20' ) start [2025-01-17 12:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268297', 'tblTempUsageDetail_20' ) end [2025-01-17 12:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:28:31] Production.INFO: ==28774== Releasing lock... [2025-01-17 12:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:28:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:29:05 [end_date_ymd] => 2025-01-17 12:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:29:05' and `end` < '2025-01-17 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-17 12:29:22] Production.INFO: count ==4889 [2025-01-17 12:29:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:29:05 - End Time 2025-01-17 12:29:05 [2025-01-17 12:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268302', 'tblTempUsageDetail_20' ) start [2025-01-17 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268302', 'tblTempUsageDetail_20' ) end [2025-01-17 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268302', 'tblTempVendorCDR_20' ) start [2025-01-17 12:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268302', 'tblTempVendorCDR_20' ) end [2025-01-17 12:29:24] Production.INFO: ProcessCDR(1,14268302,1,1,2) [2025-01-17 12:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268302', 'tblTempUsageDetail_20' ) start [2025-01-17 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268302', 'tblTempUsageDetail_20' ) end [2025-01-17 12:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:29:29] Production.INFO: ==28845== Releasing lock... [2025-01-17 12:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:29:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:30:05 [end_date_ymd] => 2025-01-17 12:30:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:30:05' and `end` < '2025-01-17 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-17 12:30:19] Production.INFO: count ==4895 [2025-01-17 12:30:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:30:05 - End Time 2025-01-17 12:30:05 [2025-01-17 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268307', 'tblTempUsageDetail_20' ) start [2025-01-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268307', 'tblTempUsageDetail_20' ) end [2025-01-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268307', 'tblTempVendorCDR_20' ) start [2025-01-17 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268307', 'tblTempVendorCDR_20' ) end [2025-01-17 12:30:21] Production.INFO: ProcessCDR(1,14268307,1,1,2) [2025-01-17 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268307', 'tblTempUsageDetail_20' ) start [2025-01-17 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268307', 'tblTempUsageDetail_20' ) end [2025-01-17 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:30:26] Production.INFO: ==28916== Releasing lock... [2025-01-17 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:30:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:31:05 [end_date_ymd] => 2025-01-17 12:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:31:05' and `end` < '2025-01-17 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-17 12:31:23] Production.INFO: count ==4944 [2025-01-17 12:31:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:31:05 - End Time 2025-01-17 12:31:05 [2025-01-17 12:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268313', 'tblTempUsageDetail_20' ) start [2025-01-17 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268313', 'tblTempUsageDetail_20' ) end [2025-01-17 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268313', 'tblTempVendorCDR_20' ) start [2025-01-17 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268313', 'tblTempVendorCDR_20' ) end [2025-01-17 12:31:25] Production.INFO: ProcessCDR(1,14268313,1,1,2) [2025-01-17 12:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268313', 'tblTempUsageDetail_20' ) start [2025-01-17 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268313', 'tblTempUsageDetail_20' ) end [2025-01-17 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:31:28] Production.INFO: ==28989== Releasing lock... [2025-01-17 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:31:28] Production.INFO: 65 MB #Memory Used# [2025-01-17 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:32:06 [end_date_ymd] => 2025-01-17 12:32:06 [RateCDR] => 1 ) [2025-01-17 12: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-17 09:32:06' and `end` < '2025-01-17 12: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-17 12:32:22] Production.INFO: count ==4937 [2025-01-17 12:32:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:32:06 - End Time 2025-01-17 12:32:06 [2025-01-17 12:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268318', 'tblTempUsageDetail_20' ) start [2025-01-17 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268318', 'tblTempUsageDetail_20' ) end [2025-01-17 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268318', 'tblTempVendorCDR_20' ) start [2025-01-17 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268318', 'tblTempVendorCDR_20' ) end [2025-01-17 12:32:24] Production.INFO: ProcessCDR(1,14268318,1,1,2) [2025-01-17 12:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268318', 'tblTempUsageDetail_20' ) start [2025-01-17 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268318', 'tblTempUsageDetail_20' ) end [2025-01-17 12:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:32:29] Production.INFO: ==29060== Releasing lock... [2025-01-17 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:32:29] Production.INFO: 65 MB #Memory Used# [2025-01-17 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:33:05 [end_date_ymd] => 2025-01-17 12:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:33:05' and `end` < '2025-01-17 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-17 12:33:22] Production.INFO: count ==4952 [2025-01-17 12:33:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:33:05 - End Time 2025-01-17 12:33:05 [2025-01-17 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268323', 'tblTempUsageDetail_20' ) start [2025-01-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268323', 'tblTempUsageDetail_20' ) end [2025-01-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268323', 'tblTempVendorCDR_20' ) start [2025-01-17 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268323', 'tblTempVendorCDR_20' ) end [2025-01-17 12:33:25] Production.INFO: ProcessCDR(1,14268323,1,1,2) [2025-01-17 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268323', 'tblTempUsageDetail_20' ) start [2025-01-17 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268323', 'tblTempUsageDetail_20' ) end [2025-01-17 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:33:30] Production.INFO: ==29129== Releasing lock... [2025-01-17 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:33:30] Production.INFO: 65 MB #Memory Used# [2025-01-17 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:34:06 [end_date_ymd] => 2025-01-17 12:34:06 [RateCDR] => 1 ) [2025-01-17 12: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-17 09:34:06' and `end` < '2025-01-17 12: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-17 12:34:29] Production.INFO: count ==4967 [2025-01-17 12:34:31] Production.ERROR: pbx CDR StartTime 2025-01-17 09:34:06 - End Time 2025-01-17 12:34:06 [2025-01-17 12:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268328', 'tblTempUsageDetail_20' ) start [2025-01-17 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268328', 'tblTempUsageDetail_20' ) end [2025-01-17 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268328', 'tblTempVendorCDR_20' ) start [2025-01-17 12:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268328', 'tblTempVendorCDR_20' ) end [2025-01-17 12:34:31] Production.INFO: ProcessCDR(1,14268328,1,1,2) [2025-01-17 12:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268328', 'tblTempUsageDetail_20' ) start [2025-01-17 12:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268328', 'tblTempUsageDetail_20' ) end [2025-01-17 12:34:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:34:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:34:36] Production.INFO: ==29201== Releasing lock... [2025-01-17 12:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:34:36] Production.INFO: 65.25 MB #Memory Used# [2025-01-17 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:35:05 [end_date_ymd] => 2025-01-17 12:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:35:05' and `end` < '2025-01-17 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-17 12:35:25] Production.INFO: count ==5012 [2025-01-17 12:35:27] Production.ERROR: pbx CDR StartTime 2025-01-17 09:35:05 - End Time 2025-01-17 12:35:05 [2025-01-17 12:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268333', 'tblTempUsageDetail_20' ) start [2025-01-17 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268333', 'tblTempUsageDetail_20' ) end [2025-01-17 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268333', 'tblTempVendorCDR_20' ) start [2025-01-17 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268333', 'tblTempVendorCDR_20' ) end [2025-01-17 12:35:27] Production.INFO: ProcessCDR(1,14268333,1,1,2) [2025-01-17 12:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268333', 'tblTempUsageDetail_20' ) start [2025-01-17 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268333', 'tblTempUsageDetail_20' ) end [2025-01-17 12:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:35:32] Production.INFO: ==29271== Releasing lock... [2025-01-17 12:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:35:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:36:06 [end_date_ymd] => 2025-01-17 12:36:06 [RateCDR] => 1 ) [2025-01-17 12: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-17 09:36:06' and `end` < '2025-01-17 12: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-17 12:36:22] Production.INFO: count ==5016 [2025-01-17 12:36:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:36:06 - End Time 2025-01-17 12:36:06 [2025-01-17 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268338', 'tblTempUsageDetail_20' ) start [2025-01-17 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268338', 'tblTempUsageDetail_20' ) end [2025-01-17 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268338', 'tblTempVendorCDR_20' ) start [2025-01-17 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268338', 'tblTempVendorCDR_20' ) end [2025-01-17 12:36:24] Production.INFO: ProcessCDR(1,14268338,1,1,2) [2025-01-17 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268338', 'tblTempUsageDetail_20' ) start [2025-01-17 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268338', 'tblTempUsageDetail_20' ) end [2025-01-17 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:36:30] Production.INFO: ==29342== Releasing lock... [2025-01-17 12:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:36:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:37:05 [end_date_ymd] => 2025-01-17 12:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:37:05' and `end` < '2025-01-17 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-17 12:37:26] Production.INFO: count ==5022 [2025-01-17 12:37:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:37:05 - End Time 2025-01-17 12:37:05 [2025-01-17 12:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268343', 'tblTempUsageDetail_20' ) start [2025-01-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268343', 'tblTempUsageDetail_20' ) end [2025-01-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268343', 'tblTempVendorCDR_20' ) start [2025-01-17 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268343', 'tblTempVendorCDR_20' ) end [2025-01-17 12:37:28] Production.INFO: ProcessCDR(1,14268343,1,1,2) [2025-01-17 12:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268343', 'tblTempUsageDetail_20' ) start [2025-01-17 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268343', 'tblTempUsageDetail_20' ) end [2025-01-17 12:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:37:33] Production.INFO: ==29413== Releasing lock... [2025-01-17 12:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:37:33] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:38:05 [end_date_ymd] => 2025-01-17 12:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:38:05' and `end` < '2025-01-17 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-17 12:38:27] Production.INFO: count ==5015 [2025-01-17 12:38:29] Production.ERROR: pbx CDR StartTime 2025-01-17 09:38:05 - End Time 2025-01-17 12:38:05 [2025-01-17 12:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268348', 'tblTempUsageDetail_20' ) start [2025-01-17 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268348', 'tblTempUsageDetail_20' ) end [2025-01-17 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268348', 'tblTempVendorCDR_20' ) start [2025-01-17 12:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268348', 'tblTempVendorCDR_20' ) end [2025-01-17 12:38:29] Production.INFO: ProcessCDR(1,14268348,1,1,2) [2025-01-17 12:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268348', 'tblTempUsageDetail_20' ) start [2025-01-17 12:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268348', 'tblTempUsageDetail_20' ) end [2025-01-17 12:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:38:34] Production.INFO: ==29523== Releasing lock... [2025-01-17 12:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:38:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:39:05 [end_date_ymd] => 2025-01-17 12:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:39:05' and `end` < '2025-01-17 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-17 12:39:31] Production.INFO: count ==5002 [2025-01-17 12:39:33] Production.ERROR: pbx CDR StartTime 2025-01-17 09:39:05 - End Time 2025-01-17 12:39:05 [2025-01-17 12:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268353', 'tblTempUsageDetail_20' ) start [2025-01-17 12:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268353', 'tblTempUsageDetail_20' ) end [2025-01-17 12:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268353', 'tblTempVendorCDR_20' ) start [2025-01-17 12:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268353', 'tblTempVendorCDR_20' ) end [2025-01-17 12:39:34] Production.INFO: ProcessCDR(1,14268353,1,1,2) [2025-01-17 12:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:39:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:39:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268353', 'tblTempUsageDetail_20' ) start [2025-01-17 12:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268353', 'tblTempUsageDetail_20' ) end [2025-01-17 12:39:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:39:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:39:40] Production.INFO: ==29596== Releasing lock... [2025-01-17 12:39:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:39:40] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:40:06 [end_date_ymd] => 2025-01-17 12:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 09:40:06' and `end` < '2025-01-17 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-17 12:40:29] Production.INFO: count ==5002 [2025-01-17 12:40:31] Production.ERROR: pbx CDR StartTime 2025-01-17 09:40:06 - End Time 2025-01-17 12:40:06 [2025-01-17 12:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268359', 'tblTempUsageDetail_20' ) start [2025-01-17 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268359', 'tblTempUsageDetail_20' ) end [2025-01-17 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268359', 'tblTempVendorCDR_20' ) start [2025-01-17 12:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268359', 'tblTempVendorCDR_20' ) end [2025-01-17 12:40:32] Production.INFO: ProcessCDR(1,14268359,1,1,2) [2025-01-17 12:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:40:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268359', 'tblTempUsageDetail_20' ) start [2025-01-17 12:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268359', 'tblTempUsageDetail_20' ) end [2025-01-17 12:40:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:40:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:40:37] Production.INFO: ==29671== Releasing lock... [2025-01-17 12:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:40:37] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:41:05 [end_date_ymd] => 2025-01-17 12:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:41:05' and `end` < '2025-01-17 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-17 12:41:25] Production.INFO: count ==4996 [2025-01-17 12:41:33] Production.ERROR: pbx CDR StartTime 2025-01-17 09:41:05 - End Time 2025-01-17 12:41:05 [2025-01-17 12:41:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268364', 'tblTempUsageDetail_20' ) start [2025-01-17 12:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268364', 'tblTempUsageDetail_20' ) end [2025-01-17 12:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268364', 'tblTempVendorCDR_20' ) start [2025-01-17 12:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268364', 'tblTempVendorCDR_20' ) end [2025-01-17 12:41:33] Production.INFO: ProcessCDR(1,14268364,1,1,2) [2025-01-17 12:41:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:41:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:41:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:41:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:41:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268364', 'tblTempUsageDetail_20' ) start [2025-01-17 12:41:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268364', 'tblTempUsageDetail_20' ) end [2025-01-17 12:41:43] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:41:43] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:41:43] Production.INFO: ==29746== Releasing lock... [2025-01-17 12:41:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:41:43] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:42:05 [end_date_ymd] => 2025-01-17 12:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:42:05' and `end` < '2025-01-17 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-17 12:42:22] Production.INFO: count ==4997 [2025-01-17 12:42:25] Production.ERROR: pbx CDR StartTime 2025-01-17 09:42:05 - End Time 2025-01-17 12:42:05 [2025-01-17 12:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268369', 'tblTempUsageDetail_20' ) start [2025-01-17 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268369', 'tblTempUsageDetail_20' ) end [2025-01-17 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268369', 'tblTempVendorCDR_20' ) start [2025-01-17 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268369', 'tblTempVendorCDR_20' ) end [2025-01-17 12:42:25] Production.INFO: ProcessCDR(1,14268369,1,1,2) [2025-01-17 12:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268369', 'tblTempUsageDetail_20' ) start [2025-01-17 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268369', 'tblTempUsageDetail_20' ) end [2025-01-17 12:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:42:31] Production.INFO: ==29839== Releasing lock... [2025-01-17 12:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:42:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:43:04 [end_date_ymd] => 2025-01-17 12:43:04 [RateCDR] => 1 ) [2025-01-17 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-17 09:43:04' and `end` < '2025-01-17 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-17 12:43:19] Production.INFO: count ==4992 [2025-01-17 12:43:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:43:04 - End Time 2025-01-17 12:43:04 [2025-01-17 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268374', 'tblTempUsageDetail_20' ) start [2025-01-17 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268374', 'tblTempUsageDetail_20' ) end [2025-01-17 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268374', 'tblTempVendorCDR_20' ) start [2025-01-17 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268374', 'tblTempVendorCDR_20' ) end [2025-01-17 12:43:21] Production.INFO: ProcessCDR(1,14268374,1,1,2) [2025-01-17 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268374', 'tblTempUsageDetail_20' ) start [2025-01-17 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268374', 'tblTempUsageDetail_20' ) end [2025-01-17 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:43:27] Production.INFO: ==29926== Releasing lock... [2025-01-17 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:43:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-17 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:44:05 [end_date_ymd] => 2025-01-17 12:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:44:05' and `end` < '2025-01-17 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-17 12:44:20] Production.INFO: count ==5001 [2025-01-17 12:44:22] Production.ERROR: pbx CDR StartTime 2025-01-17 09:44:05 - End Time 2025-01-17 12:44:05 [2025-01-17 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268379', 'tblTempUsageDetail_20' ) start [2025-01-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268379', 'tblTempUsageDetail_20' ) end [2025-01-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268379', 'tblTempVendorCDR_20' ) start [2025-01-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268379', 'tblTempVendorCDR_20' ) end [2025-01-17 12:44:22] Production.INFO: ProcessCDR(1,14268379,1,1,2) [2025-01-17 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268379', 'tblTempUsageDetail_20' ) start [2025-01-17 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268379', 'tblTempUsageDetail_20' ) end [2025-01-17 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:44:25] Production.INFO: ==30006== Releasing lock... [2025-01-17 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:44:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:45:05 [end_date_ymd] => 2025-01-17 12:45:05 [RateCDR] => 1 ) [2025-01-17 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:45:05' and `end` < '2025-01-17 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:45:19] Production.INFO: count ==4996 [2025-01-17 12:45:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:45:05 - End Time 2025-01-17 12:45:05 [2025-01-17 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268384', 'tblTempUsageDetail_20' ) start [2025-01-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268384', 'tblTempUsageDetail_20' ) end [2025-01-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268384', 'tblTempVendorCDR_20' ) start [2025-01-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268384', 'tblTempVendorCDR_20' ) end [2025-01-17 12:45:21] Production.INFO: ProcessCDR(1,14268384,1,1,2) [2025-01-17 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268384', 'tblTempUsageDetail_20' ) start [2025-01-17 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268384', 'tblTempUsageDetail_20' ) end [2025-01-17 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:45:26] Production.INFO: ==30093== Releasing lock... [2025-01-17 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:45:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:46:05 [end_date_ymd] => 2025-01-17 12:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:46:05' and `end` < '2025-01-17 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-17 12:46:18] Production.INFO: count ==5010 [2025-01-17 12:46:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:46:05 - End Time 2025-01-17 12:46:05 [2025-01-17 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268389', 'tblTempUsageDetail_20' ) start [2025-01-17 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268389', 'tblTempUsageDetail_20' ) end [2025-01-17 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268389', 'tblTempVendorCDR_20' ) start [2025-01-17 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268389', 'tblTempVendorCDR_20' ) end [2025-01-17 12:46:20] Production.INFO: ProcessCDR(1,14268389,1,1,2) [2025-01-17 12:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268389', 'tblTempUsageDetail_20' ) start [2025-01-17 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268389', 'tblTempUsageDetail_20' ) end [2025-01-17 12:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:46:25] Production.INFO: ==30192== Releasing lock... [2025-01-17 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:46:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:47:05 [end_date_ymd] => 2025-01-17 12:47:05 [RateCDR] => 1 ) [2025-01-17 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:47:05' and `end` < '2025-01-17 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:47:20] Production.INFO: count ==5021 [2025-01-17 12:47:22] Production.ERROR: pbx CDR StartTime 2025-01-17 09:47:05 - End Time 2025-01-17 12:47:05 [2025-01-17 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268394', 'tblTempUsageDetail_20' ) start [2025-01-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268394', 'tblTempUsageDetail_20' ) end [2025-01-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268394', 'tblTempVendorCDR_20' ) start [2025-01-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268394', 'tblTempVendorCDR_20' ) end [2025-01-17 12:47:22] Production.INFO: ProcessCDR(1,14268394,1,1,2) [2025-01-17 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268394', 'tblTempUsageDetail_20' ) start [2025-01-17 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268394', 'tblTempUsageDetail_20' ) end [2025-01-17 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:47:27] Production.INFO: ==30297== Releasing lock... [2025-01-17 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:47:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:48:05 [end_date_ymd] => 2025-01-17 12:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:48:05' and `end` < '2025-01-17 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-17 12:48:22] Production.INFO: count ==5031 [2025-01-17 12:48:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:48:05 - End Time 2025-01-17 12:48:05 [2025-01-17 12:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268399', 'tblTempUsageDetail_20' ) start [2025-01-17 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268399', 'tblTempUsageDetail_20' ) end [2025-01-17 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268399', 'tblTempVendorCDR_20' ) start [2025-01-17 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268399', 'tblTempVendorCDR_20' ) end [2025-01-17 12:48:24] Production.INFO: ProcessCDR(1,14268399,1,1,2) [2025-01-17 12:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268399', 'tblTempUsageDetail_20' ) start [2025-01-17 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268399', 'tblTempUsageDetail_20' ) end [2025-01-17 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:48:29] Production.INFO: ==30394== Releasing lock... [2025-01-17 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:48:29] Production.INFO: 66 MB #Memory Used# [2025-01-17 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:49:05 [end_date_ymd] => 2025-01-17 12:49:05 [RateCDR] => 1 ) [2025-01-17 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:49:05' and `end` < '2025-01-17 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:49:18] Production.INFO: count ==5025 [2025-01-17 12:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:49:05 - End Time 2025-01-17 12:49:05 [2025-01-17 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268404', 'tblTempUsageDetail_20' ) start [2025-01-17 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268404', 'tblTempUsageDetail_20' ) end [2025-01-17 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268404', 'tblTempVendorCDR_20' ) start [2025-01-17 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268404', 'tblTempVendorCDR_20' ) end [2025-01-17 12:49:21] Production.INFO: ProcessCDR(1,14268404,1,1,2) [2025-01-17 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268404', 'tblTempUsageDetail_20' ) start [2025-01-17 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268404', 'tblTempUsageDetail_20' ) end [2025-01-17 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:49:25] Production.INFO: ==30493== Releasing lock... [2025-01-17 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:49:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:50:05 [end_date_ymd] => 2025-01-17 12:50:05 [RateCDR] => 1 ) [2025-01-17 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:50:05' and `end` < '2025-01-17 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:50:26] Production.INFO: count ==5024 [2025-01-17 12:50:28] Production.ERROR: pbx CDR StartTime 2025-01-17 09:50:05 - End Time 2025-01-17 12:50:05 [2025-01-17 12:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268409', 'tblTempUsageDetail_20' ) start [2025-01-17 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268409', 'tblTempUsageDetail_20' ) end [2025-01-17 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268409', 'tblTempVendorCDR_20' ) start [2025-01-17 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268409', 'tblTempVendorCDR_20' ) end [2025-01-17 12:50:28] Production.INFO: ProcessCDR(1,14268409,1,1,2) [2025-01-17 12:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268409', 'tblTempUsageDetail_20' ) start [2025-01-17 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268409', 'tblTempUsageDetail_20' ) end [2025-01-17 12:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:50:34] Production.INFO: ==30593== Releasing lock... [2025-01-17 12:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:50:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:51:05 [end_date_ymd] => 2025-01-17 12:51:05 [RateCDR] => 1 ) [2025-01-17 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:51:05' and `end` < '2025-01-17 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:51:20] Production.INFO: count ==5052 [2025-01-17 12:51:22] Production.ERROR: pbx CDR StartTime 2025-01-17 09:51:05 - End Time 2025-01-17 12:51:05 [2025-01-17 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268415', 'tblTempUsageDetail_20' ) start [2025-01-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268415', 'tblTempUsageDetail_20' ) end [2025-01-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268415', 'tblTempVendorCDR_20' ) start [2025-01-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268415', 'tblTempVendorCDR_20' ) end [2025-01-17 12:51:22] Production.INFO: ProcessCDR(1,14268415,1,1,2) [2025-01-17 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268415', 'tblTempUsageDetail_20' ) start [2025-01-17 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268415', 'tblTempUsageDetail_20' ) end [2025-01-17 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:51:27] Production.INFO: ==30693== Releasing lock... [2025-01-17 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:51:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:52:05 [end_date_ymd] => 2025-01-17 12:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:52:05' and `end` < '2025-01-17 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-17 12:52:21] Production.INFO: count ==5063 [2025-01-17 12:52:23] Production.ERROR: pbx CDR StartTime 2025-01-17 09:52:05 - End Time 2025-01-17 12:52:05 [2025-01-17 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268420', 'tblTempUsageDetail_20' ) start [2025-01-17 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268420', 'tblTempUsageDetail_20' ) end [2025-01-17 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268420', 'tblTempVendorCDR_20' ) start [2025-01-17 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268420', 'tblTempVendorCDR_20' ) end [2025-01-17 12:52:23] Production.INFO: ProcessCDR(1,14268420,1,1,2) [2025-01-17 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268420', 'tblTempUsageDetail_20' ) start [2025-01-17 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268420', 'tblTempUsageDetail_20' ) end [2025-01-17 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:52:28] Production.INFO: ==30797== Releasing lock... [2025-01-17 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:52:28] Production.INFO: 66 MB #Memory Used# [2025-01-17 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:53:05 [end_date_ymd] => 2025-01-17 12:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:53:05' and `end` < '2025-01-17 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-17 12:53:22] Production.INFO: count ==5051 [2025-01-17 12:53:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:53:05 - End Time 2025-01-17 12:53:05 [2025-01-17 12:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268425', 'tblTempUsageDetail_20' ) start [2025-01-17 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268425', 'tblTempUsageDetail_20' ) end [2025-01-17 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268425', 'tblTempVendorCDR_20' ) start [2025-01-17 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268425', 'tblTempVendorCDR_20' ) end [2025-01-17 12:53:24] Production.INFO: ProcessCDR(1,14268425,1,1,2) [2025-01-17 12:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268425', 'tblTempUsageDetail_20' ) start [2025-01-17 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268425', 'tblTempUsageDetail_20' ) end [2025-01-17 12:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:53:29] Production.INFO: ==30895== Releasing lock... [2025-01-17 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:53:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:54:05 [end_date_ymd] => 2025-01-17 12:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:54:05' and `end` < '2025-01-17 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-17 12:54:19] Production.INFO: count ==5058 [2025-01-17 12:54:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:54:05 - End Time 2025-01-17 12:54:05 [2025-01-17 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268430', 'tblTempUsageDetail_20' ) start [2025-01-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268430', 'tblTempUsageDetail_20' ) end [2025-01-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268430', 'tblTempVendorCDR_20' ) start [2025-01-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268430', 'tblTempVendorCDR_20' ) end [2025-01-17 12:54:21] Production.INFO: ProcessCDR(1,14268430,1,1,2) [2025-01-17 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268430', 'tblTempUsageDetail_20' ) start [2025-01-17 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268430', 'tblTempUsageDetail_20' ) end [2025-01-17 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:54:26] Production.INFO: ==31057== Releasing lock... [2025-01-17 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:54:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:55:05 [end_date_ymd] => 2025-01-17 12:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:55:05' and `end` < '2025-01-17 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:55:22] Production.INFO: count ==5057 [2025-01-17 12:55:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:55:05 - End Time 2025-01-17 12:55:05 [2025-01-17 12:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268435', 'tblTempUsageDetail_20' ) start [2025-01-17 12:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268435', 'tblTempUsageDetail_20' ) end [2025-01-17 12:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268435', 'tblTempVendorCDR_20' ) start [2025-01-17 12:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268435', 'tblTempVendorCDR_20' ) end [2025-01-17 12:55:24] Production.INFO: ProcessCDR(1,14268435,1,1,2) [2025-01-17 12:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268435', 'tblTempUsageDetail_20' ) start [2025-01-17 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268435', 'tblTempUsageDetail_20' ) end [2025-01-17 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:55:27] Production.INFO: ==31155== Releasing lock... [2025-01-17 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:55:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:56:05 [end_date_ymd] => 2025-01-17 12:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:56:05' and `end` < '2025-01-17 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-17 12:56:19] Production.INFO: count ==5097 [2025-01-17 12:56:21] Production.ERROR: pbx CDR StartTime 2025-01-17 09:56:05 - End Time 2025-01-17 12:56:05 [2025-01-17 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268440', 'tblTempUsageDetail_20' ) start [2025-01-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268440', 'tblTempUsageDetail_20' ) end [2025-01-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268440', 'tblTempVendorCDR_20' ) start [2025-01-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268440', 'tblTempVendorCDR_20' ) end [2025-01-17 12:56:21] Production.INFO: ProcessCDR(1,14268440,1,1,2) [2025-01-17 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268440', 'tblTempUsageDetail_20' ) start [2025-01-17 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268440', 'tblTempUsageDetail_20' ) end [2025-01-17 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:56:25] Production.INFO: ==31254== Releasing lock... [2025-01-17 12:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:56:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:57:05 [end_date_ymd] => 2025-01-17 12:57:05 [RateCDR] => 1 ) [2025-01-17 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 09:57:05' and `end` < '2025-01-17 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 12:57:22] Production.INFO: count ==5099 [2025-01-17 12:57:24] Production.ERROR: pbx CDR StartTime 2025-01-17 09:57:05 - End Time 2025-01-17 12:57:05 [2025-01-17 12:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268443', 'tblTempUsageDetail_20' ) start [2025-01-17 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268443', 'tblTempUsageDetail_20' ) end [2025-01-17 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268443', 'tblTempVendorCDR_20' ) start [2025-01-17 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268443', 'tblTempVendorCDR_20' ) end [2025-01-17 12:57:24] Production.INFO: ProcessCDR(1,14268443,1,1,2) [2025-01-17 12:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268443', 'tblTempUsageDetail_20' ) start [2025-01-17 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268443', 'tblTempUsageDetail_20' ) end [2025-01-17 12:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:57:30] Production.INFO: ==31351== Releasing lock... [2025-01-17 12:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:57:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:58:05 [end_date_ymd] => 2025-01-17 12:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:58:05' and `end` < '2025-01-17 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-17 12:58:18] Production.INFO: count ==5107 [2025-01-17 12:58:20] Production.ERROR: pbx CDR StartTime 2025-01-17 09:58:05 - End Time 2025-01-17 12:58:05 [2025-01-17 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268450', 'tblTempUsageDetail_20' ) start [2025-01-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268450', 'tblTempUsageDetail_20' ) end [2025-01-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268450', 'tblTempVendorCDR_20' ) start [2025-01-17 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268450', 'tblTempVendorCDR_20' ) end [2025-01-17 12:58:20] Production.INFO: ProcessCDR(1,14268450,1,1,2) [2025-01-17 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268450', 'tblTempUsageDetail_20' ) start [2025-01-17 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268450', 'tblTempUsageDetail_20' ) end [2025-01-17 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:58:26] Production.INFO: ==31451== Releasing lock... [2025-01-17 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 09:59:05 [end_date_ymd] => 2025-01-17 12:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 09:59:05' and `end` < '2025-01-17 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-17 12:59:21] Production.INFO: count ==5115 [2025-01-17 12:59:23] Production.ERROR: pbx CDR StartTime 2025-01-17 09:59:05 - End Time 2025-01-17 12:59:05 [2025-01-17 12:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268455', 'tblTempUsageDetail_20' ) start [2025-01-17 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268455', 'tblTempUsageDetail_20' ) end [2025-01-17 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268455', 'tblTempVendorCDR_20' ) start [2025-01-17 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268455', 'tblTempVendorCDR_20' ) end [2025-01-17 12:59:23] Production.INFO: ProcessCDR(1,14268455,1,1,2) [2025-01-17 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268455', 'tblTempUsageDetail_20' ) start [2025-01-17 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268455', 'tblTempUsageDetail_20' ) end [2025-01-17 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 12:59:28] Production.INFO: ==31550== Releasing lock... [2025-01-17 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 12:59:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:00:06 [end_date_ymd] => 2025-01-17 13:00:06 [RateCDR] => 1 ) [2025-01-17 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:00:06' and `end` < '2025-01-17 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:00:21] Production.INFO: count ==5117 [2025-01-17 13:00:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:00:06 - End Time 2025-01-17 13:00:06 [2025-01-17 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268461', 'tblTempUsageDetail_20' ) start [2025-01-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268461', 'tblTempUsageDetail_20' ) end [2025-01-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268461', 'tblTempVendorCDR_20' ) start [2025-01-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268461', 'tblTempVendorCDR_20' ) end [2025-01-17 13:00:23] Production.INFO: ProcessCDR(1,14268461,1,1,2) [2025-01-17 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268461', 'tblTempUsageDetail_20' ) start [2025-01-17 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268461', 'tblTempUsageDetail_20' ) end [2025-01-17 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:00:28] Production.INFO: ==31651== Releasing lock... [2025-01-17 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:00:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:01:04 [end_date_ymd] => 2025-01-17 13:01:04 [RateCDR] => 1 ) [2025-01-17 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:01:04' and `end` < '2025-01-17 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:01:34] Production.INFO: count ==5206 [2025-01-17 13:01:36] Production.ERROR: pbx CDR StartTime 2025-01-17 10:01:04 - End Time 2025-01-17 13:01:04 [2025-01-17 13:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268466', 'tblTempUsageDetail_20' ) start [2025-01-17 13:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268466', 'tblTempUsageDetail_20' ) end [2025-01-17 13:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268466', 'tblTempVendorCDR_20' ) start [2025-01-17 13:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268466', 'tblTempVendorCDR_20' ) end [2025-01-17 13:01:37] Production.INFO: ProcessCDR(1,14268466,1,1,2) [2025-01-17 13:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268466', 'tblTempUsageDetail_20' ) start [2025-01-17 13:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268466', 'tblTempUsageDetail_20' ) end [2025-01-17 13:01:42] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:01:42] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:01:42] Production.INFO: ==31762== Releasing lock... [2025-01-17 13:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:01:42] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:02:05 [end_date_ymd] => 2025-01-17 13:02:05 [RateCDR] => 1 ) [2025-01-17 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:02:05' and `end` < '2025-01-17 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:02:25] Production.INFO: count ==5211 [2025-01-17 13:02:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:02:05 - End Time 2025-01-17 13:02:05 [2025-01-17 13:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268471', 'tblTempUsageDetail_20' ) start [2025-01-17 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268471', 'tblTempUsageDetail_20' ) end [2025-01-17 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268471', 'tblTempVendorCDR_20' ) start [2025-01-17 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268471', 'tblTempVendorCDR_20' ) end [2025-01-17 13:02:27] Production.INFO: ProcessCDR(1,14268471,1,1,2) [2025-01-17 13:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268471', 'tblTempUsageDetail_20' ) start [2025-01-17 13:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268471', 'tblTempUsageDetail_20' ) end [2025-01-17 13:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:02:32] Production.INFO: ==31862== Releasing lock... [2025-01-17 13:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:02:32] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:03:05 [end_date_ymd] => 2025-01-17 13:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:03:05' and `end` < '2025-01-17 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-17 13:03:19] Production.INFO: count ==5219 [2025-01-17 13:03:21] Production.ERROR: pbx CDR StartTime 2025-01-17 10:03:05 - End Time 2025-01-17 13:03:05 [2025-01-17 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268476', 'tblTempUsageDetail_20' ) start [2025-01-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268476', 'tblTempUsageDetail_20' ) end [2025-01-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268476', 'tblTempVendorCDR_20' ) start [2025-01-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268476', 'tblTempVendorCDR_20' ) end [2025-01-17 13:03:21] Production.INFO: ProcessCDR(1,14268476,1,1,2) [2025-01-17 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268476', 'tblTempUsageDetail_20' ) start [2025-01-17 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268476', 'tblTempUsageDetail_20' ) end [2025-01-17 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:03:25] Production.INFO: ==31932== Releasing lock... [2025-01-17 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:03:25] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:04:05 [end_date_ymd] => 2025-01-17 13:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:04:05' and `end` < '2025-01-17 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-17 13:04:20] Production.INFO: count ==5241 [2025-01-17 13:04:22] Production.ERROR: pbx CDR StartTime 2025-01-17 10:04:05 - End Time 2025-01-17 13:04:05 [2025-01-17 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268481', 'tblTempUsageDetail_20' ) start [2025-01-17 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268481', 'tblTempUsageDetail_20' ) end [2025-01-17 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268481', 'tblTempVendorCDR_20' ) start [2025-01-17 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268481', 'tblTempVendorCDR_20' ) end [2025-01-17 13:04:22] Production.INFO: ProcessCDR(1,14268481,1,1,2) [2025-01-17 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268481', 'tblTempUsageDetail_20' ) start [2025-01-17 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268481', 'tblTempUsageDetail_20' ) end [2025-01-17 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:04:27] Production.INFO: ==32002== Releasing lock... [2025-01-17 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:04:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:05:06 [end_date_ymd] => 2025-01-17 13:05:06 [RateCDR] => 1 ) [2025-01-17 13: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-17 10:05:06' and `end` < '2025-01-17 13: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-17 13:05:21] Production.INFO: count ==5241 [2025-01-17 13:05:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:05:06 - End Time 2025-01-17 13:05:06 [2025-01-17 13:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268486', 'tblTempUsageDetail_20' ) start [2025-01-17 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268486', 'tblTempUsageDetail_20' ) end [2025-01-17 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268486', 'tblTempVendorCDR_20' ) start [2025-01-17 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268486', 'tblTempVendorCDR_20' ) end [2025-01-17 13:05:23] Production.INFO: ProcessCDR(1,14268486,1,1,2) [2025-01-17 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268486', 'tblTempUsageDetail_20' ) start [2025-01-17 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268486', 'tblTempUsageDetail_20' ) end [2025-01-17 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:05:28] Production.INFO: ==32074== Releasing lock... [2025-01-17 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:05:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:06:05 [end_date_ymd] => 2025-01-17 13:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:06:05' and `end` < '2025-01-17 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-17 13:06:21] Production.INFO: count ==5230 [2025-01-17 13:06:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:06:05 - End Time 2025-01-17 13:06:05 [2025-01-17 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268491', 'tblTempUsageDetail_20' ) start [2025-01-17 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268491', 'tblTempUsageDetail_20' ) end [2025-01-17 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268491', 'tblTempVendorCDR_20' ) start [2025-01-17 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268491', 'tblTempVendorCDR_20' ) end [2025-01-17 13:06:23] Production.INFO: ProcessCDR(1,14268491,1,1,2) [2025-01-17 13:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268491', 'tblTempUsageDetail_20' ) start [2025-01-17 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268491', 'tblTempUsageDetail_20' ) end [2025-01-17 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:06:29] Production.INFO: ==32144== Releasing lock... [2025-01-17 13:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:06:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:07:05 [end_date_ymd] => 2025-01-17 13:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:07:05' and `end` < '2025-01-17 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-17 13:07:21] Production.INFO: count ==5200 [2025-01-17 13:07:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:07:05 - End Time 2025-01-17 13:07:05 [2025-01-17 13:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268496', 'tblTempUsageDetail_20' ) start [2025-01-17 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268496', 'tblTempUsageDetail_20' ) end [2025-01-17 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268496', 'tblTempVendorCDR_20' ) start [2025-01-17 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268496', 'tblTempVendorCDR_20' ) end [2025-01-17 13:07:23] Production.INFO: ProcessCDR(1,14268496,1,1,2) [2025-01-17 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268496', 'tblTempUsageDetail_20' ) start [2025-01-17 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268496', 'tblTempUsageDetail_20' ) end [2025-01-17 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:07:28] Production.INFO: ==32216== Releasing lock... [2025-01-17 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:07:28] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:08:05 [end_date_ymd] => 2025-01-17 13:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:08:05' and `end` < '2025-01-17 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-17 13:08:34] Production.INFO: count ==5203 [2025-01-17 13:08:35] Production.ERROR: pbx CDR StartTime 2025-01-17 10:08:05 - End Time 2025-01-17 13:08:05 [2025-01-17 13:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268501', 'tblTempUsageDetail_20' ) start [2025-01-17 13:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268501', 'tblTempUsageDetail_20' ) end [2025-01-17 13:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268501', 'tblTempVendorCDR_20' ) start [2025-01-17 13:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268501', 'tblTempVendorCDR_20' ) end [2025-01-17 13:08:36] Production.INFO: ProcessCDR(1,14268501,1,1,2) [2025-01-17 13:08:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:08:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268501', 'tblTempUsageDetail_20' ) start [2025-01-17 13:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268501', 'tblTempUsageDetail_20' ) end [2025-01-17 13:08:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:08:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:08:40] Production.INFO: ==32286== Releasing lock... [2025-01-17 13:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:08:40] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:09:06 [end_date_ymd] => 2025-01-17 13:09:06 [RateCDR] => 1 ) [2025-01-17 13: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-17 10:09:06' and `end` < '2025-01-17 13: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-17 13:09:25] Production.INFO: count ==5214 [2025-01-17 13:09:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:09:06 - End Time 2025-01-17 13:09:06 [2025-01-17 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268506', 'tblTempUsageDetail_20' ) start [2025-01-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268506', 'tblTempUsageDetail_20' ) end [2025-01-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268506', 'tblTempVendorCDR_20' ) start [2025-01-17 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268506', 'tblTempVendorCDR_20' ) end [2025-01-17 13:09:27] Production.INFO: ProcessCDR(1,14268506,1,1,2) [2025-01-17 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268506', 'tblTempUsageDetail_20' ) start [2025-01-17 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268506', 'tblTempUsageDetail_20' ) end [2025-01-17 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:09:32] Production.INFO: ==32358== Releasing lock... [2025-01-17 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:09:32] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:10:05 [end_date_ymd] => 2025-01-17 13:10:05 [RateCDR] => 1 ) [2025-01-17 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:10:05' and `end` < '2025-01-17 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:10:25] Production.INFO: count ==5211 [2025-01-17 13:10:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:10:05 - End Time 2025-01-17 13:10:05 [2025-01-17 13:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268511', 'tblTempUsageDetail_20' ) start [2025-01-17 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268511', 'tblTempUsageDetail_20' ) end [2025-01-17 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268511', 'tblTempVendorCDR_20' ) start [2025-01-17 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268511', 'tblTempVendorCDR_20' ) end [2025-01-17 13:10:27] Production.INFO: ProcessCDR(1,14268511,1,1,2) [2025-01-17 13:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268511', 'tblTempUsageDetail_20' ) start [2025-01-17 13:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268511', 'tblTempUsageDetail_20' ) end [2025-01-17 13:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:10:32] Production.INFO: ==32469== Releasing lock... [2025-01-17 13:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:10:32] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:11:05 [end_date_ymd] => 2025-01-17 13:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:11:05' and `end` < '2025-01-17 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-17 13:11:25] Production.INFO: count ==5192 [2025-01-17 13:11:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:11:05 - End Time 2025-01-17 13:11:05 [2025-01-17 13:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268517', 'tblTempUsageDetail_20' ) start [2025-01-17 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268517', 'tblTempUsageDetail_20' ) end [2025-01-17 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268517', 'tblTempVendorCDR_20' ) start [2025-01-17 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268517', 'tblTempVendorCDR_20' ) end [2025-01-17 13:11:27] Production.INFO: ProcessCDR(1,14268517,1,1,2) [2025-01-17 13:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268517', 'tblTempUsageDetail_20' ) start [2025-01-17 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268517', 'tblTempUsageDetail_20' ) end [2025-01-17 13:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:11:32] Production.INFO: ==32542== Releasing lock... [2025-01-17 13:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:11:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:12:05 [end_date_ymd] => 2025-01-17 13:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:12:05' and `end` < '2025-01-17 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-17 13:12:24] Production.INFO: count ==5180 [2025-01-17 13:12:26] Production.ERROR: pbx CDR StartTime 2025-01-17 10:12:05 - End Time 2025-01-17 13:12:05 [2025-01-17 13:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268522', 'tblTempUsageDetail_20' ) start [2025-01-17 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268522', 'tblTempUsageDetail_20' ) end [2025-01-17 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268522', 'tblTempVendorCDR_20' ) start [2025-01-17 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268522', 'tblTempVendorCDR_20' ) end [2025-01-17 13:12:26] Production.INFO: ProcessCDR(1,14268522,1,1,2) [2025-01-17 13:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268522', 'tblTempUsageDetail_20' ) start [2025-01-17 13:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268522', 'tblTempUsageDetail_20' ) end [2025-01-17 13:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:12:31] Production.INFO: ==32611== Releasing lock... [2025-01-17 13:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:12:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:13:05 [end_date_ymd] => 2025-01-17 13:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:13:05' and `end` < '2025-01-17 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:13:24] Production.INFO: count ==5183 [2025-01-17 13:13:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:13:05 - End Time 2025-01-17 13:13:05 [2025-01-17 13:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268527', 'tblTempUsageDetail_20' ) start [2025-01-17 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268527', 'tblTempUsageDetail_20' ) end [2025-01-17 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268527', 'tblTempVendorCDR_20' ) start [2025-01-17 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268527', 'tblTempVendorCDR_20' ) end [2025-01-17 13:13:27] Production.INFO: ProcessCDR(1,14268527,1,1,2) [2025-01-17 13:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268527', 'tblTempUsageDetail_20' ) start [2025-01-17 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268527', 'tblTempUsageDetail_20' ) end [2025-01-17 13:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:13:32] Production.INFO: ==32682== Releasing lock... [2025-01-17 13:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:13:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:14:05 [end_date_ymd] => 2025-01-17 13:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:14:05' and `end` < '2025-01-17 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-17 13:14:22] Production.INFO: count ==5183 [2025-01-17 13:14:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:14:05 - End Time 2025-01-17 13:14:05 [2025-01-17 13:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268532', 'tblTempUsageDetail_20' ) start [2025-01-17 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268532', 'tblTempUsageDetail_20' ) end [2025-01-17 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268532', 'tblTempVendorCDR_20' ) start [2025-01-17 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268532', 'tblTempVendorCDR_20' ) end [2025-01-17 13:14:24] Production.INFO: ProcessCDR(1,14268532,1,1,2) [2025-01-17 13:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268532', 'tblTempUsageDetail_20' ) start [2025-01-17 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268532', 'tblTempUsageDetail_20' ) end [2025-01-17 13:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:14:29] Production.INFO: ==32753== Releasing lock... [2025-01-17 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:14:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:15:05 [end_date_ymd] => 2025-01-17 13:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:15:05' and `end` < '2025-01-17 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-17 13:15:26] Production.INFO: count ==5175 [2025-01-17 13:15:29] Production.ERROR: pbx CDR StartTime 2025-01-17 10:15:05 - End Time 2025-01-17 13:15:05 [2025-01-17 13:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268537', 'tblTempUsageDetail_20' ) start [2025-01-17 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268537', 'tblTempUsageDetail_20' ) end [2025-01-17 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268537', 'tblTempVendorCDR_20' ) start [2025-01-17 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268537', 'tblTempVendorCDR_20' ) end [2025-01-17 13:15:29] Production.INFO: ProcessCDR(1,14268537,1,1,2) [2025-01-17 13:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268537', 'tblTempUsageDetail_20' ) start [2025-01-17 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268537', 'tblTempUsageDetail_20' ) end [2025-01-17 13:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:15:34] Production.INFO: ==376== Releasing lock... [2025-01-17 13:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:15:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:16:05 [end_date_ymd] => 2025-01-17 13:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:16:05' and `end` < '2025-01-17 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-17 13:16:22] Production.INFO: count ==5164 [2025-01-17 13:16:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:16:05 - End Time 2025-01-17 13:16:05 [2025-01-17 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268542', 'tblTempUsageDetail_20' ) start [2025-01-17 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268542', 'tblTempUsageDetail_20' ) end [2025-01-17 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268542', 'tblTempVendorCDR_20' ) start [2025-01-17 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268542', 'tblTempVendorCDR_20' ) end [2025-01-17 13:16:24] Production.INFO: ProcessCDR(1,14268542,1,1,2) [2025-01-17 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268542', 'tblTempUsageDetail_20' ) start [2025-01-17 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268542', 'tblTempUsageDetail_20' ) end [2025-01-17 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:16:29] Production.INFO: ==453== Releasing lock... [2025-01-17 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:16:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:17:05 [end_date_ymd] => 2025-01-17 13:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:17:05' and `end` < '2025-01-17 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-17 13:17:22] Production.INFO: count ==5144 [2025-01-17 13:17:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:17:05 - End Time 2025-01-17 13:17:05 [2025-01-17 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268547', 'tblTempUsageDetail_20' ) start [2025-01-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268547', 'tblTempUsageDetail_20' ) end [2025-01-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268547', 'tblTempVendorCDR_20' ) start [2025-01-17 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268547', 'tblTempVendorCDR_20' ) end [2025-01-17 13:17:24] Production.INFO: ProcessCDR(1,14268547,1,1,2) [2025-01-17 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268547', 'tblTempUsageDetail_20' ) start [2025-01-17 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268547', 'tblTempUsageDetail_20' ) end [2025-01-17 13:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:17:29] Production.INFO: ==527== Releasing lock... [2025-01-17 13:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:17:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:18:05 [end_date_ymd] => 2025-01-17 13:18:05 [RateCDR] => 1 ) [2025-01-17 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:18:05' and `end` < '2025-01-17 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:18:33] Production.INFO: count ==5147 [2025-01-17 13:18:35] Production.ERROR: pbx CDR StartTime 2025-01-17 10:18:05 - End Time 2025-01-17 13:18:05 [2025-01-17 13:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268552', 'tblTempUsageDetail_20' ) start [2025-01-17 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268552', 'tblTempUsageDetail_20' ) end [2025-01-17 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268552', 'tblTempVendorCDR_20' ) start [2025-01-17 13:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268552', 'tblTempVendorCDR_20' ) end [2025-01-17 13:18:35] Production.INFO: ProcessCDR(1,14268552,1,1,2) [2025-01-17 13:18:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:18:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:18:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:18:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268552', 'tblTempUsageDetail_20' ) start [2025-01-17 13:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268552', 'tblTempUsageDetail_20' ) end [2025-01-17 13:18:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:18:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:18:40] Production.INFO: ==599== Releasing lock... [2025-01-17 13:18:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:18:40] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:19:05 [end_date_ymd] => 2025-01-17 13:19:05 [RateCDR] => 1 ) [2025-01-17 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:19:05' and `end` < '2025-01-17 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:19:25] Production.INFO: count ==5144 [2025-01-17 13:19:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:19:05 - End Time 2025-01-17 13:19:05 [2025-01-17 13:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268557', 'tblTempUsageDetail_20' ) start [2025-01-17 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268557', 'tblTempUsageDetail_20' ) end [2025-01-17 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268557', 'tblTempVendorCDR_20' ) start [2025-01-17 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268557', 'tblTempVendorCDR_20' ) end [2025-01-17 13:19:27] Production.INFO: ProcessCDR(1,14268557,1,1,2) [2025-01-17 13:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268557', 'tblTempUsageDetail_20' ) start [2025-01-17 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268557', 'tblTempUsageDetail_20' ) end [2025-01-17 13:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:19:32] Production.INFO: ==723== Releasing lock... [2025-01-17 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:19:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:20:05 [end_date_ymd] => 2025-01-17 13:20:05 [RateCDR] => 1 ) [2025-01-17 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:20:05' and `end` < '2025-01-17 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:20:24] Production.INFO: count ==5141 [2025-01-17 13:20:26] Production.ERROR: pbx CDR StartTime 2025-01-17 10:20:05 - End Time 2025-01-17 13:20:05 [2025-01-17 13:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268563', 'tblTempUsageDetail_20' ) start [2025-01-17 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268563', 'tblTempUsageDetail_20' ) end [2025-01-17 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268563', 'tblTempVendorCDR_20' ) start [2025-01-17 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268563', 'tblTempVendorCDR_20' ) end [2025-01-17 13:20:26] Production.INFO: ProcessCDR(1,14268563,1,1,2) [2025-01-17 13:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268563', 'tblTempUsageDetail_20' ) start [2025-01-17 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268563', 'tblTempUsageDetail_20' ) end [2025-01-17 13:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:20:30] Production.INFO: ==799== Releasing lock... [2025-01-17 13:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:20:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:21:05 [end_date_ymd] => 2025-01-17 13:21:05 [RateCDR] => 1 ) [2025-01-17 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:21:05' and `end` < '2025-01-17 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:21:22] Production.INFO: count ==5115 [2025-01-17 13:21:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:21:05 - End Time 2025-01-17 13:21:05 [2025-01-17 13:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268568', 'tblTempUsageDetail_20' ) start [2025-01-17 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268568', 'tblTempUsageDetail_20' ) end [2025-01-17 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268568', 'tblTempVendorCDR_20' ) start [2025-01-17 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268568', 'tblTempVendorCDR_20' ) end [2025-01-17 13:21:24] Production.INFO: ProcessCDR(1,14268568,1,1,2) [2025-01-17 13:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268568', 'tblTempUsageDetail_20' ) start [2025-01-17 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268568', 'tblTempUsageDetail_20' ) end [2025-01-17 13:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:21:29] Production.INFO: ==875== Releasing lock... [2025-01-17 13:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:21:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:22:05 [end_date_ymd] => 2025-01-17 13:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:22:05' and `end` < '2025-01-17 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-17 13:22:22] Production.INFO: count ==5131 [2025-01-17 13:22:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:22:05 - End Time 2025-01-17 13:22:05 [2025-01-17 13:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268573', 'tblTempUsageDetail_20' ) start [2025-01-17 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268573', 'tblTempUsageDetail_20' ) end [2025-01-17 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268573', 'tblTempVendorCDR_20' ) start [2025-01-17 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268573', 'tblTempVendorCDR_20' ) end [2025-01-17 13:22:24] Production.INFO: ProcessCDR(1,14268573,1,1,2) [2025-01-17 13:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268573', 'tblTempUsageDetail_20' ) start [2025-01-17 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268573', 'tblTempUsageDetail_20' ) end [2025-01-17 13:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:22:30] Production.INFO: ==948== Releasing lock... [2025-01-17 13:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:22:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:23:05 [end_date_ymd] => 2025-01-17 13:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:23:05' and `end` < '2025-01-17 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-17 13:23:19] Production.INFO: count ==5123 [2025-01-17 13:23:21] Production.ERROR: pbx CDR StartTime 2025-01-17 10:23:05 - End Time 2025-01-17 13:23:05 [2025-01-17 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268578', 'tblTempUsageDetail_20' ) start [2025-01-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268578', 'tblTempUsageDetail_20' ) end [2025-01-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268578', 'tblTempVendorCDR_20' ) start [2025-01-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268578', 'tblTempVendorCDR_20' ) end [2025-01-17 13:23:21] Production.INFO: ProcessCDR(1,14268578,1,1,2) [2025-01-17 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268578', 'tblTempUsageDetail_20' ) start [2025-01-17 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268578', 'tblTempUsageDetail_20' ) end [2025-01-17 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:23:26] Production.INFO: ==1021== Releasing lock... [2025-01-17 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:23:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:24:06 [end_date_ymd] => 2025-01-17 13:24:06 [RateCDR] => 1 ) [2025-01-17 13: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-17 10:24:06' and `end` < '2025-01-17 13: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-17 13:24:24] Production.INFO: count ==5118 [2025-01-17 13:24:26] Production.ERROR: pbx CDR StartTime 2025-01-17 10:24:06 - End Time 2025-01-17 13:24:06 [2025-01-17 13:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268583', 'tblTempUsageDetail_20' ) start [2025-01-17 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268583', 'tblTempUsageDetail_20' ) end [2025-01-17 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268583', 'tblTempVendorCDR_20' ) start [2025-01-17 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268583', 'tblTempVendorCDR_20' ) end [2025-01-17 13:24:26] Production.INFO: ProcessCDR(1,14268583,1,1,2) [2025-01-17 13:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268583', 'tblTempUsageDetail_20' ) start [2025-01-17 13:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268583', 'tblTempUsageDetail_20' ) end [2025-01-17 13:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:24:31] Production.INFO: ==1092== Releasing lock... [2025-01-17 13:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:24:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:25:05 [end_date_ymd] => 2025-01-17 13:25:05 [RateCDR] => 1 ) [2025-01-17 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:25:05' and `end` < '2025-01-17 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:25:18] Production.INFO: count ==5121 [2025-01-17 13:25:20] Production.ERROR: pbx CDR StartTime 2025-01-17 10:25:05 - End Time 2025-01-17 13:25:05 [2025-01-17 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268588', 'tblTempUsageDetail_20' ) start [2025-01-17 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268588', 'tblTempUsageDetail_20' ) end [2025-01-17 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268588', 'tblTempVendorCDR_20' ) start [2025-01-17 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268588', 'tblTempVendorCDR_20' ) end [2025-01-17 13:25:20] Production.INFO: ProcessCDR(1,14268588,1,1,2) [2025-01-17 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268588', 'tblTempUsageDetail_20' ) start [2025-01-17 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268588', 'tblTempUsageDetail_20' ) end [2025-01-17 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:25:23] Production.INFO: ==1207== Releasing lock... [2025-01-17 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:25:23] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:26:05 [end_date_ymd] => 2025-01-17 13:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:26:05' and `end` < '2025-01-17 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-17 13:26:18] Production.INFO: count ==5114 [2025-01-17 13:26:20] Production.ERROR: pbx CDR StartTime 2025-01-17 10:26:05 - End Time 2025-01-17 13:26:05 [2025-01-17 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268593', 'tblTempUsageDetail_20' ) start [2025-01-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268593', 'tblTempUsageDetail_20' ) end [2025-01-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268593', 'tblTempVendorCDR_20' ) start [2025-01-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268593', 'tblTempVendorCDR_20' ) end [2025-01-17 13:26:21] Production.INFO: ProcessCDR(1,14268593,1,1,2) [2025-01-17 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268593', 'tblTempUsageDetail_20' ) start [2025-01-17 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268593', 'tblTempUsageDetail_20' ) end [2025-01-17 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:26:26] Production.INFO: ==1290== Releasing lock... [2025-01-17 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:26:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:27:05 [end_date_ymd] => 2025-01-17 13:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:27:05' and `end` < '2025-01-17 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-17 13:27:33] Production.INFO: count ==5128 [2025-01-17 13:27:35] Production.ERROR: pbx CDR StartTime 2025-01-17 10:27:05 - End Time 2025-01-17 13:27:05 [2025-01-17 13:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268598', 'tblTempUsageDetail_20' ) start [2025-01-17 13:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268598', 'tblTempUsageDetail_20' ) end [2025-01-17 13:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268598', 'tblTempVendorCDR_20' ) start [2025-01-17 13:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268598', 'tblTempVendorCDR_20' ) end [2025-01-17 13:27:35] Production.INFO: ProcessCDR(1,14268598,1,1,2) [2025-01-17 13:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:27:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268598', 'tblTempUsageDetail_20' ) start [2025-01-17 13:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268598', 'tblTempUsageDetail_20' ) end [2025-01-17 13:27:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:27:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:27:40] Production.INFO: ==1361== Releasing lock... [2025-01-17 13:27:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:27:40] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:28:05 [end_date_ymd] => 2025-01-17 13:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:28:05' and `end` < '2025-01-17 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-17 13:28:23] Production.INFO: count ==5133 [2025-01-17 13:28:25] Production.ERROR: pbx CDR StartTime 2025-01-17 10:28:05 - End Time 2025-01-17 13:28:05 [2025-01-17 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268603', 'tblTempUsageDetail_20' ) start [2025-01-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268603', 'tblTempUsageDetail_20' ) end [2025-01-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268603', 'tblTempVendorCDR_20' ) start [2025-01-17 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268603', 'tblTempVendorCDR_20' ) end [2025-01-17 13:28:25] Production.INFO: ProcessCDR(1,14268603,1,1,2) [2025-01-17 13:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268603', 'tblTempUsageDetail_20' ) start [2025-01-17 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268603', 'tblTempUsageDetail_20' ) end [2025-01-17 13:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:28:30] Production.INFO: ==1434== Releasing lock... [2025-01-17 13:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:28:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:29:04 [end_date_ymd] => 2025-01-17 13:29:04 [RateCDR] => 1 ) [2025-01-17 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-17 10:29:04' and `end` < '2025-01-17 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:29:18] Production.INFO: count ==5132 [2025-01-17 13:29:20] Production.ERROR: pbx CDR StartTime 2025-01-17 10:29:04 - End Time 2025-01-17 13:29:04 [2025-01-17 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268608', 'tblTempUsageDetail_20' ) start [2025-01-17 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268608', 'tblTempUsageDetail_20' ) end [2025-01-17 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268608', 'tblTempVendorCDR_20' ) start [2025-01-17 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268608', 'tblTempVendorCDR_20' ) end [2025-01-17 13:29:21] Production.INFO: ProcessCDR(1,14268608,1,1,2) [2025-01-17 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268608', 'tblTempUsageDetail_20' ) start [2025-01-17 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268608', 'tblTempUsageDetail_20' ) end [2025-01-17 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:29:26] Production.INFO: ==1535== Releasing lock... [2025-01-17 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:29:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:30:06 [end_date_ymd] => 2025-01-17 13:30:06 [RateCDR] => 1 ) [2025-01-17 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:30:06' and `end` < '2025-01-17 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:30:20] Production.INFO: count ==5125 [2025-01-17 13:30:22] Production.ERROR: pbx CDR StartTime 2025-01-17 10:30:06 - End Time 2025-01-17 13:30:06 [2025-01-17 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268613', 'tblTempUsageDetail_20' ) start [2025-01-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268613', 'tblTempUsageDetail_20' ) end [2025-01-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268613', 'tblTempVendorCDR_20' ) start [2025-01-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268613', 'tblTempVendorCDR_20' ) end [2025-01-17 13:30:22] Production.INFO: ProcessCDR(1,14268613,1,1,2) [2025-01-17 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268613', 'tblTempUsageDetail_20' ) start [2025-01-17 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268613', 'tblTempUsageDetail_20' ) end [2025-01-17 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:30:27] Production.INFO: ==1614== Releasing lock... [2025-01-17 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:30:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:31:04 [end_date_ymd] => 2025-01-17 13:31:04 [RateCDR] => 1 ) [2025-01-17 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:31:04' and `end` < '2025-01-17 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:31:21] Production.INFO: count ==5136 [2025-01-17 13:31:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:31:04 - End Time 2025-01-17 13:31:04 [2025-01-17 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268619', 'tblTempUsageDetail_20' ) start [2025-01-17 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268619', 'tblTempUsageDetail_20' ) end [2025-01-17 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268619', 'tblTempVendorCDR_20' ) start [2025-01-17 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268619', 'tblTempVendorCDR_20' ) end [2025-01-17 13:31:23] Production.INFO: ProcessCDR(1,14268619,1,1,2) [2025-01-17 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268619', 'tblTempUsageDetail_20' ) start [2025-01-17 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268619', 'tblTempUsageDetail_20' ) end [2025-01-17 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:31:28] Production.INFO: ==1692== Releasing lock... [2025-01-17 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:31:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:32:05 [end_date_ymd] => 2025-01-17 13:32:05 [RateCDR] => 1 ) [2025-01-17 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:32:05' and `end` < '2025-01-17 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:32:20] Production.INFO: count ==5132 [2025-01-17 13:32:22] Production.ERROR: pbx CDR StartTime 2025-01-17 10:32:05 - End Time 2025-01-17 13:32:05 [2025-01-17 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268624', 'tblTempUsageDetail_20' ) start [2025-01-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268624', 'tblTempUsageDetail_20' ) end [2025-01-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268624', 'tblTempVendorCDR_20' ) start [2025-01-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268624', 'tblTempVendorCDR_20' ) end [2025-01-17 13:32:22] Production.INFO: ProcessCDR(1,14268624,1,1,2) [2025-01-17 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268624', 'tblTempUsageDetail_20' ) start [2025-01-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268624', 'tblTempUsageDetail_20' ) end [2025-01-17 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:32:27] Production.INFO: ==1764== Releasing lock... [2025-01-17 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:32:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:33:04 [end_date_ymd] => 2025-01-17 13:33:04 [RateCDR] => 1 ) [2025-01-17 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:33:04' and `end` < '2025-01-17 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:33:18] Production.INFO: count ==5130 [2025-01-17 13:33:20] Production.ERROR: pbx CDR StartTime 2025-01-17 10:33:04 - End Time 2025-01-17 13:33:04 [2025-01-17 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268629', 'tblTempUsageDetail_20' ) start [2025-01-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268629', 'tblTempUsageDetail_20' ) end [2025-01-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268629', 'tblTempVendorCDR_20' ) start [2025-01-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268629', 'tblTempVendorCDR_20' ) end [2025-01-17 13:33:20] Production.INFO: ProcessCDR(1,14268629,1,1,2) [2025-01-17 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268629', 'tblTempUsageDetail_20' ) start [2025-01-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268629', 'tblTempUsageDetail_20' ) end [2025-01-17 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:33:25] Production.INFO: ==1837== Releasing lock... [2025-01-17 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:33:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:34:05 [end_date_ymd] => 2025-01-17 13:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:34:05' and `end` < '2025-01-17 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-17 13:34:19] Production.INFO: count ==5146 [2025-01-17 13:34:21] Production.ERROR: pbx CDR StartTime 2025-01-17 10:34:05 - End Time 2025-01-17 13:34:05 [2025-01-17 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268634', 'tblTempUsageDetail_20' ) start [2025-01-17 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268634', 'tblTempUsageDetail_20' ) end [2025-01-17 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268634', 'tblTempVendorCDR_20' ) start [2025-01-17 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268634', 'tblTempVendorCDR_20' ) end [2025-01-17 13:34:22] Production.INFO: ProcessCDR(1,14268634,1,1,2) [2025-01-17 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268634', 'tblTempUsageDetail_20' ) start [2025-01-17 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268634', 'tblTempUsageDetail_20' ) end [2025-01-17 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:34:26] Production.INFO: ==1909== Releasing lock... [2025-01-17 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:34:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:35:05 [end_date_ymd] => 2025-01-17 13:35:05 [RateCDR] => 1 ) [2025-01-17 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:35:05' and `end` < '2025-01-17 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:35:26] Production.INFO: count ==5162 [2025-01-17 13:35:28] Production.ERROR: pbx CDR StartTime 2025-01-17 10:35:05 - End Time 2025-01-17 13:35:05 [2025-01-17 13:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268639', 'tblTempUsageDetail_20' ) start [2025-01-17 13:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268639', 'tblTempUsageDetail_20' ) end [2025-01-17 13:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268639', 'tblTempVendorCDR_20' ) start [2025-01-17 13:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268639', 'tblTempVendorCDR_20' ) end [2025-01-17 13:35:29] Production.INFO: ProcessCDR(1,14268639,1,1,2) [2025-01-17 13:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268639', 'tblTempUsageDetail_20' ) start [2025-01-17 13:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268639', 'tblTempUsageDetail_20' ) end [2025-01-17 13:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:35:34] Production.INFO: ==1980== Releasing lock... [2025-01-17 13:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:35:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:36:05 [end_date_ymd] => 2025-01-17 13:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:36:05' and `end` < '2025-01-17 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-17 13:36:22] Production.INFO: count ==5167 [2025-01-17 13:36:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:36:05 - End Time 2025-01-17 13:36:05 [2025-01-17 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268644', 'tblTempUsageDetail_20' ) start [2025-01-17 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268644', 'tblTempUsageDetail_20' ) end [2025-01-17 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268644', 'tblTempVendorCDR_20' ) start [2025-01-17 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268644', 'tblTempVendorCDR_20' ) end [2025-01-17 13:36:24] Production.INFO: ProcessCDR(1,14268644,1,1,2) [2025-01-17 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268644', 'tblTempUsageDetail_20' ) start [2025-01-17 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268644', 'tblTempUsageDetail_20' ) end [2025-01-17 13:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:36:29] Production.INFO: ==2051== Releasing lock... [2025-01-17 13:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:36:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:37:05 [end_date_ymd] => 2025-01-17 13:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:37:05' and `end` < '2025-01-17 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-17 13:37:23] Production.INFO: count ==5178 [2025-01-17 13:37:25] Production.ERROR: pbx CDR StartTime 2025-01-17 10:37:05 - End Time 2025-01-17 13:37:05 [2025-01-17 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268649', 'tblTempUsageDetail_20' ) start [2025-01-17 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268649', 'tblTempUsageDetail_20' ) end [2025-01-17 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268649', 'tblTempVendorCDR_20' ) start [2025-01-17 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268649', 'tblTempVendorCDR_20' ) end [2025-01-17 13:37:25] Production.INFO: ProcessCDR(1,14268649,1,1,2) [2025-01-17 13:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268649', 'tblTempUsageDetail_20' ) start [2025-01-17 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268649', 'tblTempUsageDetail_20' ) end [2025-01-17 13:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:37:31] Production.INFO: ==2122== Releasing lock... [2025-01-17 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:37:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:38:05 [end_date_ymd] => 2025-01-17 13:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:38:05' and `end` < '2025-01-17 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-17 13:38:22] Production.INFO: count ==5178 [2025-01-17 13:38:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:38:05 - End Time 2025-01-17 13:38:05 [2025-01-17 13:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268654', 'tblTempUsageDetail_20' ) start [2025-01-17 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268654', 'tblTempUsageDetail_20' ) end [2025-01-17 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268654', 'tblTempVendorCDR_20' ) start [2025-01-17 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268654', 'tblTempVendorCDR_20' ) end [2025-01-17 13:38:24] Production.INFO: ProcessCDR(1,14268654,1,1,2) [2025-01-17 13:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268654', 'tblTempUsageDetail_20' ) start [2025-01-17 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268654', 'tblTempUsageDetail_20' ) end [2025-01-17 13:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:38:30] Production.INFO: ==2192== Releasing lock... [2025-01-17 13:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:38:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:39:05 [end_date_ymd] => 2025-01-17 13:39:05 [RateCDR] => 1 ) [2025-01-17 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:39:05' and `end` < '2025-01-17 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:39:27] Production.INFO: count ==5185 [2025-01-17 13:39:29] Production.ERROR: pbx CDR StartTime 2025-01-17 10:39:05 - End Time 2025-01-17 13:39:05 [2025-01-17 13:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268659', 'tblTempUsageDetail_20' ) start [2025-01-17 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268659', 'tblTempUsageDetail_20' ) end [2025-01-17 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268659', 'tblTempVendorCDR_20' ) start [2025-01-17 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268659', 'tblTempVendorCDR_20' ) end [2025-01-17 13:39:29] Production.INFO: ProcessCDR(1,14268659,1,1,2) [2025-01-17 13:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268659', 'tblTempUsageDetail_20' ) start [2025-01-17 13:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268659', 'tblTempUsageDetail_20' ) end [2025-01-17 13:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:39:33] Production.INFO: ==2265== Releasing lock... [2025-01-17 13:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:39:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:40:06 [end_date_ymd] => 2025-01-17 13:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 10:40:06' and `end` < '2025-01-17 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-17 13:40:25] Production.INFO: count ==5163 [2025-01-17 13:40:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:40:06 - End Time 2025-01-17 13:40:06 [2025-01-17 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268665', 'tblTempUsageDetail_20' ) start [2025-01-17 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268665', 'tblTempUsageDetail_20' ) end [2025-01-17 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268665', 'tblTempVendorCDR_20' ) start [2025-01-17 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268665', 'tblTempVendorCDR_20' ) end [2025-01-17 13:40:27] Production.INFO: ProcessCDR(1,14268665,1,1,2) [2025-01-17 13:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268665', 'tblTempUsageDetail_20' ) start [2025-01-17 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268665', 'tblTempUsageDetail_20' ) end [2025-01-17 13:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:40:31] Production.INFO: ==2338== Releasing lock... [2025-01-17 13:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:40:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:41:05 [end_date_ymd] => 2025-01-17 13:41:05 [RateCDR] => 1 ) [2025-01-17 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:41:05' and `end` < '2025-01-17 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:41:20] Production.INFO: count ==5144 [2025-01-17 13:41:22] Production.ERROR: pbx CDR StartTime 2025-01-17 10:41:05 - End Time 2025-01-17 13:41:05 [2025-01-17 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268669', 'tblTempUsageDetail_20' ) start [2025-01-17 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268669', 'tblTempUsageDetail_20' ) end [2025-01-17 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268669', 'tblTempVendorCDR_20' ) start [2025-01-17 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268669', 'tblTempVendorCDR_20' ) end [2025-01-17 13:41:23] Production.INFO: ProcessCDR(1,14268669,1,1,2) [2025-01-17 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268669', 'tblTempUsageDetail_20' ) start [2025-01-17 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268669', 'tblTempUsageDetail_20' ) end [2025-01-17 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:41:28] Production.INFO: ==2449== Releasing lock... [2025-01-17 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:41:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:42:05 [end_date_ymd] => 2025-01-17 13:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:42:05' and `end` < '2025-01-17 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-17 13:42:20] Production.INFO: count ==5181 [2025-01-17 13:42:22] Production.ERROR: pbx CDR StartTime 2025-01-17 10:42:05 - End Time 2025-01-17 13:42:05 [2025-01-17 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268675', 'tblTempUsageDetail_20' ) start [2025-01-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268675', 'tblTempUsageDetail_20' ) end [2025-01-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268675', 'tblTempVendorCDR_20' ) start [2025-01-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268675', 'tblTempVendorCDR_20' ) end [2025-01-17 13:42:22] Production.INFO: ProcessCDR(1,14268675,1,1,2) [2025-01-17 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268675', 'tblTempUsageDetail_20' ) start [2025-01-17 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268675', 'tblTempUsageDetail_20' ) end [2025-01-17 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:42:27] Production.INFO: ==2521== Releasing lock... [2025-01-17 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:42:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:43:05 [end_date_ymd] => 2025-01-17 13:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:43:05' and `end` < '2025-01-17 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-17 13:43:26] Production.INFO: count ==5168 [2025-01-17 13:43:28] Production.ERROR: pbx CDR StartTime 2025-01-17 10:43:05 - End Time 2025-01-17 13:43:05 [2025-01-17 13:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268680', 'tblTempUsageDetail_20' ) start [2025-01-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268680', 'tblTempUsageDetail_20' ) end [2025-01-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268680', 'tblTempVendorCDR_20' ) start [2025-01-17 13:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268680', 'tblTempVendorCDR_20' ) end [2025-01-17 13:43:28] Production.INFO: ProcessCDR(1,14268680,1,1,2) [2025-01-17 13:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268680', 'tblTempUsageDetail_20' ) start [2025-01-17 13:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268680', 'tblTempUsageDetail_20' ) end [2025-01-17 13:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:43:31] Production.INFO: ==2592== Releasing lock... [2025-01-17 13:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:43:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:44:04 [end_date_ymd] => 2025-01-17 13:44:04 [RateCDR] => 1 ) [2025-01-17 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:44:04' and `end` < '2025-01-17 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-17 13:44:22] Production.INFO: count ==5188 [2025-01-17 13:44:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:44:04 - End Time 2025-01-17 13:44:04 [2025-01-17 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268685', 'tblTempUsageDetail_20' ) start [2025-01-17 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268685', 'tblTempUsageDetail_20' ) end [2025-01-17 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268685', 'tblTempVendorCDR_20' ) start [2025-01-17 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268685', 'tblTempVendorCDR_20' ) end [2025-01-17 13:44:24] Production.INFO: ProcessCDR(1,14268685,1,1,2) [2025-01-17 13:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268685', 'tblTempUsageDetail_20' ) start [2025-01-17 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268685', 'tblTempUsageDetail_20' ) end [2025-01-17 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:44:29] Production.INFO: ==2665== Releasing lock... [2025-01-17 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:44:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:45:05 [end_date_ymd] => 2025-01-17 13:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:45:05' and `end` < '2025-01-17 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-17 13:45:25] Production.INFO: count ==5190 [2025-01-17 13:45:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:45:05 - End Time 2025-01-17 13:45:05 [2025-01-17 13:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268690', 'tblTempUsageDetail_20' ) start [2025-01-17 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268690', 'tblTempUsageDetail_20' ) end [2025-01-17 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268690', 'tblTempVendorCDR_20' ) start [2025-01-17 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268690', 'tblTempVendorCDR_20' ) end [2025-01-17 13:45:28] Production.INFO: ProcessCDR(1,14268690,1,1,2) [2025-01-17 13:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268690', 'tblTempUsageDetail_20' ) start [2025-01-17 13:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268690', 'tblTempUsageDetail_20' ) end [2025-01-17 13:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:45:32] Production.INFO: ==2737== Releasing lock... [2025-01-17 13:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:45:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:46:05 [end_date_ymd] => 2025-01-17 13:46:05 [RateCDR] => 1 ) [2025-01-17 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:46:05' and `end` < '2025-01-17 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:46:21] Production.INFO: count ==5214 [2025-01-17 13:46:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:46:05 - End Time 2025-01-17 13:46:05 [2025-01-17 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268695', 'tblTempUsageDetail_20' ) start [2025-01-17 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268695', 'tblTempUsageDetail_20' ) end [2025-01-17 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268695', 'tblTempVendorCDR_20' ) start [2025-01-17 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268695', 'tblTempVendorCDR_20' ) end [2025-01-17 13:46:24] Production.INFO: ProcessCDR(1,14268695,1,1,2) [2025-01-17 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268695', 'tblTempUsageDetail_20' ) start [2025-01-17 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268695', 'tblTempUsageDetail_20' ) end [2025-01-17 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:46:29] Production.INFO: ==2813== Releasing lock... [2025-01-17 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:46:29] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:47:05 [end_date_ymd] => 2025-01-17 13:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:47:05' and `end` < '2025-01-17 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-17 13:47:21] Production.INFO: count ==5217 [2025-01-17 13:47:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:47:05 - End Time 2025-01-17 13:47:05 [2025-01-17 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268700', 'tblTempUsageDetail_20' ) start [2025-01-17 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268700', 'tblTempUsageDetail_20' ) end [2025-01-17 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268700', 'tblTempVendorCDR_20' ) start [2025-01-17 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268700', 'tblTempVendorCDR_20' ) end [2025-01-17 13:47:23] Production.INFO: ProcessCDR(1,14268700,1,1,2) [2025-01-17 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268700', 'tblTempUsageDetail_20' ) start [2025-01-17 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268700', 'tblTempUsageDetail_20' ) end [2025-01-17 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:47:28] Production.INFO: ==2884== Releasing lock... [2025-01-17 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:47:28] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:48:05 [end_date_ymd] => 2025-01-17 13:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:48:05' and `end` < '2025-01-17 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-17 13:48:21] Production.INFO: count ==5217 [2025-01-17 13:48:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:48:05 - End Time 2025-01-17 13:48:05 [2025-01-17 13:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268705', 'tblTempUsageDetail_20' ) start [2025-01-17 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268705', 'tblTempUsageDetail_20' ) end [2025-01-17 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268705', 'tblTempVendorCDR_20' ) start [2025-01-17 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268705', 'tblTempVendorCDR_20' ) end [2025-01-17 13:48:24] Production.INFO: ProcessCDR(1,14268705,1,1,2) [2025-01-17 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268705', 'tblTempUsageDetail_20' ) start [2025-01-17 13:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268705', 'tblTempUsageDetail_20' ) end [2025-01-17 13:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:48:29] Production.INFO: ==2953== Releasing lock... [2025-01-17 13:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:48:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:49:05 [end_date_ymd] => 2025-01-17 13:49:05 [RateCDR] => 1 ) [2025-01-17 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:49:05' and `end` < '2025-01-17 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:49:21] Production.INFO: count ==5224 [2025-01-17 13:49:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:49:05 - End Time 2025-01-17 13:49:05 [2025-01-17 13:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268710', 'tblTempUsageDetail_20' ) start [2025-01-17 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268710', 'tblTempUsageDetail_20' ) end [2025-01-17 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268710', 'tblTempVendorCDR_20' ) start [2025-01-17 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268710', 'tblTempVendorCDR_20' ) end [2025-01-17 13:49:24] Production.INFO: ProcessCDR(1,14268710,1,1,2) [2025-01-17 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268710', 'tblTempUsageDetail_20' ) start [2025-01-17 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268710', 'tblTempUsageDetail_20' ) end [2025-01-17 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:49:29] Production.INFO: ==3024== Releasing lock... [2025-01-17 13:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:49:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:50:05 [end_date_ymd] => 2025-01-17 13:50:05 [RateCDR] => 1 ) [2025-01-17 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:50:05' and `end` < '2025-01-17 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:50:38] Production.INFO: count ==5235 [2025-01-17 13:50:40] Production.ERROR: pbx CDR StartTime 2025-01-17 10:50:05 - End Time 2025-01-17 13:50:05 [2025-01-17 13:50:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268716', 'tblTempUsageDetail_20' ) start [2025-01-17 13:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268716', 'tblTempUsageDetail_20' ) end [2025-01-17 13:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268716', 'tblTempVendorCDR_20' ) start [2025-01-17 13:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268716', 'tblTempVendorCDR_20' ) end [2025-01-17 13:50:40] Production.INFO: ProcessCDR(1,14268716,1,1,2) [2025-01-17 13:50:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:50:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:50:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:50:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:50:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268716', 'tblTempUsageDetail_20' ) start [2025-01-17 13:50:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268716', 'tblTempUsageDetail_20' ) end [2025-01-17 13:50:45] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:50:45] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:50:45] Production.INFO: ==3098== Releasing lock... [2025-01-17 13:50:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:50:45] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:51:05 [end_date_ymd] => 2025-01-17 13:51:05 [RateCDR] => 1 ) [2025-01-17 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:51:05' and `end` < '2025-01-17 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:51:26] Production.INFO: count ==5235 [2025-01-17 13:51:28] Production.ERROR: pbx CDR StartTime 2025-01-17 10:51:05 - End Time 2025-01-17 13:51:05 [2025-01-17 13:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268721', 'tblTempUsageDetail_20' ) start [2025-01-17 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268721', 'tblTempUsageDetail_20' ) end [2025-01-17 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268721', 'tblTempVendorCDR_20' ) start [2025-01-17 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268721', 'tblTempVendorCDR_20' ) end [2025-01-17 13:51:29] Production.INFO: ProcessCDR(1,14268721,1,1,2) [2025-01-17 13:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268721', 'tblTempUsageDetail_20' ) start [2025-01-17 13:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268721', 'tblTempUsageDetail_20' ) end [2025-01-17 13:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:51:34] Production.INFO: ==3172== Releasing lock... [2025-01-17 13:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:51:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:52:06 [end_date_ymd] => 2025-01-17 13:52:06 [RateCDR] => 1 ) [2025-01-17 13: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-17 10:52:06' and `end` < '2025-01-17 13: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-17 13:52:24] Production.INFO: count ==5240 [2025-01-17 13:52:26] Production.ERROR: pbx CDR StartTime 2025-01-17 10:52:06 - End Time 2025-01-17 13:52:06 [2025-01-17 13:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268726', 'tblTempUsageDetail_20' ) start [2025-01-17 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268726', 'tblTempUsageDetail_20' ) end [2025-01-17 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268726', 'tblTempVendorCDR_20' ) start [2025-01-17 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268726', 'tblTempVendorCDR_20' ) end [2025-01-17 13:52:26] Production.INFO: ProcessCDR(1,14268726,1,1,2) [2025-01-17 13:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268726', 'tblTempUsageDetail_20' ) start [2025-01-17 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268726', 'tblTempUsageDetail_20' ) end [2025-01-17 13:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:52:31] Production.INFO: ==3242== Releasing lock... [2025-01-17 13:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:52:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:53:05 [end_date_ymd] => 2025-01-17 13:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:53:05' and `end` < '2025-01-17 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-17 13:53:25] Production.INFO: count ==5244 [2025-01-17 13:53:27] Production.ERROR: pbx CDR StartTime 2025-01-17 10:53:05 - End Time 2025-01-17 13:53:05 [2025-01-17 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268731', 'tblTempUsageDetail_20' ) start [2025-01-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268731', 'tblTempUsageDetail_20' ) end [2025-01-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268731', 'tblTempVendorCDR_20' ) start [2025-01-17 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268731', 'tblTempVendorCDR_20' ) end [2025-01-17 13:53:27] Production.INFO: ProcessCDR(1,14268731,1,1,2) [2025-01-17 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268731', 'tblTempUsageDetail_20' ) start [2025-01-17 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268731', 'tblTempUsageDetail_20' ) end [2025-01-17 13:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:53:33] Production.INFO: ==3313== Releasing lock... [2025-01-17 13:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:53:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:54:05 [end_date_ymd] => 2025-01-17 13:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:54:05' and `end` < '2025-01-17 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-17 13:54:22] Production.INFO: count ==5250 [2025-01-17 13:54:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:54:05 - End Time 2025-01-17 13:54:05 [2025-01-17 13:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268736', 'tblTempUsageDetail_20' ) start [2025-01-17 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268736', 'tblTempUsageDetail_20' ) end [2025-01-17 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268736', 'tblTempVendorCDR_20' ) start [2025-01-17 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268736', 'tblTempVendorCDR_20' ) end [2025-01-17 13:54:24] Production.INFO: ProcessCDR(1,14268736,1,1,2) [2025-01-17 13:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268736', 'tblTempUsageDetail_20' ) start [2025-01-17 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268736', 'tblTempUsageDetail_20' ) end [2025-01-17 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:54:28] Production.INFO: ==3383== Releasing lock... [2025-01-17 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:54:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:55:04 [end_date_ymd] => 2025-01-17 13:55:04 [RateCDR] => 1 ) [2025-01-17 13: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-17 10:55:04' and `end` < '2025-01-17 13: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-17 13:55:23] Production.INFO: count ==5220 [2025-01-17 13:55:25] Production.ERROR: pbx CDR StartTime 2025-01-17 10:55:04 - End Time 2025-01-17 13:55:04 [2025-01-17 13:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268741', 'tblTempUsageDetail_20' ) start [2025-01-17 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268741', 'tblTempUsageDetail_20' ) end [2025-01-17 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268741', 'tblTempVendorCDR_20' ) start [2025-01-17 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268741', 'tblTempVendorCDR_20' ) end [2025-01-17 13:55:25] Production.INFO: ProcessCDR(1,14268741,1,1,2) [2025-01-17 13:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268741', 'tblTempUsageDetail_20' ) start [2025-01-17 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268741', 'tblTempUsageDetail_20' ) end [2025-01-17 13:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:55:30] Production.INFO: ==3453== Releasing lock... [2025-01-17 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:55:30] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:56:05 [end_date_ymd] => 2025-01-17 13:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:56:05' and `end` < '2025-01-17 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-17 13:56:21] Production.INFO: count ==5214 [2025-01-17 13:56:23] Production.ERROR: pbx CDR StartTime 2025-01-17 10:56:05 - End Time 2025-01-17 13:56:05 [2025-01-17 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268746', 'tblTempUsageDetail_20' ) start [2025-01-17 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268746', 'tblTempUsageDetail_20' ) end [2025-01-17 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268746', 'tblTempVendorCDR_20' ) start [2025-01-17 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268746', 'tblTempVendorCDR_20' ) end [2025-01-17 13:56:23] Production.INFO: ProcessCDR(1,14268746,1,1,2) [2025-01-17 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268746', 'tblTempUsageDetail_20' ) start [2025-01-17 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268746', 'tblTempUsageDetail_20' ) end [2025-01-17 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:56:26] Production.INFO: ==3565== Releasing lock... [2025-01-17 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:56:26] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:57:05 [end_date_ymd] => 2025-01-17 13:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 10:57:05' and `end` < '2025-01-17 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-17 13:57:23] Production.INFO: count ==5232 [2025-01-17 13:57:25] Production.ERROR: pbx CDR StartTime 2025-01-17 10:57:05 - End Time 2025-01-17 13:57:05 [2025-01-17 13:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268751', 'tblTempUsageDetail_20' ) start [2025-01-17 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268751', 'tblTempUsageDetail_20' ) end [2025-01-17 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268751', 'tblTempVendorCDR_20' ) start [2025-01-17 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268751', 'tblTempVendorCDR_20' ) end [2025-01-17 13:57:25] Production.INFO: ProcessCDR(1,14268751,1,1,2) [2025-01-17 13:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268751', 'tblTempUsageDetail_20' ) start [2025-01-17 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268751', 'tblTempUsageDetail_20' ) end [2025-01-17 13:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:57:30] Production.INFO: ==3635== Releasing lock... [2025-01-17 13:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:57:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-17 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:58:05 [end_date_ymd] => 2025-01-17 13:58:05 [RateCDR] => 1 ) [2025-01-17 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:58:05' and `end` < '2025-01-17 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:58:22] Production.INFO: count ==5190 [2025-01-17 13:58:24] Production.ERROR: pbx CDR StartTime 2025-01-17 10:58:05 - End Time 2025-01-17 13:58:05 [2025-01-17 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268756', 'tblTempUsageDetail_20' ) start [2025-01-17 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268756', 'tblTempUsageDetail_20' ) end [2025-01-17 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268756', 'tblTempVendorCDR_20' ) start [2025-01-17 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268756', 'tblTempVendorCDR_20' ) end [2025-01-17 13:58:24] Production.INFO: ProcessCDR(1,14268756,1,1,2) [2025-01-17 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268756', 'tblTempUsageDetail_20' ) start [2025-01-17 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268756', 'tblTempUsageDetail_20' ) end [2025-01-17 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:58:29] Production.INFO: ==3707== Releasing lock... [2025-01-17 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:58:29] Production.INFO: 67 MB #Memory Used# [2025-01-17 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 10:59:04 [end_date_ymd] => 2025-01-17 13:59:04 [RateCDR] => 1 ) [2025-01-17 13:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 10:59:04' and `end` < '2025-01-17 13:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 13:59:18] Production.INFO: count ==5162 [2025-01-17 13:59:20] Production.ERROR: pbx CDR StartTime 2025-01-17 10:59:04 - End Time 2025-01-17 13:59:04 [2025-01-17 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268761', 'tblTempUsageDetail_20' ) start [2025-01-17 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268761', 'tblTempUsageDetail_20' ) end [2025-01-17 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268761', 'tblTempVendorCDR_20' ) start [2025-01-17 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268761', 'tblTempVendorCDR_20' ) end [2025-01-17 13:59:20] Production.INFO: ProcessCDR(1,14268761,1,1,2) [2025-01-17 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268761', 'tblTempUsageDetail_20' ) start [2025-01-17 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268761', 'tblTempUsageDetail_20' ) end [2025-01-17 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 13:59:24] Production.INFO: ==3778== Releasing lock... [2025-01-17 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 13:59:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:00:06 [end_date_ymd] => 2025-01-17 14:00:06 [RateCDR] => 1 ) [2025-01-17 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:00:06' and `end` < '2025-01-17 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:00:35] Production.INFO: count ==5167 [2025-01-17 14:00:37] Production.ERROR: pbx CDR StartTime 2025-01-17 11:00:06 - End Time 2025-01-17 14:00:06 [2025-01-17 14:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268767', 'tblTempUsageDetail_20' ) start [2025-01-17 14:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268767', 'tblTempUsageDetail_20' ) end [2025-01-17 14:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268767', 'tblTempVendorCDR_20' ) start [2025-01-17 14:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268767', 'tblTempVendorCDR_20' ) end [2025-01-17 14:00:37] Production.INFO: ProcessCDR(1,14268767,1,1,2) [2025-01-17 14:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:00:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268767', 'tblTempUsageDetail_20' ) start [2025-01-17 14:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268767', 'tblTempUsageDetail_20' ) end [2025-01-17 14:00:42] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:00:42] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:00:42] Production.INFO: ==3851== Releasing lock... [2025-01-17 14:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:00:42] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:01:05 [end_date_ymd] => 2025-01-17 14:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:01:05' and `end` < '2025-01-17 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-17 14:01:28] Production.INFO: count ==5198 [2025-01-17 14:01:30] Production.ERROR: pbx CDR StartTime 2025-01-17 11:01:05 - End Time 2025-01-17 14:01:05 [2025-01-17 14:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268772', 'tblTempUsageDetail_20' ) start [2025-01-17 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268772', 'tblTempUsageDetail_20' ) end [2025-01-17 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268772', 'tblTempVendorCDR_20' ) start [2025-01-17 14:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268772', 'tblTempVendorCDR_20' ) end [2025-01-17 14:01:30] Production.INFO: ProcessCDR(1,14268772,1,1,2) [2025-01-17 14:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268772', 'tblTempUsageDetail_20' ) start [2025-01-17 14:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268772', 'tblTempUsageDetail_20' ) end [2025-01-17 14:01:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:01:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:01:35] Production.INFO: ==3941== Releasing lock... [2025-01-17 14:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:01:35] Production.INFO: 67 MB #Memory Used# [2025-01-17 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:02:05 [end_date_ymd] => 2025-01-17 14:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:02:05' and `end` < '2025-01-17 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-17 14:02:24] Production.INFO: count ==5185 [2025-01-17 14:02:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:02:05 - End Time 2025-01-17 14:02:05 [2025-01-17 14:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268777', 'tblTempUsageDetail_20' ) start [2025-01-17 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268777', 'tblTempUsageDetail_20' ) end [2025-01-17 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268777', 'tblTempVendorCDR_20' ) start [2025-01-17 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268777', 'tblTempVendorCDR_20' ) end [2025-01-17 14:02:26] Production.INFO: ProcessCDR(1,14268777,1,1,2) [2025-01-17 14:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268777', 'tblTempUsageDetail_20' ) start [2025-01-17 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268777', 'tblTempUsageDetail_20' ) end [2025-01-17 14:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:02:31] Production.INFO: ==4010== Releasing lock... [2025-01-17 14:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:02:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:03:05 [end_date_ymd] => 2025-01-17 14:03:05 [RateCDR] => 1 ) [2025-01-17 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:03:05' and `end` < '2025-01-17 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:03:21] Production.INFO: count ==5171 [2025-01-17 14:03:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:03:05 - End Time 2025-01-17 14:03:05 [2025-01-17 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268782', 'tblTempUsageDetail_20' ) start [2025-01-17 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268782', 'tblTempUsageDetail_20' ) end [2025-01-17 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268782', 'tblTempVendorCDR_20' ) start [2025-01-17 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268782', 'tblTempVendorCDR_20' ) end [2025-01-17 14:03:23] Production.INFO: ProcessCDR(1,14268782,1,1,2) [2025-01-17 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268782', 'tblTempUsageDetail_20' ) start [2025-01-17 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268782', 'tblTempUsageDetail_20' ) end [2025-01-17 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:03:28] Production.INFO: ==4081== Releasing lock... [2025-01-17 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:03:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-17 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:04:04 [end_date_ymd] => 2025-01-17 14:04:04 [RateCDR] => 1 ) [2025-01-17 14:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:04:04' and `end` < '2025-01-17 14:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:04:19] Production.INFO: count ==5155 [2025-01-17 14:04:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:04:04 - End Time 2025-01-17 14:04:04 [2025-01-17 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268787', 'tblTempUsageDetail_20' ) start [2025-01-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268787', 'tblTempUsageDetail_20' ) end [2025-01-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268787', 'tblTempVendorCDR_20' ) start [2025-01-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268787', 'tblTempVendorCDR_20' ) end [2025-01-17 14:04:21] Production.INFO: ProcessCDR(1,14268787,1,1,2) [2025-01-17 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268787', 'tblTempUsageDetail_20' ) start [2025-01-17 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268787', 'tblTempUsageDetail_20' ) end [2025-01-17 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:04:25] Production.INFO: ==4154== Releasing lock... [2025-01-17 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:04:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:05:05 [end_date_ymd] => 2025-01-17 14:05:05 [RateCDR] => 1 ) [2025-01-17 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:05:05' and `end` < '2025-01-17 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:05:29] Production.INFO: count ==5149 [2025-01-17 14:05:31] Production.ERROR: pbx CDR StartTime 2025-01-17 11:05:05 - End Time 2025-01-17 14:05:05 [2025-01-17 14:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268792', 'tblTempUsageDetail_20' ) start [2025-01-17 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268792', 'tblTempUsageDetail_20' ) end [2025-01-17 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268792', 'tblTempVendorCDR_20' ) start [2025-01-17 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268792', 'tblTempVendorCDR_20' ) end [2025-01-17 14:05:31] Production.INFO: ProcessCDR(1,14268792,1,1,2) [2025-01-17 14:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268792', 'tblTempUsageDetail_20' ) start [2025-01-17 14:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268792', 'tblTempUsageDetail_20' ) end [2025-01-17 14:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:05:36] Production.INFO: ==4224== Releasing lock... [2025-01-17 14:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:05:36] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:06:04 [end_date_ymd] => 2025-01-17 14:06:04 [RateCDR] => 1 ) [2025-01-17 14:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:06:04' and `end` < '2025-01-17 14:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:06:26] Production.INFO: count ==5134 [2025-01-17 14:06:28] Production.ERROR: pbx CDR StartTime 2025-01-17 11:06:04 - End Time 2025-01-17 14:06:04 [2025-01-17 14:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268797', 'tblTempUsageDetail_20' ) start [2025-01-17 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268797', 'tblTempUsageDetail_20' ) end [2025-01-17 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268797', 'tblTempVendorCDR_20' ) start [2025-01-17 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268797', 'tblTempVendorCDR_20' ) end [2025-01-17 14:06:28] Production.INFO: ProcessCDR(1,14268797,1,1,2) [2025-01-17 14:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268797', 'tblTempUsageDetail_20' ) start [2025-01-17 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268797', 'tblTempUsageDetail_20' ) end [2025-01-17 14:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:06:33] Production.INFO: ==4297== Releasing lock... [2025-01-17 14:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:06:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:07:05 [end_date_ymd] => 2025-01-17 14:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:07:05' and `end` < '2025-01-17 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-17 14:07:21] Production.INFO: count ==5134 [2025-01-17 14:07:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:07:05 - End Time 2025-01-17 14:07:05 [2025-01-17 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268802', 'tblTempUsageDetail_20' ) start [2025-01-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268802', 'tblTempUsageDetail_20' ) end [2025-01-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268802', 'tblTempVendorCDR_20' ) start [2025-01-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268802', 'tblTempVendorCDR_20' ) end [2025-01-17 14:07:23] Production.INFO: ProcessCDR(1,14268802,1,1,2) [2025-01-17 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268802', 'tblTempUsageDetail_20' ) start [2025-01-17 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268802', 'tblTempUsageDetail_20' ) end [2025-01-17 14:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:07:29] Production.INFO: ==4371== Releasing lock... [2025-01-17 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:07:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:08:05 [end_date_ymd] => 2025-01-17 14:08:05 [RateCDR] => 1 ) [2025-01-17 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:08:05' and `end` < '2025-01-17 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:08:21] Production.INFO: count ==5123 [2025-01-17 14:08:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:08:05 - End Time 2025-01-17 14:08:05 [2025-01-17 14:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268807', 'tblTempUsageDetail_20' ) start [2025-01-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268807', 'tblTempUsageDetail_20' ) end [2025-01-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268807', 'tblTempVendorCDR_20' ) start [2025-01-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268807', 'tblTempVendorCDR_20' ) end [2025-01-17 14:08:23] Production.INFO: ProcessCDR(1,14268807,1,1,2) [2025-01-17 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268807', 'tblTempUsageDetail_20' ) start [2025-01-17 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268807', 'tblTempUsageDetail_20' ) end [2025-01-17 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:08:28] Production.INFO: ==4448== Releasing lock... [2025-01-17 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:08:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:09:05 [end_date_ymd] => 2025-01-17 14:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:09:05' and `end` < '2025-01-17 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-17 14:09:21] Production.INFO: count ==5131 [2025-01-17 14:09:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:09:05 - End Time 2025-01-17 14:09:05 [2025-01-17 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268812', 'tblTempUsageDetail_20' ) start [2025-01-17 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268812', 'tblTempUsageDetail_20' ) end [2025-01-17 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268812', 'tblTempVendorCDR_20' ) start [2025-01-17 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268812', 'tblTempVendorCDR_20' ) end [2025-01-17 14:09:23] Production.INFO: ProcessCDR(1,14268812,1,1,2) [2025-01-17 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268812', 'tblTempUsageDetail_20' ) start [2025-01-17 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268812', 'tblTempUsageDetail_20' ) end [2025-01-17 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:09:28] Production.INFO: ==4528== Releasing lock... [2025-01-17 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:09:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:10:06 [end_date_ymd] => 2025-01-17 14:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 11:10:06' and `end` < '2025-01-17 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-17 14:10:24] Production.INFO: count ==5129 [2025-01-17 14:10:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:10:06 - End Time 2025-01-17 14:10:06 [2025-01-17 14:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268818', 'tblTempUsageDetail_20' ) start [2025-01-17 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268818', 'tblTempUsageDetail_20' ) end [2025-01-17 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268818', 'tblTempVendorCDR_20' ) start [2025-01-17 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268818', 'tblTempVendorCDR_20' ) end [2025-01-17 14:10:26] Production.INFO: ProcessCDR(1,14268818,1,1,2) [2025-01-17 14:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268818', 'tblTempUsageDetail_20' ) start [2025-01-17 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268818', 'tblTempUsageDetail_20' ) end [2025-01-17 14:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:10:31] Production.INFO: ==4621== Releasing lock... [2025-01-17 14:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:10:31] Production.INFO: 66.5 MB #Memory Used# [2025-01-17 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:11:05 [end_date_ymd] => 2025-01-17 14:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:11:05' and `end` < '2025-01-17 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-17 14:11:20] Production.INFO: count ==5097 [2025-01-17 14:11:22] Production.ERROR: pbx CDR StartTime 2025-01-17 11:11:05 - End Time 2025-01-17 14:11:05 [2025-01-17 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268823', 'tblTempUsageDetail_20' ) start [2025-01-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268823', 'tblTempUsageDetail_20' ) end [2025-01-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268823', 'tblTempVendorCDR_20' ) start [2025-01-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268823', 'tblTempVendorCDR_20' ) end [2025-01-17 14:11:22] Production.INFO: ProcessCDR(1,14268823,1,1,2) [2025-01-17 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268823', 'tblTempUsageDetail_20' ) start [2025-01-17 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268823', 'tblTempUsageDetail_20' ) end [2025-01-17 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:11:27] Production.INFO: ==4710== Releasing lock... [2025-01-17 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:11:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:12:05 [end_date_ymd] => 2025-01-17 14:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:12:05' and `end` < '2025-01-17 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-17 14:12:25] Production.INFO: count ==5098 [2025-01-17 14:12:27] Production.ERROR: pbx CDR StartTime 2025-01-17 11:12:05 - End Time 2025-01-17 14:12:05 [2025-01-17 14:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268828', 'tblTempUsageDetail_20' ) start [2025-01-17 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268828', 'tblTempUsageDetail_20' ) end [2025-01-17 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268828', 'tblTempVendorCDR_20' ) start [2025-01-17 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268828', 'tblTempVendorCDR_20' ) end [2025-01-17 14:12:27] Production.INFO: ProcessCDR(1,14268828,1,1,2) [2025-01-17 14:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268828', 'tblTempUsageDetail_20' ) start [2025-01-17 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268828', 'tblTempUsageDetail_20' ) end [2025-01-17 14:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:12:32] Production.INFO: ==4831== Releasing lock... [2025-01-17 14:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:12:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 14:13:08] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:13:08 [end_date_ymd] => 2025-01-17 14:13:08 [RateCDR] => 1 ) [2025-01-17 14:13: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-17 11:13:08' and `end` < '2025-01-17 14:13: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-17 14:13:22] Production.INFO: count ==5099 [2025-01-17 14:13:30] Production.ERROR: pbx CDR StartTime 2025-01-17 11:13:08 - End Time 2025-01-17 14:13:08 [2025-01-17 14:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268833', 'tblTempUsageDetail_20' ) start [2025-01-17 14:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268833', 'tblTempUsageDetail_20' ) end [2025-01-17 14:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268833', 'tblTempVendorCDR_20' ) start [2025-01-17 14:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268833', 'tblTempVendorCDR_20' ) end [2025-01-17 14:13:31] Production.INFO: ProcessCDR(1,14268833,1,1,2) [2025-01-17 14:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:13:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:13:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:13:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:13:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268833', 'tblTempUsageDetail_20' ) start [2025-01-17 14:13:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268833', 'tblTempUsageDetail_20' ) end [2025-01-17 14:13:41] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:13:41] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:13:41] Production.INFO: ==4913== Releasing lock... [2025-01-17 14:13:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:13:41] Production.INFO: 66.25 MB #Memory Used# [2025-01-17 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:14:06 [end_date_ymd] => 2025-01-17 14:14:06 [RateCDR] => 1 ) [2025-01-17 14: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-17 11:14:06' and `end` < '2025-01-17 14: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-17 14:14:20] Production.INFO: count ==5063 [2025-01-17 14:14:22] Production.ERROR: pbx CDR StartTime 2025-01-17 11:14:06 - End Time 2025-01-17 14:14:06 [2025-01-17 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268838', 'tblTempUsageDetail_20' ) start [2025-01-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268838', 'tblTempUsageDetail_20' ) end [2025-01-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268838', 'tblTempVendorCDR_20' ) start [2025-01-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268838', 'tblTempVendorCDR_20' ) end [2025-01-17 14:14:22] Production.INFO: ProcessCDR(1,14268838,1,1,2) [2025-01-17 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268838', 'tblTempUsageDetail_20' ) start [2025-01-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268838', 'tblTempUsageDetail_20' ) end [2025-01-17 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:14:27] Production.INFO: ==4986== Releasing lock... [2025-01-17 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:14:27] Production.INFO: 66 MB #Memory Used# [2025-01-17 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:15:05 [end_date_ymd] => 2025-01-17 14:15:05 [RateCDR] => 1 ) [2025-01-17 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:15:05' and `end` < '2025-01-17 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:15:21] Production.INFO: count ==5045 [2025-01-17 14:15:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:15:05 - End Time 2025-01-17 14:15:05 [2025-01-17 14:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268843', 'tblTempUsageDetail_20' ) start [2025-01-17 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268843', 'tblTempUsageDetail_20' ) end [2025-01-17 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268843', 'tblTempVendorCDR_20' ) start [2025-01-17 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268843', 'tblTempVendorCDR_20' ) end [2025-01-17 14:15:23] Production.INFO: ProcessCDR(1,14268843,1,1,2) [2025-01-17 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268843', 'tblTempUsageDetail_20' ) start [2025-01-17 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268843', 'tblTempUsageDetail_20' ) end [2025-01-17 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:15:28] Production.INFO: ==5058== Releasing lock... [2025-01-17 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:15:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:16:05 [end_date_ymd] => 2025-01-17 14:16:05 [RateCDR] => 1 ) [2025-01-17 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:16:05' and `end` < '2025-01-17 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:16:19] Production.INFO: count ==5036 [2025-01-17 14:16:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:16:05 - End Time 2025-01-17 14:16:05 [2025-01-17 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268848', 'tblTempUsageDetail_20' ) start [2025-01-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268848', 'tblTempUsageDetail_20' ) end [2025-01-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268848', 'tblTempVendorCDR_20' ) start [2025-01-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268848', 'tblTempVendorCDR_20' ) end [2025-01-17 14:16:21] Production.INFO: ProcessCDR(1,14268848,1,1,2) [2025-01-17 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268848', 'tblTempUsageDetail_20' ) start [2025-01-17 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268848', 'tblTempUsageDetail_20' ) end [2025-01-17 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:16:26] Production.INFO: ==5135== Releasing lock... [2025-01-17 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-17 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:17:05 [end_date_ymd] => 2025-01-17 14:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:17:05' and `end` < '2025-01-17 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-17 14:17:24] Production.INFO: count ==5021 [2025-01-17 14:17:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:17:05 - End Time 2025-01-17 14:17:05 [2025-01-17 14:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268853', 'tblTempUsageDetail_20' ) start [2025-01-17 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268853', 'tblTempUsageDetail_20' ) end [2025-01-17 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268853', 'tblTempVendorCDR_20' ) start [2025-01-17 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268853', 'tblTempVendorCDR_20' ) end [2025-01-17 14:17:26] Production.INFO: ProcessCDR(1,14268853,1,1,2) [2025-01-17 14:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268853', 'tblTempUsageDetail_20' ) start [2025-01-17 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268853', 'tblTempUsageDetail_20' ) end [2025-01-17 14:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:17:30] Production.INFO: ==5206== Releasing lock... [2025-01-17 14:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:17:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:18:05 [end_date_ymd] => 2025-01-17 14:18:05 [RateCDR] => 1 ) [2025-01-17 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:18:05' and `end` < '2025-01-17 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:18:23] Production.INFO: count ==5003 [2025-01-17 14:18:25] Production.ERROR: pbx CDR StartTime 2025-01-17 11:18:05 - End Time 2025-01-17 14:18:05 [2025-01-17 14:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268858', 'tblTempUsageDetail_20' ) start [2025-01-17 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268858', 'tblTempUsageDetail_20' ) end [2025-01-17 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268858', 'tblTempVendorCDR_20' ) start [2025-01-17 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268858', 'tblTempVendorCDR_20' ) end [2025-01-17 14:18:25] Production.INFO: ProcessCDR(1,14268858,1,1,2) [2025-01-17 14:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268858', 'tblTempUsageDetail_20' ) start [2025-01-17 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268858', 'tblTempUsageDetail_20' ) end [2025-01-17 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:18:31] Production.INFO: ==5278== Releasing lock... [2025-01-17 14:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:18:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:19:05 [end_date_ymd] => 2025-01-17 14:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:19:05' and `end` < '2025-01-17 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-17 14:19:18] Production.INFO: count ==4997 [2025-01-17 14:19:20] Production.ERROR: pbx CDR StartTime 2025-01-17 11:19:05 - End Time 2025-01-17 14:19:05 [2025-01-17 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268863', 'tblTempUsageDetail_20' ) start [2025-01-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268863', 'tblTempUsageDetail_20' ) end [2025-01-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268863', 'tblTempVendorCDR_20' ) start [2025-01-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268863', 'tblTempVendorCDR_20' ) end [2025-01-17 14:19:20] Production.INFO: ProcessCDR(1,14268863,1,1,2) [2025-01-17 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268863', 'tblTempUsageDetail_20' ) start [2025-01-17 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268863', 'tblTempUsageDetail_20' ) end [2025-01-17 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:19:25] Production.INFO: ==5350== Releasing lock... [2025-01-17 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:19:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:20:06 [end_date_ymd] => 2025-01-17 14:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 11:20:06' and `end` < '2025-01-17 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-17 14:20:38] Production.INFO: count ==5005 [2025-01-17 14:20:40] Production.ERROR: pbx CDR StartTime 2025-01-17 11:20:06 - End Time 2025-01-17 14:20:06 [2025-01-17 14:20:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:20:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268869', 'tblTempUsageDetail_20' ) start [2025-01-17 14:20:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268869', 'tblTempUsageDetail_20' ) end [2025-01-17 14:20:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268869', 'tblTempVendorCDR_20' ) start [2025-01-17 14:20:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268869', 'tblTempVendorCDR_20' ) end [2025-01-17 14:20:41] Production.INFO: ProcessCDR(1,14268869,1,1,2) [2025-01-17 14:20:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:20:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:20:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:20:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:20:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268869', 'tblTempUsageDetail_20' ) start [2025-01-17 14:20:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268869', 'tblTempUsageDetail_20' ) end [2025-01-17 14:20:45] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:20:45] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:20:45] Production.INFO: ==5425== Releasing lock... [2025-01-17 14:20:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:20:45] Production.INFO: 65.5 MB #Memory Used# [2025-01-17 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:21:04 [end_date_ymd] => 2025-01-17 14:21:04 [RateCDR] => 1 ) [2025-01-17 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:21:04' and `end` < '2025-01-17 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:21:22] Production.INFO: count ==4973 [2025-01-17 14:21:24] Production.ERROR: pbx CDR StartTime 2025-01-17 11:21:04 - End Time 2025-01-17 14:21:04 [2025-01-17 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268874', 'tblTempUsageDetail_20' ) start [2025-01-17 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268874', 'tblTempUsageDetail_20' ) end [2025-01-17 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268874', 'tblTempVendorCDR_20' ) start [2025-01-17 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268874', 'tblTempVendorCDR_20' ) end [2025-01-17 14:21:24] Production.INFO: ProcessCDR(1,14268874,1,1,2) [2025-01-17 14:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268874', 'tblTempUsageDetail_20' ) start [2025-01-17 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268874', 'tblTempUsageDetail_20' ) end [2025-01-17 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:21:28] Production.INFO: ==5496== Releasing lock... [2025-01-17 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:21:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-17 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:22:05 [end_date_ymd] => 2025-01-17 14:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:22:05' and `end` < '2025-01-17 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-17 14:22:24] Production.INFO: count ==4959 [2025-01-17 14:22:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:22:05 - End Time 2025-01-17 14:22:05 [2025-01-17 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268879', 'tblTempUsageDetail_20' ) start [2025-01-17 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268879', 'tblTempUsageDetail_20' ) end [2025-01-17 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268879', 'tblTempVendorCDR_20' ) start [2025-01-17 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268879', 'tblTempVendorCDR_20' ) end [2025-01-17 14:22:26] Production.INFO: ProcessCDR(1,14268879,1,1,2) [2025-01-17 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268879', 'tblTempUsageDetail_20' ) start [2025-01-17 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268879', 'tblTempUsageDetail_20' ) end [2025-01-17 14:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:22:31] Production.INFO: ==5569== Releasing lock... [2025-01-17 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:22:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-17 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:23:05 [end_date_ymd] => 2025-01-17 14:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:23:05' and `end` < '2025-01-17 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-17 14:23:21] Production.INFO: count ==4943 [2025-01-17 14:23:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:23:05 - End Time 2025-01-17 14:23:05 [2025-01-17 14:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268884', 'tblTempUsageDetail_20' ) start [2025-01-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268884', 'tblTempUsageDetail_20' ) end [2025-01-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268884', 'tblTempVendorCDR_20' ) start [2025-01-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268884', 'tblTempVendorCDR_20' ) end [2025-01-17 14:23:23] Production.INFO: ProcessCDR(1,14268884,1,1,2) [2025-01-17 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268884', 'tblTempUsageDetail_20' ) start [2025-01-17 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268884', 'tblTempUsageDetail_20' ) end [2025-01-17 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:23:28] Production.INFO: ==5640== Releasing lock... [2025-01-17 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:23:28] Production.INFO: 65 MB #Memory Used# [2025-01-17 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:24:05 [end_date_ymd] => 2025-01-17 14:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:24:05' and `end` < '2025-01-17 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-17 14:24:18] Production.INFO: count ==4943 [2025-01-17 14:24:20] Production.ERROR: pbx CDR StartTime 2025-01-17 11:24:05 - End Time 2025-01-17 14:24:05 [2025-01-17 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268889', 'tblTempUsageDetail_20' ) start [2025-01-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268889', 'tblTempUsageDetail_20' ) end [2025-01-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268889', 'tblTempVendorCDR_20' ) start [2025-01-17 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268889', 'tblTempVendorCDR_20' ) end [2025-01-17 14:24:20] Production.INFO: ProcessCDR(1,14268889,1,1,2) [2025-01-17 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268889', 'tblTempUsageDetail_20' ) start [2025-01-17 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268889', 'tblTempUsageDetail_20' ) end [2025-01-17 14:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:24:25] Production.INFO: ==5720== Releasing lock... [2025-01-17 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:24:25] Production.INFO: 65 MB #Memory Used# [2025-01-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:25:05 [end_date_ymd] => 2025-01-17 14:25:05 [RateCDR] => 1 ) [2025-01-17 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:25:05' and `end` < '2025-01-17 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:25:19] Production.INFO: count ==4921 [2025-01-17 14:25:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:25:05 - End Time 2025-01-17 14:25:05 [2025-01-17 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268894', 'tblTempUsageDetail_20' ) start [2025-01-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268894', 'tblTempUsageDetail_20' ) end [2025-01-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268894', 'tblTempVendorCDR_20' ) start [2025-01-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268894', 'tblTempVendorCDR_20' ) end [2025-01-17 14:25:21] Production.INFO: ProcessCDR(1,14268894,1,1,2) [2025-01-17 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268894', 'tblTempUsageDetail_20' ) start [2025-01-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268894', 'tblTempUsageDetail_20' ) end [2025-01-17 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:25:26] Production.INFO: ==5801== Releasing lock... [2025-01-17 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:25:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:26:04 [end_date_ymd] => 2025-01-17 14:26:04 [RateCDR] => 1 ) [2025-01-17 14:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:26:04' and `end` < '2025-01-17 14:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:26:27] Production.INFO: count ==4913 [2025-01-17 14:26:29] Production.ERROR: pbx CDR StartTime 2025-01-17 11:26:04 - End Time 2025-01-17 14:26:04 [2025-01-17 14:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268899', 'tblTempUsageDetail_20' ) start [2025-01-17 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268899', 'tblTempUsageDetail_20' ) end [2025-01-17 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268899', 'tblTempVendorCDR_20' ) start [2025-01-17 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268899', 'tblTempVendorCDR_20' ) end [2025-01-17 14:26:29] Production.INFO: ProcessCDR(1,14268899,1,1,2) [2025-01-17 14:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268899', 'tblTempUsageDetail_20' ) start [2025-01-17 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268899', 'tblTempUsageDetail_20' ) end [2025-01-17 14:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:26:34] Production.INFO: ==5881== Releasing lock... [2025-01-17 14:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:26:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:27:05 [end_date_ymd] => 2025-01-17 14:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:27:05' and `end` < '2025-01-17 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-17 14:27:22] Production.INFO: count ==4894 [2025-01-17 14:27:24] Production.ERROR: pbx CDR StartTime 2025-01-17 11:27:05 - End Time 2025-01-17 14:27:05 [2025-01-17 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268904', 'tblTempUsageDetail_20' ) start [2025-01-17 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268904', 'tblTempUsageDetail_20' ) end [2025-01-17 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268904', 'tblTempVendorCDR_20' ) start [2025-01-17 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268904', 'tblTempVendorCDR_20' ) end [2025-01-17 14:27:24] Production.INFO: ProcessCDR(1,14268904,1,1,2) [2025-01-17 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268904', 'tblTempUsageDetail_20' ) start [2025-01-17 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268904', 'tblTempUsageDetail_20' ) end [2025-01-17 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:27:29] Production.INFO: ==5997== Releasing lock... [2025-01-17 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:27:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:28:04 [end_date_ymd] => 2025-01-17 14:28:04 [RateCDR] => 1 ) [2025-01-17 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-17 11:28:04' and `end` < '2025-01-17 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-17 14:28:21] Production.INFO: count ==4897 [2025-01-17 14:28:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:28:04 - End Time 2025-01-17 14:28:04 [2025-01-17 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268909', 'tblTempUsageDetail_20' ) start [2025-01-17 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268909', 'tblTempUsageDetail_20' ) end [2025-01-17 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268909', 'tblTempVendorCDR_20' ) start [2025-01-17 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268909', 'tblTempVendorCDR_20' ) end [2025-01-17 14:28:23] Production.INFO: ProcessCDR(1,14268909,1,1,2) [2025-01-17 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268909', 'tblTempUsageDetail_20' ) start [2025-01-17 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268909', 'tblTempUsageDetail_20' ) end [2025-01-17 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:28:28] Production.INFO: ==6092== Releasing lock... [2025-01-17 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:28:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-17 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:29:05 [end_date_ymd] => 2025-01-17 14:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:29:05' and `end` < '2025-01-17 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-17 14:29:19] Production.INFO: count ==4881 [2025-01-17 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:29:05 - End Time 2025-01-17 14:29:05 [2025-01-17 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268914', 'tblTempUsageDetail_20' ) start [2025-01-17 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268914', 'tblTempUsageDetail_20' ) end [2025-01-17 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268914', 'tblTempVendorCDR_20' ) start [2025-01-17 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268914', 'tblTempVendorCDR_20' ) end [2025-01-17 14:29:21] Production.INFO: ProcessCDR(1,14268914,1,1,2) [2025-01-17 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268914', 'tblTempUsageDetail_20' ) start [2025-01-17 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268914', 'tblTempUsageDetail_20' ) end [2025-01-17 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:29:25] Production.INFO: ==6177== Releasing lock... [2025-01-17 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:29:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:30:05 [end_date_ymd] => 2025-01-17 14:30:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:30:05' and `end` < '2025-01-17 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-17 14:30:25] Production.INFO: count ==4866 [2025-01-17 14:30:27] Production.ERROR: pbx CDR StartTime 2025-01-17 11:30:05 - End Time 2025-01-17 14:30:05 [2025-01-17 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268920', 'tblTempUsageDetail_20' ) start [2025-01-17 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268920', 'tblTempUsageDetail_20' ) end [2025-01-17 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268920', 'tblTempVendorCDR_20' ) start [2025-01-17 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268920', 'tblTempVendorCDR_20' ) end [2025-01-17 14:30:27] Production.INFO: ProcessCDR(1,14268920,1,1,2) [2025-01-17 14:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268920', 'tblTempUsageDetail_20' ) start [2025-01-17 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268920', 'tblTempUsageDetail_20' ) end [2025-01-17 14:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:30:32] Production.INFO: ==6260== Releasing lock... [2025-01-17 14:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:30:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-17 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:31:05 [end_date_ymd] => 2025-01-17 14:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:31:05' and `end` < '2025-01-17 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-17 14:31:21] Production.INFO: count ==4806 [2025-01-17 14:31:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:31:05 - End Time 2025-01-17 14:31:05 [2025-01-17 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268925', 'tblTempUsageDetail_20' ) start [2025-01-17 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268925', 'tblTempUsageDetail_20' ) end [2025-01-17 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268925', 'tblTempVendorCDR_20' ) start [2025-01-17 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268925', 'tblTempVendorCDR_20' ) end [2025-01-17 14:31:23] Production.INFO: ProcessCDR(1,14268925,1,1,2) [2025-01-17 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268925', 'tblTempUsageDetail_20' ) start [2025-01-17 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268925', 'tblTempUsageDetail_20' ) end [2025-01-17 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:31:27] Production.INFO: ==6351== Releasing lock... [2025-01-17 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:31:27] Production.INFO: 64 MB #Memory Used# [2025-01-17 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:32:05 [end_date_ymd] => 2025-01-17 14:32:05 [RateCDR] => 1 ) [2025-01-17 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:32:05' and `end` < '2025-01-17 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:32:21] Production.INFO: count ==4791 [2025-01-17 14:32:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:32:05 - End Time 2025-01-17 14:32:05 [2025-01-17 14:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268930', 'tblTempUsageDetail_20' ) start [2025-01-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268930', 'tblTempUsageDetail_20' ) end [2025-01-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268930', 'tblTempVendorCDR_20' ) start [2025-01-17 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268930', 'tblTempVendorCDR_20' ) end [2025-01-17 14:32:23] Production.INFO: ProcessCDR(1,14268930,1,1,2) [2025-01-17 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268930', 'tblTempUsageDetail_20' ) start [2025-01-17 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268930', 'tblTempUsageDetail_20' ) end [2025-01-17 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:32:28] Production.INFO: ==6422== Releasing lock... [2025-01-17 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:32:28] Production.INFO: 64 MB #Memory Used# [2025-01-17 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:33:04 [end_date_ymd] => 2025-01-17 14:33:04 [RateCDR] => 1 ) [2025-01-17 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:33:04' and `end` < '2025-01-17 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:33:19] Production.INFO: count ==4761 [2025-01-17 14:33:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:33:04 - End Time 2025-01-17 14:33:04 [2025-01-17 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268935', 'tblTempUsageDetail_20' ) start [2025-01-17 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268935', 'tblTempUsageDetail_20' ) end [2025-01-17 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268935', 'tblTempVendorCDR_20' ) start [2025-01-17 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268935', 'tblTempVendorCDR_20' ) end [2025-01-17 14:33:21] Production.INFO: ProcessCDR(1,14268935,1,1,2) [2025-01-17 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268935', 'tblTempUsageDetail_20' ) start [2025-01-17 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268935', 'tblTempUsageDetail_20' ) end [2025-01-17 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:33:26] Production.INFO: ==6493== Releasing lock... [2025-01-17 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:33:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:34:05 [end_date_ymd] => 2025-01-17 14:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:34:05' and `end` < '2025-01-17 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-17 14:34:18] Production.INFO: count ==4742 [2025-01-17 14:34:20] Production.ERROR: pbx CDR StartTime 2025-01-17 11:34:05 - End Time 2025-01-17 14:34:05 [2025-01-17 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268940', 'tblTempUsageDetail_20' ) start [2025-01-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268940', 'tblTempUsageDetail_20' ) end [2025-01-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268940', 'tblTempVendorCDR_20' ) start [2025-01-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268940', 'tblTempVendorCDR_20' ) end [2025-01-17 14:34:20] Production.INFO: ProcessCDR(1,14268940,1,1,2) [2025-01-17 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268940', 'tblTempUsageDetail_20' ) start [2025-01-17 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268940', 'tblTempUsageDetail_20' ) end [2025-01-17 14:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:34:24] Production.INFO: ==6564== Releasing lock... [2025-01-17 14:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:34:24] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:35:05 [end_date_ymd] => 2025-01-17 14:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:35:05' and `end` < '2025-01-17 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-17 14:35:18] Production.INFO: count ==4729 [2025-01-17 14:35:20] Production.ERROR: pbx CDR StartTime 2025-01-17 11:35:05 - End Time 2025-01-17 14:35:05 [2025-01-17 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268945', 'tblTempUsageDetail_20' ) start [2025-01-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268945', 'tblTempUsageDetail_20' ) end [2025-01-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268945', 'tblTempVendorCDR_20' ) start [2025-01-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268945', 'tblTempVendorCDR_20' ) end [2025-01-17 14:35:20] Production.INFO: ProcessCDR(1,14268945,1,1,2) [2025-01-17 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268945', 'tblTempUsageDetail_20' ) start [2025-01-17 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268945', 'tblTempUsageDetail_20' ) end [2025-01-17 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:35:25] Production.INFO: ==6646== Releasing lock... [2025-01-17 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:35:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:36:05 [end_date_ymd] => 2025-01-17 14:36:05 [RateCDR] => 1 ) [2025-01-17 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:36:05' and `end` < '2025-01-17 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:36:19] Production.INFO: count ==4733 [2025-01-17 14:36:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:36:05 - End Time 2025-01-17 14:36:05 [2025-01-17 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268950', 'tblTempUsageDetail_20' ) start [2025-01-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268950', 'tblTempUsageDetail_20' ) end [2025-01-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268950', 'tblTempVendorCDR_20' ) start [2025-01-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268950', 'tblTempVendorCDR_20' ) end [2025-01-17 14:36:21] Production.INFO: ProcessCDR(1,14268950,1,1,2) [2025-01-17 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268950', 'tblTempUsageDetail_20' ) start [2025-01-17 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268950', 'tblTempUsageDetail_20' ) end [2025-01-17 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:36:26] Production.INFO: ==6718== Releasing lock... [2025-01-17 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:36:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:37:05 [end_date_ymd] => 2025-01-17 14:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:37:05' and `end` < '2025-01-17 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-17 14:37:25] Production.INFO: count ==4725 [2025-01-17 14:37:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:37:05 - End Time 2025-01-17 14:37:05 [2025-01-17 14:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268955', 'tblTempUsageDetail_20' ) start [2025-01-17 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268955', 'tblTempUsageDetail_20' ) end [2025-01-17 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268955', 'tblTempVendorCDR_20' ) start [2025-01-17 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268955', 'tblTempVendorCDR_20' ) end [2025-01-17 14:37:27] Production.INFO: ProcessCDR(1,14268955,1,1,2) [2025-01-17 14:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268955', 'tblTempUsageDetail_20' ) start [2025-01-17 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268955', 'tblTempUsageDetail_20' ) end [2025-01-17 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:37:31] Production.INFO: ==6790== Releasing lock... [2025-01-17 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:37:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:38:05 [end_date_ymd] => 2025-01-17 14:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:38:05' and `end` < '2025-01-17 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-17 14:38:21] Production.INFO: count ==4705 [2025-01-17 14:38:22] Production.ERROR: pbx CDR StartTime 2025-01-17 11:38:05 - End Time 2025-01-17 14:38:05 [2025-01-17 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268960', 'tblTempUsageDetail_20' ) start [2025-01-17 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268960', 'tblTempUsageDetail_20' ) end [2025-01-17 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268960', 'tblTempVendorCDR_20' ) start [2025-01-17 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268960', 'tblTempVendorCDR_20' ) end [2025-01-17 14:38:23] Production.INFO: ProcessCDR(1,14268960,1,1,2) [2025-01-17 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268960', 'tblTempUsageDetail_20' ) start [2025-01-17 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268960', 'tblTempUsageDetail_20' ) end [2025-01-17 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:38:27] Production.INFO: ==6861== Releasing lock... [2025-01-17 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:38:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:39:05 [end_date_ymd] => 2025-01-17 14:39:05 [RateCDR] => 1 ) [2025-01-17 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:39:05' and `end` < '2025-01-17 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:39:19] Production.INFO: count ==4692 [2025-01-17 14:39:20] Production.ERROR: pbx CDR StartTime 2025-01-17 11:39:05 - End Time 2025-01-17 14:39:05 [2025-01-17 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268965', 'tblTempUsageDetail_20' ) start [2025-01-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268965', 'tblTempUsageDetail_20' ) end [2025-01-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268965', 'tblTempVendorCDR_20' ) start [2025-01-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268965', 'tblTempVendorCDR_20' ) end [2025-01-17 14:39:20] Production.INFO: ProcessCDR(1,14268965,1,1,2) [2025-01-17 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268965', 'tblTempUsageDetail_20' ) start [2025-01-17 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268965', 'tblTempUsageDetail_20' ) end [2025-01-17 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:39:25] Production.INFO: ==6932== Releasing lock... [2025-01-17 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:39:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:40:05 [end_date_ymd] => 2025-01-17 14:40:05 [RateCDR] => 1 ) [2025-01-17 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:40:05' and `end` < '2025-01-17 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:40:27] Production.INFO: count ==4676 [2025-01-17 14:40:29] Production.ERROR: pbx CDR StartTime 2025-01-17 11:40:05 - End Time 2025-01-17 14:40:05 [2025-01-17 14:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268970', 'tblTempUsageDetail_20' ) start [2025-01-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268970', 'tblTempUsageDetail_20' ) end [2025-01-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268970', 'tblTempVendorCDR_20' ) start [2025-01-17 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268970', 'tblTempVendorCDR_20' ) end [2025-01-17 14:40:29] Production.INFO: ProcessCDR(1,14268970,1,1,2) [2025-01-17 14:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268970', 'tblTempUsageDetail_20' ) start [2025-01-17 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268970', 'tblTempUsageDetail_20' ) end [2025-01-17 14:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:40:34] Production.INFO: ==7004== Releasing lock... [2025-01-17 14:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:40:34] Production.INFO: 63 MB #Memory Used# [2025-01-17 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:41:05 [end_date_ymd] => 2025-01-17 14:41:05 [RateCDR] => 1 ) [2025-01-17 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:41:05' and `end` < '2025-01-17 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:41:20] Production.INFO: count ==4658 [2025-01-17 14:41:22] Production.ERROR: pbx CDR StartTime 2025-01-17 11:41:05 - End Time 2025-01-17 14:41:05 [2025-01-17 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268976', 'tblTempUsageDetail_20' ) start [2025-01-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268976', 'tblTempUsageDetail_20' ) end [2025-01-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268976', 'tblTempVendorCDR_20' ) start [2025-01-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268976', 'tblTempVendorCDR_20' ) end [2025-01-17 14:41:22] Production.INFO: ProcessCDR(1,14268976,1,1,2) [2025-01-17 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268976', 'tblTempUsageDetail_20' ) start [2025-01-17 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268976', 'tblTempUsageDetail_20' ) end [2025-01-17 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:41:27] Production.INFO: ==7077== Releasing lock... [2025-01-17 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:41:27] Production.INFO: 63 MB #Memory Used# [2025-01-17 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:42:06 [end_date_ymd] => 2025-01-17 14:42:06 [RateCDR] => 1 ) [2025-01-17 14: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-17 11:42:06' and `end` < '2025-01-17 14: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-17 14:42:33] Production.INFO: count ==4642 [2025-01-17 14:42:35] Production.ERROR: pbx CDR StartTime 2025-01-17 11:42:06 - End Time 2025-01-17 14:42:06 [2025-01-17 14:42:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268981', 'tblTempUsageDetail_20' ) start [2025-01-17 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268981', 'tblTempUsageDetail_20' ) end [2025-01-17 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268981', 'tblTempVendorCDR_20' ) start [2025-01-17 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268981', 'tblTempVendorCDR_20' ) end [2025-01-17 14:42:35] Production.INFO: ProcessCDR(1,14268981,1,1,2) [2025-01-17 14:42:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:42:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:42:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:42:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268981', 'tblTempUsageDetail_20' ) start [2025-01-17 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268981', 'tblTempUsageDetail_20' ) end [2025-01-17 14:42:40] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:42:40] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:42:40] Production.INFO: ==7149== Releasing lock... [2025-01-17 14:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:42:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-17 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:43:05 [end_date_ymd] => 2025-01-17 14:43:05 [RateCDR] => 1 ) [2025-01-17 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:43:05' and `end` < '2025-01-17 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:43:21] Production.INFO: count ==4661 [2025-01-17 14:43:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:43:05 - End Time 2025-01-17 14:43:05 [2025-01-17 14:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268986', 'tblTempUsageDetail_20' ) start [2025-01-17 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268986', 'tblTempUsageDetail_20' ) end [2025-01-17 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268986', 'tblTempVendorCDR_20' ) start [2025-01-17 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268986', 'tblTempVendorCDR_20' ) end [2025-01-17 14:43:23] Production.INFO: ProcessCDR(1,14268986,1,1,2) [2025-01-17 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268986', 'tblTempUsageDetail_20' ) start [2025-01-17 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268986', 'tblTempUsageDetail_20' ) end [2025-01-17 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:43:28] Production.INFO: ==7264== Releasing lock... [2025-01-17 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:43:28] Production.INFO: 63 MB #Memory Used# [2025-01-17 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:44:05 [end_date_ymd] => 2025-01-17 14:44:05 [RateCDR] => 1 ) [2025-01-17 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:44:05' and `end` < '2025-01-17 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:44:20] Production.INFO: count ==4652 [2025-01-17 14:44:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:44:05 - End Time 2025-01-17 14:44:05 [2025-01-17 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268991', 'tblTempUsageDetail_20' ) start [2025-01-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268991', 'tblTempUsageDetail_20' ) end [2025-01-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268991', 'tblTempVendorCDR_20' ) start [2025-01-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268991', 'tblTempVendorCDR_20' ) end [2025-01-17 14:44:21] Production.INFO: ProcessCDR(1,14268991,1,1,2) [2025-01-17 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268991', 'tblTempUsageDetail_20' ) start [2025-01-17 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268991', 'tblTempUsageDetail_20' ) end [2025-01-17 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:44:27] Production.INFO: ==7339== Releasing lock... [2025-01-17 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:44:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-17 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:45:05 [end_date_ymd] => 2025-01-17 14:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:45:05' and `end` < '2025-01-17 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-17 14:45:25] Production.INFO: count ==4699 [2025-01-17 14:45:27] Production.ERROR: pbx CDR StartTime 2025-01-17 11:45:05 - End Time 2025-01-17 14:45:05 [2025-01-17 14:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268996', 'tblTempUsageDetail_20' ) start [2025-01-17 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14268996', 'tblTempUsageDetail_20' ) end [2025-01-17 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268996', 'tblTempVendorCDR_20' ) start [2025-01-17 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14268996', 'tblTempVendorCDR_20' ) end [2025-01-17 14:45:27] Production.INFO: ProcessCDR(1,14268996,1,1,2) [2025-01-17 14:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14268996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14268996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14268996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14268996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268996', 'tblTempUsageDetail_20' ) start [2025-01-17 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14268996', 'tblTempUsageDetail_20' ) end [2025-01-17 14:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:45:32] Production.INFO: ==7417== Releasing lock... [2025-01-17 14:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:45:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:46:05 [end_date_ymd] => 2025-01-17 14:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:46:05' and `end` < '2025-01-17 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-17 14:46:19] Production.INFO: count ==4710 [2025-01-17 14:46:21] Production.ERROR: pbx CDR StartTime 2025-01-17 11:46:05 - End Time 2025-01-17 14:46:05 [2025-01-17 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269001', 'tblTempUsageDetail_20' ) start [2025-01-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269001', 'tblTempUsageDetail_20' ) end [2025-01-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269001', 'tblTempVendorCDR_20' ) start [2025-01-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269001', 'tblTempVendorCDR_20' ) end [2025-01-17 14:46:21] Production.INFO: ProcessCDR(1,14269001,1,1,2) [2025-01-17 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269001', 'tblTempUsageDetail_20' ) start [2025-01-17 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269001', 'tblTempUsageDetail_20' ) end [2025-01-17 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:46:26] Production.INFO: ==7490== Releasing lock... [2025-01-17 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:46:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-17 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:47:04 [end_date_ymd] => 2025-01-17 14:47:04 [RateCDR] => 1 ) [2025-01-17 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-17 11:47:04' and `end` < '2025-01-17 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-17 14:47:22] Production.INFO: count ==4740 [2025-01-17 14:47:24] Production.ERROR: pbx CDR StartTime 2025-01-17 11:47:04 - End Time 2025-01-17 14:47:04 [2025-01-17 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269006', 'tblTempUsageDetail_20' ) start [2025-01-17 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269006', 'tblTempUsageDetail_20' ) end [2025-01-17 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269006', 'tblTempVendorCDR_20' ) start [2025-01-17 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269006', 'tblTempVendorCDR_20' ) end [2025-01-17 14:47:24] Production.INFO: ProcessCDR(1,14269006,1,1,2) [2025-01-17 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269006', 'tblTempUsageDetail_20' ) start [2025-01-17 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269006', 'tblTempUsageDetail_20' ) end [2025-01-17 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:47:29] Production.INFO: ==7563== Releasing lock... [2025-01-17 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:47:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:48:05 [end_date_ymd] => 2025-01-17 14:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:48:05' and `end` < '2025-01-17 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-17 14:48:22] Production.INFO: count ==4730 [2025-01-17 14:48:24] Production.ERROR: pbx CDR StartTime 2025-01-17 11:48:05 - End Time 2025-01-17 14:48:05 [2025-01-17 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269011', 'tblTempUsageDetail_20' ) start [2025-01-17 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269011', 'tblTempUsageDetail_20' ) end [2025-01-17 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269011', 'tblTempVendorCDR_20' ) start [2025-01-17 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269011', 'tblTempVendorCDR_20' ) end [2025-01-17 14:48:24] Production.INFO: ProcessCDR(1,14269011,1,1,2) [2025-01-17 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269011', 'tblTempUsageDetail_20' ) start [2025-01-17 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269011', 'tblTempUsageDetail_20' ) end [2025-01-17 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:48:29] Production.INFO: ==7637== Releasing lock... [2025-01-17 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:48:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:49:05 [end_date_ymd] => 2025-01-17 14:49:05 [RateCDR] => 1 ) [2025-01-17 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:49:05' and `end` < '2025-01-17 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:49:25] Production.INFO: count ==4729 [2025-01-17 14:49:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:49:05 - End Time 2025-01-17 14:49:05 [2025-01-17 14:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269016', 'tblTempUsageDetail_20' ) start [2025-01-17 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269016', 'tblTempUsageDetail_20' ) end [2025-01-17 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269016', 'tblTempVendorCDR_20' ) start [2025-01-17 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269016', 'tblTempVendorCDR_20' ) end [2025-01-17 14:49:27] Production.INFO: ProcessCDR(1,14269016,1,1,2) [2025-01-17 14:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269016', 'tblTempUsageDetail_20' ) start [2025-01-17 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269016', 'tblTempUsageDetail_20' ) end [2025-01-17 14:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:49:31] Production.INFO: ==7712== Releasing lock... [2025-01-17 14:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:49:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:50:05 [end_date_ymd] => 2025-01-17 14:50:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:50:05' and `end` < '2025-01-17 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-17 14:50:27] Production.INFO: count ==4747 [2025-01-17 14:50:28] Production.ERROR: pbx CDR StartTime 2025-01-17 11:50:05 - End Time 2025-01-17 14:50:05 [2025-01-17 14:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269022', 'tblTempUsageDetail_20' ) start [2025-01-17 14:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269022', 'tblTempUsageDetail_20' ) end [2025-01-17 14:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269022', 'tblTempVendorCDR_20' ) start [2025-01-17 14:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269022', 'tblTempVendorCDR_20' ) end [2025-01-17 14:50:29] Production.INFO: ProcessCDR(1,14269022,1,1,2) [2025-01-17 14:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269022', 'tblTempUsageDetail_20' ) start [2025-01-17 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269022', 'tblTempUsageDetail_20' ) end [2025-01-17 14:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:50:33] Production.INFO: ==7790== Releasing lock... [2025-01-17 14:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:50:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:51:05 [end_date_ymd] => 2025-01-17 14:51:05 [RateCDR] => 1 ) [2025-01-17 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:51:05' and `end` < '2025-01-17 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:51:28] Production.INFO: count ==4780 [2025-01-17 14:51:29] Production.ERROR: pbx CDR StartTime 2025-01-17 11:51:05 - End Time 2025-01-17 14:51:05 [2025-01-17 14:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269027', 'tblTempUsageDetail_20' ) start [2025-01-17 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269027', 'tblTempUsageDetail_20' ) end [2025-01-17 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269027', 'tblTempVendorCDR_20' ) start [2025-01-17 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269027', 'tblTempVendorCDR_20' ) end [2025-01-17 14:51:29] Production.INFO: ProcessCDR(1,14269027,1,1,2) [2025-01-17 14:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269027', 'tblTempUsageDetail_20' ) start [2025-01-17 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269027', 'tblTempUsageDetail_20' ) end [2025-01-17 14:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:51:34] Production.INFO: ==7866== Releasing lock... [2025-01-17 14:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:51:34] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:52:05 [end_date_ymd] => 2025-01-17 14:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:52:05' and `end` < '2025-01-17 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-17 14:52:22] Production.INFO: count ==4809 [2025-01-17 14:52:24] Production.ERROR: pbx CDR StartTime 2025-01-17 11:52:05 - End Time 2025-01-17 14:52:05 [2025-01-17 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269032', 'tblTempUsageDetail_20' ) start [2025-01-17 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269032', 'tblTempUsageDetail_20' ) end [2025-01-17 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269032', 'tblTempVendorCDR_20' ) start [2025-01-17 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269032', 'tblTempVendorCDR_20' ) end [2025-01-17 14:52:24] Production.INFO: ProcessCDR(1,14269032,1,1,2) [2025-01-17 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269032', 'tblTempUsageDetail_20' ) start [2025-01-17 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269032', 'tblTempUsageDetail_20' ) end [2025-01-17 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:52:29] Production.INFO: ==7940== Releasing lock... [2025-01-17 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:52:29] Production.INFO: 64 MB #Memory Used# [2025-01-17 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:53:05 [end_date_ymd] => 2025-01-17 14:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:53:05' and `end` < '2025-01-17 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-17 14:53:24] Production.INFO: count ==4788 [2025-01-17 14:53:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:53:05 - End Time 2025-01-17 14:53:05 [2025-01-17 14:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269037', 'tblTempUsageDetail_20' ) start [2025-01-17 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269037', 'tblTempUsageDetail_20' ) end [2025-01-17 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269037', 'tblTempVendorCDR_20' ) start [2025-01-17 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269037', 'tblTempVendorCDR_20' ) end [2025-01-17 14:53:26] Production.INFO: ProcessCDR(1,14269037,1,1,2) [2025-01-17 14:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269037', 'tblTempUsageDetail_20' ) start [2025-01-17 14:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269037', 'tblTempUsageDetail_20' ) end [2025-01-17 14:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:53:31] Production.INFO: ==8015== Releasing lock... [2025-01-17 14:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:53:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:54:04 [end_date_ymd] => 2025-01-17 14:54:04 [RateCDR] => 1 ) [2025-01-17 14: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-17 11:54:04' and `end` < '2025-01-17 14: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-17 14:54:21] Production.INFO: count ==4781 [2025-01-17 14:54:23] Production.ERROR: pbx CDR StartTime 2025-01-17 11:54:04 - End Time 2025-01-17 14:54:04 [2025-01-17 14:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269042', 'tblTempUsageDetail_20' ) start [2025-01-17 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269042', 'tblTempUsageDetail_20' ) end [2025-01-17 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269042', 'tblTempVendorCDR_20' ) start [2025-01-17 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269042', 'tblTempVendorCDR_20' ) end [2025-01-17 14:54:23] Production.INFO: ProcessCDR(1,14269042,1,1,2) [2025-01-17 14:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269042', 'tblTempUsageDetail_20' ) start [2025-01-17 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269042', 'tblTempUsageDetail_20' ) end [2025-01-17 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:54:28] Production.INFO: ==8088== Releasing lock... [2025-01-17 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:54:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:55:05 [end_date_ymd] => 2025-01-17 14:55:05 [RateCDR] => 1 ) [2025-01-17 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:55:05' and `end` < '2025-01-17 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-17 14:55:25] Production.INFO: count ==4766 [2025-01-17 14:55:27] Production.ERROR: pbx CDR StartTime 2025-01-17 11:55:05 - End Time 2025-01-17 14:55:05 [2025-01-17 14:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269047', 'tblTempUsageDetail_20' ) start [2025-01-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269047', 'tblTempUsageDetail_20' ) end [2025-01-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269047', 'tblTempVendorCDR_20' ) start [2025-01-17 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269047', 'tblTempVendorCDR_20' ) end [2025-01-17 14:55:28] Production.INFO: ProcessCDR(1,14269047,1,1,2) [2025-01-17 14:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269047', 'tblTempUsageDetail_20' ) start [2025-01-17 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269047', 'tblTempUsageDetail_20' ) end [2025-01-17 14:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:55:33] Production.INFO: ==8162== Releasing lock... [2025-01-17 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:55:33] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:56:05 [end_date_ymd] => 2025-01-17 14:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:56:05' and `end` < '2025-01-17 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-17 14:56:25] Production.INFO: count ==4774 [2025-01-17 14:56:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:56:05 - End Time 2025-01-17 14:56:05 [2025-01-17 14:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269052', 'tblTempUsageDetail_20' ) start [2025-01-17 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269052', 'tblTempUsageDetail_20' ) end [2025-01-17 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269052', 'tblTempVendorCDR_20' ) start [2025-01-17 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269052', 'tblTempVendorCDR_20' ) end [2025-01-17 14:56:27] Production.INFO: ProcessCDR(1,14269052,1,1,2) [2025-01-17 14:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269052', 'tblTempUsageDetail_20' ) start [2025-01-17 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269052', 'tblTempUsageDetail_20' ) end [2025-01-17 14:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:56:31] Production.INFO: ==8241== Releasing lock... [2025-01-17 14:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:56:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:57:05 [end_date_ymd] => 2025-01-17 14:57:05 [RateCDR] => 1 ) [2025-01-17 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:57:05' and `end` < '2025-01-17 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:57:24] Production.INFO: count ==4769 [2025-01-17 14:57:26] Production.ERROR: pbx CDR StartTime 2025-01-17 11:57:05 - End Time 2025-01-17 14:57:05 [2025-01-17 14:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269057', 'tblTempUsageDetail_20' ) start [2025-01-17 14:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269057', 'tblTempUsageDetail_20' ) end [2025-01-17 14:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269057', 'tblTempVendorCDR_20' ) start [2025-01-17 14:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269057', 'tblTempVendorCDR_20' ) end [2025-01-17 14:57:26] Production.INFO: ProcessCDR(1,14269057,1,1,2) [2025-01-17 14:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269057', 'tblTempUsageDetail_20' ) start [2025-01-17 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269057', 'tblTempUsageDetail_20' ) end [2025-01-17 14:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:57:31] Production.INFO: ==8311== Releasing lock... [2025-01-17 14:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:57:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:58:05 [end_date_ymd] => 2025-01-17 14:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 11:58:05' and `end` < '2025-01-17 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-17 14:58:19] Production.INFO: count ==4768 [2025-01-17 14:58:22] Production.ERROR: pbx CDR StartTime 2025-01-17 11:58:05 - End Time 2025-01-17 14:58:05 [2025-01-17 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269062', 'tblTempUsageDetail_20' ) start [2025-01-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269062', 'tblTempUsageDetail_20' ) end [2025-01-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269062', 'tblTempVendorCDR_20' ) start [2025-01-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269062', 'tblTempVendorCDR_20' ) end [2025-01-17 14:58:22] Production.INFO: ProcessCDR(1,14269062,1,1,2) [2025-01-17 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269062', 'tblTempUsageDetail_20' ) start [2025-01-17 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269062', 'tblTempUsageDetail_20' ) end [2025-01-17 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:58:27] Production.INFO: ==8388== Releasing lock... [2025-01-17 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:58:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-17 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 11:59:05 [end_date_ymd] => 2025-01-17 14:59:05 [RateCDR] => 1 ) [2025-01-17 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 11:59:05' and `end` < '2025-01-17 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 14:59:27] Production.INFO: count ==4748 [2025-01-17 14:59:28] Production.ERROR: pbx CDR StartTime 2025-01-17 11:59:05 - End Time 2025-01-17 14:59:05 [2025-01-17 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269067', 'tblTempUsageDetail_20' ) start [2025-01-17 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269067', 'tblTempUsageDetail_20' ) end [2025-01-17 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269067', 'tblTempVendorCDR_20' ) start [2025-01-17 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269067', 'tblTempVendorCDR_20' ) end [2025-01-17 14:59:28] Production.INFO: ProcessCDR(1,14269067,1,1,2) [2025-01-17 14:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 14:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269067', 'tblTempUsageDetail_20' ) start [2025-01-17 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269067', 'tblTempUsageDetail_20' ) end [2025-01-17 14:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 14:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 14:59:33] Production.INFO: ==8505== Releasing lock... [2025-01-17 14:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 14:59:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:00:06 [end_date_ymd] => 2025-01-17 15:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 12:00:06' and `end` < '2025-01-17 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-17 15:00:27] Production.INFO: count ==4732 [2025-01-17 15:00:29] Production.ERROR: pbx CDR StartTime 2025-01-17 12:00:06 - End Time 2025-01-17 15:00:06 [2025-01-17 15:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269073', 'tblTempUsageDetail_20' ) start [2025-01-17 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269073', 'tblTempUsageDetail_20' ) end [2025-01-17 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269073', 'tblTempVendorCDR_20' ) start [2025-01-17 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269073', 'tblTempVendorCDR_20' ) end [2025-01-17 15:00:29] Production.INFO: ProcessCDR(1,14269073,1,1,2) [2025-01-17 15:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269073', 'tblTempUsageDetail_20' ) start [2025-01-17 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269073', 'tblTempUsageDetail_20' ) end [2025-01-17 15:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:00:34] Production.INFO: ==8586== Releasing lock... [2025-01-17 15:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:00:34] Production.INFO: 63.5 MB #Memory Used# [2025-01-17 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:01:04 [end_date_ymd] => 2025-01-17 15:01:04 [RateCDR] => 1 ) [2025-01-17 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:01:04' and `end` < '2025-01-17 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:01:20] Production.INFO: count ==4663 [2025-01-17 15:01:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:01:04 - End Time 2025-01-17 15:01:04 [2025-01-17 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269078', 'tblTempUsageDetail_20' ) start [2025-01-17 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269078', 'tblTempUsageDetail_20' ) end [2025-01-17 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269078', 'tblTempVendorCDR_20' ) start [2025-01-17 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269078', 'tblTempVendorCDR_20' ) end [2025-01-17 15:01:22] Production.INFO: ProcessCDR(1,14269078,1,1,2) [2025-01-17 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269078', 'tblTempUsageDetail_20' ) start [2025-01-17 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269078', 'tblTempUsageDetail_20' ) end [2025-01-17 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:01:25] Production.INFO: ==8672== Releasing lock... [2025-01-17 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:01:25] Production.INFO: 63 MB #Memory Used# [2025-01-17 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:02:05 [end_date_ymd] => 2025-01-17 15:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:02:05' and `end` < '2025-01-17 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-17 15:02:25] Production.INFO: count ==4662 [2025-01-17 15:02:27] Production.ERROR: pbx CDR StartTime 2025-01-17 12:02:05 - End Time 2025-01-17 15:02:05 [2025-01-17 15:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269083', 'tblTempUsageDetail_20' ) start [2025-01-17 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269083', 'tblTempUsageDetail_20' ) end [2025-01-17 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269083', 'tblTempVendorCDR_20' ) start [2025-01-17 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269083', 'tblTempVendorCDR_20' ) end [2025-01-17 15:02:27] Production.INFO: ProcessCDR(1,14269083,1,1,2) [2025-01-17 15:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269083', 'tblTempUsageDetail_20' ) start [2025-01-17 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269083', 'tblTempUsageDetail_20' ) end [2025-01-17 15:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:02:33] Production.INFO: ==8821== Releasing lock... [2025-01-17 15:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:02:33] Production.INFO: 63 MB #Memory Used# [2025-01-17 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:03:06 [end_date_ymd] => 2025-01-17 15:03:06 [RateCDR] => 1 ) [2025-01-17 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:03:06' and `end` < '2025-01-17 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:03:22] Production.INFO: count ==4653 [2025-01-17 15:03:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:03:06 - End Time 2025-01-17 15:03:06 [2025-01-17 15:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269088', 'tblTempUsageDetail_20' ) start [2025-01-17 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269088', 'tblTempUsageDetail_20' ) end [2025-01-17 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269088', 'tblTempVendorCDR_20' ) start [2025-01-17 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269088', 'tblTempVendorCDR_20' ) end [2025-01-17 15:03:24] Production.INFO: ProcessCDR(1,14269088,1,1,2) [2025-01-17 15:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269088', 'tblTempUsageDetail_20' ) start [2025-01-17 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269088', 'tblTempUsageDetail_20' ) end [2025-01-17 15:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:03:29] Production.INFO: ==8901== Releasing lock... [2025-01-17 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:03:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-17 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:04:05 [end_date_ymd] => 2025-01-17 15:04:05 [RateCDR] => 1 ) [2025-01-17 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:04:05' and `end` < '2025-01-17 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:04:25] Production.INFO: count ==4628 [2025-01-17 15:04:27] Production.ERROR: pbx CDR StartTime 2025-01-17 12:04:05 - End Time 2025-01-17 15:04:05 [2025-01-17 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269093', 'tblTempUsageDetail_20' ) start [2025-01-17 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269093', 'tblTempUsageDetail_20' ) end [2025-01-17 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269093', 'tblTempVendorCDR_20' ) start [2025-01-17 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269093', 'tblTempVendorCDR_20' ) end [2025-01-17 15:04:27] Production.INFO: ProcessCDR(1,14269093,1,1,2) [2025-01-17 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269093', 'tblTempUsageDetail_20' ) start [2025-01-17 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269093', 'tblTempUsageDetail_20' ) end [2025-01-17 15:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:04:31] Production.INFO: ==8974== Releasing lock... [2025-01-17 15:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:04:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-17 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:05:05 [end_date_ymd] => 2025-01-17 15:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:05:05' and `end` < '2025-01-17 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-17 15:05:30] Production.INFO: count ==4616 [2025-01-17 15:05:31] Production.ERROR: pbx CDR StartTime 2025-01-17 12:05:05 - End Time 2025-01-17 15:05:05 [2025-01-17 15:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269098', 'tblTempUsageDetail_20' ) start [2025-01-17 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269098', 'tblTempUsageDetail_20' ) end [2025-01-17 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269098', 'tblTempVendorCDR_20' ) start [2025-01-17 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269098', 'tblTempVendorCDR_20' ) end [2025-01-17 15:05:31] Production.INFO: ProcessCDR(1,14269098,1,1,2) [2025-01-17 15:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269098', 'tblTempUsageDetail_20' ) start [2025-01-17 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269098', 'tblTempUsageDetail_20' ) end [2025-01-17 15:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:05:36] Production.INFO: ==9124== Releasing lock... [2025-01-17 15:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:05:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:06:04 [end_date_ymd] => 2025-01-17 15:06:04 [RateCDR] => 1 ) [2025-01-17 15:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:06:04' and `end` < '2025-01-17 15:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:06:21] Production.INFO: count ==4598 [2025-01-17 15:06:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:06:04 - End Time 2025-01-17 15:06:04 [2025-01-17 15:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269103', 'tblTempUsageDetail_20' ) start [2025-01-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269103', 'tblTempUsageDetail_20' ) end [2025-01-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269103', 'tblTempVendorCDR_20' ) start [2025-01-17 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269103', 'tblTempVendorCDR_20' ) end [2025-01-17 15:06:23] Production.INFO: ProcessCDR(1,14269103,1,1,2) [2025-01-17 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269103', 'tblTempUsageDetail_20' ) start [2025-01-17 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269103', 'tblTempUsageDetail_20' ) end [2025-01-17 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:06:28] Production.INFO: ==9198== Releasing lock... [2025-01-17 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:06:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:07:05 [end_date_ymd] => 2025-01-17 15:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:07:05' and `end` < '2025-01-17 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-17 15:07:22] Production.INFO: count ==4592 [2025-01-17 15:07:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:07:05 - End Time 2025-01-17 15:07:05 [2025-01-17 15:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269108', 'tblTempUsageDetail_20' ) start [2025-01-17 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269108', 'tblTempUsageDetail_20' ) end [2025-01-17 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269108', 'tblTempVendorCDR_20' ) start [2025-01-17 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269108', 'tblTempVendorCDR_20' ) end [2025-01-17 15:07:24] Production.INFO: ProcessCDR(1,14269108,1,1,2) [2025-01-17 15:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269108', 'tblTempUsageDetail_20' ) start [2025-01-17 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269108', 'tblTempUsageDetail_20' ) end [2025-01-17 15:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:07:29] Production.INFO: ==9273== Releasing lock... [2025-01-17 15:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:07:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:08:06 [end_date_ymd] => 2025-01-17 15:08:06 [RateCDR] => 1 ) [2025-01-17 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:08:06' and `end` < '2025-01-17 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:08:24] Production.INFO: count ==4589 [2025-01-17 15:08:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:08:06 - End Time 2025-01-17 15:08:06 [2025-01-17 15:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269113', 'tblTempUsageDetail_20' ) start [2025-01-17 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269113', 'tblTempUsageDetail_20' ) end [2025-01-17 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269113', 'tblTempVendorCDR_20' ) start [2025-01-17 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269113', 'tblTempVendorCDR_20' ) end [2025-01-17 15:08:26] Production.INFO: ProcessCDR(1,14269113,1,1,2) [2025-01-17 15:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269113', 'tblTempUsageDetail_20' ) start [2025-01-17 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269113', 'tblTempUsageDetail_20' ) end [2025-01-17 15:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:08:31] Production.INFO: ==9384== Releasing lock... [2025-01-17 15:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:08:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:09:05 [end_date_ymd] => 2025-01-17 15:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:09:05' and `end` < '2025-01-17 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-17 15:09:22] Production.INFO: count ==4575 [2025-01-17 15:09:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:09:05 - End Time 2025-01-17 15:09:05 [2025-01-17 15:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269118', 'tblTempUsageDetail_20' ) start [2025-01-17 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269118', 'tblTempUsageDetail_20' ) end [2025-01-17 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269118', 'tblTempVendorCDR_20' ) start [2025-01-17 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269118', 'tblTempVendorCDR_20' ) end [2025-01-17 15:09:24] Production.INFO: ProcessCDR(1,14269118,1,1,2) [2025-01-17 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269118', 'tblTempUsageDetail_20' ) start [2025-01-17 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269118', 'tblTempUsageDetail_20' ) end [2025-01-17 15:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:09:29] Production.INFO: ==9494== Releasing lock... [2025-01-17 15:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:09:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:10:06 [end_date_ymd] => 2025-01-17 15:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 12:10:06' and `end` < '2025-01-17 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-17 15:10:30] Production.INFO: count ==4587 [2025-01-17 15:10:32] Production.ERROR: pbx CDR StartTime 2025-01-17 12:10:06 - End Time 2025-01-17 15:10:06 [2025-01-17 15:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269124', 'tblTempUsageDetail_20' ) start [2025-01-17 15:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269124', 'tblTempUsageDetail_20' ) end [2025-01-17 15:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269124', 'tblTempVendorCDR_20' ) start [2025-01-17 15:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269124', 'tblTempVendorCDR_20' ) end [2025-01-17 15:10:32] Production.INFO: ProcessCDR(1,14269124,1,1,2) [2025-01-17 15:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269124', 'tblTempUsageDetail_20' ) start [2025-01-17 15:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269124', 'tblTempUsageDetail_20' ) end [2025-01-17 15:10:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:10:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:10:37] Production.INFO: ==9579== Releasing lock... [2025-01-17 15:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:10:37] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:11:05 [end_date_ymd] => 2025-01-17 15:11:05 [RateCDR] => 1 ) [2025-01-17 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:11:05' and `end` < '2025-01-17 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:11:19] Production.INFO: count ==4589 [2025-01-17 15:11:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:11:05 - End Time 2025-01-17 15:11:05 [2025-01-17 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269129', 'tblTempUsageDetail_20' ) start [2025-01-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269129', 'tblTempUsageDetail_20' ) end [2025-01-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269129', 'tblTempVendorCDR_20' ) start [2025-01-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269129', 'tblTempVendorCDR_20' ) end [2025-01-17 15:11:21] Production.INFO: ProcessCDR(1,14269129,1,1,2) [2025-01-17 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269129', 'tblTempUsageDetail_20' ) start [2025-01-17 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269129', 'tblTempUsageDetail_20' ) end [2025-01-17 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:11:26] Production.INFO: ==9658== Releasing lock... [2025-01-17 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:11:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:12:05 [end_date_ymd] => 2025-01-17 15:12:05 [RateCDR] => 1 ) [2025-01-17 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:12:05' and `end` < '2025-01-17 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:12:24] Production.INFO: count ==4568 [2025-01-17 15:12:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:12:05 - End Time 2025-01-17 15:12:05 [2025-01-17 15:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269134', 'tblTempUsageDetail_20' ) start [2025-01-17 15:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269134', 'tblTempUsageDetail_20' ) end [2025-01-17 15:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269134', 'tblTempVendorCDR_20' ) start [2025-01-17 15:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269134', 'tblTempVendorCDR_20' ) end [2025-01-17 15:12:26] Production.INFO: ProcessCDR(1,14269134,1,1,2) [2025-01-17 15:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269134', 'tblTempUsageDetail_20' ) start [2025-01-17 15:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269134', 'tblTempUsageDetail_20' ) end [2025-01-17 15:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:12:31] Production.INFO: ==9810== Releasing lock... [2025-01-17 15:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:12:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:13:05 [end_date_ymd] => 2025-01-17 15:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:13:05' and `end` < '2025-01-17 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-17 15:13:25] Production.INFO: count ==4574 [2025-01-17 15:13:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:13:05 - End Time 2025-01-17 15:13:05 [2025-01-17 15:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269139', 'tblTempUsageDetail_20' ) start [2025-01-17 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269139', 'tblTempUsageDetail_20' ) end [2025-01-17 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269139', 'tblTempVendorCDR_20' ) start [2025-01-17 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269139', 'tblTempVendorCDR_20' ) end [2025-01-17 15:13:26] Production.INFO: ProcessCDR(1,14269139,1,1,2) [2025-01-17 15:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269139', 'tblTempUsageDetail_20' ) start [2025-01-17 15:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269139', 'tblTempUsageDetail_20' ) end [2025-01-17 15:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:13:31] Production.INFO: ==9885== Releasing lock... [2025-01-17 15:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:13:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:14:05 [end_date_ymd] => 2025-01-17 15:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:14:05' and `end` < '2025-01-17 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-17 15:14:23] Production.INFO: count ==4563 [2025-01-17 15:14:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:14:05 - End Time 2025-01-17 15:14:05 [2025-01-17 15:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269144', 'tblTempUsageDetail_20' ) start [2025-01-17 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269144', 'tblTempUsageDetail_20' ) end [2025-01-17 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269144', 'tblTempVendorCDR_20' ) start [2025-01-17 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269144', 'tblTempVendorCDR_20' ) end [2025-01-17 15:14:25] Production.INFO: ProcessCDR(1,14269144,1,1,2) [2025-01-17 15:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269144', 'tblTempUsageDetail_20' ) start [2025-01-17 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269144', 'tblTempUsageDetail_20' ) end [2025-01-17 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:14:30] Production.INFO: ==10008== Releasing lock... [2025-01-17 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:14:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:15:05 [end_date_ymd] => 2025-01-17 15:15:05 [RateCDR] => 1 ) [2025-01-17 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:15:05' and `end` < '2025-01-17 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:15:24] Production.INFO: count ==4568 [2025-01-17 15:15:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:15:05 - End Time 2025-01-17 15:15:05 [2025-01-17 15:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269149', 'tblTempUsageDetail_20' ) start [2025-01-17 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269149', 'tblTempUsageDetail_20' ) end [2025-01-17 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269149', 'tblTempVendorCDR_20' ) start [2025-01-17 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269149', 'tblTempVendorCDR_20' ) end [2025-01-17 15:15:25] Production.INFO: ProcessCDR(1,14269149,1,1,2) [2025-01-17 15:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269149', 'tblTempUsageDetail_20' ) start [2025-01-17 15:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269149', 'tblTempUsageDetail_20' ) end [2025-01-17 15:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:15:30] Production.INFO: ==10123== Releasing lock... [2025-01-17 15:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:15:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:16:05 [end_date_ymd] => 2025-01-17 15:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:16:05' and `end` < '2025-01-17 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-17 15:16:29] Production.INFO: count ==4559 [2025-01-17 15:16:30] Production.ERROR: pbx CDR StartTime 2025-01-17 12:16:05 - End Time 2025-01-17 15:16:05 [2025-01-17 15:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269154', 'tblTempUsageDetail_20' ) start [2025-01-17 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269154', 'tblTempUsageDetail_20' ) end [2025-01-17 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269154', 'tblTempVendorCDR_20' ) start [2025-01-17 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269154', 'tblTempVendorCDR_20' ) end [2025-01-17 15:16:31] Production.INFO: ProcessCDR(1,14269154,1,1,2) [2025-01-17 15:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269154', 'tblTempUsageDetail_20' ) start [2025-01-17 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269154', 'tblTempUsageDetail_20' ) end [2025-01-17 15:16:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:16:35] Production.INFO: ==10234== Releasing lock... [2025-01-17 15:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:16:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-17 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:17:05 [end_date_ymd] => 2025-01-17 15:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:17:05' and `end` < '2025-01-17 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-17 15:17:26] Production.INFO: count ==4580 [2025-01-17 15:17:28] Production.ERROR: pbx CDR StartTime 2025-01-17 12:17:05 - End Time 2025-01-17 15:17:05 [2025-01-17 15:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269159', 'tblTempUsageDetail_20' ) start [2025-01-17 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269159', 'tblTempUsageDetail_20' ) end [2025-01-17 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269159', 'tblTempVendorCDR_20' ) start [2025-01-17 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269159', 'tblTempVendorCDR_20' ) end [2025-01-17 15:17:28] Production.INFO: ProcessCDR(1,14269159,1,1,2) [2025-01-17 15:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269159', 'tblTempUsageDetail_20' ) start [2025-01-17 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269159', 'tblTempUsageDetail_20' ) end [2025-01-17 15:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:17:33] Production.INFO: ==10309== Releasing lock... [2025-01-17 15:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:17:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:18:05 [end_date_ymd] => 2025-01-17 15:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:18:05' and `end` < '2025-01-17 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-17 15:18:21] Production.INFO: count ==4566 [2025-01-17 15:18:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:18:05 - End Time 2025-01-17 15:18:05 [2025-01-17 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269164', 'tblTempUsageDetail_20' ) start [2025-01-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269164', 'tblTempUsageDetail_20' ) end [2025-01-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269164', 'tblTempVendorCDR_20' ) start [2025-01-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269164', 'tblTempVendorCDR_20' ) end [2025-01-17 15:18:22] Production.INFO: ProcessCDR(1,14269164,1,1,2) [2025-01-17 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269164', 'tblTempUsageDetail_20' ) start [2025-01-17 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269164', 'tblTempUsageDetail_20' ) end [2025-01-17 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:18:27] Production.INFO: ==10379== Releasing lock... [2025-01-17 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:18:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:19:05 [end_date_ymd] => 2025-01-17 15:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:19:05' and `end` < '2025-01-17 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-17 15:19:26] Production.INFO: count ==4572 [2025-01-17 15:19:28] Production.ERROR: pbx CDR StartTime 2025-01-17 12:19:05 - End Time 2025-01-17 15:19:05 [2025-01-17 15:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269169', 'tblTempUsageDetail_20' ) start [2025-01-17 15:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269169', 'tblTempUsageDetail_20' ) end [2025-01-17 15:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269169', 'tblTempVendorCDR_20' ) start [2025-01-17 15:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269169', 'tblTempVendorCDR_20' ) end [2025-01-17 15:19:28] Production.INFO: ProcessCDR(1,14269169,1,1,2) [2025-01-17 15:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269169', 'tblTempUsageDetail_20' ) start [2025-01-17 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269169', 'tblTempUsageDetail_20' ) end [2025-01-17 15:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:19:33] Production.INFO: ==10452== Releasing lock... [2025-01-17 15:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:19:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:20:05 [end_date_ymd] => 2025-01-17 15:20:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:20:05' and `end` < '2025-01-17 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-17 15:20:23] Production.INFO: count ==4576 [2025-01-17 15:20:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:20:05 - End Time 2025-01-17 15:20:05 [2025-01-17 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269175', 'tblTempUsageDetail_20' ) start [2025-01-17 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269175', 'tblTempUsageDetail_20' ) end [2025-01-17 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269175', 'tblTempVendorCDR_20' ) start [2025-01-17 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269175', 'tblTempVendorCDR_20' ) end [2025-01-17 15:20:25] Production.INFO: ProcessCDR(1,14269175,1,1,2) [2025-01-17 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269175', 'tblTempUsageDetail_20' ) start [2025-01-17 15:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269175', 'tblTempUsageDetail_20' ) end [2025-01-17 15:20:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:20:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:20:31] Production.INFO: ==10527== Releasing lock... [2025-01-17 15:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:20:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:21:05 [end_date_ymd] => 2025-01-17 15:21:05 [RateCDR] => 1 ) [2025-01-17 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:21:05' and `end` < '2025-01-17 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:21:19] Production.INFO: count ==4545 [2025-01-17 15:21:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:21:05 - End Time 2025-01-17 15:21:05 [2025-01-17 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269180', 'tblTempUsageDetail_20' ) start [2025-01-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269180', 'tblTempUsageDetail_20' ) end [2025-01-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269180', 'tblTempVendorCDR_20' ) start [2025-01-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269180', 'tblTempVendorCDR_20' ) end [2025-01-17 15:21:21] Production.INFO: ProcessCDR(1,14269180,1,1,2) [2025-01-17 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269180', 'tblTempUsageDetail_20' ) start [2025-01-17 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269180', 'tblTempUsageDetail_20' ) end [2025-01-17 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:21:26] Production.INFO: ==10600== Releasing lock... [2025-01-17 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:21:26] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:22:05 [end_date_ymd] => 2025-01-17 15:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:22:05' and `end` < '2025-01-17 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-17 15:22:19] Production.INFO: count ==4539 [2025-01-17 15:22:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:22:05 - End Time 2025-01-17 15:22:05 [2025-01-17 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269185', 'tblTempUsageDetail_20' ) start [2025-01-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269185', 'tblTempUsageDetail_20' ) end [2025-01-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269185', 'tblTempVendorCDR_20' ) start [2025-01-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269185', 'tblTempVendorCDR_20' ) end [2025-01-17 15:22:21] Production.INFO: ProcessCDR(1,14269185,1,1,2) [2025-01-17 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269185', 'tblTempUsageDetail_20' ) start [2025-01-17 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269185', 'tblTempUsageDetail_20' ) end [2025-01-17 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:22:26] Production.INFO: ==10671== Releasing lock... [2025-01-17 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:22:26] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:23:05 [end_date_ymd] => 2025-01-17 15:23:05 [RateCDR] => 1 ) [2025-01-17 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:23:05' and `end` < '2025-01-17 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:23:18] Production.INFO: count ==4529 [2025-01-17 15:23:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:23:05 - End Time 2025-01-17 15:23:05 [2025-01-17 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269190', 'tblTempUsageDetail_20' ) start [2025-01-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269190', 'tblTempUsageDetail_20' ) end [2025-01-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269190', 'tblTempVendorCDR_20' ) start [2025-01-17 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269190', 'tblTempVendorCDR_20' ) end [2025-01-17 15:23:20] Production.INFO: ProcessCDR(1,14269190,1,1,2) [2025-01-17 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269190', 'tblTempUsageDetail_20' ) start [2025-01-17 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269190', 'tblTempUsageDetail_20' ) end [2025-01-17 15:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:23:25] Production.INFO: ==10744== Releasing lock... [2025-01-17 15:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:23:25] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:24:05 [end_date_ymd] => 2025-01-17 15:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:24:05' and `end` < '2025-01-17 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-17 15:24:19] Production.INFO: count ==4525 [2025-01-17 15:24:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:24:05 - End Time 2025-01-17 15:24:05 [2025-01-17 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269195', 'tblTempUsageDetail_20' ) start [2025-01-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269195', 'tblTempUsageDetail_20' ) end [2025-01-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269195', 'tblTempVendorCDR_20' ) start [2025-01-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269195', 'tblTempVendorCDR_20' ) end [2025-01-17 15:24:21] Production.INFO: ProcessCDR(1,14269195,1,1,2) [2025-01-17 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269195', 'tblTempUsageDetail_20' ) start [2025-01-17 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269195', 'tblTempUsageDetail_20' ) end [2025-01-17 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:24:26] Production.INFO: ==10819== Releasing lock... [2025-01-17 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:24:26] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:25:04 [end_date_ymd] => 2025-01-17 15:25:04 [RateCDR] => 1 ) [2025-01-17 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:25:04' and `end` < '2025-01-17 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:25:23] Production.INFO: count ==4519 [2025-01-17 15:25:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:25:04 - End Time 2025-01-17 15:25:04 [2025-01-17 15:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269200', 'tblTempUsageDetail_20' ) start [2025-01-17 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269200', 'tblTempUsageDetail_20' ) end [2025-01-17 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269200', 'tblTempVendorCDR_20' ) start [2025-01-17 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269200', 'tblTempVendorCDR_20' ) end [2025-01-17 15:25:25] Production.INFO: ProcessCDR(1,14269200,1,1,2) [2025-01-17 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269200', 'tblTempUsageDetail_20' ) start [2025-01-17 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269200', 'tblTempUsageDetail_20' ) end [2025-01-17 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:25:30] Production.INFO: ==10889== Releasing lock... [2025-01-17 15:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:25:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:26:05 [end_date_ymd] => 2025-01-17 15:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:26:05' and `end` < '2025-01-17 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-17 15:26:20] Production.INFO: count ==4518 [2025-01-17 15:26:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:26:05 - End Time 2025-01-17 15:26:05 [2025-01-17 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269205', 'tblTempUsageDetail_20' ) start [2025-01-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269205', 'tblTempUsageDetail_20' ) end [2025-01-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269205', 'tblTempVendorCDR_20' ) start [2025-01-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269205', 'tblTempVendorCDR_20' ) end [2025-01-17 15:26:22] Production.INFO: ProcessCDR(1,14269205,1,1,2) [2025-01-17 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269205', 'tblTempUsageDetail_20' ) start [2025-01-17 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269205', 'tblTempUsageDetail_20' ) end [2025-01-17 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:26:27] Production.INFO: ==10962== Releasing lock... [2025-01-17 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:26:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:27:04 [end_date_ymd] => 2025-01-17 15:27:04 [RateCDR] => 1 ) [2025-01-17 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-17 12:27:04' and `end` < '2025-01-17 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:27:21] Production.INFO: count ==4515 [2025-01-17 15:27:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:27:04 - End Time 2025-01-17 15:27:04 [2025-01-17 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269210', 'tblTempUsageDetail_20' ) start [2025-01-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269210', 'tblTempUsageDetail_20' ) end [2025-01-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269210', 'tblTempVendorCDR_20' ) start [2025-01-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269210', 'tblTempVendorCDR_20' ) end [2025-01-17 15:27:22] Production.INFO: ProcessCDR(1,14269210,1,1,2) [2025-01-17 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269210', 'tblTempUsageDetail_20' ) start [2025-01-17 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269210', 'tblTempUsageDetail_20' ) end [2025-01-17 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:27:27] Production.INFO: ==11032== Releasing lock... [2025-01-17 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:27:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:28:05 [end_date_ymd] => 2025-01-17 15:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:28:05' and `end` < '2025-01-17 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-17 15:28:31] Production.INFO: count ==4501 [2025-01-17 15:28:32] Production.ERROR: pbx CDR StartTime 2025-01-17 12:28:05 - End Time 2025-01-17 15:28:05 [2025-01-17 15:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269215', 'tblTempUsageDetail_20' ) start [2025-01-17 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269215', 'tblTempUsageDetail_20' ) end [2025-01-17 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269215', 'tblTempVendorCDR_20' ) start [2025-01-17 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269215', 'tblTempVendorCDR_20' ) end [2025-01-17 15:28:33] Production.INFO: ProcessCDR(1,14269215,1,1,2) [2025-01-17 15:28:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269215', 'tblTempUsageDetail_20' ) start [2025-01-17 15:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269215', 'tblTempUsageDetail_20' ) end [2025-01-17 15:28:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:28:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:28:37] Production.INFO: ==11104== Releasing lock... [2025-01-17 15:28:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:28:37] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:29:05 [end_date_ymd] => 2025-01-17 15:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:29:05' and `end` < '2025-01-17 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-17 15:29:22] Production.INFO: count ==4523 [2025-01-17 15:29:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:29:05 - End Time 2025-01-17 15:29:05 [2025-01-17 15:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269220', 'tblTempUsageDetail_20' ) start [2025-01-17 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269220', 'tblTempUsageDetail_20' ) end [2025-01-17 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269220', 'tblTempVendorCDR_20' ) start [2025-01-17 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269220', 'tblTempVendorCDR_20' ) end [2025-01-17 15:29:24] Production.INFO: ProcessCDR(1,14269220,1,1,2) [2025-01-17 15:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269220', 'tblTempUsageDetail_20' ) start [2025-01-17 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269220', 'tblTempUsageDetail_20' ) end [2025-01-17 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:29:29] Production.INFO: ==11179== Releasing lock... [2025-01-17 15:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:29:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:30:05 [end_date_ymd] => 2025-01-17 15:30:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:30:05' and `end` < '2025-01-17 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-17 15:30:24] Production.INFO: count ==4541 [2025-01-17 15:30:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:30:05 - End Time 2025-01-17 15:30:05 [2025-01-17 15:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269225', 'tblTempUsageDetail_20' ) start [2025-01-17 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269225', 'tblTempUsageDetail_20' ) end [2025-01-17 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269225', 'tblTempVendorCDR_20' ) start [2025-01-17 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269225', 'tblTempVendorCDR_20' ) end [2025-01-17 15:30:25] Production.INFO: ProcessCDR(1,14269225,1,1,2) [2025-01-17 15:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269225', 'tblTempUsageDetail_20' ) start [2025-01-17 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269225', 'tblTempUsageDetail_20' ) end [2025-01-17 15:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:30:30] Production.INFO: ==11292== Releasing lock... [2025-01-17 15:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:30:30] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:31:05 [end_date_ymd] => 2025-01-17 15:31:05 [RateCDR] => 1 ) [2025-01-17 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:31:05' and `end` < '2025-01-17 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:31:21] Production.INFO: count ==4531 [2025-01-17 15:31:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:31:05 - End Time 2025-01-17 15:31:05 [2025-01-17 15:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269231', 'tblTempUsageDetail_20' ) start [2025-01-17 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269231', 'tblTempUsageDetail_20' ) end [2025-01-17 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269231', 'tblTempVendorCDR_20' ) start [2025-01-17 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269231', 'tblTempVendorCDR_20' ) end [2025-01-17 15:31:23] Production.INFO: ProcessCDR(1,14269231,1,1,2) [2025-01-17 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269231', 'tblTempUsageDetail_20' ) start [2025-01-17 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269231', 'tblTempUsageDetail_20' ) end [2025-01-17 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:31:28] Production.INFO: ==11365== Releasing lock... [2025-01-17 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:31:28] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:32:05 [end_date_ymd] => 2025-01-17 15:32:05 [RateCDR] => 1 ) [2025-01-17 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:32:05' and `end` < '2025-01-17 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:32:20] Production.INFO: count ==4520 [2025-01-17 15:32:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:32:05 - End Time 2025-01-17 15:32:05 [2025-01-17 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269236', 'tblTempUsageDetail_20' ) start [2025-01-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269236', 'tblTempUsageDetail_20' ) end [2025-01-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269236', 'tblTempVendorCDR_20' ) start [2025-01-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269236', 'tblTempVendorCDR_20' ) end [2025-01-17 15:32:22] Production.INFO: ProcessCDR(1,14269236,1,1,2) [2025-01-17 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269236', 'tblTempUsageDetail_20' ) start [2025-01-17 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269236', 'tblTempUsageDetail_20' ) end [2025-01-17 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:32:26] Production.INFO: ==11436== Releasing lock... [2025-01-17 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:32:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:33:05 [end_date_ymd] => 2025-01-17 15:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:33:05' and `end` < '2025-01-17 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-17 15:33:19] Production.INFO: count ==4506 [2025-01-17 15:33:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:33:05 - End Time 2025-01-17 15:33:05 [2025-01-17 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269241', 'tblTempUsageDetail_20' ) start [2025-01-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269241', 'tblTempUsageDetail_20' ) end [2025-01-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269241', 'tblTempVendorCDR_20' ) start [2025-01-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269241', 'tblTempVendorCDR_20' ) end [2025-01-17 15:33:21] Production.INFO: ProcessCDR(1,14269241,1,1,2) [2025-01-17 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269241', 'tblTempUsageDetail_20' ) start [2025-01-17 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269241', 'tblTempUsageDetail_20' ) end [2025-01-17 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:33:24] Production.INFO: ==11507== Releasing lock... [2025-01-17 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:33:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:34:05 [end_date_ymd] => 2025-01-17 15:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:34:05' and `end` < '2025-01-17 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-17 15:34:18] Production.INFO: count ==4480 [2025-01-17 15:34:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:34:05 - End Time 2025-01-17 15:34:05 [2025-01-17 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269246', 'tblTempUsageDetail_20' ) start [2025-01-17 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269246', 'tblTempUsageDetail_20' ) end [2025-01-17 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269246', 'tblTempVendorCDR_20' ) start [2025-01-17 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269246', 'tblTempVendorCDR_20' ) end [2025-01-17 15:34:20] Production.INFO: ProcessCDR(1,14269246,1,1,2) [2025-01-17 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269246', 'tblTempUsageDetail_20' ) start [2025-01-17 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269246', 'tblTempUsageDetail_20' ) end [2025-01-17 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:34:25] Production.INFO: ==11583== Releasing lock... [2025-01-17 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:34:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:35:05 [end_date_ymd] => 2025-01-17 15:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:35:05' and `end` < '2025-01-17 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:35:18] Production.INFO: count ==4470 [2025-01-17 15:35:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:35:05 - End Time 2025-01-17 15:35:05 [2025-01-17 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269251', 'tblTempUsageDetail_20' ) start [2025-01-17 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269251', 'tblTempUsageDetail_20' ) end [2025-01-17 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269251', 'tblTempVendorCDR_20' ) start [2025-01-17 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269251', 'tblTempVendorCDR_20' ) end [2025-01-17 15:35:20] Production.INFO: ProcessCDR(1,14269251,1,1,2) [2025-01-17 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269251', 'tblTempUsageDetail_20' ) start [2025-01-17 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269251', 'tblTempUsageDetail_20' ) end [2025-01-17 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:35:25] Production.INFO: ==11656== Releasing lock... [2025-01-17 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:36:05 [end_date_ymd] => 2025-01-17 15:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:36:05' and `end` < '2025-01-17 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-17 15:36:19] Production.INFO: count ==4471 [2025-01-17 15:36:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:36:05 - End Time 2025-01-17 15:36:05 [2025-01-17 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269256', 'tblTempUsageDetail_20' ) start [2025-01-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269256', 'tblTempUsageDetail_20' ) end [2025-01-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269256', 'tblTempVendorCDR_20' ) start [2025-01-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269256', 'tblTempVendorCDR_20' ) end [2025-01-17 15:36:21] Production.INFO: ProcessCDR(1,14269256,1,1,2) [2025-01-17 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269256', 'tblTempUsageDetail_20' ) start [2025-01-17 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269256', 'tblTempUsageDetail_20' ) end [2025-01-17 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:36:26] Production.INFO: ==11730== Releasing lock... [2025-01-17 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:36:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:37:04 [end_date_ymd] => 2025-01-17 15:37:04 [RateCDR] => 1 ) [2025-01-17 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:37:04' and `end` < '2025-01-17 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:37:19] Production.INFO: count ==4479 [2025-01-17 15:37:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:37:04 - End Time 2025-01-17 15:37:04 [2025-01-17 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269261', 'tblTempUsageDetail_20' ) start [2025-01-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269261', 'tblTempUsageDetail_20' ) end [2025-01-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269261', 'tblTempVendorCDR_20' ) start [2025-01-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269261', 'tblTempVendorCDR_20' ) end [2025-01-17 15:37:21] Production.INFO: ProcessCDR(1,14269261,1,1,2) [2025-01-17 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269261', 'tblTempUsageDetail_20' ) start [2025-01-17 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269261', 'tblTempUsageDetail_20' ) end [2025-01-17 15:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:37:25] Production.INFO: ==11808== Releasing lock... [2025-01-17 15:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:38:05 [end_date_ymd] => 2025-01-17 15:38:05 [RateCDR] => 1 ) [2025-01-17 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:38:05' and `end` < '2025-01-17 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:38:24] Production.INFO: count ==4483 [2025-01-17 15:38:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:38:05 - End Time 2025-01-17 15:38:05 [2025-01-17 15:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269266', 'tblTempUsageDetail_20' ) start [2025-01-17 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269266', 'tblTempUsageDetail_20' ) end [2025-01-17 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269266', 'tblTempVendorCDR_20' ) start [2025-01-17 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269266', 'tblTempVendorCDR_20' ) end [2025-01-17 15:38:26] Production.INFO: ProcessCDR(1,14269266,1,1,2) [2025-01-17 15:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269266', 'tblTempUsageDetail_20' ) start [2025-01-17 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269266', 'tblTempUsageDetail_20' ) end [2025-01-17 15:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:38:31] Production.INFO: ==11879== Releasing lock... [2025-01-17 15:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:38:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:39:04 [end_date_ymd] => 2025-01-17 15:39:04 [RateCDR] => 1 ) [2025-01-17 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:39:04' and `end` < '2025-01-17 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:39:20] Production.INFO: count ==4482 [2025-01-17 15:39:21] Production.ERROR: pbx CDR StartTime 2025-01-17 12:39:04 - End Time 2025-01-17 15:39:04 [2025-01-17 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269271', 'tblTempUsageDetail_20' ) start [2025-01-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269271', 'tblTempUsageDetail_20' ) end [2025-01-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269271', 'tblTempVendorCDR_20' ) start [2025-01-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269271', 'tblTempVendorCDR_20' ) end [2025-01-17 15:39:21] Production.INFO: ProcessCDR(1,14269271,1,1,2) [2025-01-17 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269271', 'tblTempUsageDetail_20' ) start [2025-01-17 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269271', 'tblTempUsageDetail_20' ) end [2025-01-17 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:39:26] Production.INFO: ==11952== Releasing lock... [2025-01-17 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:39:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:40:06 [end_date_ymd] => 2025-01-17 15:40:06 [RateCDR] => 1 ) [2025-01-17 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:40:06' and `end` < '2025-01-17 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:40:24] Production.INFO: count ==4482 [2025-01-17 15:40:25] Production.ERROR: pbx CDR StartTime 2025-01-17 12:40:06 - End Time 2025-01-17 15:40:06 [2025-01-17 15:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269276', 'tblTempUsageDetail_20' ) start [2025-01-17 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269276', 'tblTempUsageDetail_20' ) end [2025-01-17 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269276', 'tblTempVendorCDR_20' ) start [2025-01-17 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269276', 'tblTempVendorCDR_20' ) end [2025-01-17 15:40:26] Production.INFO: ProcessCDR(1,14269276,1,1,2) [2025-01-17 15:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269276', 'tblTempUsageDetail_20' ) start [2025-01-17 15:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269276', 'tblTempUsageDetail_20' ) end [2025-01-17 15:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:40:30] Production.INFO: ==12025== Releasing lock... [2025-01-17 15:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:40:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:41:05 [end_date_ymd] => 2025-01-17 15:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:41:05' and `end` < '2025-01-17 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-17 15:41:25] Production.INFO: count ==4527 [2025-01-17 15:41:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:41:05 - End Time 2025-01-17 15:41:05 [2025-01-17 15:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269282', 'tblTempUsageDetail_20' ) start [2025-01-17 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269282', 'tblTempUsageDetail_20' ) end [2025-01-17 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269282', 'tblTempVendorCDR_20' ) start [2025-01-17 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269282', 'tblTempVendorCDR_20' ) end [2025-01-17 15:41:27] Production.INFO: ProcessCDR(1,14269282,1,1,2) [2025-01-17 15:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269282', 'tblTempUsageDetail_20' ) start [2025-01-17 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269282', 'tblTempUsageDetail_20' ) end [2025-01-17 15:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:41:31] Production.INFO: ==12097== Releasing lock... [2025-01-17 15:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:41:31] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:42:05 [end_date_ymd] => 2025-01-17 15:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:42:05' and `end` < '2025-01-17 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-17 15:42:21] Production.INFO: count ==4535 [2025-01-17 15:42:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:42:05 - End Time 2025-01-17 15:42:05 [2025-01-17 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269287', 'tblTempUsageDetail_20' ) start [2025-01-17 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269287', 'tblTempUsageDetail_20' ) end [2025-01-17 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269287', 'tblTempVendorCDR_20' ) start [2025-01-17 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269287', 'tblTempVendorCDR_20' ) end [2025-01-17 15:42:23] Production.INFO: ProcessCDR(1,14269287,1,1,2) [2025-01-17 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269287', 'tblTempUsageDetail_20' ) start [2025-01-17 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269287', 'tblTempUsageDetail_20' ) end [2025-01-17 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:42:27] Production.INFO: ==12166== Releasing lock... [2025-01-17 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:42:27] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:43:05 [end_date_ymd] => 2025-01-17 15:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:43:05' and `end` < '2025-01-17 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-17 15:43:22] Production.INFO: count ==4526 [2025-01-17 15:43:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:43:05 - End Time 2025-01-17 15:43:05 [2025-01-17 15:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269292', 'tblTempUsageDetail_20' ) start [2025-01-17 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269292', 'tblTempUsageDetail_20' ) end [2025-01-17 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269292', 'tblTempVendorCDR_20' ) start [2025-01-17 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269292', 'tblTempVendorCDR_20' ) end [2025-01-17 15:43:24] Production.INFO: ProcessCDR(1,14269292,1,1,2) [2025-01-17 15:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269292', 'tblTempUsageDetail_20' ) start [2025-01-17 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269292', 'tblTempUsageDetail_20' ) end [2025-01-17 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:43:28] Production.INFO: ==12242== Releasing lock... [2025-01-17 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:43:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-17 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:44:04 [end_date_ymd] => 2025-01-17 15:44:04 [RateCDR] => 1 ) [2025-01-17 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:44:04' and `end` < '2025-01-17 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:44:21] Production.INFO: count ==4527 [2025-01-17 15:44:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:44:04 - End Time 2025-01-17 15:44:04 [2025-01-17 15:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269297', 'tblTempUsageDetail_20' ) start [2025-01-17 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269297', 'tblTempUsageDetail_20' ) end [2025-01-17 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269297', 'tblTempVendorCDR_20' ) start [2025-01-17 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269297', 'tblTempVendorCDR_20' ) end [2025-01-17 15:44:23] Production.INFO: ProcessCDR(1,14269297,1,1,2) [2025-01-17 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269297', 'tblTempUsageDetail_20' ) start [2025-01-17 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269297', 'tblTempUsageDetail_20' ) end [2025-01-17 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:44:27] Production.INFO: ==12315== Releasing lock... [2025-01-17 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:44:27] Production.INFO: 62 MB #Memory Used# [2025-01-17 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:45:05 [end_date_ymd] => 2025-01-17 15:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:45:05' and `end` < '2025-01-17 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-17 15:45:25] Production.INFO: count ==4514 [2025-01-17 15:45:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:45:05 - End Time 2025-01-17 15:45:05 [2025-01-17 15:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269302', 'tblTempUsageDetail_20' ) start [2025-01-17 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269302', 'tblTempUsageDetail_20' ) end [2025-01-17 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269302', 'tblTempVendorCDR_20' ) start [2025-01-17 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269302', 'tblTempVendorCDR_20' ) end [2025-01-17 15:45:27] Production.INFO: ProcessCDR(1,14269302,1,1,2) [2025-01-17 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269302', 'tblTempUsageDetail_20' ) start [2025-01-17 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269302', 'tblTempUsageDetail_20' ) end [2025-01-17 15:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:45:31] Production.INFO: ==12384== Releasing lock... [2025-01-17 15:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:45:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:46:04 [end_date_ymd] => 2025-01-17 15:46:04 [RateCDR] => 1 ) [2025-01-17 15:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:46:04' and `end` < '2025-01-17 15:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:46:18] Production.INFO: count ==4506 [2025-01-17 15:46:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:46:04 - End Time 2025-01-17 15:46:04 [2025-01-17 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269307', 'tblTempUsageDetail_20' ) start [2025-01-17 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269307', 'tblTempUsageDetail_20' ) end [2025-01-17 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269307', 'tblTempVendorCDR_20' ) start [2025-01-17 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269307', 'tblTempVendorCDR_20' ) end [2025-01-17 15:46:20] Production.INFO: ProcessCDR(1,14269307,1,1,2) [2025-01-17 15:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269307', 'tblTempUsageDetail_20' ) start [2025-01-17 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269307', 'tblTempUsageDetail_20' ) end [2025-01-17 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:46:24] Production.INFO: ==12495== Releasing lock... [2025-01-17 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:46:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:47:06 [end_date_ymd] => 2025-01-17 15:47:06 [RateCDR] => 1 ) [2025-01-17 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:47:06' and `end` < '2025-01-17 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:47:21] Production.INFO: count ==4497 [2025-01-17 15:47:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:47:06 - End Time 2025-01-17 15:47:06 [2025-01-17 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269312', 'tblTempUsageDetail_20' ) start [2025-01-17 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269312', 'tblTempUsageDetail_20' ) end [2025-01-17 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269312', 'tblTempVendorCDR_20' ) start [2025-01-17 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269312', 'tblTempVendorCDR_20' ) end [2025-01-17 15:47:23] Production.INFO: ProcessCDR(1,14269312,1,1,2) [2025-01-17 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269312', 'tblTempUsageDetail_20' ) start [2025-01-17 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269312', 'tblTempUsageDetail_20' ) end [2025-01-17 15:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:47:28] Production.INFO: ==12568== Releasing lock... [2025-01-17 15:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:47:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:48:05 [end_date_ymd] => 2025-01-17 15:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:48:05' and `end` < '2025-01-17 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-17 15:48:21] Production.INFO: count ==4482 [2025-01-17 15:48:23] Production.ERROR: pbx CDR StartTime 2025-01-17 12:48:05 - End Time 2025-01-17 15:48:05 [2025-01-17 15:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269317', 'tblTempUsageDetail_20' ) start [2025-01-17 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269317', 'tblTempUsageDetail_20' ) end [2025-01-17 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269317', 'tblTempVendorCDR_20' ) start [2025-01-17 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269317', 'tblTempVendorCDR_20' ) end [2025-01-17 15:48:23] Production.INFO: ProcessCDR(1,14269317,1,1,2) [2025-01-17 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269317', 'tblTempUsageDetail_20' ) start [2025-01-17 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269317', 'tblTempUsageDetail_20' ) end [2025-01-17 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:48:28] Production.INFO: ==12639== Releasing lock... [2025-01-17 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:48:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:49:05 [end_date_ymd] => 2025-01-17 15:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:49:05' and `end` < '2025-01-17 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-17 15:49:25] Production.INFO: count ==4493 [2025-01-17 15:49:27] Production.ERROR: pbx CDR StartTime 2025-01-17 12:49:05 - End Time 2025-01-17 15:49:05 [2025-01-17 15:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269322', 'tblTempUsageDetail_20' ) start [2025-01-17 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269322', 'tblTempUsageDetail_20' ) end [2025-01-17 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269322', 'tblTempVendorCDR_20' ) start [2025-01-17 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269322', 'tblTempVendorCDR_20' ) end [2025-01-17 15:49:27] Production.INFO: ProcessCDR(1,14269322,1,1,2) [2025-01-17 15:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269322', 'tblTempUsageDetail_20' ) start [2025-01-17 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269322', 'tblTempUsageDetail_20' ) end [2025-01-17 15:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:49:32] Production.INFO: ==12712== Releasing lock... [2025-01-17 15:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:49:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:50:06 [end_date_ymd] => 2025-01-17 15:50:06 [RateCDR] => 1 ) [2025-01-17 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:50:06' and `end` < '2025-01-17 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:50:25] Production.INFO: count ==4511 [2025-01-17 15:50:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:50:06 - End Time 2025-01-17 15:50:06 [2025-01-17 15:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269328', 'tblTempUsageDetail_20' ) start [2025-01-17 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269328', 'tblTempUsageDetail_20' ) end [2025-01-17 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269328', 'tblTempVendorCDR_20' ) start [2025-01-17 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269328', 'tblTempVendorCDR_20' ) end [2025-01-17 15:50:26] Production.INFO: ProcessCDR(1,14269328,1,1,2) [2025-01-17 15:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269328', 'tblTempUsageDetail_20' ) start [2025-01-17 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269328', 'tblTempUsageDetail_20' ) end [2025-01-17 15:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:50:31] Production.INFO: ==12786== Releasing lock... [2025-01-17 15:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:50:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:51:04 [end_date_ymd] => 2025-01-17 15:51:04 [RateCDR] => 1 ) [2025-01-17 15:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:51:04' and `end` < '2025-01-17 15:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:51:20] Production.INFO: count ==4523 [2025-01-17 15:51:22] Production.ERROR: pbx CDR StartTime 2025-01-17 12:51:04 - End Time 2025-01-17 15:51:04 [2025-01-17 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269333', 'tblTempUsageDetail_20' ) start [2025-01-17 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269333', 'tblTempUsageDetail_20' ) end [2025-01-17 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269333', 'tblTempVendorCDR_20' ) start [2025-01-17 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269333', 'tblTempVendorCDR_20' ) end [2025-01-17 15:51:22] Production.INFO: ProcessCDR(1,14269333,1,1,2) [2025-01-17 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269333', 'tblTempUsageDetail_20' ) start [2025-01-17 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269333', 'tblTempUsageDetail_20' ) end [2025-01-17 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:51:27] Production.INFO: ==12860== Releasing lock... [2025-01-17 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:51:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:52:05 [end_date_ymd] => 2025-01-17 15:52:05 [RateCDR] => 1 ) [2025-01-17 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:52:05' and `end` < '2025-01-17 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:52:18] Production.INFO: count ==4508 [2025-01-17 15:52:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:52:05 - End Time 2025-01-17 15:52:05 [2025-01-17 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269338', 'tblTempUsageDetail_20' ) start [2025-01-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269338', 'tblTempUsageDetail_20' ) end [2025-01-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269338', 'tblTempVendorCDR_20' ) start [2025-01-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269338', 'tblTempVendorCDR_20' ) end [2025-01-17 15:52:20] Production.INFO: ProcessCDR(1,14269338,1,1,2) [2025-01-17 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269338', 'tblTempUsageDetail_20' ) start [2025-01-17 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269338', 'tblTempUsageDetail_20' ) end [2025-01-17 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:52:25] Production.INFO: ==12935== Releasing lock... [2025-01-17 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:52:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:53:05 [end_date_ymd] => 2025-01-17 15:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:53:05' and `end` < '2025-01-17 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-17 15:53:22] Production.INFO: count ==4519 [2025-01-17 15:53:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:53:05 - End Time 2025-01-17 15:53:05 [2025-01-17 15:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269343', 'tblTempUsageDetail_20' ) start [2025-01-17 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269343', 'tblTempUsageDetail_20' ) end [2025-01-17 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269343', 'tblTempVendorCDR_20' ) start [2025-01-17 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269343', 'tblTempVendorCDR_20' ) end [2025-01-17 15:53:24] Production.INFO: ProcessCDR(1,14269343,1,1,2) [2025-01-17 15:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269343', 'tblTempUsageDetail_20' ) start [2025-01-17 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269343', 'tblTempUsageDetail_20' ) end [2025-01-17 15:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:53:29] Production.INFO: ==13006== Releasing lock... [2025-01-17 15:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:53:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:54:05 [end_date_ymd] => 2025-01-17 15:54:05 [RateCDR] => 1 ) [2025-01-17 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:54:05' and `end` < '2025-01-17 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:54:25] Production.INFO: count ==4514 [2025-01-17 15:54:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:54:05 - End Time 2025-01-17 15:54:05 [2025-01-17 15:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269348', 'tblTempUsageDetail_20' ) start [2025-01-17 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269348', 'tblTempUsageDetail_20' ) end [2025-01-17 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269348', 'tblTempVendorCDR_20' ) start [2025-01-17 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269348', 'tblTempVendorCDR_20' ) end [2025-01-17 15:54:26] Production.INFO: ProcessCDR(1,14269348,1,1,2) [2025-01-17 15:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269348', 'tblTempUsageDetail_20' ) start [2025-01-17 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269348', 'tblTempUsageDetail_20' ) end [2025-01-17 15:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:54:31] Production.INFO: ==13082== Releasing lock... [2025-01-17 15:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:54:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:55:05 [end_date_ymd] => 2025-01-17 15:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:55:05' and `end` < '2025-01-17 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-17 15:55:22] Production.INFO: count ==4514 [2025-01-17 15:55:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:55:05 - End Time 2025-01-17 15:55:05 [2025-01-17 15:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269353', 'tblTempUsageDetail_20' ) start [2025-01-17 15:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269353', 'tblTempUsageDetail_20' ) end [2025-01-17 15:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269353', 'tblTempVendorCDR_20' ) start [2025-01-17 15:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269353', 'tblTempVendorCDR_20' ) end [2025-01-17 15:55:24] Production.INFO: ProcessCDR(1,14269353,1,1,2) [2025-01-17 15:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269353', 'tblTempUsageDetail_20' ) start [2025-01-17 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269353', 'tblTempUsageDetail_20' ) end [2025-01-17 15:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:55:29] Production.INFO: ==13154== Releasing lock... [2025-01-17 15:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:55:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:56:06 [end_date_ymd] => 2025-01-17 15:56:06 [RateCDR] => 1 ) [2025-01-17 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-17 12:56:06' and `end` < '2025-01-17 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-17 15:56:19] Production.INFO: count ==4509 [2025-01-17 15:56:20] Production.ERROR: pbx CDR StartTime 2025-01-17 12:56:06 - End Time 2025-01-17 15:56:06 [2025-01-17 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269358', 'tblTempUsageDetail_20' ) start [2025-01-17 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269358', 'tblTempUsageDetail_20' ) end [2025-01-17 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269358', 'tblTempVendorCDR_20' ) start [2025-01-17 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269358', 'tblTempVendorCDR_20' ) end [2025-01-17 15:56:20] Production.INFO: ProcessCDR(1,14269358,1,1,2) [2025-01-17 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269358', 'tblTempUsageDetail_20' ) start [2025-01-17 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269358', 'tblTempUsageDetail_20' ) end [2025-01-17 15:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:56:25] Production.INFO: ==13230== Releasing lock... [2025-01-17 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:56:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:57:04 [end_date_ymd] => 2025-01-17 15:57:04 [RateCDR] => 1 ) [2025-01-17 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-17 12:57:04' and `end` < '2025-01-17 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:57:18] Production.INFO: count ==4498 [2025-01-17 15:57:19] Production.ERROR: pbx CDR StartTime 2025-01-17 12:57:04 - End Time 2025-01-17 15:57:04 [2025-01-17 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269363', 'tblTempUsageDetail_20' ) start [2025-01-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269363', 'tblTempUsageDetail_20' ) end [2025-01-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269363', 'tblTempVendorCDR_20' ) start [2025-01-17 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269363', 'tblTempVendorCDR_20' ) end [2025-01-17 15:57:19] Production.INFO: ProcessCDR(1,14269363,1,1,2) [2025-01-17 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269363', 'tblTempUsageDetail_20' ) start [2025-01-17 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269363', 'tblTempUsageDetail_20' ) end [2025-01-17 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:57:24] Production.INFO: ==13306== Releasing lock... [2025-01-17 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:57:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:58:05 [end_date_ymd] => 2025-01-17 15:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 12:58:05' and `end` < '2025-01-17 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-17 15:58:22] Production.INFO: count ==4484 [2025-01-17 15:58:24] Production.ERROR: pbx CDR StartTime 2025-01-17 12:58:05 - End Time 2025-01-17 15:58:05 [2025-01-17 15:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269368', 'tblTempUsageDetail_20' ) start [2025-01-17 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269368', 'tblTempUsageDetail_20' ) end [2025-01-17 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269368', 'tblTempVendorCDR_20' ) start [2025-01-17 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269368', 'tblTempVendorCDR_20' ) end [2025-01-17 15:58:24] Production.INFO: ProcessCDR(1,14269368,1,1,2) [2025-01-17 15:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269368', 'tblTempUsageDetail_20' ) start [2025-01-17 15:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269368', 'tblTempUsageDetail_20' ) end [2025-01-17 15:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:58:29] Production.INFO: ==13388== Releasing lock... [2025-01-17 15:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:58:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 12:59:04 [end_date_ymd] => 2025-01-17 15:59:04 [RateCDR] => 1 ) [2025-01-17 15:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 12:59:04' and `end` < '2025-01-17 15:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 15:59:25] Production.INFO: count ==4479 [2025-01-17 15:59:26] Production.ERROR: pbx CDR StartTime 2025-01-17 12:59:04 - End Time 2025-01-17 15:59:04 [2025-01-17 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269373', 'tblTempUsageDetail_20' ) start [2025-01-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269373', 'tblTempUsageDetail_20' ) end [2025-01-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269373', 'tblTempVendorCDR_20' ) start [2025-01-17 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269373', 'tblTempVendorCDR_20' ) end [2025-01-17 15:59:26] Production.INFO: ProcessCDR(1,14269373,1,1,2) [2025-01-17 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269373', 'tblTempUsageDetail_20' ) start [2025-01-17 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269373', 'tblTempUsageDetail_20' ) end [2025-01-17 15:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 15:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 15:59:31] Production.INFO: ==13461== Releasing lock... [2025-01-17 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 15:59:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:00:06 [end_date_ymd] => 2025-01-17 16:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 13:00:06' and `end` < '2025-01-17 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-17 16:00:24] Production.INFO: count ==4466 [2025-01-17 16:00:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:00:06 - End Time 2025-01-17 16:00:06 [2025-01-17 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269379', 'tblTempUsageDetail_20' ) start [2025-01-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269379', 'tblTempUsageDetail_20' ) end [2025-01-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269379', 'tblTempVendorCDR_20' ) start [2025-01-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269379', 'tblTempVendorCDR_20' ) end [2025-01-17 16:00:25] Production.INFO: ProcessCDR(1,14269379,1,1,2) [2025-01-17 16:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269379', 'tblTempUsageDetail_20' ) start [2025-01-17 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269379', 'tblTempUsageDetail_20' ) end [2025-01-17 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:00:30] Production.INFO: ==13535== Releasing lock... [2025-01-17 16:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:00:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:01:05 [end_date_ymd] => 2025-01-17 16:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:01:05' and `end` < '2025-01-17 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-17 16:01:22] Production.INFO: count ==4434 [2025-01-17 16:01:24] Production.ERROR: pbx CDR StartTime 2025-01-17 13:01:05 - End Time 2025-01-17 16:01:05 [2025-01-17 16:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269384', 'tblTempUsageDetail_20' ) start [2025-01-17 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269384', 'tblTempUsageDetail_20' ) end [2025-01-17 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269384', 'tblTempVendorCDR_20' ) start [2025-01-17 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269384', 'tblTempVendorCDR_20' ) end [2025-01-17 16:01:24] Production.INFO: ProcessCDR(1,14269384,1,1,2) [2025-01-17 16:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269384', 'tblTempUsageDetail_20' ) start [2025-01-17 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269384', 'tblTempUsageDetail_20' ) end [2025-01-17 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:01:30] Production.INFO: ==13658== Releasing lock... [2025-01-17 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:01:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:02:05 [end_date_ymd] => 2025-01-17 16:02:05 [RateCDR] => 1 ) [2025-01-17 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:02:05' and `end` < '2025-01-17 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:02:19] Production.INFO: count ==4421 [2025-01-17 16:02:21] Production.ERROR: pbx CDR StartTime 2025-01-17 13:02:05 - End Time 2025-01-17 16:02:05 [2025-01-17 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269389', 'tblTempUsageDetail_20' ) start [2025-01-17 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269389', 'tblTempUsageDetail_20' ) end [2025-01-17 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269389', 'tblTempVendorCDR_20' ) start [2025-01-17 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269389', 'tblTempVendorCDR_20' ) end [2025-01-17 16:02:21] Production.INFO: ProcessCDR(1,14269389,1,1,2) [2025-01-17 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269389', 'tblTempUsageDetail_20' ) start [2025-01-17 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269389', 'tblTempUsageDetail_20' ) end [2025-01-17 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:02:26] Production.INFO: ==13731== Releasing lock... [2025-01-17 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:02:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:03:05 [end_date_ymd] => 2025-01-17 16:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:03:05' and `end` < '2025-01-17 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-17 16:03:28] Production.INFO: count ==4408 [2025-01-17 16:03:29] Production.ERROR: pbx CDR StartTime 2025-01-17 13:03:05 - End Time 2025-01-17 16:03:05 [2025-01-17 16:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269394', 'tblTempUsageDetail_20' ) start [2025-01-17 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269394', 'tblTempUsageDetail_20' ) end [2025-01-17 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269394', 'tblTempVendorCDR_20' ) start [2025-01-17 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269394', 'tblTempVendorCDR_20' ) end [2025-01-17 16:03:29] Production.INFO: ProcessCDR(1,14269394,1,1,2) [2025-01-17 16:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269394', 'tblTempUsageDetail_20' ) start [2025-01-17 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269394', 'tblTempUsageDetail_20' ) end [2025-01-17 16:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:03:34] Production.INFO: ==13803== Releasing lock... [2025-01-17 16:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:03:34] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:04:05 [end_date_ymd] => 2025-01-17 16:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:04:05' and `end` < '2025-01-17 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-17 16:04:23] Production.INFO: count ==4413 [2025-01-17 16:04:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:04:05 - End Time 2025-01-17 16:04:05 [2025-01-17 16:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269399', 'tblTempUsageDetail_20' ) start [2025-01-17 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269399', 'tblTempUsageDetail_20' ) end [2025-01-17 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269399', 'tblTempVendorCDR_20' ) start [2025-01-17 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269399', 'tblTempVendorCDR_20' ) end [2025-01-17 16:04:25] Production.INFO: ProcessCDR(1,14269399,1,1,2) [2025-01-17 16:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269399', 'tblTempUsageDetail_20' ) start [2025-01-17 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269399', 'tblTempUsageDetail_20' ) end [2025-01-17 16:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:04:30] Production.INFO: ==13873== Releasing lock... [2025-01-17 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:04:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:05:05 [end_date_ymd] => 2025-01-17 16:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:05:05' and `end` < '2025-01-17 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-17 16:05:27] Production.INFO: count ==4414 [2025-01-17 16:05:28] Production.ERROR: pbx CDR StartTime 2025-01-17 13:05:05 - End Time 2025-01-17 16:05:05 [2025-01-17 16:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269404', 'tblTempUsageDetail_20' ) start [2025-01-17 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269404', 'tblTempUsageDetail_20' ) end [2025-01-17 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269404', 'tblTempVendorCDR_20' ) start [2025-01-17 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269404', 'tblTempVendorCDR_20' ) end [2025-01-17 16:05:28] Production.INFO: ProcessCDR(1,14269404,1,1,2) [2025-01-17 16:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269404', 'tblTempUsageDetail_20' ) start [2025-01-17 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269404', 'tblTempUsageDetail_20' ) end [2025-01-17 16:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:05:33] Production.INFO: ==13947== Releasing lock... [2025-01-17 16:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:05:33] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:06:05 [end_date_ymd] => 2025-01-17 16:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:06:05' and `end` < '2025-01-17 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-17 16:06:32] Production.INFO: count ==4422 [2025-01-17 16:06:34] Production.ERROR: pbx CDR StartTime 2025-01-17 13:06:05 - End Time 2025-01-17 16:06:05 [2025-01-17 16:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269409', 'tblTempUsageDetail_20' ) start [2025-01-17 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269409', 'tblTempUsageDetail_20' ) end [2025-01-17 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269409', 'tblTempVendorCDR_20' ) start [2025-01-17 16:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269409', 'tblTempVendorCDR_20' ) end [2025-01-17 16:06:34] Production.INFO: ProcessCDR(1,14269409,1,1,2) [2025-01-17 16:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269409', 'tblTempUsageDetail_20' ) start [2025-01-17 16:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269409', 'tblTempUsageDetail_20' ) end [2025-01-17 16:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:06:39] Production.INFO: ==14017== Releasing lock... [2025-01-17 16:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:06:39] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:07:05 [end_date_ymd] => 2025-01-17 16:07:05 [RateCDR] => 1 ) [2025-01-17 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:07:05' and `end` < '2025-01-17 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:07:23] Production.INFO: count ==4425 [2025-01-17 16:07:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:07:05 - End Time 2025-01-17 16:07:05 [2025-01-17 16:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269414', 'tblTempUsageDetail_20' ) start [2025-01-17 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269414', 'tblTempUsageDetail_20' ) end [2025-01-17 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269414', 'tblTempVendorCDR_20' ) start [2025-01-17 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269414', 'tblTempVendorCDR_20' ) end [2025-01-17 16:07:25] Production.INFO: ProcessCDR(1,14269414,1,1,2) [2025-01-17 16:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269414', 'tblTempUsageDetail_20' ) start [2025-01-17 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269414', 'tblTempUsageDetail_20' ) end [2025-01-17 16:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:07:31] Production.INFO: ==14087== Releasing lock... [2025-01-17 16:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:07:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:08:05 [end_date_ymd] => 2025-01-17 16:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:08:05' and `end` < '2025-01-17 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-17 16:08:25] Production.INFO: count ==4422 [2025-01-17 16:08:26] Production.ERROR: pbx CDR StartTime 2025-01-17 13:08:05 - End Time 2025-01-17 16:08:05 [2025-01-17 16:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269419', 'tblTempUsageDetail_20' ) start [2025-01-17 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269419', 'tblTempUsageDetail_20' ) end [2025-01-17 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269419', 'tblTempVendorCDR_20' ) start [2025-01-17 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269419', 'tblTempVendorCDR_20' ) end [2025-01-17 16:08:27] Production.INFO: ProcessCDR(1,14269419,1,1,2) [2025-01-17 16:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269419', 'tblTempUsageDetail_20' ) start [2025-01-17 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269419', 'tblTempUsageDetail_20' ) end [2025-01-17 16:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:08:31] Production.INFO: ==14160== Releasing lock... [2025-01-17 16:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:08:31] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:09:05 [end_date_ymd] => 2025-01-17 16:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:09:05' and `end` < '2025-01-17 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-17 16:09:22] Production.INFO: count ==4412 [2025-01-17 16:09:24] Production.ERROR: pbx CDR StartTime 2025-01-17 13:09:05 - End Time 2025-01-17 16:09:05 [2025-01-17 16:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269424', 'tblTempUsageDetail_20' ) start [2025-01-17 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269424', 'tblTempUsageDetail_20' ) end [2025-01-17 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269424', 'tblTempVendorCDR_20' ) start [2025-01-17 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269424', 'tblTempVendorCDR_20' ) end [2025-01-17 16:09:24] Production.INFO: ProcessCDR(1,14269424,1,1,2) [2025-01-17 16:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269424', 'tblTempUsageDetail_20' ) start [2025-01-17 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269424', 'tblTempUsageDetail_20' ) end [2025-01-17 16:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:09:30] Production.INFO: ==14231== Releasing lock... [2025-01-17 16:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:09:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:10:06 [end_date_ymd] => 2025-01-17 16:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 13:10:06' and `end` < '2025-01-17 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-17 16:10:26] Production.INFO: count ==4407 [2025-01-17 16:10:27] Production.ERROR: pbx CDR StartTime 2025-01-17 13:10:06 - End Time 2025-01-17 16:10:06 [2025-01-17 16:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269430', 'tblTempUsageDetail_20' ) start [2025-01-17 16:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269430', 'tblTempUsageDetail_20' ) end [2025-01-17 16:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269430', 'tblTempVendorCDR_20' ) start [2025-01-17 16:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269430', 'tblTempVendorCDR_20' ) end [2025-01-17 16:10:27] Production.INFO: ProcessCDR(1,14269430,1,1,2) [2025-01-17 16:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269430', 'tblTempUsageDetail_20' ) start [2025-01-17 16:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269430', 'tblTempUsageDetail_20' ) end [2025-01-17 16:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:10:32] Production.INFO: ==14307== Releasing lock... [2025-01-17 16:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:10:32] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:11:05 [end_date_ymd] => 2025-01-17 16:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:11:05' and `end` < '2025-01-17 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-17 16:11:19] Production.INFO: count ==4378 [2025-01-17 16:11:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:11:05 - End Time 2025-01-17 16:11:05 [2025-01-17 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269435', 'tblTempUsageDetail_20' ) start [2025-01-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269435', 'tblTempUsageDetail_20' ) end [2025-01-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269435', 'tblTempVendorCDR_20' ) start [2025-01-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269435', 'tblTempVendorCDR_20' ) end [2025-01-17 16:11:20] Production.INFO: ProcessCDR(1,14269435,1,1,2) [2025-01-17 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269435', 'tblTempUsageDetail_20' ) start [2025-01-17 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269435', 'tblTempUsageDetail_20' ) end [2025-01-17 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:11:25] Production.INFO: ==14380== Releasing lock... [2025-01-17 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:11:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:12:06 [end_date_ymd] => 2025-01-17 16:12:06 [RateCDR] => 1 ) [2025-01-17 16: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-17 13:12:06' and `end` < '2025-01-17 16: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-17 16:12:19] Production.INFO: count ==4374 [2025-01-17 16:12:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:12:06 - End Time 2025-01-17 16:12:06 [2025-01-17 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269440', 'tblTempUsageDetail_20' ) start [2025-01-17 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269440', 'tblTempUsageDetail_20' ) end [2025-01-17 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269440', 'tblTempVendorCDR_20' ) start [2025-01-17 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269440', 'tblTempVendorCDR_20' ) end [2025-01-17 16:12:21] Production.INFO: ProcessCDR(1,14269440,1,1,2) [2025-01-17 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269440', 'tblTempUsageDetail_20' ) start [2025-01-17 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269440', 'tblTempUsageDetail_20' ) end [2025-01-17 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:12:25] Production.INFO: ==14453== Releasing lock... [2025-01-17 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:12:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:13:05 [end_date_ymd] => 2025-01-17 16:13:05 [RateCDR] => 1 ) [2025-01-17 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:13:05' and `end` < '2025-01-17 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:13:18] Production.INFO: count ==4353 [2025-01-17 16:13:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:13:05 - End Time 2025-01-17 16:13:05 [2025-01-17 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269445', 'tblTempUsageDetail_20' ) start [2025-01-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269445', 'tblTempUsageDetail_20' ) end [2025-01-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269445', 'tblTempVendorCDR_20' ) start [2025-01-17 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269445', 'tblTempVendorCDR_20' ) end [2025-01-17 16:13:20] Production.INFO: ProcessCDR(1,14269445,1,1,2) [2025-01-17 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269445', 'tblTempUsageDetail_20' ) start [2025-01-17 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269445', 'tblTempUsageDetail_20' ) end [2025-01-17 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:13:24] Production.INFO: ==14526== Releasing lock... [2025-01-17 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:13:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:14:05 [end_date_ymd] => 2025-01-17 16:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:14:05' and `end` < '2025-01-17 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-17 16:14:19] Production.INFO: count ==4349 [2025-01-17 16:14:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:14:05 - End Time 2025-01-17 16:14:05 [2025-01-17 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269450', 'tblTempUsageDetail_20' ) start [2025-01-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269450', 'tblTempUsageDetail_20' ) end [2025-01-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269450', 'tblTempVendorCDR_20' ) start [2025-01-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269450', 'tblTempVendorCDR_20' ) end [2025-01-17 16:14:20] Production.INFO: ProcessCDR(1,14269450,1,1,2) [2025-01-17 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269450', 'tblTempUsageDetail_20' ) start [2025-01-17 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269450', 'tblTempUsageDetail_20' ) end [2025-01-17 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:14:24] Production.INFO: ==14597== Releasing lock... [2025-01-17 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:14:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:15:05 [end_date_ymd] => 2025-01-17 16:15:05 [RateCDR] => 1 ) [2025-01-17 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:15:05' and `end` < '2025-01-17 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:15:21] Production.INFO: count ==4343 [2025-01-17 16:15:22] Production.ERROR: pbx CDR StartTime 2025-01-17 13:15:05 - End Time 2025-01-17 16:15:05 [2025-01-17 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269455', 'tblTempUsageDetail_20' ) start [2025-01-17 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269455', 'tblTempUsageDetail_20' ) end [2025-01-17 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269455', 'tblTempVendorCDR_20' ) start [2025-01-17 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269455', 'tblTempVendorCDR_20' ) end [2025-01-17 16:15:23] Production.INFO: ProcessCDR(1,14269455,1,1,2) [2025-01-17 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269455', 'tblTempUsageDetail_20' ) start [2025-01-17 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269455', 'tblTempUsageDetail_20' ) end [2025-01-17 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:15:27] Production.INFO: ==14668== Releasing lock... [2025-01-17 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:15:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:16:05 [end_date_ymd] => 2025-01-17 16:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:16:05' and `end` < '2025-01-17 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-17 16:16:18] Production.INFO: count ==4322 [2025-01-17 16:16:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:16:05 - End Time 2025-01-17 16:16:05 [2025-01-17 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269460', 'tblTempUsageDetail_20' ) start [2025-01-17 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269460', 'tblTempUsageDetail_20' ) end [2025-01-17 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269460', 'tblTempVendorCDR_20' ) start [2025-01-17 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269460', 'tblTempVendorCDR_20' ) end [2025-01-17 16:16:20] Production.INFO: ProcessCDR(1,14269460,1,1,2) [2025-01-17 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269460', 'tblTempUsageDetail_20' ) start [2025-01-17 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269460', 'tblTempUsageDetail_20' ) end [2025-01-17 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:16:25] Production.INFO: ==14740== Releasing lock... [2025-01-17 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:16:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:17:05 [end_date_ymd] => 2025-01-17 16:17:05 [RateCDR] => 1 ) [2025-01-17 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:17:05' and `end` < '2025-01-17 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:17:20] Production.INFO: count ==4320 [2025-01-17 16:17:21] Production.ERROR: pbx CDR StartTime 2025-01-17 13:17:05 - End Time 2025-01-17 16:17:05 [2025-01-17 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269465', 'tblTempUsageDetail_20' ) start [2025-01-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269465', 'tblTempUsageDetail_20' ) end [2025-01-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269465', 'tblTempVendorCDR_20' ) start [2025-01-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269465', 'tblTempVendorCDR_20' ) end [2025-01-17 16:17:21] Production.INFO: ProcessCDR(1,14269465,1,1,2) [2025-01-17 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269465', 'tblTempUsageDetail_20' ) start [2025-01-17 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269465', 'tblTempUsageDetail_20' ) end [2025-01-17 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:17:26] Production.INFO: ==14849== Releasing lock... [2025-01-17 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:17:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:18:05 [end_date_ymd] => 2025-01-17 16:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:18:05' and `end` < '2025-01-17 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-17 16:18:19] Production.INFO: count ==4316 [2025-01-17 16:18:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:18:05 - End Time 2025-01-17 16:18:05 [2025-01-17 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269470', 'tblTempUsageDetail_20' ) start [2025-01-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269470', 'tblTempUsageDetail_20' ) end [2025-01-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269470', 'tblTempVendorCDR_20' ) start [2025-01-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269470', 'tblTempVendorCDR_20' ) end [2025-01-17 16:18:20] Production.INFO: ProcessCDR(1,14269470,1,1,2) [2025-01-17 16:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269470', 'tblTempUsageDetail_20' ) start [2025-01-17 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269470', 'tblTempUsageDetail_20' ) end [2025-01-17 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:18:25] Production.INFO: ==14932== Releasing lock... [2025-01-17 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:18:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:19:05 [end_date_ymd] => 2025-01-17 16:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:19:05' and `end` < '2025-01-17 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-17 16:19:26] Production.INFO: count ==4321 [2025-01-17 16:19:27] Production.ERROR: pbx CDR StartTime 2025-01-17 13:19:05 - End Time 2025-01-17 16:19:05 [2025-01-17 16:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269475', 'tblTempUsageDetail_20' ) start [2025-01-17 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269475', 'tblTempUsageDetail_20' ) end [2025-01-17 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269475', 'tblTempVendorCDR_20' ) start [2025-01-17 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269475', 'tblTempVendorCDR_20' ) end [2025-01-17 16:19:27] Production.INFO: ProcessCDR(1,14269475,1,1,2) [2025-01-17 16:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269475', 'tblTempUsageDetail_20' ) start [2025-01-17 16:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269475', 'tblTempUsageDetail_20' ) end [2025-01-17 16:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:19:32] Production.INFO: ==15003== Releasing lock... [2025-01-17 16:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:19:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:20:05 [end_date_ymd] => 2025-01-17 16:20:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:20:05' and `end` < '2025-01-17 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-17 16:20:23] Production.INFO: count ==4345 [2025-01-17 16:20:24] Production.ERROR: pbx CDR StartTime 2025-01-17 13:20:05 - End Time 2025-01-17 16:20:05 [2025-01-17 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269481', 'tblTempUsageDetail_20' ) start [2025-01-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269481', 'tblTempUsageDetail_20' ) end [2025-01-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269481', 'tblTempVendorCDR_20' ) start [2025-01-17 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269481', 'tblTempVendorCDR_20' ) end [2025-01-17 16:20:24] Production.INFO: ProcessCDR(1,14269481,1,1,2) [2025-01-17 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269481', 'tblTempUsageDetail_20' ) start [2025-01-17 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269481', 'tblTempUsageDetail_20' ) end [2025-01-17 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:20:29] Production.INFO: ==15077== Releasing lock... [2025-01-17 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:20:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:21:05 [end_date_ymd] => 2025-01-17 16:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:21:05' and `end` < '2025-01-17 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-17 16:21:23] Production.INFO: count ==4389 [2025-01-17 16:21:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:21:05 - End Time 2025-01-17 16:21:05 [2025-01-17 16:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269486', 'tblTempUsageDetail_20' ) start [2025-01-17 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269486', 'tblTempUsageDetail_20' ) end [2025-01-17 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269486', 'tblTempVendorCDR_20' ) start [2025-01-17 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269486', 'tblTempVendorCDR_20' ) end [2025-01-17 16:21:25] Production.INFO: ProcessCDR(1,14269486,1,1,2) [2025-01-17 16:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269486', 'tblTempUsageDetail_20' ) start [2025-01-17 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269486', 'tblTempUsageDetail_20' ) end [2025-01-17 16:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:21:30] Production.INFO: ==15149== Releasing lock... [2025-01-17 16:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:21:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:22:04 [end_date_ymd] => 2025-01-17 16:22:04 [RateCDR] => 1 ) [2025-01-17 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-17 13:22:04' and `end` < '2025-01-17 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-17 16:22:23] Production.INFO: count ==4395 [2025-01-17 16:22:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:22:04 - End Time 2025-01-17 16:22:04 [2025-01-17 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269491', 'tblTempUsageDetail_20' ) start [2025-01-17 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269491', 'tblTempUsageDetail_20' ) end [2025-01-17 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269491', 'tblTempVendorCDR_20' ) start [2025-01-17 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269491', 'tblTempVendorCDR_20' ) end [2025-01-17 16:22:25] Production.INFO: ProcessCDR(1,14269491,1,1,2) [2025-01-17 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269491', 'tblTempUsageDetail_20' ) start [2025-01-17 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269491', 'tblTempUsageDetail_20' ) end [2025-01-17 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:22:30] Production.INFO: ==15221== Releasing lock... [2025-01-17 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:22:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:23:05 [end_date_ymd] => 2025-01-17 16:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:23:05' and `end` < '2025-01-17 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-17 16:23:22] Production.INFO: count ==4406 [2025-01-17 16:23:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:23:05 - End Time 2025-01-17 16:23:05 [2025-01-17 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269496', 'tblTempUsageDetail_20' ) start [2025-01-17 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269496', 'tblTempUsageDetail_20' ) end [2025-01-17 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269496', 'tblTempVendorCDR_20' ) start [2025-01-17 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269496', 'tblTempVendorCDR_20' ) end [2025-01-17 16:23:23] Production.INFO: ProcessCDR(1,14269496,1,1,2) [2025-01-17 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269496', 'tblTempUsageDetail_20' ) start [2025-01-17 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269496', 'tblTempUsageDetail_20' ) end [2025-01-17 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:23:28] Production.INFO: ==15296== Releasing lock... [2025-01-17 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:23:28] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:24:05 [end_date_ymd] => 2025-01-17 16:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:24:05' and `end` < '2025-01-17 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-17 16:24:31] Production.INFO: count ==4400 [2025-01-17 16:24:33] Production.ERROR: pbx CDR StartTime 2025-01-17 13:24:05 - End Time 2025-01-17 16:24:05 [2025-01-17 16:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269501', 'tblTempUsageDetail_20' ) start [2025-01-17 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269501', 'tblTempUsageDetail_20' ) end [2025-01-17 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269501', 'tblTempVendorCDR_20' ) start [2025-01-17 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269501', 'tblTempVendorCDR_20' ) end [2025-01-17 16:24:33] Production.INFO: ProcessCDR(1,14269501,1,1,2) [2025-01-17 16:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:24:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269501', 'tblTempUsageDetail_20' ) start [2025-01-17 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269501', 'tblTempUsageDetail_20' ) end [2025-01-17 16:24:38] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:24:38] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:24:38] Production.INFO: ==15366== Releasing lock... [2025-01-17 16:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:24:38] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:25:05 [end_date_ymd] => 2025-01-17 16:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:25:05' and `end` < '2025-01-17 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-17 16:25:30] Production.INFO: count ==4386 [2025-01-17 16:25:31] Production.ERROR: pbx CDR StartTime 2025-01-17 13:25:05 - End Time 2025-01-17 16:25:05 [2025-01-17 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269506', 'tblTempUsageDetail_20' ) start [2025-01-17 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269506', 'tblTempUsageDetail_20' ) end [2025-01-17 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269506', 'tblTempVendorCDR_20' ) start [2025-01-17 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269506', 'tblTempVendorCDR_20' ) end [2025-01-17 16:25:31] Production.INFO: ProcessCDR(1,14269506,1,1,2) [2025-01-17 16:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269506', 'tblTempUsageDetail_20' ) start [2025-01-17 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269506', 'tblTempUsageDetail_20' ) end [2025-01-17 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:25:37] Production.INFO: ==15435== Releasing lock... [2025-01-17 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:25:37] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:26:06 [end_date_ymd] => 2025-01-17 16:26:06 [RateCDR] => 1 ) [2025-01-17 16: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-17 13:26:06' and `end` < '2025-01-17 16: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-17 16:26:28] Production.INFO: count ==4401 [2025-01-17 16:26:29] Production.ERROR: pbx CDR StartTime 2025-01-17 13:26:06 - End Time 2025-01-17 16:26:06 [2025-01-17 16:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269511', 'tblTempUsageDetail_20' ) start [2025-01-17 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269511', 'tblTempUsageDetail_20' ) end [2025-01-17 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269511', 'tblTempVendorCDR_20' ) start [2025-01-17 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269511', 'tblTempVendorCDR_20' ) end [2025-01-17 16:26:30] Production.INFO: ProcessCDR(1,14269511,1,1,2) [2025-01-17 16:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269511', 'tblTempUsageDetail_20' ) start [2025-01-17 16:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269511', 'tblTempUsageDetail_20' ) end [2025-01-17 16:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:26:34] Production.INFO: ==15508== Releasing lock... [2025-01-17 16:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:26:35] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:27:04 [end_date_ymd] => 2025-01-17 16:27:04 [RateCDR] => 1 ) [2025-01-17 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:27:04' and `end` < '2025-01-17 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:27:24] Production.INFO: count ==4412 [2025-01-17 16:27:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:27:04 - End Time 2025-01-17 16:27:04 [2025-01-17 16:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269516', 'tblTempUsageDetail_20' ) start [2025-01-17 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269516', 'tblTempUsageDetail_20' ) end [2025-01-17 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269516', 'tblTempVendorCDR_20' ) start [2025-01-17 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269516', 'tblTempVendorCDR_20' ) end [2025-01-17 16:27:25] Production.INFO: ProcessCDR(1,14269516,1,1,2) [2025-01-17 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269516', 'tblTempUsageDetail_20' ) start [2025-01-17 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269516', 'tblTempUsageDetail_20' ) end [2025-01-17 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:27:30] Production.INFO: ==15584== Releasing lock... [2025-01-17 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:27:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:28:06 [end_date_ymd] => 2025-01-17 16:28:06 [RateCDR] => 1 ) [2025-01-17 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:28:06' and `end` < '2025-01-17 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:28:25] Production.INFO: count ==4402 [2025-01-17 16:28:26] Production.ERROR: pbx CDR StartTime 2025-01-17 13:28:06 - End Time 2025-01-17 16:28:06 [2025-01-17 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269521', 'tblTempUsageDetail_20' ) start [2025-01-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269521', 'tblTempUsageDetail_20' ) end [2025-01-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269521', 'tblTempVendorCDR_20' ) start [2025-01-17 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269521', 'tblTempVendorCDR_20' ) end [2025-01-17 16:28:26] Production.INFO: ProcessCDR(1,14269521,1,1,2) [2025-01-17 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269521', 'tblTempUsageDetail_20' ) start [2025-01-17 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269521', 'tblTempUsageDetail_20' ) end [2025-01-17 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:28:31] Production.INFO: ==15656== Releasing lock... [2025-01-17 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:28:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:29:05 [end_date_ymd] => 2025-01-17 16:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:29:05' and `end` < '2025-01-17 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-17 16:29:26] Production.INFO: count ==4401 [2025-01-17 16:29:28] Production.ERROR: pbx CDR StartTime 2025-01-17 13:29:05 - End Time 2025-01-17 16:29:05 [2025-01-17 16:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269526', 'tblTempUsageDetail_20' ) start [2025-01-17 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269526', 'tblTempUsageDetail_20' ) end [2025-01-17 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269526', 'tblTempVendorCDR_20' ) start [2025-01-17 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269526', 'tblTempVendorCDR_20' ) end [2025-01-17 16:29:28] Production.INFO: ProcessCDR(1,14269526,1,1,2) [2025-01-17 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269526', 'tblTempUsageDetail_20' ) start [2025-01-17 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269526', 'tblTempUsageDetail_20' ) end [2025-01-17 16:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:29:33] Production.INFO: ==15727== Releasing lock... [2025-01-17 16:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:29:33] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:30:05 [end_date_ymd] => 2025-01-17 16:30:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:30:05' and `end` < '2025-01-17 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:30:26] Production.INFO: count ==4413 [2025-01-17 16:30:27] Production.ERROR: pbx CDR StartTime 2025-01-17 13:30:05 - End Time 2025-01-17 16:30:05 [2025-01-17 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269531', 'tblTempUsageDetail_20' ) start [2025-01-17 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269531', 'tblTempUsageDetail_20' ) end [2025-01-17 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269531', 'tblTempVendorCDR_20' ) start [2025-01-17 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269531', 'tblTempVendorCDR_20' ) end [2025-01-17 16:30:27] Production.INFO: ProcessCDR(1,14269531,1,1,2) [2025-01-17 16:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269531', 'tblTempUsageDetail_20' ) start [2025-01-17 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269531', 'tblTempUsageDetail_20' ) end [2025-01-17 16:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:30:32] Production.INFO: ==15802== Releasing lock... [2025-01-17 16:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:30:32] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:31:05 [end_date_ymd] => 2025-01-17 16:31:05 [RateCDR] => 1 ) [2025-01-17 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:31:05' and `end` < '2025-01-17 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:31:24] Production.INFO: count ==4421 [2025-01-17 16:31:26] Production.ERROR: pbx CDR StartTime 2025-01-17 13:31:05 - End Time 2025-01-17 16:31:05 [2025-01-17 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269537', 'tblTempUsageDetail_20' ) start [2025-01-17 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269537', 'tblTempUsageDetail_20' ) end [2025-01-17 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269537', 'tblTempVendorCDR_20' ) start [2025-01-17 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269537', 'tblTempVendorCDR_20' ) end [2025-01-17 16:31:26] Production.INFO: ProcessCDR(1,14269537,1,1,2) [2025-01-17 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269537', 'tblTempUsageDetail_20' ) start [2025-01-17 16:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269537', 'tblTempUsageDetail_20' ) end [2025-01-17 16:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:31:31] Production.INFO: ==15874== Releasing lock... [2025-01-17 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:31:31] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:32:05 [end_date_ymd] => 2025-01-17 16:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:32:05' and `end` < '2025-01-17 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-17 16:32:22] Production.INFO: count ==4427 [2025-01-17 16:32:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:32:05 - End Time 2025-01-17 16:32:05 [2025-01-17 16:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269542', 'tblTempUsageDetail_20' ) start [2025-01-17 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269542', 'tblTempUsageDetail_20' ) end [2025-01-17 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269542', 'tblTempVendorCDR_20' ) start [2025-01-17 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269542', 'tblTempVendorCDR_20' ) end [2025-01-17 16:32:23] Production.INFO: ProcessCDR(1,14269542,1,1,2) [2025-01-17 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269542', 'tblTempUsageDetail_20' ) start [2025-01-17 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269542', 'tblTempUsageDetail_20' ) end [2025-01-17 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:32:28] Production.INFO: ==15986== Releasing lock... [2025-01-17 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:32:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:33:05 [end_date_ymd] => 2025-01-17 16:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:33:05' and `end` < '2025-01-17 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-17 16:33:27] Production.INFO: count ==4437 [2025-01-17 16:33:28] Production.ERROR: pbx CDR StartTime 2025-01-17 13:33:05 - End Time 2025-01-17 16:33:05 [2025-01-17 16:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269547', 'tblTempUsageDetail_20' ) start [2025-01-17 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269547', 'tblTempUsageDetail_20' ) end [2025-01-17 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269547', 'tblTempVendorCDR_20' ) start [2025-01-17 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269547', 'tblTempVendorCDR_20' ) end [2025-01-17 16:33:28] Production.INFO: ProcessCDR(1,14269547,1,1,2) [2025-01-17 16:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269547', 'tblTempUsageDetail_20' ) start [2025-01-17 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269547', 'tblTempUsageDetail_20' ) end [2025-01-17 16:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:33:33] Production.INFO: ==16063== Releasing lock... [2025-01-17 16:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:33:33] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:34:04 [end_date_ymd] => 2025-01-17 16:34:04 [RateCDR] => 1 ) [2025-01-17 16: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-17 13:34:04' and `end` < '2025-01-17 16: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-17 16:34:25] Production.INFO: count ==4448 [2025-01-17 16:34:27] Production.ERROR: pbx CDR StartTime 2025-01-17 13:34:04 - End Time 2025-01-17 16:34:04 [2025-01-17 16:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269552', 'tblTempUsageDetail_20' ) start [2025-01-17 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269552', 'tblTempUsageDetail_20' ) end [2025-01-17 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269552', 'tblTempVendorCDR_20' ) start [2025-01-17 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269552', 'tblTempVendorCDR_20' ) end [2025-01-17 16:34:27] Production.INFO: ProcessCDR(1,14269552,1,1,2) [2025-01-17 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269552', 'tblTempUsageDetail_20' ) start [2025-01-17 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269552', 'tblTempUsageDetail_20' ) end [2025-01-17 16:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:34:32] Production.INFO: ==16134== Releasing lock... [2025-01-17 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:34:32] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:35:05 [end_date_ymd] => 2025-01-17 16:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:35:05' and `end` < '2025-01-17 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-17 16:35:26] Production.INFO: count ==4442 [2025-01-17 16:35:28] Production.ERROR: pbx CDR StartTime 2025-01-17 13:35:05 - End Time 2025-01-17 16:35:05 [2025-01-17 16:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269553', 'tblTempUsageDetail_20' ) start [2025-01-17 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269553', 'tblTempUsageDetail_20' ) end [2025-01-17 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269553', 'tblTempVendorCDR_20' ) start [2025-01-17 16:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269553', 'tblTempVendorCDR_20' ) end [2025-01-17 16:35:28] Production.INFO: ProcessCDR(1,14269553,1,1,2) [2025-01-17 16:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269553', 'tblTempUsageDetail_20' ) start [2025-01-17 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269553', 'tblTempUsageDetail_20' ) end [2025-01-17 16:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:35:33] Production.INFO: ==16208== Releasing lock... [2025-01-17 16:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:35:33] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:36:05 [end_date_ymd] => 2025-01-17 16:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:36:05' and `end` < '2025-01-17 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-17 16:36:22] Production.INFO: count ==4437 [2025-01-17 16:36:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:36:05 - End Time 2025-01-17 16:36:05 [2025-01-17 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269562', 'tblTempUsageDetail_20' ) start [2025-01-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269562', 'tblTempUsageDetail_20' ) end [2025-01-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269562', 'tblTempVendorCDR_20' ) start [2025-01-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269562', 'tblTempVendorCDR_20' ) end [2025-01-17 16:36:23] Production.INFO: ProcessCDR(1,14269562,1,1,2) [2025-01-17 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269562', 'tblTempUsageDetail_20' ) start [2025-01-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269562', 'tblTempUsageDetail_20' ) end [2025-01-17 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:36:28] Production.INFO: ==16280== Releasing lock... [2025-01-17 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:36:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:37:06 [end_date_ymd] => 2025-01-17 16:37:06 [RateCDR] => 1 ) [2025-01-17 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:37:06' and `end` < '2025-01-17 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:37:19] Production.INFO: count ==4424 [2025-01-17 16:37:20] Production.ERROR: pbx CDR StartTime 2025-01-17 13:37:06 - End Time 2025-01-17 16:37:06 [2025-01-17 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269567', 'tblTempUsageDetail_20' ) start [2025-01-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269567', 'tblTempUsageDetail_20' ) end [2025-01-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269567', 'tblTempVendorCDR_20' ) start [2025-01-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269567', 'tblTempVendorCDR_20' ) end [2025-01-17 16:37:20] Production.INFO: ProcessCDR(1,14269567,1,1,2) [2025-01-17 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269567', 'tblTempUsageDetail_20' ) start [2025-01-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269567', 'tblTempUsageDetail_20' ) end [2025-01-17 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:37:25] Production.INFO: ==16351== Releasing lock... [2025-01-17 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:37:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:38:05 [end_date_ymd] => 2025-01-17 16:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:38:05' and `end` < '2025-01-17 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-17 16:38:18] Production.INFO: count ==4407 [2025-01-17 16:38:19] Production.ERROR: pbx CDR StartTime 2025-01-17 13:38:05 - End Time 2025-01-17 16:38:05 [2025-01-17 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269572', 'tblTempUsageDetail_20' ) start [2025-01-17 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269572', 'tblTempUsageDetail_20' ) end [2025-01-17 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269572', 'tblTempVendorCDR_20' ) start [2025-01-17 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269572', 'tblTempVendorCDR_20' ) end [2025-01-17 16:38:19] Production.INFO: ProcessCDR(1,14269572,1,1,2) [2025-01-17 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269572', 'tblTempUsageDetail_20' ) start [2025-01-17 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269572', 'tblTempUsageDetail_20' ) end [2025-01-17 16:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:38:24] Production.INFO: ==16419== Releasing lock... [2025-01-17 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:38:24] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:39:05 [end_date_ymd] => 2025-01-17 16:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:39:05' and `end` < '2025-01-17 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-17 16:39:21] Production.INFO: count ==4407 [2025-01-17 16:39:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:39:05 - End Time 2025-01-17 16:39:05 [2025-01-17 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269577', 'tblTempUsageDetail_20' ) start [2025-01-17 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269577', 'tblTempUsageDetail_20' ) end [2025-01-17 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269577', 'tblTempVendorCDR_20' ) start [2025-01-17 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269577', 'tblTempVendorCDR_20' ) end [2025-01-17 16:39:23] Production.INFO: ProcessCDR(1,14269577,1,1,2) [2025-01-17 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269577', 'tblTempUsageDetail_20' ) start [2025-01-17 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269577', 'tblTempUsageDetail_20' ) end [2025-01-17 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:39:28] Production.INFO: ==16490== Releasing lock... [2025-01-17 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:39:28] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:40:06 [end_date_ymd] => 2025-01-17 16:40:06 [RateCDR] => 1 ) [2025-01-17 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:40:06' and `end` < '2025-01-17 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:40:26] Production.INFO: count ==4385 [2025-01-17 16:40:27] Production.ERROR: pbx CDR StartTime 2025-01-17 13:40:06 - End Time 2025-01-17 16:40:06 [2025-01-17 16:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269583', 'tblTempUsageDetail_20' ) start [2025-01-17 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269583', 'tblTempUsageDetail_20' ) end [2025-01-17 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269583', 'tblTempVendorCDR_20' ) start [2025-01-17 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269583', 'tblTempVendorCDR_20' ) end [2025-01-17 16:40:28] Production.INFO: ProcessCDR(1,14269583,1,1,2) [2025-01-17 16:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269583', 'tblTempUsageDetail_20' ) start [2025-01-17 16:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269583', 'tblTempUsageDetail_20' ) end [2025-01-17 16:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:40:32] Production.INFO: ==16563== Releasing lock... [2025-01-17 16:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:40:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:41:04 [end_date_ymd] => 2025-01-17 16:41:04 [RateCDR] => 1 ) [2025-01-17 16:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:41:04' and `end` < '2025-01-17 16:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:41:24] Production.INFO: count ==4413 [2025-01-17 16:41:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:41:04 - End Time 2025-01-17 16:41:04 [2025-01-17 16:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269588', 'tblTempUsageDetail_20' ) start [2025-01-17 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269588', 'tblTempUsageDetail_20' ) end [2025-01-17 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269588', 'tblTempVendorCDR_20' ) start [2025-01-17 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269588', 'tblTempVendorCDR_20' ) end [2025-01-17 16:41:25] Production.INFO: ProcessCDR(1,14269588,1,1,2) [2025-01-17 16:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269588', 'tblTempUsageDetail_20' ) start [2025-01-17 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269588', 'tblTempUsageDetail_20' ) end [2025-01-17 16:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:41:30] Production.INFO: ==16642== Releasing lock... [2025-01-17 16:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:41:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:42:04 [end_date_ymd] => 2025-01-17 16:42:04 [RateCDR] => 1 ) [2025-01-17 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-17 13:42:04' and `end` < '2025-01-17 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-17 16:42:20] Production.INFO: count ==4407 [2025-01-17 16:42:22] Production.ERROR: pbx CDR StartTime 2025-01-17 13:42:04 - End Time 2025-01-17 16:42:04 [2025-01-17 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269593', 'tblTempUsageDetail_20' ) start [2025-01-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269593', 'tblTempUsageDetail_20' ) end [2025-01-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269593', 'tblTempVendorCDR_20' ) start [2025-01-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269593', 'tblTempVendorCDR_20' ) end [2025-01-17 16:42:22] Production.INFO: ProcessCDR(1,14269593,1,1,2) [2025-01-17 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269593', 'tblTempUsageDetail_20' ) start [2025-01-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269593', 'tblTempUsageDetail_20' ) end [2025-01-17 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:42:26] Production.INFO: ==16715== Releasing lock... [2025-01-17 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:42:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:43:05 [end_date_ymd] => 2025-01-17 16:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:43:05' and `end` < '2025-01-17 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-17 16:43:24] Production.INFO: count ==4404 [2025-01-17 16:43:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:43:05 - End Time 2025-01-17 16:43:05 [2025-01-17 16:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269598', 'tblTempUsageDetail_20' ) start [2025-01-17 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269598', 'tblTempUsageDetail_20' ) end [2025-01-17 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269598', 'tblTempVendorCDR_20' ) start [2025-01-17 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269598', 'tblTempVendorCDR_20' ) end [2025-01-17 16:43:25] Production.INFO: ProcessCDR(1,14269598,1,1,2) [2025-01-17 16:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269598', 'tblTempUsageDetail_20' ) start [2025-01-17 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269598', 'tblTempUsageDetail_20' ) end [2025-01-17 16:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:43:30] Production.INFO: ==16786== Releasing lock... [2025-01-17 16:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:43:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:44:05 [end_date_ymd] => 2025-01-17 16:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:44:05' and `end` < '2025-01-17 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-17 16:44:24] Production.INFO: count ==4387 [2025-01-17 16:44:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:44:05 - End Time 2025-01-17 16:44:05 [2025-01-17 16:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269603', 'tblTempUsageDetail_20' ) start [2025-01-17 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269603', 'tblTempUsageDetail_20' ) end [2025-01-17 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269603', 'tblTempVendorCDR_20' ) start [2025-01-17 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269603', 'tblTempVendorCDR_20' ) end [2025-01-17 16:44:25] Production.INFO: ProcessCDR(1,14269603,1,1,2) [2025-01-17 16:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269603', 'tblTempUsageDetail_20' ) start [2025-01-17 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269603', 'tblTempUsageDetail_20' ) end [2025-01-17 16:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:44:30] Production.INFO: ==16857== Releasing lock... [2025-01-17 16:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:44:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:45:05 [end_date_ymd] => 2025-01-17 16:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:45:05' and `end` < '2025-01-17 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-17 16:45:31] Production.INFO: count ==4382 [2025-01-17 16:45:32] Production.ERROR: pbx CDR StartTime 2025-01-17 13:45:05 - End Time 2025-01-17 16:45:05 [2025-01-17 16:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269608', 'tblTempUsageDetail_20' ) start [2025-01-17 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269608', 'tblTempUsageDetail_20' ) end [2025-01-17 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269608', 'tblTempVendorCDR_20' ) start [2025-01-17 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269608', 'tblTempVendorCDR_20' ) end [2025-01-17 16:45:32] Production.INFO: ProcessCDR(1,14269608,1,1,2) [2025-01-17 16:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269608', 'tblTempUsageDetail_20' ) start [2025-01-17 16:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269608', 'tblTempUsageDetail_20' ) end [2025-01-17 16:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:45:37] Production.INFO: ==16931== Releasing lock... [2025-01-17 16:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:45:37] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:46:05 [end_date_ymd] => 2025-01-17 16:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:46:05' and `end` < '2025-01-17 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-17 16:46:30] Production.INFO: count ==4371 [2025-01-17 16:46:31] Production.ERROR: pbx CDR StartTime 2025-01-17 13:46:05 - End Time 2025-01-17 16:46:05 [2025-01-17 16:46:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269613', 'tblTempUsageDetail_20' ) start [2025-01-17 16:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269613', 'tblTempUsageDetail_20' ) end [2025-01-17 16:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269613', 'tblTempVendorCDR_20' ) start [2025-01-17 16:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269613', 'tblTempVendorCDR_20' ) end [2025-01-17 16:46:31] Production.INFO: ProcessCDR(1,14269613,1,1,2) [2025-01-17 16:46:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:46:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:46:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:46:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269613', 'tblTempUsageDetail_20' ) start [2025-01-17 16:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269613', 'tblTempUsageDetail_20' ) end [2025-01-17 16:46:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:46:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:46:36] Production.INFO: ==17003== Releasing lock... [2025-01-17 16:46:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:46:36] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:47:05 [end_date_ymd] => 2025-01-17 16:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:47:05' and `end` < '2025-01-17 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-17 16:47:23] Production.INFO: count ==4379 [2025-01-17 16:47:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:47:05 - End Time 2025-01-17 16:47:05 [2025-01-17 16:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269618', 'tblTempUsageDetail_20' ) start [2025-01-17 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269618', 'tblTempUsageDetail_20' ) end [2025-01-17 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269618', 'tblTempVendorCDR_20' ) start [2025-01-17 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269618', 'tblTempVendorCDR_20' ) end [2025-01-17 16:47:25] Production.INFO: ProcessCDR(1,14269618,1,1,2) [2025-01-17 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269618', 'tblTempUsageDetail_20' ) start [2025-01-17 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269618', 'tblTempUsageDetail_20' ) end [2025-01-17 16:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:47:30] Production.INFO: ==17073== Releasing lock... [2025-01-17 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:47:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:48:05 [end_date_ymd] => 2025-01-17 16:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:48:05' and `end` < '2025-01-17 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-17 16:48:19] Production.INFO: count ==4369 [2025-01-17 16:48:21] Production.ERROR: pbx CDR StartTime 2025-01-17 13:48:05 - End Time 2025-01-17 16:48:05 [2025-01-17 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269623', 'tblTempUsageDetail_20' ) start [2025-01-17 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269623', 'tblTempUsageDetail_20' ) end [2025-01-17 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269623', 'tblTempVendorCDR_20' ) start [2025-01-17 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269623', 'tblTempVendorCDR_20' ) end [2025-01-17 16:48:21] Production.INFO: ProcessCDR(1,14269623,1,1,2) [2025-01-17 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269623', 'tblTempUsageDetail_20' ) start [2025-01-17 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269623', 'tblTempUsageDetail_20' ) end [2025-01-17 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:48:26] Production.INFO: ==17184== Releasing lock... [2025-01-17 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:48:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:49:05 [end_date_ymd] => 2025-01-17 16:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:49:05' and `end` < '2025-01-17 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-17 16:49:24] Production.INFO: count ==4347 [2025-01-17 16:49:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:49:05 - End Time 2025-01-17 16:49:05 [2025-01-17 16:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269628', 'tblTempUsageDetail_20' ) start [2025-01-17 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269628', 'tblTempUsageDetail_20' ) end [2025-01-17 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269628', 'tblTempVendorCDR_20' ) start [2025-01-17 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269628', 'tblTempVendorCDR_20' ) end [2025-01-17 16:49:25] Production.INFO: ProcessCDR(1,14269628,1,1,2) [2025-01-17 16:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269628', 'tblTempUsageDetail_20' ) start [2025-01-17 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269628', 'tblTempUsageDetail_20' ) end [2025-01-17 16:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:49:30] Production.INFO: ==17255== Releasing lock... [2025-01-17 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:49:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:50:06 [end_date_ymd] => 2025-01-17 16:50:06 [RateCDR] => 1 ) [2025-01-17 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-17 13:50:06' and `end` < '2025-01-17 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-17 16:50:37] Production.INFO: count ==4350 [2025-01-17 16:50:38] Production.ERROR: pbx CDR StartTime 2025-01-17 13:50:06 - End Time 2025-01-17 16:50:06 [2025-01-17 16:50:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269633', 'tblTempUsageDetail_20' ) start [2025-01-17 16:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269633', 'tblTempUsageDetail_20' ) end [2025-01-17 16:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269633', 'tblTempVendorCDR_20' ) start [2025-01-17 16:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269633', 'tblTempVendorCDR_20' ) end [2025-01-17 16:50:38] Production.INFO: ProcessCDR(1,14269633,1,1,2) [2025-01-17 16:50:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:50:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:50:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:50:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269633', 'tblTempUsageDetail_20' ) start [2025-01-17 16:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269633', 'tblTempUsageDetail_20' ) end [2025-01-17 16:50:43] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:50:43] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:50:43] Production.INFO: ==17327== Releasing lock... [2025-01-17 16:50:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:50:43] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:51:05 [end_date_ymd] => 2025-01-17 16:51:05 [RateCDR] => 1 ) [2025-01-17 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:51:05' and `end` < '2025-01-17 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:51:30] Production.INFO: count ==4362 [2025-01-17 16:51:31] Production.ERROR: pbx CDR StartTime 2025-01-17 13:51:05 - End Time 2025-01-17 16:51:05 [2025-01-17 16:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269639', 'tblTempUsageDetail_20' ) start [2025-01-17 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269639', 'tblTempUsageDetail_20' ) end [2025-01-17 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269639', 'tblTempVendorCDR_20' ) start [2025-01-17 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269639', 'tblTempVendorCDR_20' ) end [2025-01-17 16:51:31] Production.INFO: ProcessCDR(1,14269639,1,1,2) [2025-01-17 16:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269639', 'tblTempUsageDetail_20' ) start [2025-01-17 16:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269639', 'tblTempUsageDetail_20' ) end [2025-01-17 16:51:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:51:36] Production.INFO: ==17402== Releasing lock... [2025-01-17 16:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:51:36] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:52:05 [end_date_ymd] => 2025-01-17 16:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:52:05' and `end` < '2025-01-17 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-17 16:52:28] Production.INFO: count ==4371 [2025-01-17 16:52:30] Production.ERROR: pbx CDR StartTime 2025-01-17 13:52:05 - End Time 2025-01-17 16:52:05 [2025-01-17 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269644', 'tblTempUsageDetail_20' ) start [2025-01-17 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269644', 'tblTempUsageDetail_20' ) end [2025-01-17 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269644', 'tblTempVendorCDR_20' ) start [2025-01-17 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269644', 'tblTempVendorCDR_20' ) end [2025-01-17 16:52:30] Production.INFO: ProcessCDR(1,14269644,1,1,2) [2025-01-17 16:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269644', 'tblTempUsageDetail_20' ) start [2025-01-17 16:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269644', 'tblTempUsageDetail_20' ) end [2025-01-17 16:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:52:33] Production.INFO: ==17474== Releasing lock... [2025-01-17 16:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:52:33] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:53:05 [end_date_ymd] => 2025-01-17 16:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:53:05' and `end` < '2025-01-17 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-17 16:53:23] Production.INFO: count ==4385 [2025-01-17 16:53:25] Production.ERROR: pbx CDR StartTime 2025-01-17 13:53:05 - End Time 2025-01-17 16:53:05 [2025-01-17 16:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269649', 'tblTempUsageDetail_20' ) start [2025-01-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269649', 'tblTempUsageDetail_20' ) end [2025-01-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269649', 'tblTempVendorCDR_20' ) start [2025-01-17 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269649', 'tblTempVendorCDR_20' ) end [2025-01-17 16:53:25] Production.INFO: ProcessCDR(1,14269649,1,1,2) [2025-01-17 16:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269649', 'tblTempUsageDetail_20' ) start [2025-01-17 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269649', 'tblTempUsageDetail_20' ) end [2025-01-17 16:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:53:30] Production.INFO: ==17544== Releasing lock... [2025-01-17 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:53:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:54:05 [end_date_ymd] => 2025-01-17 16:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:54:05' and `end` < '2025-01-17 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-17 16:54:22] Production.INFO: count ==4394 [2025-01-17 16:54:24] Production.ERROR: pbx CDR StartTime 2025-01-17 13:54:05 - End Time 2025-01-17 16:54:05 [2025-01-17 16:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269654', 'tblTempUsageDetail_20' ) start [2025-01-17 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269654', 'tblTempUsageDetail_20' ) end [2025-01-17 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269654', 'tblTempVendorCDR_20' ) start [2025-01-17 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269654', 'tblTempVendorCDR_20' ) end [2025-01-17 16:54:24] Production.INFO: ProcessCDR(1,14269654,1,1,2) [2025-01-17 16:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269654', 'tblTempUsageDetail_20' ) start [2025-01-17 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269654', 'tblTempUsageDetail_20' ) end [2025-01-17 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:54:29] Production.INFO: ==17615== Releasing lock... [2025-01-17 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:54:29] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:55:05 [end_date_ymd] => 2025-01-17 16:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:55:05' and `end` < '2025-01-17 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-17 16:55:28] Production.INFO: count ==4423 [2025-01-17 16:55:30] Production.ERROR: pbx CDR StartTime 2025-01-17 13:55:05 - End Time 2025-01-17 16:55:05 [2025-01-17 16:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269659', 'tblTempUsageDetail_20' ) start [2025-01-17 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269659', 'tblTempUsageDetail_20' ) end [2025-01-17 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269659', 'tblTempVendorCDR_20' ) start [2025-01-17 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269659', 'tblTempVendorCDR_20' ) end [2025-01-17 16:55:30] Production.INFO: ProcessCDR(1,14269659,1,1,2) [2025-01-17 16:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269659', 'tblTempUsageDetail_20' ) start [2025-01-17 16:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269659', 'tblTempUsageDetail_20' ) end [2025-01-17 16:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:55:35] Production.INFO: ==17688== Releasing lock... [2025-01-17 16:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:55:35] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:56:04 [end_date_ymd] => 2025-01-17 16:56:04 [RateCDR] => 1 ) [2025-01-17 16:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:56:04' and `end` < '2025-01-17 16:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:56:21] Production.INFO: count ==4426 [2025-01-17 16:56:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:56:04 - End Time 2025-01-17 16:56:04 [2025-01-17 16:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269664', 'tblTempUsageDetail_20' ) start [2025-01-17 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269664', 'tblTempUsageDetail_20' ) end [2025-01-17 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269664', 'tblTempVendorCDR_20' ) start [2025-01-17 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269664', 'tblTempVendorCDR_20' ) end [2025-01-17 16:56:23] Production.INFO: ProcessCDR(1,14269664,1,1,2) [2025-01-17 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269664', 'tblTempUsageDetail_20' ) start [2025-01-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269664', 'tblTempUsageDetail_20' ) end [2025-01-17 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:56:28] Production.INFO: ==17761== Releasing lock... [2025-01-17 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:56:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:57:05 [end_date_ymd] => 2025-01-17 16:57:05 [RateCDR] => 1 ) [2025-01-17 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 13:57:05' and `end` < '2025-01-17 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 16:57:21] Production.INFO: count ==4408 [2025-01-17 16:57:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:57:05 - End Time 2025-01-17 16:57:05 [2025-01-17 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269669', 'tblTempUsageDetail_20' ) start [2025-01-17 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269669', 'tblTempUsageDetail_20' ) end [2025-01-17 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269669', 'tblTempVendorCDR_20' ) start [2025-01-17 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269669', 'tblTempVendorCDR_20' ) end [2025-01-17 16:57:23] Production.INFO: ProcessCDR(1,14269669,1,1,2) [2025-01-17 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269669', 'tblTempUsageDetail_20' ) start [2025-01-17 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269669', 'tblTempUsageDetail_20' ) end [2025-01-17 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:57:27] Production.INFO: ==17834== Releasing lock... [2025-01-17 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:57:27] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:58:06 [end_date_ymd] => 2025-01-17 16:58:06 [RateCDR] => 1 ) [2025-01-17 16: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-17 13:58:06' and `end` < '2025-01-17 16: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-17 16:58:22] Production.INFO: count ==4419 [2025-01-17 16:58:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:58:06 - End Time 2025-01-17 16:58:06 [2025-01-17 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269674', 'tblTempUsageDetail_20' ) start [2025-01-17 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269674', 'tblTempUsageDetail_20' ) end [2025-01-17 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269674', 'tblTempVendorCDR_20' ) start [2025-01-17 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269674', 'tblTempVendorCDR_20' ) end [2025-01-17 16:58:23] Production.INFO: ProcessCDR(1,14269674,1,1,2) [2025-01-17 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269674', 'tblTempUsageDetail_20' ) start [2025-01-17 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269674', 'tblTempUsageDetail_20' ) end [2025-01-17 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:58:28] Production.INFO: ==17905== Releasing lock... [2025-01-17 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:58:28] Production.INFO: 61 MB #Memory Used# [2025-01-17 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 13:59:05 [end_date_ymd] => 2025-01-17 16:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 13:59:05' and `end` < '2025-01-17 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-17 16:59:21] Production.INFO: count ==4417 [2025-01-17 16:59:23] Production.ERROR: pbx CDR StartTime 2025-01-17 13:59:05 - End Time 2025-01-17 16:59:05 [2025-01-17 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269679', 'tblTempUsageDetail_20' ) start [2025-01-17 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269679', 'tblTempUsageDetail_20' ) end [2025-01-17 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269679', 'tblTempVendorCDR_20' ) start [2025-01-17 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269679', 'tblTempVendorCDR_20' ) end [2025-01-17 16:59:23] Production.INFO: ProcessCDR(1,14269679,1,1,2) [2025-01-17 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269679', 'tblTempUsageDetail_20' ) start [2025-01-17 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269679', 'tblTempUsageDetail_20' ) end [2025-01-17 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 16:59:28] Production.INFO: ==17975== Releasing lock... [2025-01-17 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 16:59:28] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:00:06 [end_date_ymd] => 2025-01-17 17:00:06 [RateCDR] => 1 ) [2025-01-17 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:00:06' and `end` < '2025-01-17 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:00:19] Production.INFO: count ==4407 [2025-01-17 17:00:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:00:06 - End Time 2025-01-17 17:00:06 [2025-01-17 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269685', 'tblTempUsageDetail_20' ) start [2025-01-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269685', 'tblTempUsageDetail_20' ) end [2025-01-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269685', 'tblTempVendorCDR_20' ) start [2025-01-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269685', 'tblTempVendorCDR_20' ) end [2025-01-17 17:00:21] Production.INFO: ProcessCDR(1,14269685,1,1,2) [2025-01-17 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269685', 'tblTempUsageDetail_20' ) start [2025-01-17 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269685', 'tblTempUsageDetail_20' ) end [2025-01-17 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:00:26] Production.INFO: ==18049== Releasing lock... [2025-01-17 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:00:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:01:05 [end_date_ymd] => 2025-01-17 17:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:01:05' and `end` < '2025-01-17 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-17 17:01:19] Production.INFO: count ==4428 [2025-01-17 17:01:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:01:05 - End Time 2025-01-17 17:01:05 [2025-01-17 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269690', 'tblTempUsageDetail_20' ) start [2025-01-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269690', 'tblTempUsageDetail_20' ) end [2025-01-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269690', 'tblTempVendorCDR_20' ) start [2025-01-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269690', 'tblTempVendorCDR_20' ) end [2025-01-17 17:01:20] Production.INFO: ProcessCDR(1,14269690,1,1,2) [2025-01-17 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269690', 'tblTempUsageDetail_20' ) start [2025-01-17 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269690', 'tblTempUsageDetail_20' ) end [2025-01-17 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:01:25] Production.INFO: ==18133== Releasing lock... [2025-01-17 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:01:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:02:05 [end_date_ymd] => 2025-01-17 17:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:02:05' and `end` < '2025-01-17 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-17 17:02:22] Production.INFO: count ==4441 [2025-01-17 17:02:23] Production.ERROR: pbx CDR StartTime 2025-01-17 14:02:05 - End Time 2025-01-17 17:02:05 [2025-01-17 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269695', 'tblTempUsageDetail_20' ) start [2025-01-17 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269695', 'tblTempUsageDetail_20' ) end [2025-01-17 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269695', 'tblTempVendorCDR_20' ) start [2025-01-17 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269695', 'tblTempVendorCDR_20' ) end [2025-01-17 17:02:23] Production.INFO: ProcessCDR(1,14269695,1,1,2) [2025-01-17 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269695', 'tblTempUsageDetail_20' ) start [2025-01-17 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269695', 'tblTempUsageDetail_20' ) end [2025-01-17 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:02:27] Production.INFO: ==18207== Releasing lock... [2025-01-17 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:02:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:03:05 [end_date_ymd] => 2025-01-17 17:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:03:05' and `end` < '2025-01-17 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-17 17:03:21] Production.INFO: count ==4436 [2025-01-17 17:03:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:03:05 - End Time 2025-01-17 17:03:05 [2025-01-17 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269700', 'tblTempUsageDetail_20' ) start [2025-01-17 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269700', 'tblTempUsageDetail_20' ) end [2025-01-17 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269700', 'tblTempVendorCDR_20' ) start [2025-01-17 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269700', 'tblTempVendorCDR_20' ) end [2025-01-17 17:03:22] Production.INFO: ProcessCDR(1,14269700,1,1,2) [2025-01-17 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269700', 'tblTempUsageDetail_20' ) start [2025-01-17 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269700', 'tblTempUsageDetail_20' ) end [2025-01-17 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:03:26] Production.INFO: ==18276== Releasing lock... [2025-01-17 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:03:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:04:05 [end_date_ymd] => 2025-01-17 17:04:05 [RateCDR] => 1 ) [2025-01-17 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:04:05' and `end` < '2025-01-17 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:04:21] Production.INFO: count ==4428 [2025-01-17 17:04:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:04:05 - End Time 2025-01-17 17:04:05 [2025-01-17 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269705', 'tblTempUsageDetail_20' ) start [2025-01-17 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269705', 'tblTempUsageDetail_20' ) end [2025-01-17 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269705', 'tblTempVendorCDR_20' ) start [2025-01-17 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269705', 'tblTempVendorCDR_20' ) end [2025-01-17 17:04:23] Production.INFO: ProcessCDR(1,14269705,1,1,2) [2025-01-17 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269705', 'tblTempUsageDetail_20' ) start [2025-01-17 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269705', 'tblTempUsageDetail_20' ) end [2025-01-17 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:04:27] Production.INFO: ==18388== Releasing lock... [2025-01-17 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:04:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:05:04 [end_date_ymd] => 2025-01-17 17:05:04 [RateCDR] => 1 ) [2025-01-17 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:05:04' and `end` < '2025-01-17 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:05:21] Production.INFO: count ==4423 [2025-01-17 17:05:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:05:04 - End Time 2025-01-17 17:05:04 [2025-01-17 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269710', 'tblTempUsageDetail_20' ) start [2025-01-17 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269710', 'tblTempUsageDetail_20' ) end [2025-01-17 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269710', 'tblTempVendorCDR_20' ) start [2025-01-17 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269710', 'tblTempVendorCDR_20' ) end [2025-01-17 17:05:22] Production.INFO: ProcessCDR(1,14269710,1,1,2) [2025-01-17 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269710', 'tblTempUsageDetail_20' ) start [2025-01-17 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269710', 'tblTempUsageDetail_20' ) end [2025-01-17 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:05:27] Production.INFO: ==18458== Releasing lock... [2025-01-17 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:05:27] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:06:05 [end_date_ymd] => 2025-01-17 17:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:06:05' and `end` < '2025-01-17 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-17 17:06:20] Production.INFO: count ==4419 [2025-01-17 17:06:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:06:05 - End Time 2025-01-17 17:06:05 [2025-01-17 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269715', 'tblTempUsageDetail_20' ) start [2025-01-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269715', 'tblTempUsageDetail_20' ) end [2025-01-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269715', 'tblTempVendorCDR_20' ) start [2025-01-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269715', 'tblTempVendorCDR_20' ) end [2025-01-17 17:06:21] Production.INFO: ProcessCDR(1,14269715,1,1,2) [2025-01-17 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269715', 'tblTempUsageDetail_20' ) start [2025-01-17 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269715', 'tblTempUsageDetail_20' ) end [2025-01-17 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:06:25] Production.INFO: ==18530== Releasing lock... [2025-01-17 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:06:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:07:05 [end_date_ymd] => 2025-01-17 17:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:07:05' and `end` < '2025-01-17 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-17 17:07:19] Production.INFO: count ==4406 [2025-01-17 17:07:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:07:05 - End Time 2025-01-17 17:07:05 [2025-01-17 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269720', 'tblTempUsageDetail_20' ) start [2025-01-17 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269720', 'tblTempUsageDetail_20' ) end [2025-01-17 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269720', 'tblTempVendorCDR_20' ) start [2025-01-17 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269720', 'tblTempVendorCDR_20' ) end [2025-01-17 17:07:21] Production.INFO: ProcessCDR(1,14269720,1,1,2) [2025-01-17 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269720', 'tblTempUsageDetail_20' ) start [2025-01-17 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269720', 'tblTempUsageDetail_20' ) end [2025-01-17 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:07:26] Production.INFO: ==18601== Releasing lock... [2025-01-17 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:07:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:08:05 [end_date_ymd] => 2025-01-17 17:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:08:05' and `end` < '2025-01-17 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-17 17:08:18] Production.INFO: count ==4406 [2025-01-17 17:08:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:08:05 - End Time 2025-01-17 17:08:05 [2025-01-17 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269725', 'tblTempUsageDetail_20' ) start [2025-01-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269725', 'tblTempUsageDetail_20' ) end [2025-01-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269725', 'tblTempVendorCDR_20' ) start [2025-01-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269725', 'tblTempVendorCDR_20' ) end [2025-01-17 17:08:20] Production.INFO: ProcessCDR(1,14269725,1,1,2) [2025-01-17 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269725', 'tblTempUsageDetail_20' ) start [2025-01-17 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269725', 'tblTempUsageDetail_20' ) end [2025-01-17 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:08:24] Production.INFO: ==18671== Releasing lock... [2025-01-17 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:08:24] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:09:05 [end_date_ymd] => 2025-01-17 17:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:09:05' and `end` < '2025-01-17 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-17 17:09:19] Production.INFO: count ==4412 [2025-01-17 17:09:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:09:05 - End Time 2025-01-17 17:09:05 [2025-01-17 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269730', 'tblTempUsageDetail_20' ) start [2025-01-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269730', 'tblTempUsageDetail_20' ) end [2025-01-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269730', 'tblTempVendorCDR_20' ) start [2025-01-17 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269730', 'tblTempVendorCDR_20' ) end [2025-01-17 17:09:20] Production.INFO: ProcessCDR(1,14269730,1,1,2) [2025-01-17 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269730', 'tblTempUsageDetail_20' ) start [2025-01-17 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269730', 'tblTempUsageDetail_20' ) end [2025-01-17 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:09:23] Production.INFO: ==18743== Releasing lock... [2025-01-17 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:09:23] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:10:05 [end_date_ymd] => 2025-01-17 17:10:05 [RateCDR] => 1 ) [2025-01-17 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:10:05' and `end` < '2025-01-17 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:10:18] Production.INFO: count ==4427 [2025-01-17 17:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 14:10:05 - End Time 2025-01-17 17:10:05 [2025-01-17 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269736', 'tblTempUsageDetail_20' ) start [2025-01-17 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269736', 'tblTempUsageDetail_20' ) end [2025-01-17 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269736', 'tblTempVendorCDR_20' ) start [2025-01-17 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269736', 'tblTempVendorCDR_20' ) end [2025-01-17 17:10:19] Production.INFO: ProcessCDR(1,14269736,1,1,2) [2025-01-17 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269736', 'tblTempUsageDetail_20' ) start [2025-01-17 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269736', 'tblTempUsageDetail_20' ) end [2025-01-17 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:10:23] Production.INFO: ==18821== Releasing lock... [2025-01-17 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:10:23] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:11:05 [end_date_ymd] => 2025-01-17 17:11:05 [RateCDR] => 1 ) [2025-01-17 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:11:05' and `end` < '2025-01-17 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:11:30] Production.INFO: count ==4469 [2025-01-17 17:11:32] Production.ERROR: pbx CDR StartTime 2025-01-17 14:11:05 - End Time 2025-01-17 17:11:05 [2025-01-17 17:11:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269741', 'tblTempUsageDetail_20' ) start [2025-01-17 17:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269741', 'tblTempUsageDetail_20' ) end [2025-01-17 17:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269741', 'tblTempVendorCDR_20' ) start [2025-01-17 17:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269741', 'tblTempVendorCDR_20' ) end [2025-01-17 17:11:32] Production.INFO: ProcessCDR(1,14269741,1,1,2) [2025-01-17 17:11:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269741', 'tblTempUsageDetail_20' ) start [2025-01-17 17:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269741', 'tblTempUsageDetail_20' ) end [2025-01-17 17:11:35] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:11:35] Production.INFO: ==18896== Releasing lock... [2025-01-17 17:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:11:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:12:05 [end_date_ymd] => 2025-01-17 17:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:12:05' and `end` < '2025-01-17 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-17 17:12:26] Production.INFO: count ==4456 [2025-01-17 17:12:27] Production.ERROR: pbx CDR StartTime 2025-01-17 14:12:05 - End Time 2025-01-17 17:12:05 [2025-01-17 17:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269746', 'tblTempUsageDetail_20' ) start [2025-01-17 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269746', 'tblTempUsageDetail_20' ) end [2025-01-17 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269746', 'tblTempVendorCDR_20' ) start [2025-01-17 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269746', 'tblTempVendorCDR_20' ) end [2025-01-17 17:12:27] Production.INFO: ProcessCDR(1,14269746,1,1,2) [2025-01-17 17:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269746', 'tblTempUsageDetail_20' ) start [2025-01-17 17:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269746', 'tblTempUsageDetail_20' ) end [2025-01-17 17:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:12:33] Production.INFO: ==18967== Releasing lock... [2025-01-17 17:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:12:33] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:13:05 [end_date_ymd] => 2025-01-17 17:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:13:05' and `end` < '2025-01-17 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-17 17:13:21] Production.INFO: count ==4438 [2025-01-17 17:13:23] Production.ERROR: pbx CDR StartTime 2025-01-17 14:13:05 - End Time 2025-01-17 17:13:05 [2025-01-17 17:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269751', 'tblTempUsageDetail_20' ) start [2025-01-17 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269751', 'tblTempUsageDetail_20' ) end [2025-01-17 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269751', 'tblTempVendorCDR_20' ) start [2025-01-17 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269751', 'tblTempVendorCDR_20' ) end [2025-01-17 17:13:23] Production.INFO: ProcessCDR(1,14269751,1,1,2) [2025-01-17 17:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269751', 'tblTempUsageDetail_20' ) start [2025-01-17 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269751', 'tblTempUsageDetail_20' ) end [2025-01-17 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:13:28] Production.INFO: ==19039== Releasing lock... [2025-01-17 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:13:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:14:06 [end_date_ymd] => 2025-01-17 17:14:06 [RateCDR] => 1 ) [2025-01-17 17: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-17 14:14:06' and `end` < '2025-01-17 17: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-17 17:14:20] Production.INFO: count ==4419 [2025-01-17 17:14:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:14:06 - End Time 2025-01-17 17:14:06 [2025-01-17 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269756', 'tblTempUsageDetail_20' ) start [2025-01-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269756', 'tblTempUsageDetail_20' ) end [2025-01-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269756', 'tblTempVendorCDR_20' ) start [2025-01-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269756', 'tblTempVendorCDR_20' ) end [2025-01-17 17:14:21] Production.INFO: ProcessCDR(1,14269756,1,1,2) [2025-01-17 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269756', 'tblTempUsageDetail_20' ) start [2025-01-17 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269756', 'tblTempUsageDetail_20' ) end [2025-01-17 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:14:26] Production.INFO: ==19110== Releasing lock... [2025-01-17 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:14:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:15:05 [end_date_ymd] => 2025-01-17 17:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:15:05' and `end` < '2025-01-17 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-17 17:15:27] Production.INFO: count ==4409 [2025-01-17 17:15:29] Production.ERROR: pbx CDR StartTime 2025-01-17 14:15:05 - End Time 2025-01-17 17:15:05 [2025-01-17 17:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269761', 'tblTempUsageDetail_20' ) start [2025-01-17 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269761', 'tblTempUsageDetail_20' ) end [2025-01-17 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269761', 'tblTempVendorCDR_20' ) start [2025-01-17 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269761', 'tblTempVendorCDR_20' ) end [2025-01-17 17:15:29] Production.INFO: ProcessCDR(1,14269761,1,1,2) [2025-01-17 17:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269761', 'tblTempUsageDetail_20' ) start [2025-01-17 17:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269761', 'tblTempUsageDetail_20' ) end [2025-01-17 17:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:15:34] Production.INFO: ==19182== Releasing lock... [2025-01-17 17:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:15:34] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:16:05 [end_date_ymd] => 2025-01-17 17:16:05 [RateCDR] => 1 ) [2025-01-17 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:16:05' and `end` < '2025-01-17 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:16:21] Production.INFO: count ==4427 [2025-01-17 17:16:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:16:05 - End Time 2025-01-17 17:16:05 [2025-01-17 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269766', 'tblTempUsageDetail_20' ) start [2025-01-17 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269766', 'tblTempUsageDetail_20' ) end [2025-01-17 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269766', 'tblTempVendorCDR_20' ) start [2025-01-17 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269766', 'tblTempVendorCDR_20' ) end [2025-01-17 17:16:22] Production.INFO: ProcessCDR(1,14269766,1,1,2) [2025-01-17 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269766', 'tblTempUsageDetail_20' ) start [2025-01-17 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269766', 'tblTempUsageDetail_20' ) end [2025-01-17 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:16:26] Production.INFO: ==19255== Releasing lock... [2025-01-17 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:16:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:17:05 [end_date_ymd] => 2025-01-17 17:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:17:05' and `end` < '2025-01-17 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-17 17:17:18] Production.INFO: count ==4428 [2025-01-17 17:17:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:17:05 - End Time 2025-01-17 17:17:05 [2025-01-17 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269771', 'tblTempUsageDetail_20' ) start [2025-01-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269771', 'tblTempUsageDetail_20' ) end [2025-01-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269771', 'tblTempVendorCDR_20' ) start [2025-01-17 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269771', 'tblTempVendorCDR_20' ) end [2025-01-17 17:17:20] Production.INFO: ProcessCDR(1,14269771,1,1,2) [2025-01-17 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269771', 'tblTempUsageDetail_20' ) start [2025-01-17 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269771', 'tblTempUsageDetail_20' ) end [2025-01-17 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:17:25] Production.INFO: ==19325== Releasing lock... [2025-01-17 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:17:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:18:05 [end_date_ymd] => 2025-01-17 17:18:05 [RateCDR] => 1 ) [2025-01-17 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:18:05' and `end` < '2025-01-17 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:18:31] Production.INFO: count ==4426 [2025-01-17 17:18:32] Production.ERROR: pbx CDR StartTime 2025-01-17 14:18:05 - End Time 2025-01-17 17:18:05 [2025-01-17 17:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269776', 'tblTempUsageDetail_20' ) start [2025-01-17 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269776', 'tblTempUsageDetail_20' ) end [2025-01-17 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269776', 'tblTempVendorCDR_20' ) start [2025-01-17 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269776', 'tblTempVendorCDR_20' ) end [2025-01-17 17:18:32] Production.INFO: ProcessCDR(1,14269776,1,1,2) [2025-01-17 17:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:18:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269776', 'tblTempUsageDetail_20' ) start [2025-01-17 17:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269776', 'tblTempUsageDetail_20' ) end [2025-01-17 17:18:38] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:18:38] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:18:38] Production.INFO: ==19397== Releasing lock... [2025-01-17 17:18:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:18:38] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:19:05 [end_date_ymd] => 2025-01-17 17:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:19:05' and `end` < '2025-01-17 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-17 17:19:22] Production.INFO: count ==4420 [2025-01-17 17:19:24] Production.ERROR: pbx CDR StartTime 2025-01-17 14:19:05 - End Time 2025-01-17 17:19:05 [2025-01-17 17:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269781', 'tblTempUsageDetail_20' ) start [2025-01-17 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269781', 'tblTempUsageDetail_20' ) end [2025-01-17 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269781', 'tblTempVendorCDR_20' ) start [2025-01-17 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269781', 'tblTempVendorCDR_20' ) end [2025-01-17 17:19:24] Production.INFO: ProcessCDR(1,14269781,1,1,2) [2025-01-17 17:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269781', 'tblTempUsageDetail_20' ) start [2025-01-17 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269781', 'tblTempUsageDetail_20' ) end [2025-01-17 17:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:19:29] Production.INFO: ==19506== Releasing lock... [2025-01-17 17:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:19:29] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:20:06 [end_date_ymd] => 2025-01-17 17:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 14:20:06' and `end` < '2025-01-17 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-17 17:20:24] Production.INFO: count ==4412 [2025-01-17 17:20:25] Production.ERROR: pbx CDR StartTime 2025-01-17 14:20:06 - End Time 2025-01-17 17:20:06 [2025-01-17 17:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269787', 'tblTempUsageDetail_20' ) start [2025-01-17 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269787', 'tblTempUsageDetail_20' ) end [2025-01-17 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269787', 'tblTempVendorCDR_20' ) start [2025-01-17 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269787', 'tblTempVendorCDR_20' ) end [2025-01-17 17:20:25] Production.INFO: ProcessCDR(1,14269787,1,1,2) [2025-01-17 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269787', 'tblTempUsageDetail_20' ) start [2025-01-17 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269787', 'tblTempUsageDetail_20' ) end [2025-01-17 17:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:20:30] Production.INFO: ==19579== Releasing lock... [2025-01-17 17:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:20:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:21:05 [end_date_ymd] => 2025-01-17 17:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:21:05' and `end` < '2025-01-17 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-17 17:21:25] Production.INFO: count ==4429 [2025-01-17 17:21:27] Production.ERROR: pbx CDR StartTime 2025-01-17 14:21:05 - End Time 2025-01-17 17:21:05 [2025-01-17 17:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269792', 'tblTempUsageDetail_20' ) start [2025-01-17 17:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269792', 'tblTempUsageDetail_20' ) end [2025-01-17 17:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269792', 'tblTempVendorCDR_20' ) start [2025-01-17 17:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269792', 'tblTempVendorCDR_20' ) end [2025-01-17 17:21:27] Production.INFO: ProcessCDR(1,14269792,1,1,2) [2025-01-17 17:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269792', 'tblTempUsageDetail_20' ) start [2025-01-17 17:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269792', 'tblTempUsageDetail_20' ) end [2025-01-17 17:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:21:32] Production.INFO: ==19653== Releasing lock... [2025-01-17 17:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:21:32] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:22:05 [end_date_ymd] => 2025-01-17 17:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:22:05' and `end` < '2025-01-17 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-17 17:22:20] Production.INFO: count ==4426 [2025-01-17 17:22:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:22:05 - End Time 2025-01-17 17:22:05 [2025-01-17 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269797', 'tblTempUsageDetail_20' ) start [2025-01-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269797', 'tblTempUsageDetail_20' ) end [2025-01-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269797', 'tblTempVendorCDR_20' ) start [2025-01-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269797', 'tblTempVendorCDR_20' ) end [2025-01-17 17:22:22] Production.INFO: ProcessCDR(1,14269797,1,1,2) [2025-01-17 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269797', 'tblTempUsageDetail_20' ) start [2025-01-17 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269797', 'tblTempUsageDetail_20' ) end [2025-01-17 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:22:26] Production.INFO: ==19727== Releasing lock... [2025-01-17 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:22:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:23:04 [end_date_ymd] => 2025-01-17 17:23:04 [RateCDR] => 1 ) [2025-01-17 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:23:04' and `end` < '2025-01-17 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-17 17:23:20] Production.INFO: count ==4422 [2025-01-17 17:23:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:23:04 - End Time 2025-01-17 17:23:04 [2025-01-17 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269802', 'tblTempUsageDetail_20' ) start [2025-01-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269802', 'tblTempUsageDetail_20' ) end [2025-01-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269802', 'tblTempVendorCDR_20' ) start [2025-01-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269802', 'tblTempVendorCDR_20' ) end [2025-01-17 17:23:22] Production.INFO: ProcessCDR(1,14269802,1,1,2) [2025-01-17 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269802', 'tblTempUsageDetail_20' ) start [2025-01-17 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269802', 'tblTempUsageDetail_20' ) end [2025-01-17 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:23:27] Production.INFO: ==19797== Releasing lock... [2025-01-17 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:23:27] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:24:05 [end_date_ymd] => 2025-01-17 17:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:24:05' and `end` < '2025-01-17 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-17 17:24:20] Production.INFO: count ==4412 [2025-01-17 17:24:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:24:05 - End Time 2025-01-17 17:24:05 [2025-01-17 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269807', 'tblTempUsageDetail_20' ) start [2025-01-17 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269807', 'tblTempUsageDetail_20' ) end [2025-01-17 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269807', 'tblTempVendorCDR_20' ) start [2025-01-17 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269807', 'tblTempVendorCDR_20' ) end [2025-01-17 17:24:22] Production.INFO: ProcessCDR(1,14269807,1,1,2) [2025-01-17 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269807', 'tblTempUsageDetail_20' ) start [2025-01-17 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269807', 'tblTempUsageDetail_20' ) end [2025-01-17 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:24:25] Production.INFO: ==19869== Releasing lock... [2025-01-17 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:24:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:25:05 [end_date_ymd] => 2025-01-17 17:25:05 [RateCDR] => 1 ) [2025-01-17 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:25:05' and `end` < '2025-01-17 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:25:19] Production.INFO: count ==4399 [2025-01-17 17:25:49] Production.ERROR: pbx CDR StartTime 2025-01-17 14:25:05 - End Time 2025-01-17 17:25:05 [2025-01-17 17:25:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:25:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269812', 'tblTempUsageDetail_20' ) start [2025-01-17 17:25:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269812', 'tblTempUsageDetail_20' ) end [2025-01-17 17:25:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269812', 'tblTempVendorCDR_20' ) start [2025-01-17 17:25:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269812', 'tblTempVendorCDR_20' ) end [2025-01-17 17:25:52] Production.INFO: ProcessCDR(1,14269812,1,1,2) [2025-01-17 17:25:52] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:25:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:25:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:26:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:26:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269812', 'tblTempUsageDetail_20' ) start [2025-01-17 17:26:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269812', 'tblTempUsageDetail_20' ) end [2025-01-17 17:26:04] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:26:04] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:26:05] Production.INFO: ==19944== Releasing lock... [2025-01-17 17:26:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:26:05] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:27:31] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:27:31 [end_date_ymd] => 2025-01-17 17:27:31 [RateCDR] => 1 ) [2025-01-17 17:27:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:27:31' and `end` < '2025-01-17 17:27:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:27:45] Production.INFO: count ==4399 [2025-01-17 17:28:29] Production.ERROR: pbx CDR StartTime 2025-01-17 14:27:31 - End Time 2025-01-17 17:27:31 [2025-01-17 17:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269820', 'tblTempUsageDetail_20' ) start [2025-01-17 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269820', 'tblTempUsageDetail_20' ) end [2025-01-17 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269820', 'tblTempVendorCDR_20' ) start [2025-01-17 17:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269820', 'tblTempVendorCDR_20' ) end [2025-01-17 17:28:33] Production.INFO: ProcessCDR(1,14269820,1,1,2) [2025-01-17 17:28:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:28:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:28:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269820', 'tblTempUsageDetail_20' ) start [2025-01-17 17:28:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269820', 'tblTempUsageDetail_20' ) end [2025-01-17 17:28:57] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:28:57] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:28:57] Production.INFO: ==20078== Releasing lock... [2025-01-17 17:28:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:28:57] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:29:17 [end_date_ymd] => 2025-01-17 17:29:17 [RateCDR] => 1 ) [2025-01-17 17:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:29:17' and `end` < '2025-01-17 17:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:29:30] Production.INFO: count ==4403 [2025-01-17 17:30:14] Production.ERROR: pbx CDR StartTime 2025-01-17 14:29:17 - End Time 2025-01-17 17:29:17 [2025-01-17 17:30:14] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:30:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269828', 'tblTempUsageDetail_20' ) start [2025-01-17 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269828', 'tblTempUsageDetail_20' ) end [2025-01-17 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269828', 'tblTempVendorCDR_20' ) start [2025-01-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269828', 'tblTempVendorCDR_20' ) end [2025-01-17 17:30:21] Production.INFO: ProcessCDR(1,14269828,1,1,2) [2025-01-17 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:30:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:30:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269828', 'tblTempUsageDetail_20' ) start [2025-01-17 17:30:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269828', 'tblTempUsageDetail_20' ) end [2025-01-17 17:30:54] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:30:54] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:30:56] Production.INFO: ==20209== Releasing lock... [2025-01-17 17:30:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:30:56] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:31:13] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:31:13 [end_date_ymd] => 2025-01-17 17:31:13 [RateCDR] => 1 ) [2025-01-17 17:31:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:31:13' and `end` < '2025-01-17 17:31:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:31:37] Production.INFO: count ==4455 [2025-01-17 17:31:39] Production.ERROR: pbx CDR StartTime 2025-01-17 14:31:13 - End Time 2025-01-17 17:31:13 [2025-01-17 17:31:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269837', 'tblTempUsageDetail_20' ) start [2025-01-17 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269837', 'tblTempUsageDetail_20' ) end [2025-01-17 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269837', 'tblTempVendorCDR_20' ) start [2025-01-17 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269837', 'tblTempVendorCDR_20' ) end [2025-01-17 17:31:39] Production.INFO: ProcessCDR(1,14269837,1,1,2) [2025-01-17 17:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:31:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:31:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:31:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269837', 'tblTempUsageDetail_20' ) start [2025-01-17 17:31:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269837', 'tblTempUsageDetail_20' ) end [2025-01-17 17:31:44] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:31:44] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:31:44] Production.INFO: ==20345== Releasing lock... [2025-01-17 17:31:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:31:44] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:32:04 [end_date_ymd] => 2025-01-17 17:32:04 [RateCDR] => 1 ) [2025-01-17 17: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-17 14:32:04' and `end` < '2025-01-17 17: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-17 17:32:24] Production.INFO: count ==4453 [2025-01-17 17:32:26] Production.ERROR: pbx CDR StartTime 2025-01-17 14:32:04 - End Time 2025-01-17 17:32:04 [2025-01-17 17:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269842', 'tblTempUsageDetail_20' ) start [2025-01-17 17:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269842', 'tblTempUsageDetail_20' ) end [2025-01-17 17:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269842', 'tblTempVendorCDR_20' ) start [2025-01-17 17:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269842', 'tblTempVendorCDR_20' ) end [2025-01-17 17:32:26] Production.INFO: ProcessCDR(1,14269842,1,1,2) [2025-01-17 17:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269842', 'tblTempUsageDetail_20' ) start [2025-01-17 17:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269842', 'tblTempUsageDetail_20' ) end [2025-01-17 17:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:32:31] Production.INFO: ==20421== Releasing lock... [2025-01-17 17:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:32:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:33:05 [end_date_ymd] => 2025-01-17 17:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:33:05' and `end` < '2025-01-17 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-17 17:33:29] Production.INFO: count ==4458 [2025-01-17 17:33:30] Production.ERROR: pbx CDR StartTime 2025-01-17 14:33:05 - End Time 2025-01-17 17:33:05 [2025-01-17 17:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269847', 'tblTempUsageDetail_20' ) start [2025-01-17 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269847', 'tblTempUsageDetail_20' ) end [2025-01-17 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269847', 'tblTempVendorCDR_20' ) start [2025-01-17 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269847', 'tblTempVendorCDR_20' ) end [2025-01-17 17:33:30] Production.INFO: ProcessCDR(1,14269847,1,1,2) [2025-01-17 17:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269847', 'tblTempUsageDetail_20' ) start [2025-01-17 17:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269847', 'tblTempUsageDetail_20' ) end [2025-01-17 17:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:33:36] Production.INFO: ==20493== Releasing lock... [2025-01-17 17:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:33:36] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:34:05 [end_date_ymd] => 2025-01-17 17:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:34:05' and `end` < '2025-01-17 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-17 17:34:23] Production.INFO: count ==4484 [2025-01-17 17:34:24] Production.ERROR: pbx CDR StartTime 2025-01-17 14:34:05 - End Time 2025-01-17 17:34:05 [2025-01-17 17:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269852', 'tblTempUsageDetail_20' ) start [2025-01-17 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269852', 'tblTempUsageDetail_20' ) end [2025-01-17 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269852', 'tblTempVendorCDR_20' ) start [2025-01-17 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269852', 'tblTempVendorCDR_20' ) end [2025-01-17 17:34:24] Production.INFO: ProcessCDR(1,14269852,1,1,2) [2025-01-17 17:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269852', 'tblTempUsageDetail_20' ) start [2025-01-17 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269852', 'tblTempUsageDetail_20' ) end [2025-01-17 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:34:29] Production.INFO: ==20566== Releasing lock... [2025-01-17 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:34:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:35:05 [end_date_ymd] => 2025-01-17 17:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:35:05' and `end` < '2025-01-17 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-17 17:35:19] Production.INFO: count ==4500 [2025-01-17 17:35:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:35:05 - End Time 2025-01-17 17:35:05 [2025-01-17 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269857', 'tblTempUsageDetail_20' ) start [2025-01-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269857', 'tblTempUsageDetail_20' ) end [2025-01-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269857', 'tblTempVendorCDR_20' ) start [2025-01-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269857', 'tblTempVendorCDR_20' ) end [2025-01-17 17:35:21] Production.INFO: ProcessCDR(1,14269857,1,1,2) [2025-01-17 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269857', 'tblTempUsageDetail_20' ) start [2025-01-17 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269857', 'tblTempUsageDetail_20' ) end [2025-01-17 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:35:24] Production.INFO: ==20675== Releasing lock... [2025-01-17 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:35:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:36:05 [end_date_ymd] => 2025-01-17 17:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:36:05' and `end` < '2025-01-17 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-17 17:36:21] Production.INFO: count ==4525 [2025-01-17 17:36:23] Production.ERROR: pbx CDR StartTime 2025-01-17 14:36:05 - End Time 2025-01-17 17:36:05 [2025-01-17 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269862', 'tblTempUsageDetail_20' ) start [2025-01-17 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269862', 'tblTempUsageDetail_20' ) end [2025-01-17 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269862', 'tblTempVendorCDR_20' ) start [2025-01-17 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269862', 'tblTempVendorCDR_20' ) end [2025-01-17 17:36:23] Production.INFO: ProcessCDR(1,14269862,1,1,2) [2025-01-17 17:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269862', 'tblTempUsageDetail_20' ) start [2025-01-17 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269862', 'tblTempUsageDetail_20' ) end [2025-01-17 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:36:27] Production.INFO: ==20747== Releasing lock... [2025-01-17 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:36:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:37:05 [end_date_ymd] => 2025-01-17 17:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:37:05' and `end` < '2025-01-17 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-17 17:37:18] Production.INFO: count ==4529 [2025-01-17 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:37:05 - End Time 2025-01-17 17:37:05 [2025-01-17 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269867', 'tblTempUsageDetail_20' ) start [2025-01-17 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269867', 'tblTempUsageDetail_20' ) end [2025-01-17 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269867', 'tblTempVendorCDR_20' ) start [2025-01-17 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269867', 'tblTempVendorCDR_20' ) end [2025-01-17 17:37:20] Production.INFO: ProcessCDR(1,14269867,1,1,2) [2025-01-17 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269867', 'tblTempUsageDetail_20' ) start [2025-01-17 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269867', 'tblTempUsageDetail_20' ) end [2025-01-17 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:37:24] Production.INFO: ==20817== Releasing lock... [2025-01-17 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:37:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:38:04 [end_date_ymd] => 2025-01-17 17:38:04 [RateCDR] => 1 ) [2025-01-17 17: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-17 14:38:04' and `end` < '2025-01-17 17: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-17 17:38:22] Production.INFO: count ==4529 [2025-01-17 17:38:24] Production.ERROR: pbx CDR StartTime 2025-01-17 14:38:04 - End Time 2025-01-17 17:38:04 [2025-01-17 17:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269872', 'tblTempUsageDetail_20' ) start [2025-01-17 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269872', 'tblTempUsageDetail_20' ) end [2025-01-17 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269872', 'tblTempVendorCDR_20' ) start [2025-01-17 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269872', 'tblTempVendorCDR_20' ) end [2025-01-17 17:38:24] Production.INFO: ProcessCDR(1,14269872,1,1,2) [2025-01-17 17:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269872', 'tblTempUsageDetail_20' ) start [2025-01-17 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269872', 'tblTempUsageDetail_20' ) end [2025-01-17 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:38:27] Production.INFO: ==20890== Releasing lock... [2025-01-17 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:38:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:39:04 [end_date_ymd] => 2025-01-17 17:39:04 [RateCDR] => 1 ) [2025-01-17 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-17 14:39:04' and `end` < '2025-01-17 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-17 17:39:24] Production.INFO: count ==4516 [2025-01-17 17:39:25] Production.ERROR: pbx CDR StartTime 2025-01-17 14:39:04 - End Time 2025-01-17 17:39:04 [2025-01-17 17:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269877', 'tblTempUsageDetail_20' ) start [2025-01-17 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269877', 'tblTempUsageDetail_20' ) end [2025-01-17 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269877', 'tblTempVendorCDR_20' ) start [2025-01-17 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269877', 'tblTempVendorCDR_20' ) end [2025-01-17 17:39:25] Production.INFO: ProcessCDR(1,14269877,1,1,2) [2025-01-17 17:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269877', 'tblTempUsageDetail_20' ) start [2025-01-17 17:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269877', 'tblTempUsageDetail_20' ) end [2025-01-17 17:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:39:30] Production.INFO: ==20966== Releasing lock... [2025-01-17 17:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:39:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:40:06 [end_date_ymd] => 2025-01-17 17:40:06 [RateCDR] => 1 ) [2025-01-17 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:40:06' and `end` < '2025-01-17 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:40:23] Production.INFO: count ==4505 [2025-01-17 17:40:25] Production.ERROR: pbx CDR StartTime 2025-01-17 14:40:06 - End Time 2025-01-17 17:40:06 [2025-01-17 17:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269882', 'tblTempUsageDetail_20' ) start [2025-01-17 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269882', 'tblTempUsageDetail_20' ) end [2025-01-17 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269882', 'tblTempVendorCDR_20' ) start [2025-01-17 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269882', 'tblTempVendorCDR_20' ) end [2025-01-17 17:40:25] Production.INFO: ProcessCDR(1,14269882,1,1,2) [2025-01-17 17:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269882', 'tblTempUsageDetail_20' ) start [2025-01-17 17:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269882', 'tblTempUsageDetail_20' ) end [2025-01-17 17:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:40:30] Production.INFO: ==21039== Releasing lock... [2025-01-17 17:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:40:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:41:05 [end_date_ymd] => 2025-01-17 17:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:41:05' and `end` < '2025-01-17 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-17 17:41:21] Production.INFO: count ==4518 [2025-01-17 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:41:05 - End Time 2025-01-17 17:41:05 [2025-01-17 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269888', 'tblTempUsageDetail_20' ) start [2025-01-17 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269888', 'tblTempUsageDetail_20' ) end [2025-01-17 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269888', 'tblTempVendorCDR_20' ) start [2025-01-17 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269888', 'tblTempVendorCDR_20' ) end [2025-01-17 17:41:23] Production.INFO: ProcessCDR(1,14269888,1,1,2) [2025-01-17 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269888', 'tblTempUsageDetail_20' ) start [2025-01-17 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269888', 'tblTempUsageDetail_20' ) end [2025-01-17 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:41:28] Production.INFO: ==21113== Releasing lock... [2025-01-17 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:41:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:42:05 [end_date_ymd] => 2025-01-17 17:42:05 [RateCDR] => 1 ) [2025-01-17 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:42:05' and `end` < '2025-01-17 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:42:32] Production.INFO: count ==4539 [2025-01-17 17:42:34] Production.ERROR: pbx CDR StartTime 2025-01-17 14:42:05 - End Time 2025-01-17 17:42:05 [2025-01-17 17:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269893', 'tblTempUsageDetail_20' ) start [2025-01-17 17:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269893', 'tblTempUsageDetail_20' ) end [2025-01-17 17:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269893', 'tblTempVendorCDR_20' ) start [2025-01-17 17:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269893', 'tblTempVendorCDR_20' ) end [2025-01-17 17:42:34] Production.INFO: ProcessCDR(1,14269893,1,1,2) [2025-01-17 17:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269893', 'tblTempUsageDetail_20' ) start [2025-01-17 17:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269893', 'tblTempUsageDetail_20' ) end [2025-01-17 17:42:39] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:42:39] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:42:39] Production.INFO: ==21185== Releasing lock... [2025-01-17 17:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:42:39] Production.INFO: 62 MB #Memory Used# [2025-01-17 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:43:05 [end_date_ymd] => 2025-01-17 17:43:05 [RateCDR] => 1 ) [2025-01-17 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:43:05' and `end` < '2025-01-17 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:43:22] Production.INFO: count ==4501 [2025-01-17 17:43:24] Production.ERROR: pbx CDR StartTime 2025-01-17 14:43:05 - End Time 2025-01-17 17:43:05 [2025-01-17 17:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269898', 'tblTempUsageDetail_20' ) start [2025-01-17 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269898', 'tblTempUsageDetail_20' ) end [2025-01-17 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269898', 'tblTempVendorCDR_20' ) start [2025-01-17 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269898', 'tblTempVendorCDR_20' ) end [2025-01-17 17:43:24] Production.INFO: ProcessCDR(1,14269898,1,1,2) [2025-01-17 17:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269898', 'tblTempUsageDetail_20' ) start [2025-01-17 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269898', 'tblTempUsageDetail_20' ) end [2025-01-17 17:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:43:29] Production.INFO: ==21258== Releasing lock... [2025-01-17 17:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:43:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-17 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:44:05 [end_date_ymd] => 2025-01-17 17:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:44:05' and `end` < '2025-01-17 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-17 17:44:18] Production.INFO: count ==4471 [2025-01-17 17:44:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:44:05 - End Time 2025-01-17 17:44:05 [2025-01-17 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269903', 'tblTempUsageDetail_20' ) start [2025-01-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269903', 'tblTempUsageDetail_20' ) end [2025-01-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269903', 'tblTempVendorCDR_20' ) start [2025-01-17 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269903', 'tblTempVendorCDR_20' ) end [2025-01-17 17:44:20] Production.INFO: ProcessCDR(1,14269903,1,1,2) [2025-01-17 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269903', 'tblTempUsageDetail_20' ) start [2025-01-17 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269903', 'tblTempUsageDetail_20' ) end [2025-01-17 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:44:25] Production.INFO: ==21328== Releasing lock... [2025-01-17 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:44:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-17 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:45:05 [end_date_ymd] => 2025-01-17 17:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:45:05' and `end` < '2025-01-17 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-17 17:45:38] Production.INFO: count ==4437 [2025-01-17 17:45:39] Production.ERROR: pbx CDR StartTime 2025-01-17 14:45:05 - End Time 2025-01-17 17:45:05 [2025-01-17 17:45:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269908', 'tblTempUsageDetail_20' ) start [2025-01-17 17:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269908', 'tblTempUsageDetail_20' ) end [2025-01-17 17:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269908', 'tblTempVendorCDR_20' ) start [2025-01-17 17:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269908', 'tblTempVendorCDR_20' ) end [2025-01-17 17:45:39] Production.INFO: ProcessCDR(1,14269908,1,1,2) [2025-01-17 17:45:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:45:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:45:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:45:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269908', 'tblTempUsageDetail_20' ) start [2025-01-17 17:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269908', 'tblTempUsageDetail_20' ) end [2025-01-17 17:45:44] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:45:44] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:45:44] Production.INFO: ==21402== Releasing lock... [2025-01-17 17:45:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:45:44] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:46:05 [end_date_ymd] => 2025-01-17 17:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:46:05' and `end` < '2025-01-17 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-17 17:46:25] Production.INFO: count ==4429 [2025-01-17 17:46:27] Production.ERROR: pbx CDR StartTime 2025-01-17 14:46:05 - End Time 2025-01-17 17:46:05 [2025-01-17 17:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269913', 'tblTempUsageDetail_20' ) start [2025-01-17 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269913', 'tblTempUsageDetail_20' ) end [2025-01-17 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269913', 'tblTempVendorCDR_20' ) start [2025-01-17 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269913', 'tblTempVendorCDR_20' ) end [2025-01-17 17:46:27] Production.INFO: ProcessCDR(1,14269913,1,1,2) [2025-01-17 17:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269913', 'tblTempUsageDetail_20' ) start [2025-01-17 17:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269913', 'tblTempUsageDetail_20' ) end [2025-01-17 17:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:46:32] Production.INFO: ==21473== Releasing lock... [2025-01-17 17:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:46:32] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:47:05 [end_date_ymd] => 2025-01-17 17:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:47:05' and `end` < '2025-01-17 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-17 17:47:20] Production.INFO: count ==4427 [2025-01-17 17:47:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:47:05 - End Time 2025-01-17 17:47:05 [2025-01-17 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269918', 'tblTempUsageDetail_20' ) start [2025-01-17 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269918', 'tblTempUsageDetail_20' ) end [2025-01-17 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269918', 'tblTempVendorCDR_20' ) start [2025-01-17 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269918', 'tblTempVendorCDR_20' ) end [2025-01-17 17:47:22] Production.INFO: ProcessCDR(1,14269918,1,1,2) [2025-01-17 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269918', 'tblTempUsageDetail_20' ) start [2025-01-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269918', 'tblTempUsageDetail_20' ) end [2025-01-17 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:47:26] Production.INFO: ==21545== Releasing lock... [2025-01-17 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:47:26] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:48:05 [end_date_ymd] => 2025-01-17 17:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:48:05' and `end` < '2025-01-17 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-17 17:48:19] Production.INFO: count ==4403 [2025-01-17 17:48:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:48:05 - End Time 2025-01-17 17:48:05 [2025-01-17 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269923', 'tblTempUsageDetail_20' ) start [2025-01-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269923', 'tblTempUsageDetail_20' ) end [2025-01-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269923', 'tblTempVendorCDR_20' ) start [2025-01-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269923', 'tblTempVendorCDR_20' ) end [2025-01-17 17:48:20] Production.INFO: ProcessCDR(1,14269923,1,1,2) [2025-01-17 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269923', 'tblTempUsageDetail_20' ) start [2025-01-17 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269923', 'tblTempUsageDetail_20' ) end [2025-01-17 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:48:25] Production.INFO: ==21615== Releasing lock... [2025-01-17 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:48:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:49:04 [end_date_ymd] => 2025-01-17 17:49:04 [RateCDR] => 1 ) [2025-01-17 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:49:04' and `end` < '2025-01-17 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:49:18] Production.INFO: count ==4399 [2025-01-17 17:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 14:49:04 - End Time 2025-01-17 17:49:04 [2025-01-17 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269928', 'tblTempUsageDetail_20' ) start [2025-01-17 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269928', 'tblTempUsageDetail_20' ) end [2025-01-17 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269928', 'tblTempVendorCDR_20' ) start [2025-01-17 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269928', 'tblTempVendorCDR_20' ) end [2025-01-17 17:49:19] Production.INFO: ProcessCDR(1,14269928,1,1,2) [2025-01-17 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269928', 'tblTempUsageDetail_20' ) start [2025-01-17 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269928', 'tblTempUsageDetail_20' ) end [2025-01-17 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:49:24] Production.INFO: ==21688== Releasing lock... [2025-01-17 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:49:24] Production.INFO: 61 MB #Memory Used# [2025-01-17 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:50:06 [end_date_ymd] => 2025-01-17 17:50:06 [RateCDR] => 1 ) [2025-01-17 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:50:06' and `end` < '2025-01-17 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:50:24] Production.INFO: count ==4370 [2025-01-17 17:50:26] Production.ERROR: pbx CDR StartTime 2025-01-17 14:50:06 - End Time 2025-01-17 17:50:06 [2025-01-17 17:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269934', 'tblTempUsageDetail_20' ) start [2025-01-17 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269934', 'tblTempUsageDetail_20' ) end [2025-01-17 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269934', 'tblTempVendorCDR_20' ) start [2025-01-17 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269934', 'tblTempVendorCDR_20' ) end [2025-01-17 17:50:26] Production.INFO: ProcessCDR(1,14269934,1,1,2) [2025-01-17 17:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269934', 'tblTempUsageDetail_20' ) start [2025-01-17 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269934', 'tblTempUsageDetail_20' ) end [2025-01-17 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:50:29] Production.INFO: ==21801== Releasing lock... [2025-01-17 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:50:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:51:06 [end_date_ymd] => 2025-01-17 17:51:06 [RateCDR] => 1 ) [2025-01-17 17: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-17 14:51:06' and `end` < '2025-01-17 17: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-17 17:51:21] Production.INFO: count ==4349 [2025-01-17 17:51:23] Production.ERROR: pbx CDR StartTime 2025-01-17 14:51:06 - End Time 2025-01-17 17:51:06 [2025-01-17 17:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269939', 'tblTempUsageDetail_20' ) start [2025-01-17 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269939', 'tblTempUsageDetail_20' ) end [2025-01-17 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269939', 'tblTempVendorCDR_20' ) start [2025-01-17 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269939', 'tblTempVendorCDR_20' ) end [2025-01-17 17:51:23] Production.INFO: ProcessCDR(1,14269939,1,1,2) [2025-01-17 17:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269939', 'tblTempUsageDetail_20' ) start [2025-01-17 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269939', 'tblTempUsageDetail_20' ) end [2025-01-17 17:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:51:28] Production.INFO: ==21876== Releasing lock... [2025-01-17 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:51:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:52:05 [end_date_ymd] => 2025-01-17 17:52:05 [RateCDR] => 1 ) [2025-01-17 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:52:05' and `end` < '2025-01-17 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-17 17:52:19] Production.INFO: count ==4339 [2025-01-17 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-17 14:52:05 - End Time 2025-01-17 17:52:05 [2025-01-17 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269944', 'tblTempUsageDetail_20' ) start [2025-01-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269944', 'tblTempUsageDetail_20' ) end [2025-01-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269944', 'tblTempVendorCDR_20' ) start [2025-01-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269944', 'tblTempVendorCDR_20' ) end [2025-01-17 17:52:21] Production.INFO: ProcessCDR(1,14269944,1,1,2) [2025-01-17 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269944', 'tblTempUsageDetail_20' ) start [2025-01-17 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269944', 'tblTempUsageDetail_20' ) end [2025-01-17 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:52:24] Production.INFO: ==21945== Releasing lock... [2025-01-17 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:52:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:53:05 [end_date_ymd] => 2025-01-17 17:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:53:05' and `end` < '2025-01-17 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-17 17:53:18] Production.INFO: count ==4324 [2025-01-17 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:53:05 - End Time 2025-01-17 17:53:05 [2025-01-17 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269949', 'tblTempUsageDetail_20' ) start [2025-01-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269949', 'tblTempUsageDetail_20' ) end [2025-01-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269949', 'tblTempVendorCDR_20' ) start [2025-01-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269949', 'tblTempVendorCDR_20' ) end [2025-01-17 17:53:20] Production.INFO: ProcessCDR(1,14269949,1,1,2) [2025-01-17 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269949', 'tblTempUsageDetail_20' ) start [2025-01-17 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269949', 'tblTempUsageDetail_20' ) end [2025-01-17 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:53:25] Production.INFO: ==22018== Releasing lock... [2025-01-17 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:53:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:54:06 [end_date_ymd] => 2025-01-17 17:54:06 [RateCDR] => 1 ) [2025-01-17 17: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-17 14:54:06' and `end` < '2025-01-17 17: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-17 17:54:19] Production.INFO: count ==4321 [2025-01-17 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:54:06 - End Time 2025-01-17 17:54:06 [2025-01-17 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269954', 'tblTempUsageDetail_20' ) start [2025-01-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269954', 'tblTempUsageDetail_20' ) end [2025-01-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269954', 'tblTempVendorCDR_20' ) start [2025-01-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269954', 'tblTempVendorCDR_20' ) end [2025-01-17 17:54:20] Production.INFO: ProcessCDR(1,14269954,1,1,2) [2025-01-17 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269954', 'tblTempUsageDetail_20' ) start [2025-01-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269954', 'tblTempUsageDetail_20' ) end [2025-01-17 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:54:25] Production.INFO: ==22094== Releasing lock... [2025-01-17 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:54:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:55:05 [end_date_ymd] => 2025-01-17 17:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:55:05' and `end` < '2025-01-17 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-17 17:55:19] Production.INFO: count ==4315 [2025-01-17 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-17 14:55:05 - End Time 2025-01-17 17:55:05 [2025-01-17 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269958', 'tblTempUsageDetail_20' ) start [2025-01-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269958', 'tblTempUsageDetail_20' ) end [2025-01-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269958', 'tblTempVendorCDR_20' ) start [2025-01-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269958', 'tblTempVendorCDR_20' ) end [2025-01-17 17:55:20] Production.INFO: ProcessCDR(1,14269958,1,1,2) [2025-01-17 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269958', 'tblTempUsageDetail_20' ) start [2025-01-17 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269958', 'tblTempUsageDetail_20' ) end [2025-01-17 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:55:25] Production.INFO: ==22168== Releasing lock... [2025-01-17 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:55:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:56:05 [end_date_ymd] => 2025-01-17 17:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:56:05' and `end` < '2025-01-17 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-17 17:56:21] Production.INFO: count ==4307 [2025-01-17 17:56:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:56:05 - End Time 2025-01-17 17:56:05 [2025-01-17 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269964', 'tblTempUsageDetail_20' ) start [2025-01-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269964', 'tblTempUsageDetail_20' ) end [2025-01-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269964', 'tblTempVendorCDR_20' ) start [2025-01-17 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269964', 'tblTempVendorCDR_20' ) end [2025-01-17 17:56:22] Production.INFO: ProcessCDR(1,14269964,1,1,2) [2025-01-17 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269964', 'tblTempUsageDetail_20' ) start [2025-01-17 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269964', 'tblTempUsageDetail_20' ) end [2025-01-17 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:56:27] Production.INFO: ==22238== Releasing lock... [2025-01-17 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:56:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:57:05 [end_date_ymd] => 2025-01-17 17:57:05 [RateCDR] => 1 ) [2025-01-17 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 14:57:05' and `end` < '2025-01-17 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 17:57:21] Production.INFO: count ==4299 [2025-01-17 17:57:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:57:05 - End Time 2025-01-17 17:57:05 [2025-01-17 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269969', 'tblTempUsageDetail_20' ) start [2025-01-17 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269969', 'tblTempUsageDetail_20' ) end [2025-01-17 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269969', 'tblTempVendorCDR_20' ) start [2025-01-17 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269969', 'tblTempVendorCDR_20' ) end [2025-01-17 17:57:23] Production.INFO: ProcessCDR(1,14269969,1,1,2) [2025-01-17 17:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269969', 'tblTempUsageDetail_20' ) start [2025-01-17 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269969', 'tblTempUsageDetail_20' ) end [2025-01-17 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:57:26] Production.INFO: ==22316== Releasing lock... [2025-01-17 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:57:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:58:05 [end_date_ymd] => 2025-01-17 17:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:58:05' and `end` < '2025-01-17 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-17 17:58:21] Production.INFO: count ==4292 [2025-01-17 17:58:22] Production.ERROR: pbx CDR StartTime 2025-01-17 14:58:05 - End Time 2025-01-17 17:58:05 [2025-01-17 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269974', 'tblTempUsageDetail_20' ) start [2025-01-17 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269974', 'tblTempUsageDetail_20' ) end [2025-01-17 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269974', 'tblTempVendorCDR_20' ) start [2025-01-17 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269974', 'tblTempVendorCDR_20' ) end [2025-01-17 17:58:22] Production.INFO: ProcessCDR(1,14269974,1,1,2) [2025-01-17 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269974', 'tblTempUsageDetail_20' ) start [2025-01-17 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269974', 'tblTempUsageDetail_20' ) end [2025-01-17 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:58:28] Production.INFO: ==22386== Releasing lock... [2025-01-17 17:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:58:28] Production.INFO: 60 MB #Memory Used# [2025-01-17 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 14:59:05 [end_date_ymd] => 2025-01-17 17:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 14:59:05' and `end` < '2025-01-17 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-17 17:59:18] Production.INFO: count ==4285 [2025-01-17 17:59:19] Production.ERROR: pbx CDR StartTime 2025-01-17 14:59:05 - End Time 2025-01-17 17:59:05 [2025-01-17 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269979', 'tblTempUsageDetail_20' ) start [2025-01-17 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269979', 'tblTempUsageDetail_20' ) end [2025-01-17 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269979', 'tblTempVendorCDR_20' ) start [2025-01-17 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269979', 'tblTempVendorCDR_20' ) end [2025-01-17 17:59:19] Production.INFO: ProcessCDR(1,14269979,1,1,2) [2025-01-17 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269979', 'tblTempUsageDetail_20' ) start [2025-01-17 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269979', 'tblTempUsageDetail_20' ) end [2025-01-17 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 17:59:24] Production.INFO: ==22460== Releasing lock... [2025-01-17 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 17:59:24] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:00:06 [end_date_ymd] => 2025-01-17 18:00:06 [RateCDR] => 1 ) [2025-01-17 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:00:06' and `end` < '2025-01-17 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:00:20] Production.INFO: count ==4298 [2025-01-17 18:00:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:00:06 - End Time 2025-01-17 18:00:06 [2025-01-17 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269984', 'tblTempUsageDetail_20' ) start [2025-01-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269984', 'tblTempUsageDetail_20' ) end [2025-01-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269984', 'tblTempVendorCDR_20' ) start [2025-01-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269984', 'tblTempVendorCDR_20' ) end [2025-01-17 18:00:21] Production.INFO: ProcessCDR(1,14269984,1,1,2) [2025-01-17 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269984', 'tblTempUsageDetail_20' ) start [2025-01-17 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269984', 'tblTempUsageDetail_20' ) end [2025-01-17 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:00:26] Production.INFO: ==22532== Releasing lock... [2025-01-17 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:00:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:01:05 [end_date_ymd] => 2025-01-17 18:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:01:05' and `end` < '2025-01-17 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-17 18:01:20] Production.INFO: count ==4356 [2025-01-17 18:01:22] Production.ERROR: pbx CDR StartTime 2025-01-17 15:01:05 - End Time 2025-01-17 18:01:05 [2025-01-17 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269990', 'tblTempUsageDetail_20' ) start [2025-01-17 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269990', 'tblTempUsageDetail_20' ) end [2025-01-17 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269990', 'tblTempVendorCDR_20' ) start [2025-01-17 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269990', 'tblTempVendorCDR_20' ) end [2025-01-17 18:01:22] Production.INFO: ProcessCDR(1,14269990,1,1,2) [2025-01-17 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269990', 'tblTempUsageDetail_20' ) start [2025-01-17 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269990', 'tblTempUsageDetail_20' ) end [2025-01-17 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:01:27] Production.INFO: ==22617== Releasing lock... [2025-01-17 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:01:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:02:06 [end_date_ymd] => 2025-01-17 18:02:06 [RateCDR] => 1 ) [2025-01-17 18: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-17 15:02:06' and `end` < '2025-01-17 18: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-17 18:02:21] Production.INFO: count ==4356 [2025-01-17 18:02:23] Production.ERROR: pbx CDR StartTime 2025-01-17 15:02:06 - End Time 2025-01-17 18:02:06 [2025-01-17 18:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269995', 'tblTempUsageDetail_20' ) start [2025-01-17 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14269995', 'tblTempUsageDetail_20' ) end [2025-01-17 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269995', 'tblTempVendorCDR_20' ) start [2025-01-17 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14269995', 'tblTempVendorCDR_20' ) end [2025-01-17 18:02:23] Production.INFO: ProcessCDR(1,14269995,1,1,2) [2025-01-17 18:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14269995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14269995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14269995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14269995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269995', 'tblTempUsageDetail_20' ) start [2025-01-17 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14269995', 'tblTempUsageDetail_20' ) end [2025-01-17 18:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:02:28] Production.INFO: ==22690== Releasing lock... [2025-01-17 18:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:02:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:03:05 [end_date_ymd] => 2025-01-17 18:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:03:05' and `end` < '2025-01-17 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-17 18:03:20] Production.INFO: count ==4354 [2025-01-17 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:03:05 - End Time 2025-01-17 18:03:05 [2025-01-17 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270000', 'tblTempUsageDetail_20' ) start [2025-01-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270000', 'tblTempUsageDetail_20' ) end [2025-01-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270000', 'tblTempVendorCDR_20' ) start [2025-01-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270000', 'tblTempVendorCDR_20' ) end [2025-01-17 18:03:21] Production.INFO: ProcessCDR(1,14270000,1,1,2) [2025-01-17 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270000', 'tblTempUsageDetail_20' ) start [2025-01-17 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270000', 'tblTempUsageDetail_20' ) end [2025-01-17 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:03:26] Production.INFO: ==22760== Releasing lock... [2025-01-17 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:03:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:04:05 [end_date_ymd] => 2025-01-17 18:04:05 [RateCDR] => 1 ) [2025-01-17 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:04:05' and `end` < '2025-01-17 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:04:19] Production.INFO: count ==4369 [2025-01-17 18:04:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:04:05 - End Time 2025-01-17 18:04:05 [2025-01-17 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270005', 'tblTempUsageDetail_20' ) start [2025-01-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270005', 'tblTempUsageDetail_20' ) end [2025-01-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270005', 'tblTempVendorCDR_20' ) start [2025-01-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270005', 'tblTempVendorCDR_20' ) end [2025-01-17 18:04:20] Production.INFO: ProcessCDR(1,14270005,1,1,2) [2025-01-17 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270005', 'tblTempUsageDetail_20' ) start [2025-01-17 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270005', 'tblTempUsageDetail_20' ) end [2025-01-17 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:04:24] Production.INFO: ==22832== Releasing lock... [2025-01-17 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:04:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:05:05 [end_date_ymd] => 2025-01-17 18:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:05:05' and `end` < '2025-01-17 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-17 18:05:19] Production.INFO: count ==4382 [2025-01-17 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:05:05 - End Time 2025-01-17 18:05:05 [2025-01-17 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270010', 'tblTempUsageDetail_20' ) start [2025-01-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270010', 'tblTempUsageDetail_20' ) end [2025-01-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270010', 'tblTempVendorCDR_20' ) start [2025-01-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270010', 'tblTempVendorCDR_20' ) end [2025-01-17 18:05:20] Production.INFO: ProcessCDR(1,14270010,1,1,2) [2025-01-17 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270010', 'tblTempUsageDetail_20' ) start [2025-01-17 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270010', 'tblTempUsageDetail_20' ) end [2025-01-17 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:05:25] Production.INFO: ==22905== Releasing lock... [2025-01-17 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:05:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:06:05 [end_date_ymd] => 2025-01-17 18:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:06:05' and `end` < '2025-01-17 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-17 18:06:23] Production.INFO: count ==4421 [2025-01-17 18:06:24] Production.ERROR: pbx CDR StartTime 2025-01-17 15:06:05 - End Time 2025-01-17 18:06:05 [2025-01-17 18:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270015', 'tblTempUsageDetail_20' ) start [2025-01-17 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270015', 'tblTempUsageDetail_20' ) end [2025-01-17 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270015', 'tblTempVendorCDR_20' ) start [2025-01-17 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270015', 'tblTempVendorCDR_20' ) end [2025-01-17 18:06:24] Production.INFO: ProcessCDR(1,14270015,1,1,2) [2025-01-17 18:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270015', 'tblTempUsageDetail_20' ) start [2025-01-17 18:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270015', 'tblTempUsageDetail_20' ) end [2025-01-17 18:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:06:29] Production.INFO: ==23014== Releasing lock... [2025-01-17 18:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:06:29] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:07:05 [end_date_ymd] => 2025-01-17 18:07:05 [RateCDR] => 1 ) [2025-01-17 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:07:05' and `end` < '2025-01-17 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:07:18] Production.INFO: count ==4413 [2025-01-17 18:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:07:05 - End Time 2025-01-17 18:07:05 [2025-01-17 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270020', 'tblTempUsageDetail_20' ) start [2025-01-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270020', 'tblTempUsageDetail_20' ) end [2025-01-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270020', 'tblTempVendorCDR_20' ) start [2025-01-17 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270020', 'tblTempVendorCDR_20' ) end [2025-01-17 18:07:20] Production.INFO: ProcessCDR(1,14270020,1,1,2) [2025-01-17 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270020', 'tblTempUsageDetail_20' ) start [2025-01-17 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270020', 'tblTempUsageDetail_20' ) end [2025-01-17 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:07:25] Production.INFO: ==23085== Releasing lock... [2025-01-17 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:07:25] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:08:05 [end_date_ymd] => 2025-01-17 18:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:08:05' and `end` < '2025-01-17 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-17 18:08:18] Production.INFO: count ==4402 [2025-01-17 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:08:05 - End Time 2025-01-17 18:08:05 [2025-01-17 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270025', 'tblTempUsageDetail_20' ) start [2025-01-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270025', 'tblTempUsageDetail_20' ) end [2025-01-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270025', 'tblTempVendorCDR_20' ) start [2025-01-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270025', 'tblTempVendorCDR_20' ) end [2025-01-17 18:08:20] Production.INFO: ProcessCDR(1,14270025,1,1,2) [2025-01-17 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270025', 'tblTempUsageDetail_20' ) start [2025-01-17 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270025', 'tblTempUsageDetail_20' ) end [2025-01-17 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:08:23] Production.INFO: ==23157== Releasing lock... [2025-01-17 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:08:23] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:09:05 [end_date_ymd] => 2025-01-17 18:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:09:05' and `end` < '2025-01-17 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-17 18:09:24] Production.INFO: count ==4419 [2025-01-17 18:09:26] Production.ERROR: pbx CDR StartTime 2025-01-17 15:09:05 - End Time 2025-01-17 18:09:05 [2025-01-17 18:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270030', 'tblTempUsageDetail_20' ) start [2025-01-17 18:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270030', 'tblTempUsageDetail_20' ) end [2025-01-17 18:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270030', 'tblTempVendorCDR_20' ) start [2025-01-17 18:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270030', 'tblTempVendorCDR_20' ) end [2025-01-17 18:09:26] Production.INFO: ProcessCDR(1,14270030,1,1,2) [2025-01-17 18:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270030', 'tblTempUsageDetail_20' ) start [2025-01-17 18:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270030', 'tblTempUsageDetail_20' ) end [2025-01-17 18:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:09:31] Production.INFO: ==23230== Releasing lock... [2025-01-17 18:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:09:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-17 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:10:06 [end_date_ymd] => 2025-01-17 18:10:06 [RateCDR] => 1 ) [2025-01-17 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:10:06' and `end` < '2025-01-17 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:10:25] Production.INFO: count ==4408 [2025-01-17 18:10:26] Production.ERROR: pbx CDR StartTime 2025-01-17 15:10:06 - End Time 2025-01-17 18:10:06 [2025-01-17 18:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270035', 'tblTempUsageDetail_20' ) start [2025-01-17 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270035', 'tblTempUsageDetail_20' ) end [2025-01-17 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270035', 'tblTempVendorCDR_20' ) start [2025-01-17 18:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270035', 'tblTempVendorCDR_20' ) end [2025-01-17 18:10:26] Production.INFO: ProcessCDR(1,14270035,1,1,2) [2025-01-17 18:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270035', 'tblTempUsageDetail_20' ) start [2025-01-17 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270035', 'tblTempUsageDetail_20' ) end [2025-01-17 18:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:10:30] Production.INFO: ==23302== Releasing lock... [2025-01-17 18:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:10:30] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:11:04 [end_date_ymd] => 2025-01-17 18:11:04 [RateCDR] => 1 ) [2025-01-17 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:11:04' and `end` < '2025-01-17 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:11:23] Production.INFO: count ==4417 [2025-01-17 18:11:24] Production.ERROR: pbx CDR StartTime 2025-01-17 15:11:04 - End Time 2025-01-17 18:11:04 [2025-01-17 18:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270041', 'tblTempUsageDetail_20' ) start [2025-01-17 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270041', 'tblTempUsageDetail_20' ) end [2025-01-17 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270041', 'tblTempVendorCDR_20' ) start [2025-01-17 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270041', 'tblTempVendorCDR_20' ) end [2025-01-17 18:11:24] Production.INFO: ProcessCDR(1,14270041,1,1,2) [2025-01-17 18:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270041', 'tblTempUsageDetail_20' ) start [2025-01-17 18:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270041', 'tblTempUsageDetail_20' ) end [2025-01-17 18:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:11:29] Production.INFO: ==23376== Releasing lock... [2025-01-17 18:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:11:29] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:12:06 [end_date_ymd] => 2025-01-17 18:12:06 [RateCDR] => 1 ) [2025-01-17 18: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-17 15:12:06' and `end` < '2025-01-17 18: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-17 18:12:23] Production.INFO: count ==4400 [2025-01-17 18:12:25] Production.ERROR: pbx CDR StartTime 2025-01-17 15:12:06 - End Time 2025-01-17 18:12:06 [2025-01-17 18:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270046', 'tblTempUsageDetail_20' ) start [2025-01-17 18:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270046', 'tblTempUsageDetail_20' ) end [2025-01-17 18:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270046', 'tblTempVendorCDR_20' ) start [2025-01-17 18:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270046', 'tblTempVendorCDR_20' ) end [2025-01-17 18:12:25] Production.INFO: ProcessCDR(1,14270046,1,1,2) [2025-01-17 18:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270046', 'tblTempUsageDetail_20' ) start [2025-01-17 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270046', 'tblTempUsageDetail_20' ) end [2025-01-17 18:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:12:28] Production.INFO: ==23449== Releasing lock... [2025-01-17 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:12:28] Production.INFO: 61 MB #Memory Used# [2025-01-17 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:13:05 [end_date_ymd] => 2025-01-17 18:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:13:05' and `end` < '2025-01-17 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-17 18:13:18] Production.INFO: count ==4391 [2025-01-17 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:13:05 - End Time 2025-01-17 18:13:05 [2025-01-17 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270051', 'tblTempUsageDetail_20' ) start [2025-01-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270051', 'tblTempUsageDetail_20' ) end [2025-01-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270051', 'tblTempVendorCDR_20' ) start [2025-01-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270051', 'tblTempVendorCDR_20' ) end [2025-01-17 18:13:20] Production.INFO: ProcessCDR(1,14270051,1,1,2) [2025-01-17 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270051', 'tblTempUsageDetail_20' ) start [2025-01-17 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270051', 'tblTempUsageDetail_20' ) end [2025-01-17 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:13:23] Production.INFO: ==23519== Releasing lock... [2025-01-17 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:13:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:14:05 [end_date_ymd] => 2025-01-17 18:14:05 [RateCDR] => 1 ) [2025-01-17 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:14:05' and `end` < '2025-01-17 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:14:19] Production.INFO: count ==4389 [2025-01-17 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:14:05 - End Time 2025-01-17 18:14:05 [2025-01-17 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270056', 'tblTempUsageDetail_20' ) start [2025-01-17 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270056', 'tblTempUsageDetail_20' ) end [2025-01-17 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270056', 'tblTempVendorCDR_20' ) start [2025-01-17 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270056', 'tblTempVendorCDR_20' ) end [2025-01-17 18:14:20] Production.INFO: ProcessCDR(1,14270056,1,1,2) [2025-01-17 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270056', 'tblTempUsageDetail_20' ) start [2025-01-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270056', 'tblTempUsageDetail_20' ) end [2025-01-17 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:14:24] Production.INFO: ==23590== Releasing lock... [2025-01-17 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:14:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:15:05 [end_date_ymd] => 2025-01-17 18:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:15:05' and `end` < '2025-01-17 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-17 18:15:19] Production.INFO: count ==4383 [2025-01-17 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:15:05 - End Time 2025-01-17 18:15:05 [2025-01-17 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270061', 'tblTempUsageDetail_20' ) start [2025-01-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270061', 'tblTempUsageDetail_20' ) end [2025-01-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270061', 'tblTempVendorCDR_20' ) start [2025-01-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270061', 'tblTempVendorCDR_20' ) end [2025-01-17 18:15:20] Production.INFO: ProcessCDR(1,14270061,1,1,2) [2025-01-17 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270061', 'tblTempUsageDetail_20' ) start [2025-01-17 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270061', 'tblTempUsageDetail_20' ) end [2025-01-17 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:15:24] Production.INFO: ==23664== Releasing lock... [2025-01-17 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:15:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:16:05 [end_date_ymd] => 2025-01-17 18:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:16:05' and `end` < '2025-01-17 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-17 18:16:18] Production.INFO: count ==4379 [2025-01-17 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:16:05 - End Time 2025-01-17 18:16:05 [2025-01-17 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270066', 'tblTempUsageDetail_20' ) start [2025-01-17 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270066', 'tblTempUsageDetail_20' ) end [2025-01-17 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270066', 'tblTempVendorCDR_20' ) start [2025-01-17 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270066', 'tblTempVendorCDR_20' ) end [2025-01-17 18:16:19] Production.INFO: ProcessCDR(1,14270066,1,1,2) [2025-01-17 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270066', 'tblTempUsageDetail_20' ) start [2025-01-17 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270066', 'tblTempUsageDetail_20' ) end [2025-01-17 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:16:24] Production.INFO: ==23734== Releasing lock... [2025-01-17 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:16:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-17 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:17:05 [end_date_ymd] => 2025-01-17 18:17:05 [RateCDR] => 1 ) [2025-01-17 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:17:05' and `end` < '2025-01-17 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:17:18] Production.INFO: count ==4352 [2025-01-17 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:17:05 - End Time 2025-01-17 18:17:05 [2025-01-17 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270071', 'tblTempUsageDetail_20' ) start [2025-01-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270071', 'tblTempUsageDetail_20' ) end [2025-01-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270071', 'tblTempVendorCDR_20' ) start [2025-01-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270071', 'tblTempVendorCDR_20' ) end [2025-01-17 18:17:20] Production.INFO: ProcessCDR(1,14270071,1,1,2) [2025-01-17 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270071', 'tblTempUsageDetail_20' ) start [2025-01-17 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270071', 'tblTempUsageDetail_20' ) end [2025-01-17 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:17:23] Production.INFO: ==23806== Releasing lock... [2025-01-17 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:17:23] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:18:04 [end_date_ymd] => 2025-01-17 18:18:04 [RateCDR] => 1 ) [2025-01-17 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:18:04' and `end` < '2025-01-17 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:18:17] Production.INFO: count ==4338 [2025-01-17 18:18:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:18:04 - End Time 2025-01-17 18:18:04 [2025-01-17 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270076', 'tblTempUsageDetail_20' ) start [2025-01-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270076', 'tblTempUsageDetail_20' ) end [2025-01-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270076', 'tblTempVendorCDR_20' ) start [2025-01-17 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270076', 'tblTempVendorCDR_20' ) end [2025-01-17 18:18:19] Production.INFO: ProcessCDR(1,14270076,1,1,2) [2025-01-17 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270076', 'tblTempUsageDetail_20' ) start [2025-01-17 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270076', 'tblTempUsageDetail_20' ) end [2025-01-17 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:18:22] Production.INFO: ==23876== Releasing lock... [2025-01-17 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:18:22] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:19:05 [end_date_ymd] => 2025-01-17 18:19:05 [RateCDR] => 1 ) [2025-01-17 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:19:05' and `end` < '2025-01-17 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:19:21] Production.INFO: count ==4325 [2025-01-17 18:19:22] Production.ERROR: pbx CDR StartTime 2025-01-17 15:19:05 - End Time 2025-01-17 18:19:05 [2025-01-17 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270081', 'tblTempUsageDetail_20' ) start [2025-01-17 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270081', 'tblTempUsageDetail_20' ) end [2025-01-17 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270081', 'tblTempVendorCDR_20' ) start [2025-01-17 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270081', 'tblTempVendorCDR_20' ) end [2025-01-17 18:19:22] Production.INFO: ProcessCDR(1,14270081,1,1,2) [2025-01-17 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270081', 'tblTempUsageDetail_20' ) start [2025-01-17 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270081', 'tblTempUsageDetail_20' ) end [2025-01-17 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:19:25] Production.INFO: ==23947== Releasing lock... [2025-01-17 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:19:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:20:06 [end_date_ymd] => 2025-01-17 18:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 15:20:06' and `end` < '2025-01-17 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-17 18:20:25] Production.INFO: count ==4319 [2025-01-17 18:20:26] Production.ERROR: pbx CDR StartTime 2025-01-17 15:20:06 - End Time 2025-01-17 18:20:06 [2025-01-17 18:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270086', 'tblTempUsageDetail_20' ) start [2025-01-17 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270086', 'tblTempUsageDetail_20' ) end [2025-01-17 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270086', 'tblTempVendorCDR_20' ) start [2025-01-17 18:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270086', 'tblTempVendorCDR_20' ) end [2025-01-17 18:20:26] Production.INFO: ProcessCDR(1,14270086,1,1,2) [2025-01-17 18:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270086', 'tblTempUsageDetail_20' ) start [2025-01-17 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270086', 'tblTempUsageDetail_20' ) end [2025-01-17 18:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:20:29] Production.INFO: ==24020== Releasing lock... [2025-01-17 18:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:20:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:21:05 [end_date_ymd] => 2025-01-17 18:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:21:05' and `end` < '2025-01-17 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-17 18:21:19] Production.INFO: count ==4309 [2025-01-17 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:21:05 - End Time 2025-01-17 18:21:05 [2025-01-17 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270092', 'tblTempUsageDetail_20' ) start [2025-01-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270092', 'tblTempUsageDetail_20' ) end [2025-01-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270092', 'tblTempVendorCDR_20' ) start [2025-01-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270092', 'tblTempVendorCDR_20' ) end [2025-01-17 18:21:20] Production.INFO: ProcessCDR(1,14270092,1,1,2) [2025-01-17 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270092', 'tblTempUsageDetail_20' ) start [2025-01-17 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270092', 'tblTempUsageDetail_20' ) end [2025-01-17 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:21:23] Production.INFO: ==24093== Releasing lock... [2025-01-17 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:21:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:22:05 [end_date_ymd] => 2025-01-17 18:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:22:05' and `end` < '2025-01-17 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-17 18:22:19] Production.INFO: count ==4303 [2025-01-17 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:22:05 - End Time 2025-01-17 18:22:05 [2025-01-17 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270097', 'tblTempUsageDetail_20' ) start [2025-01-17 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270097', 'tblTempUsageDetail_20' ) end [2025-01-17 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270097', 'tblTempVendorCDR_20' ) start [2025-01-17 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270097', 'tblTempVendorCDR_20' ) end [2025-01-17 18:22:20] Production.INFO: ProcessCDR(1,14270097,1,1,2) [2025-01-17 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270097', 'tblTempUsageDetail_20' ) start [2025-01-17 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270097', 'tblTempUsageDetail_20' ) end [2025-01-17 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:22:24] Production.INFO: ==24227== Releasing lock... [2025-01-17 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:22:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:23:05 [end_date_ymd] => 2025-01-17 18:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:23:05' and `end` < '2025-01-17 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-17 18:23:18] Production.INFO: count ==4288 [2025-01-17 18:23:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:23:05 - End Time 2025-01-17 18:23:05 [2025-01-17 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270102', 'tblTempUsageDetail_20' ) start [2025-01-17 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270102', 'tblTempUsageDetail_20' ) end [2025-01-17 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270102', 'tblTempVendorCDR_20' ) start [2025-01-17 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270102', 'tblTempVendorCDR_20' ) end [2025-01-17 18:23:19] Production.INFO: ProcessCDR(1,14270102,1,1,2) [2025-01-17 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270102', 'tblTempUsageDetail_20' ) start [2025-01-17 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270102', 'tblTempUsageDetail_20' ) end [2025-01-17 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:23:24] Production.INFO: ==24299== Releasing lock... [2025-01-17 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:23:24] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:24:05 [end_date_ymd] => 2025-01-17 18:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:24:05' and `end` < '2025-01-17 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-17 18:24:20] Production.INFO: count ==4278 [2025-01-17 18:24:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:24:05 - End Time 2025-01-17 18:24:05 [2025-01-17 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270107', 'tblTempUsageDetail_20' ) start [2025-01-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270107', 'tblTempUsageDetail_20' ) end [2025-01-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270107', 'tblTempVendorCDR_20' ) start [2025-01-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270107', 'tblTempVendorCDR_20' ) end [2025-01-17 18:24:21] Production.INFO: ProcessCDR(1,14270107,1,1,2) [2025-01-17 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270107', 'tblTempUsageDetail_20' ) start [2025-01-17 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270107', 'tblTempUsageDetail_20' ) end [2025-01-17 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:24:24] Production.INFO: ==24370== Releasing lock... [2025-01-17 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:24:24] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:25:05 [end_date_ymd] => 2025-01-17 18:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:25:05' and `end` < '2025-01-17 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-17 18:25:19] Production.INFO: count ==4273 [2025-01-17 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:25:05 - End Time 2025-01-17 18:25:05 [2025-01-17 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270112', 'tblTempUsageDetail_20' ) start [2025-01-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270112', 'tblTempUsageDetail_20' ) end [2025-01-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270112', 'tblTempVendorCDR_20' ) start [2025-01-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270112', 'tblTempVendorCDR_20' ) end [2025-01-17 18:25:21] Production.INFO: ProcessCDR(1,14270112,1,1,2) [2025-01-17 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270112', 'tblTempUsageDetail_20' ) start [2025-01-17 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270112', 'tblTempUsageDetail_20' ) end [2025-01-17 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:25:24] Production.INFO: ==24443== Releasing lock... [2025-01-17 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:25:24] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:26:04 [end_date_ymd] => 2025-01-17 18:26:04 [RateCDR] => 1 ) [2025-01-17 18:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:26:04' and `end` < '2025-01-17 18:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:26:18] Production.INFO: count ==4279 [2025-01-17 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:26:04 - End Time 2025-01-17 18:26:04 [2025-01-17 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270117', 'tblTempUsageDetail_20' ) start [2025-01-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270117', 'tblTempUsageDetail_20' ) end [2025-01-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270117', 'tblTempVendorCDR_20' ) start [2025-01-17 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270117', 'tblTempVendorCDR_20' ) end [2025-01-17 18:26:19] Production.INFO: ProcessCDR(1,14270117,1,1,2) [2025-01-17 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270117', 'tblTempUsageDetail_20' ) start [2025-01-17 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270117', 'tblTempUsageDetail_20' ) end [2025-01-17 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:26:24] Production.INFO: ==24516== Releasing lock... [2025-01-17 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:26:24] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:27:05 [end_date_ymd] => 2025-01-17 18:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:27:05' and `end` < '2025-01-17 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-17 18:27:21] Production.INFO: count ==4272 [2025-01-17 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-17 15:27:05 - End Time 2025-01-17 18:27:05 [2025-01-17 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270122', 'tblTempUsageDetail_20' ) start [2025-01-17 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270122', 'tblTempUsageDetail_20' ) end [2025-01-17 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270122', 'tblTempVendorCDR_20' ) start [2025-01-17 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270122', 'tblTempVendorCDR_20' ) end [2025-01-17 18:27:22] Production.INFO: ProcessCDR(1,14270122,1,1,2) [2025-01-17 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270122', 'tblTempUsageDetail_20' ) start [2025-01-17 18:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270122', 'tblTempUsageDetail_20' ) end [2025-01-17 18:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:27:27] Production.INFO: ==24588== Releasing lock... [2025-01-17 18:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:27:27] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:28:05 [end_date_ymd] => 2025-01-17 18:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:28:05' and `end` < '2025-01-17 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-17 18:28:20] Production.INFO: count ==4269 [2025-01-17 18:28:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:28:05 - End Time 2025-01-17 18:28:05 [2025-01-17 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270127', 'tblTempUsageDetail_20' ) start [2025-01-17 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270127', 'tblTempUsageDetail_20' ) end [2025-01-17 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270127', 'tblTempVendorCDR_20' ) start [2025-01-17 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270127', 'tblTempVendorCDR_20' ) end [2025-01-17 18:28:22] Production.INFO: ProcessCDR(1,14270127,1,1,2) [2025-01-17 18:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270127', 'tblTempUsageDetail_20' ) start [2025-01-17 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270127', 'tblTempUsageDetail_20' ) end [2025-01-17 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:28:25] Production.INFO: ==24659== Releasing lock... [2025-01-17 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:28:25] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:29:05 [end_date_ymd] => 2025-01-17 18:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:29:05' and `end` < '2025-01-17 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-17 18:29:18] Production.INFO: count ==4259 [2025-01-17 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:29:05 - End Time 2025-01-17 18:29:05 [2025-01-17 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270132', 'tblTempUsageDetail_20' ) start [2025-01-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270132', 'tblTempUsageDetail_20' ) end [2025-01-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270132', 'tblTempVendorCDR_20' ) start [2025-01-17 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270132', 'tblTempVendorCDR_20' ) end [2025-01-17 18:29:19] Production.INFO: ProcessCDR(1,14270132,1,1,2) [2025-01-17 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270132', 'tblTempUsageDetail_20' ) start [2025-01-17 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270132', 'tblTempUsageDetail_20' ) end [2025-01-17 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:29:24] Production.INFO: ==24727== Releasing lock... [2025-01-17 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:29:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:30:06 [end_date_ymd] => 2025-01-17 18:30:06 [RateCDR] => 1 ) [2025-01-17 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:30:06' and `end` < '2025-01-17 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:30:24] Production.INFO: count ==4254 [2025-01-17 18:30:25] Production.ERROR: pbx CDR StartTime 2025-01-17 15:30:06 - End Time 2025-01-17 18:30:06 [2025-01-17 18:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270138', 'tblTempUsageDetail_20' ) start [2025-01-17 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270138', 'tblTempUsageDetail_20' ) end [2025-01-17 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270138', 'tblTempVendorCDR_20' ) start [2025-01-17 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270138', 'tblTempVendorCDR_20' ) end [2025-01-17 18:30:25] Production.INFO: ProcessCDR(1,14270138,1,1,2) [2025-01-17 18:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270138', 'tblTempUsageDetail_20' ) start [2025-01-17 18:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270138', 'tblTempUsageDetail_20' ) end [2025-01-17 18:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:30:30] Production.INFO: ==24799== Releasing lock... [2025-01-17 18:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:30:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:31:05 [end_date_ymd] => 2025-01-17 18:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:31:05' and `end` < '2025-01-17 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-17 18:31:20] Production.INFO: count ==4309 [2025-01-17 18:31:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:31:05 - End Time 2025-01-17 18:31:05 [2025-01-17 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270143', 'tblTempUsageDetail_20' ) start [2025-01-17 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270143', 'tblTempUsageDetail_20' ) end [2025-01-17 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270143', 'tblTempVendorCDR_20' ) start [2025-01-17 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270143', 'tblTempVendorCDR_20' ) end [2025-01-17 18:31:21] Production.INFO: ProcessCDR(1,14270143,1,1,2) [2025-01-17 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270143', 'tblTempUsageDetail_20' ) start [2025-01-17 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270143', 'tblTempUsageDetail_20' ) end [2025-01-17 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:31:26] Production.INFO: ==24872== Releasing lock... [2025-01-17 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:31:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-17 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:32:06 [end_date_ymd] => 2025-01-17 18:32:06 [RateCDR] => 1 ) [2025-01-17 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:32:06' and `end` < '2025-01-17 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:32:19] Production.INFO: count ==4314 [2025-01-17 18:32:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:32:06 - End Time 2025-01-17 18:32:06 [2025-01-17 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270148', 'tblTempUsageDetail_20' ) start [2025-01-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270148', 'tblTempUsageDetail_20' ) end [2025-01-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270148', 'tblTempVendorCDR_20' ) start [2025-01-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270148', 'tblTempVendorCDR_20' ) end [2025-01-17 18:32:21] Production.INFO: ProcessCDR(1,14270148,1,1,2) [2025-01-17 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270148', 'tblTempUsageDetail_20' ) start [2025-01-17 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270148', 'tblTempUsageDetail_20' ) end [2025-01-17 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:32:24] Production.INFO: ==24942== Releasing lock... [2025-01-17 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:32:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-17 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:33:05 [end_date_ymd] => 2025-01-17 18:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:33:05' and `end` < '2025-01-17 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-17 18:33:18] Production.INFO: count ==4281 [2025-01-17 18:33:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:33:05 - End Time 2025-01-17 18:33:05 [2025-01-17 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270153', 'tblTempUsageDetail_20' ) start [2025-01-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270153', 'tblTempUsageDetail_20' ) end [2025-01-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270153', 'tblTempVendorCDR_20' ) start [2025-01-17 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270153', 'tblTempVendorCDR_20' ) end [2025-01-17 18:33:19] Production.INFO: ProcessCDR(1,14270153,1,1,2) [2025-01-17 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270153', 'tblTempUsageDetail_20' ) start [2025-01-17 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270153', 'tblTempUsageDetail_20' ) end [2025-01-17 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:33:23] Production.INFO: ==25012== Releasing lock... [2025-01-17 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:33:23] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:34:05 [end_date_ymd] => 2025-01-17 18:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:34:05' and `end` < '2025-01-17 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-17 18:34:20] Production.INFO: count ==4278 [2025-01-17 18:34:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:34:05 - End Time 2025-01-17 18:34:05 [2025-01-17 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270158', 'tblTempUsageDetail_20' ) start [2025-01-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270158', 'tblTempUsageDetail_20' ) end [2025-01-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270158', 'tblTempVendorCDR_20' ) start [2025-01-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270158', 'tblTempVendorCDR_20' ) end [2025-01-17 18:34:21] Production.INFO: ProcessCDR(1,14270158,1,1,2) [2025-01-17 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270158', 'tblTempUsageDetail_20' ) start [2025-01-17 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270158', 'tblTempUsageDetail_20' ) end [2025-01-17 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:34:26] Production.INFO: ==25085== Releasing lock... [2025-01-17 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:34:26] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:35:05 [end_date_ymd] => 2025-01-17 18:35:05 [RateCDR] => 1 ) [2025-01-17 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:35:05' and `end` < '2025-01-17 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:35:20] Production.INFO: count ==4268 [2025-01-17 18:35:22] Production.ERROR: pbx CDR StartTime 2025-01-17 15:35:05 - End Time 2025-01-17 18:35:05 [2025-01-17 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270163', 'tblTempUsageDetail_20' ) start [2025-01-17 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270163', 'tblTempUsageDetail_20' ) end [2025-01-17 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270163', 'tblTempVendorCDR_20' ) start [2025-01-17 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270163', 'tblTempVendorCDR_20' ) end [2025-01-17 18:35:22] Production.INFO: ProcessCDR(1,14270163,1,1,2) [2025-01-17 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270163', 'tblTempUsageDetail_20' ) start [2025-01-17 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270163', 'tblTempUsageDetail_20' ) end [2025-01-17 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:35:26] Production.INFO: ==25154== Releasing lock... [2025-01-17 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:35:26] Production.INFO: 60 MB #Memory Used# [2025-01-17 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:36:05 [end_date_ymd] => 2025-01-17 18:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:36:05' and `end` < '2025-01-17 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-17 18:36:19] Production.INFO: count ==4264 [2025-01-17 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:36:05 - End Time 2025-01-17 18:36:05 [2025-01-17 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270168', 'tblTempUsageDetail_20' ) start [2025-01-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270168', 'tblTempUsageDetail_20' ) end [2025-01-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270168', 'tblTempVendorCDR_20' ) start [2025-01-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270168', 'tblTempVendorCDR_20' ) end [2025-01-17 18:36:20] Production.INFO: ProcessCDR(1,14270168,1,1,2) [2025-01-17 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270168', 'tblTempUsageDetail_20' ) start [2025-01-17 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270168', 'tblTempUsageDetail_20' ) end [2025-01-17 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:36:24] Production.INFO: ==25225== Releasing lock... [2025-01-17 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:36:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:37:04 [end_date_ymd] => 2025-01-17 18:37:04 [RateCDR] => 1 ) [2025-01-17 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-17 15:37:04' and `end` < '2025-01-17 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-17 18:37:20] Production.INFO: count ==4258 [2025-01-17 18:37:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:37:04 - End Time 2025-01-17 18:37:04 [2025-01-17 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270173', 'tblTempUsageDetail_20' ) start [2025-01-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270173', 'tblTempUsageDetail_20' ) end [2025-01-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270173', 'tblTempVendorCDR_20' ) start [2025-01-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270173', 'tblTempVendorCDR_20' ) end [2025-01-17 18:37:21] Production.INFO: ProcessCDR(1,14270173,1,1,2) [2025-01-17 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270173', 'tblTempUsageDetail_20' ) start [2025-01-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270173', 'tblTempUsageDetail_20' ) end [2025-01-17 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:37:25] Production.INFO: ==25340== Releasing lock... [2025-01-17 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:37:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:38:05 [end_date_ymd] => 2025-01-17 18:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:38:05' and `end` < '2025-01-17 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-17 18:38:19] Production.INFO: count ==4259 [2025-01-17 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:38:05 - End Time 2025-01-17 18:38:05 [2025-01-17 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270178', 'tblTempUsageDetail_20' ) start [2025-01-17 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270178', 'tblTempUsageDetail_20' ) end [2025-01-17 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270178', 'tblTempVendorCDR_20' ) start [2025-01-17 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270178', 'tblTempVendorCDR_20' ) end [2025-01-17 18:38:20] Production.INFO: ProcessCDR(1,14270178,1,1,2) [2025-01-17 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270178', 'tblTempUsageDetail_20' ) start [2025-01-17 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270178', 'tblTempUsageDetail_20' ) end [2025-01-17 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:38:25] Production.INFO: ==25413== Releasing lock... [2025-01-17 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:38:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:39:05 [end_date_ymd] => 2025-01-17 18:39:05 [RateCDR] => 1 ) [2025-01-17 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:39:05' and `end` < '2025-01-17 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:39:18] Production.INFO: count ==4252 [2025-01-17 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:39:05 - End Time 2025-01-17 18:39:05 [2025-01-17 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270183', 'tblTempUsageDetail_20' ) start [2025-01-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270183', 'tblTempUsageDetail_20' ) end [2025-01-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270183', 'tblTempVendorCDR_20' ) start [2025-01-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270183', 'tblTempVendorCDR_20' ) end [2025-01-17 18:39:20] Production.INFO: ProcessCDR(1,14270183,1,1,2) [2025-01-17 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270183', 'tblTempUsageDetail_20' ) start [2025-01-17 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270183', 'tblTempUsageDetail_20' ) end [2025-01-17 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:39:23] Production.INFO: ==25486== Releasing lock... [2025-01-17 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:39:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:40:05 [end_date_ymd] => 2025-01-17 18:40:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:40:05' and `end` < '2025-01-17 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-17 18:40:18] Production.INFO: count ==4236 [2025-01-17 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:40:05 - End Time 2025-01-17 18:40:05 [2025-01-17 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270188', 'tblTempUsageDetail_20' ) start [2025-01-17 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270188', 'tblTempUsageDetail_20' ) end [2025-01-17 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270188', 'tblTempVendorCDR_20' ) start [2025-01-17 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270188', 'tblTempVendorCDR_20' ) end [2025-01-17 18:40:20] Production.INFO: ProcessCDR(1,14270188,1,1,2) [2025-01-17 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270188', 'tblTempUsageDetail_20' ) start [2025-01-17 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270188', 'tblTempUsageDetail_20' ) end [2025-01-17 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:40:24] Production.INFO: ==25558== Releasing lock... [2025-01-17 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:40:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:41:05 [end_date_ymd] => 2025-01-17 18:41:05 [RateCDR] => 1 ) [2025-01-17 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:41:05' and `end` < '2025-01-17 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:41:18] Production.INFO: count ==4203 [2025-01-17 18:41:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:41:05 - End Time 2025-01-17 18:41:05 [2025-01-17 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270194', 'tblTempUsageDetail_20' ) start [2025-01-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270194', 'tblTempUsageDetail_20' ) end [2025-01-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270194', 'tblTempVendorCDR_20' ) start [2025-01-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270194', 'tblTempVendorCDR_20' ) end [2025-01-17 18:41:20] Production.INFO: ProcessCDR(1,14270194,1,1,2) [2025-01-17 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270194', 'tblTempUsageDetail_20' ) start [2025-01-17 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270194', 'tblTempUsageDetail_20' ) end [2025-01-17 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:41:23] Production.INFO: ==25631== Releasing lock... [2025-01-17 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:41:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:42:05 [end_date_ymd] => 2025-01-17 18:42:05 [RateCDR] => 1 ) [2025-01-17 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:42:05' and `end` < '2025-01-17 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:42:18] Production.INFO: count ==4208 [2025-01-17 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:42:05 - End Time 2025-01-17 18:42:05 [2025-01-17 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270199', 'tblTempUsageDetail_20' ) start [2025-01-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270199', 'tblTempUsageDetail_20' ) end [2025-01-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270199', 'tblTempVendorCDR_20' ) start [2025-01-17 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270199', 'tblTempVendorCDR_20' ) end [2025-01-17 18:42:19] Production.INFO: ProcessCDR(1,14270199,1,1,2) [2025-01-17 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270199', 'tblTempUsageDetail_20' ) start [2025-01-17 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270199', 'tblTempUsageDetail_20' ) end [2025-01-17 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:42:23] Production.INFO: ==25700== Releasing lock... [2025-01-17 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:42:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:43:05 [end_date_ymd] => 2025-01-17 18:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:43:05' and `end` < '2025-01-17 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-17 18:43:20] Production.INFO: count ==4208 [2025-01-17 18:43:21] Production.ERROR: pbx CDR StartTime 2025-01-17 15:43:05 - End Time 2025-01-17 18:43:05 [2025-01-17 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270204', 'tblTempUsageDetail_20' ) start [2025-01-17 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270204', 'tblTempUsageDetail_20' ) end [2025-01-17 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270204', 'tblTempVendorCDR_20' ) start [2025-01-17 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270204', 'tblTempVendorCDR_20' ) end [2025-01-17 18:43:21] Production.INFO: ProcessCDR(1,14270204,1,1,2) [2025-01-17 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270204', 'tblTempUsageDetail_20' ) start [2025-01-17 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270204', 'tblTempUsageDetail_20' ) end [2025-01-17 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:43:25] Production.INFO: ==25770== Releasing lock... [2025-01-17 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:43:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:44:04 [end_date_ymd] => 2025-01-17 18:44:04 [RateCDR] => 1 ) [2025-01-17 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:44:04' and `end` < '2025-01-17 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:44:17] Production.INFO: count ==4212 [2025-01-17 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:44:04 - End Time 2025-01-17 18:44:04 [2025-01-17 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270209', 'tblTempUsageDetail_20' ) start [2025-01-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270209', 'tblTempUsageDetail_20' ) end [2025-01-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270209', 'tblTempVendorCDR_20' ) start [2025-01-17 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270209', 'tblTempVendorCDR_20' ) end [2025-01-17 18:44:19] Production.INFO: ProcessCDR(1,14270209,1,1,2) [2025-01-17 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270209', 'tblTempUsageDetail_20' ) start [2025-01-17 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270209', 'tblTempUsageDetail_20' ) end [2025-01-17 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:44:22] Production.INFO: ==25840== Releasing lock... [2025-01-17 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:44:22] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:45:05 [end_date_ymd] => 2025-01-17 18:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:45:05' and `end` < '2025-01-17 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-17 18:45:17] Production.INFO: count ==4209 [2025-01-17 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:45:05 - End Time 2025-01-17 18:45:05 [2025-01-17 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270214', 'tblTempUsageDetail_20' ) start [2025-01-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270214', 'tblTempUsageDetail_20' ) end [2025-01-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270214', 'tblTempVendorCDR_20' ) start [2025-01-17 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270214', 'tblTempVendorCDR_20' ) end [2025-01-17 18:45:19] Production.INFO: ProcessCDR(1,14270214,1,1,2) [2025-01-17 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270214', 'tblTempUsageDetail_20' ) start [2025-01-17 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270214', 'tblTempUsageDetail_20' ) end [2025-01-17 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:45:23] Production.INFO: ==25911== Releasing lock... [2025-01-17 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:45:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:46:05 [end_date_ymd] => 2025-01-17 18:46:05 [RateCDR] => 1 ) [2025-01-17 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:46:05' and `end` < '2025-01-17 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:46:19] Production.INFO: count ==4197 [2025-01-17 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:46:05 - End Time 2025-01-17 18:46:05 [2025-01-17 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270219', 'tblTempUsageDetail_20' ) start [2025-01-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270219', 'tblTempUsageDetail_20' ) end [2025-01-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270219', 'tblTempVendorCDR_20' ) start [2025-01-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270219', 'tblTempVendorCDR_20' ) end [2025-01-17 18:46:20] Production.INFO: ProcessCDR(1,14270219,1,1,2) [2025-01-17 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270219', 'tblTempUsageDetail_20' ) start [2025-01-17 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270219', 'tblTempUsageDetail_20' ) end [2025-01-17 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:46:23] Production.INFO: ==25982== Releasing lock... [2025-01-17 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:46:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:47:05 [end_date_ymd] => 2025-01-17 18:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:47:05' and `end` < '2025-01-17 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-17 18:47:18] Production.INFO: count ==4175 [2025-01-17 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:47:05 - End Time 2025-01-17 18:47:05 [2025-01-17 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270224', 'tblTempUsageDetail_20' ) start [2025-01-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270224', 'tblTempUsageDetail_20' ) end [2025-01-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270224', 'tblTempVendorCDR_20' ) start [2025-01-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270224', 'tblTempVendorCDR_20' ) end [2025-01-17 18:47:19] Production.INFO: ProcessCDR(1,14270224,1,1,2) [2025-01-17 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270224', 'tblTempUsageDetail_20' ) start [2025-01-17 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270224', 'tblTempUsageDetail_20' ) end [2025-01-17 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:47:22] Production.INFO: ==26051== Releasing lock... [2025-01-17 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:47:22] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:48:05 [end_date_ymd] => 2025-01-17 18:48:05 [RateCDR] => 1 ) [2025-01-17 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:48:05' and `end` < '2025-01-17 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:48:19] Production.INFO: count ==4173 [2025-01-17 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:48:05 - End Time 2025-01-17 18:48:05 [2025-01-17 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270229', 'tblTempUsageDetail_20' ) start [2025-01-17 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270229', 'tblTempUsageDetail_20' ) end [2025-01-17 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270229', 'tblTempVendorCDR_20' ) start [2025-01-17 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270229', 'tblTempVendorCDR_20' ) end [2025-01-17 18:48:21] Production.INFO: ProcessCDR(1,14270229,1,1,2) [2025-01-17 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270229', 'tblTempUsageDetail_20' ) start [2025-01-17 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270229', 'tblTempUsageDetail_20' ) end [2025-01-17 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:48:25] Production.INFO: ==26122== Releasing lock... [2025-01-17 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:48:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:49:05 [end_date_ymd] => 2025-01-17 18:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:49:05' and `end` < '2025-01-17 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-17 18:49:18] Production.INFO: count ==4181 [2025-01-17 18:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:49:05 - End Time 2025-01-17 18:49:05 [2025-01-17 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270234', 'tblTempUsageDetail_20' ) start [2025-01-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270234', 'tblTempUsageDetail_20' ) end [2025-01-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270234', 'tblTempVendorCDR_20' ) start [2025-01-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270234', 'tblTempVendorCDR_20' ) end [2025-01-17 18:49:20] Production.INFO: ProcessCDR(1,14270234,1,1,2) [2025-01-17 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270234', 'tblTempUsageDetail_20' ) start [2025-01-17 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270234', 'tblTempUsageDetail_20' ) end [2025-01-17 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:49:23] Production.INFO: ==26192== Releasing lock... [2025-01-17 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:49:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:50:06 [end_date_ymd] => 2025-01-17 18:50:06 [RateCDR] => 1 ) [2025-01-17 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-17 15:50:06' and `end` < '2025-01-17 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-17 18:50:19] Production.INFO: count ==4160 [2025-01-17 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:50:06 - End Time 2025-01-17 18:50:06 [2025-01-17 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270240', 'tblTempUsageDetail_20' ) start [2025-01-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270240', 'tblTempUsageDetail_20' ) end [2025-01-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270240', 'tblTempVendorCDR_20' ) start [2025-01-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270240', 'tblTempVendorCDR_20' ) end [2025-01-17 18:50:20] Production.INFO: ProcessCDR(1,14270240,1,1,2) [2025-01-17 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270240', 'tblTempUsageDetail_20' ) start [2025-01-17 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270240', 'tblTempUsageDetail_20' ) end [2025-01-17 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:50:25] Production.INFO: ==26266== Releasing lock... [2025-01-17 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:50:25] Production.INFO: 59 MB #Memory Used# [2025-01-17 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:51:04 [end_date_ymd] => 2025-01-17 18:51:04 [RateCDR] => 1 ) [2025-01-17 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:51:04' and `end` < '2025-01-17 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-17 18:51:17] Production.INFO: count ==4143 [2025-01-17 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:51:04 - End Time 2025-01-17 18:51:04 [2025-01-17 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270245', 'tblTempUsageDetail_20' ) start [2025-01-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270245', 'tblTempUsageDetail_20' ) end [2025-01-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270245', 'tblTempVendorCDR_20' ) start [2025-01-17 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270245', 'tblTempVendorCDR_20' ) end [2025-01-17 18:51:19] Production.INFO: ProcessCDR(1,14270245,1,1,2) [2025-01-17 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270245', 'tblTempUsageDetail_20' ) start [2025-01-17 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270245', 'tblTempUsageDetail_20' ) end [2025-01-17 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:51:22] Production.INFO: ==26342== Releasing lock... [2025-01-17 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:51:22] Production.INFO: 59 MB #Memory Used# [2025-01-17 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:52:05 [end_date_ymd] => 2025-01-17 18:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:52:05' and `end` < '2025-01-17 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-17 18:52:25] Production.INFO: count ==4129 [2025-01-17 18:52:26] Production.ERROR: pbx CDR StartTime 2025-01-17 15:52:05 - End Time 2025-01-17 18:52:05 [2025-01-17 18:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270250', 'tblTempUsageDetail_20' ) start [2025-01-17 18:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270250', 'tblTempUsageDetail_20' ) end [2025-01-17 18:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270250', 'tblTempVendorCDR_20' ) start [2025-01-17 18:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270250', 'tblTempVendorCDR_20' ) end [2025-01-17 18:52:26] Production.INFO: ProcessCDR(1,14270250,1,1,2) [2025-01-17 18:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270250', 'tblTempUsageDetail_20' ) start [2025-01-17 18:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270250', 'tblTempUsageDetail_20' ) end [2025-01-17 18:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:52:31] Production.INFO: ==26418== Releasing lock... [2025-01-17 18:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:52:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-17 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:53:05 [end_date_ymd] => 2025-01-17 18:53:05 [RateCDR] => 1 ) [2025-01-17 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:53:05' and `end` < '2025-01-17 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:53:19] Production.INFO: count ==4118 [2025-01-17 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:53:05 - End Time 2025-01-17 18:53:05 [2025-01-17 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270255', 'tblTempUsageDetail_20' ) start [2025-01-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270255', 'tblTempUsageDetail_20' ) end [2025-01-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270255', 'tblTempVendorCDR_20' ) start [2025-01-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270255', 'tblTempVendorCDR_20' ) end [2025-01-17 18:53:20] Production.INFO: ProcessCDR(1,14270255,1,1,2) [2025-01-17 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270255', 'tblTempUsageDetail_20' ) start [2025-01-17 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270255', 'tblTempUsageDetail_20' ) end [2025-01-17 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:53:24] Production.INFO: ==26528== Releasing lock... [2025-01-17 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:53:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-17 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:54:04 [end_date_ymd] => 2025-01-17 18:54:04 [RateCDR] => 1 ) [2025-01-17 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-17 15:54:04' and `end` < '2025-01-17 18:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:54:23] Production.INFO: count ==4120 [2025-01-17 18:54:24] Production.ERROR: pbx CDR StartTime 2025-01-17 15:54:04 - End Time 2025-01-17 18:54:04 [2025-01-17 18:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270260', 'tblTempUsageDetail_20' ) start [2025-01-17 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270260', 'tblTempUsageDetail_20' ) end [2025-01-17 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270260', 'tblTempVendorCDR_20' ) start [2025-01-17 18:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270260', 'tblTempVendorCDR_20' ) end [2025-01-17 18:54:24] Production.INFO: ProcessCDR(1,14270260,1,1,2) [2025-01-17 18:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270260', 'tblTempUsageDetail_20' ) start [2025-01-17 18:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270260', 'tblTempUsageDetail_20' ) end [2025-01-17 18:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:54:28] Production.INFO: ==26597== Releasing lock... [2025-01-17 18:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:54:28] Production.INFO: 58.75 MB #Memory Used# [2025-01-17 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:55:05 [end_date_ymd] => 2025-01-17 18:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:55:05' and `end` < '2025-01-17 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:55:23] Production.INFO: count ==4165 [2025-01-17 18:55:24] Production.ERROR: pbx CDR StartTime 2025-01-17 15:55:05 - End Time 2025-01-17 18:55:05 [2025-01-17 18:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270265', 'tblTempUsageDetail_20' ) start [2025-01-17 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270265', 'tblTempUsageDetail_20' ) end [2025-01-17 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270265', 'tblTempVendorCDR_20' ) start [2025-01-17 18:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270265', 'tblTempVendorCDR_20' ) end [2025-01-17 18:55:24] Production.INFO: ProcessCDR(1,14270265,1,1,2) [2025-01-17 18:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270265', 'tblTempUsageDetail_20' ) start [2025-01-17 18:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270265', 'tblTempUsageDetail_20' ) end [2025-01-17 18:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:55:29] Production.INFO: ==26669== Releasing lock... [2025-01-17 18:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:55:29] Production.INFO: 59 MB #Memory Used# [2025-01-17 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:56:05 [end_date_ymd] => 2025-01-17 18:56:05 [RateCDR] => 1 ) [2025-01-17 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:56:05' and `end` < '2025-01-17 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:56:18] Production.INFO: count ==4168 [2025-01-17 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:56:05 - End Time 2025-01-17 18:56:05 [2025-01-17 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270270', 'tblTempUsageDetail_20' ) start [2025-01-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270270', 'tblTempUsageDetail_20' ) end [2025-01-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270270', 'tblTempVendorCDR_20' ) start [2025-01-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270270', 'tblTempVendorCDR_20' ) end [2025-01-17 18:56:19] Production.INFO: ProcessCDR(1,14270270,1,1,2) [2025-01-17 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270270', 'tblTempUsageDetail_20' ) start [2025-01-17 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270270', 'tblTempUsageDetail_20' ) end [2025-01-17 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:56:24] Production.INFO: ==26738== Releasing lock... [2025-01-17 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:56:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:57:05 [end_date_ymd] => 2025-01-17 18:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 15:57:05' and `end` < '2025-01-17 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-17 18:57:19] Production.INFO: count ==4182 [2025-01-17 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:57:05 - End Time 2025-01-17 18:57:05 [2025-01-17 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270275', 'tblTempUsageDetail_20' ) start [2025-01-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270275', 'tblTempUsageDetail_20' ) end [2025-01-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270275', 'tblTempVendorCDR_20' ) start [2025-01-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270275', 'tblTempVendorCDR_20' ) end [2025-01-17 18:57:20] Production.INFO: ProcessCDR(1,14270275,1,1,2) [2025-01-17 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270275', 'tblTempUsageDetail_20' ) start [2025-01-17 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270275', 'tblTempUsageDetail_20' ) end [2025-01-17 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:57:23] Production.INFO: ==26810== Releasing lock... [2025-01-17 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:57:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:58:04 [end_date_ymd] => 2025-01-17 18:58:04 [RateCDR] => 1 ) [2025-01-17 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:58:04' and `end` < '2025-01-17 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:58:18] Production.INFO: count ==4179 [2025-01-17 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 15:58:04 - End Time 2025-01-17 18:58:04 [2025-01-17 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270280', 'tblTempUsageDetail_20' ) start [2025-01-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270280', 'tblTempUsageDetail_20' ) end [2025-01-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270280', 'tblTempVendorCDR_20' ) start [2025-01-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270280', 'tblTempVendorCDR_20' ) end [2025-01-17 18:58:19] Production.INFO: ProcessCDR(1,14270280,1,1,2) [2025-01-17 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270280', 'tblTempUsageDetail_20' ) start [2025-01-17 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270280', 'tblTempUsageDetail_20' ) end [2025-01-17 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:58:23] Production.INFO: ==26881== Releasing lock... [2025-01-17 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:58:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 15:59:05 [end_date_ymd] => 2025-01-17 18:59:05 [RateCDR] => 1 ) [2025-01-17 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 15:59:05' and `end` < '2025-01-17 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 18:59:19] Production.INFO: count ==4201 [2025-01-17 18:59:20] Production.ERROR: pbx CDR StartTime 2025-01-17 15:59:05 - End Time 2025-01-17 18:59:05 [2025-01-17 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270285', 'tblTempUsageDetail_20' ) start [2025-01-17 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270285', 'tblTempUsageDetail_20' ) end [2025-01-17 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270285', 'tblTempVendorCDR_20' ) start [2025-01-17 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270285', 'tblTempVendorCDR_20' ) end [2025-01-17 18:59:21] Production.INFO: ProcessCDR(1,14270285,1,1,2) [2025-01-17 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270285', 'tblTempUsageDetail_20' ) start [2025-01-17 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270285', 'tblTempUsageDetail_20' ) end [2025-01-17 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 18:59:24] Production.INFO: ==26952== Releasing lock... [2025-01-17 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 18:59:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:00:05 [end_date_ymd] => 2025-01-17 19:00:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:00:05' and `end` < '2025-01-17 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-17 19:00:18] Production.INFO: count ==4205 [2025-01-17 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:00:05 - End Time 2025-01-17 19:00:05 [2025-01-17 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270290', 'tblTempUsageDetail_20' ) start [2025-01-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270290', 'tblTempUsageDetail_20' ) end [2025-01-17 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270290', 'tblTempVendorCDR_20' ) start [2025-01-17 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270290', 'tblTempVendorCDR_20' ) end [2025-01-17 19:00:20] Production.INFO: ProcessCDR(1,14270290,1,1,2) [2025-01-17 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270290', 'tblTempUsageDetail_20' ) start [2025-01-17 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270290', 'tblTempUsageDetail_20' ) end [2025-01-17 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:00:23] Production.INFO: ==27024== Releasing lock... [2025-01-17 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:00:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:01:05 [end_date_ymd] => 2025-01-17 19:01:05 [RateCDR] => 1 ) [2025-01-17 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:01:05' and `end` < '2025-01-17 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:01:18] Production.INFO: count ==4191 [2025-01-17 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:01:05 - End Time 2025-01-17 19:01:05 [2025-01-17 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270296', 'tblTempUsageDetail_20' ) start [2025-01-17 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270296', 'tblTempUsageDetail_20' ) end [2025-01-17 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270296', 'tblTempVendorCDR_20' ) start [2025-01-17 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270296', 'tblTempVendorCDR_20' ) end [2025-01-17 19:01:19] Production.INFO: ProcessCDR(1,14270296,1,1,2) [2025-01-17 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270296', 'tblTempUsageDetail_20' ) start [2025-01-17 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270296', 'tblTempUsageDetail_20' ) end [2025-01-17 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:01:24] Production.INFO: ==27148== Releasing lock... [2025-01-17 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:01:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:02:06 [end_date_ymd] => 2025-01-17 19:02:06 [RateCDR] => 1 ) [2025-01-17 19: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-17 16:02:06' and `end` < '2025-01-17 19: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-17 19:02:20] Production.INFO: count ==4209 [2025-01-17 19:02:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:02:06 - End Time 2025-01-17 19:02:06 [2025-01-17 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270301', 'tblTempUsageDetail_20' ) start [2025-01-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270301', 'tblTempUsageDetail_20' ) end [2025-01-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270301', 'tblTempVendorCDR_20' ) start [2025-01-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270301', 'tblTempVendorCDR_20' ) end [2025-01-17 19:02:21] Production.INFO: ProcessCDR(1,14270301,1,1,2) [2025-01-17 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270301', 'tblTempUsageDetail_20' ) start [2025-01-17 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270301', 'tblTempUsageDetail_20' ) end [2025-01-17 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:02:26] Production.INFO: ==27258== Releasing lock... [2025-01-17 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:02:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-17 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:03:06 [end_date_ymd] => 2025-01-17 19:03:06 [RateCDR] => 1 ) [2025-01-17 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:03:06' and `end` < '2025-01-17 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:03:19] Production.INFO: count ==4210 [2025-01-17 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:03:06 - End Time 2025-01-17 19:03:06 [2025-01-17 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270306', 'tblTempUsageDetail_20' ) start [2025-01-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270306', 'tblTempUsageDetail_20' ) end [2025-01-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270306', 'tblTempVendorCDR_20' ) start [2025-01-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270306', 'tblTempVendorCDR_20' ) end [2025-01-17 19:03:20] Production.INFO: ProcessCDR(1,14270306,1,1,2) [2025-01-17 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270306', 'tblTempUsageDetail_20' ) start [2025-01-17 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270306', 'tblTempUsageDetail_20' ) end [2025-01-17 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:03:23] Production.INFO: ==27329== Releasing lock... [2025-01-17 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:03:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:04:04 [end_date_ymd] => 2025-01-17 19:04:04 [RateCDR] => 1 ) [2025-01-17 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:04:04' and `end` < '2025-01-17 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:04:17] Production.INFO: count ==4191 [2025-01-17 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:04:04 - End Time 2025-01-17 19:04:04 [2025-01-17 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270311', 'tblTempUsageDetail_20' ) start [2025-01-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270311', 'tblTempUsageDetail_20' ) end [2025-01-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270311', 'tblTempVendorCDR_20' ) start [2025-01-17 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270311', 'tblTempVendorCDR_20' ) end [2025-01-17 19:04:19] Production.INFO: ProcessCDR(1,14270311,1,1,2) [2025-01-17 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270311', 'tblTempUsageDetail_20' ) start [2025-01-17 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270311', 'tblTempUsageDetail_20' ) end [2025-01-17 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:04:22] Production.INFO: ==27397== Releasing lock... [2025-01-17 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:04:22] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:05:05 [end_date_ymd] => 2025-01-17 19:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:05:05' and `end` < '2025-01-17 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-17 19:05:19] Production.INFO: count ==4176 [2025-01-17 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:05:05 - End Time 2025-01-17 19:05:05 [2025-01-17 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270316', 'tblTempUsageDetail_20' ) start [2025-01-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270316', 'tblTempUsageDetail_20' ) end [2025-01-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270316', 'tblTempVendorCDR_20' ) start [2025-01-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270316', 'tblTempVendorCDR_20' ) end [2025-01-17 19:05:20] Production.INFO: ProcessCDR(1,14270316,1,1,2) [2025-01-17 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270316', 'tblTempUsageDetail_20' ) start [2025-01-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270316', 'tblTempUsageDetail_20' ) end [2025-01-17 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:05:23] Production.INFO: ==27551== Releasing lock... [2025-01-17 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:05:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:06:05 [end_date_ymd] => 2025-01-17 19:06:05 [RateCDR] => 1 ) [2025-01-17 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:06:05' and `end` < '2025-01-17 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:06:18] Production.INFO: count ==4157 [2025-01-17 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:06:05 - End Time 2025-01-17 19:06:05 [2025-01-17 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270321', 'tblTempUsageDetail_20' ) start [2025-01-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270321', 'tblTempUsageDetail_20' ) end [2025-01-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270321', 'tblTempVendorCDR_20' ) start [2025-01-17 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270321', 'tblTempVendorCDR_20' ) end [2025-01-17 19:06:19] Production.INFO: ProcessCDR(1,14270321,1,1,2) [2025-01-17 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270321', 'tblTempUsageDetail_20' ) start [2025-01-17 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270321', 'tblTempUsageDetail_20' ) end [2025-01-17 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:06:22] Production.INFO: ==27636== Releasing lock... [2025-01-17 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:06:22] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:07:05 [end_date_ymd] => 2025-01-17 19:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:07:05' and `end` < '2025-01-17 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-17 19:07:18] Production.INFO: count ==4151 [2025-01-17 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:07:05 - End Time 2025-01-17 19:07:05 [2025-01-17 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270326', 'tblTempUsageDetail_20' ) start [2025-01-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270326', 'tblTempUsageDetail_20' ) end [2025-01-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270326', 'tblTempVendorCDR_20' ) start [2025-01-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270326', 'tblTempVendorCDR_20' ) end [2025-01-17 19:07:19] Production.INFO: ProcessCDR(1,14270326,1,1,2) [2025-01-17 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270326', 'tblTempUsageDetail_20' ) start [2025-01-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270326', 'tblTempUsageDetail_20' ) end [2025-01-17 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:07:24] Production.INFO: ==27719== Releasing lock... [2025-01-17 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:07:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:08:05 [end_date_ymd] => 2025-01-17 19:08:05 [RateCDR] => 1 ) [2025-01-17 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:08:05' and `end` < '2025-01-17 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:08:18] Production.INFO: count ==4158 [2025-01-17 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:08:05 - End Time 2025-01-17 19:08:05 [2025-01-17 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270331', 'tblTempUsageDetail_20' ) start [2025-01-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270331', 'tblTempUsageDetail_20' ) end [2025-01-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270331', 'tblTempVendorCDR_20' ) start [2025-01-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270331', 'tblTempVendorCDR_20' ) end [2025-01-17 19:08:19] Production.INFO: ProcessCDR(1,14270331,1,1,2) [2025-01-17 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270331', 'tblTempUsageDetail_20' ) start [2025-01-17 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270331', 'tblTempUsageDetail_20' ) end [2025-01-17 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:08:24] Production.INFO: ==27921== Releasing lock... [2025-01-17 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:08:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:09:05 [end_date_ymd] => 2025-01-17 19:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:09:05' and `end` < '2025-01-17 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-17 19:09:19] Production.INFO: count ==4159 [2025-01-17 19:09:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:09:05 - End Time 2025-01-17 19:09:05 [2025-01-17 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270336', 'tblTempUsageDetail_20' ) start [2025-01-17 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270336', 'tblTempUsageDetail_20' ) end [2025-01-17 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270336', 'tblTempVendorCDR_20' ) start [2025-01-17 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270336', 'tblTempVendorCDR_20' ) end [2025-01-17 19:09:20] Production.INFO: ProcessCDR(1,14270336,1,1,2) [2025-01-17 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270336', 'tblTempUsageDetail_20' ) start [2025-01-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270336', 'tblTempUsageDetail_20' ) end [2025-01-17 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:09:24] Production.INFO: ==28006== Releasing lock... [2025-01-17 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:09:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:10:06 [end_date_ymd] => 2025-01-17 19:10:06 [RateCDR] => 1 ) [2025-01-17 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:10:06' and `end` < '2025-01-17 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:10:20] Production.INFO: count ==4149 [2025-01-17 19:10:22] Production.ERROR: pbx CDR StartTime 2025-01-17 16:10:06 - End Time 2025-01-17 19:10:06 [2025-01-17 19:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270342', 'tblTempUsageDetail_20' ) start [2025-01-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270342', 'tblTempUsageDetail_20' ) end [2025-01-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270342', 'tblTempVendorCDR_20' ) start [2025-01-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270342', 'tblTempVendorCDR_20' ) end [2025-01-17 19:10:22] Production.INFO: ProcessCDR(1,14270342,1,1,2) [2025-01-17 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270342', 'tblTempUsageDetail_20' ) start [2025-01-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270342', 'tblTempUsageDetail_20' ) end [2025-01-17 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:10:26] Production.INFO: ==28093== Releasing lock... [2025-01-17 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:10:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-17 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:11:05 [end_date_ymd] => 2025-01-17 19:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:11:05' and `end` < '2025-01-17 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-17 19:11:18] Production.INFO: count ==4155 [2025-01-17 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:11:05 - End Time 2025-01-17 19:11:05 [2025-01-17 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270347', 'tblTempUsageDetail_20' ) start [2025-01-17 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270347', 'tblTempUsageDetail_20' ) end [2025-01-17 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270347', 'tblTempVendorCDR_20' ) start [2025-01-17 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270347', 'tblTempVendorCDR_20' ) end [2025-01-17 19:11:20] Production.INFO: ProcessCDR(1,14270347,1,1,2) [2025-01-17 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270347', 'tblTempUsageDetail_20' ) start [2025-01-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270347', 'tblTempUsageDetail_20' ) end [2025-01-17 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:11:24] Production.INFO: ==28181== Releasing lock... [2025-01-17 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:11:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:12:05 [end_date_ymd] => 2025-01-17 19:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:12:05' and `end` < '2025-01-17 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-17 19:12:18] Production.INFO: count ==4160 [2025-01-17 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:12:05 - End Time 2025-01-17 19:12:05 [2025-01-17 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270352', 'tblTempUsageDetail_20' ) start [2025-01-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270352', 'tblTempUsageDetail_20' ) end [2025-01-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270352', 'tblTempVendorCDR_20' ) start [2025-01-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270352', 'tblTempVendorCDR_20' ) end [2025-01-17 19:12:19] Production.INFO: ProcessCDR(1,14270352,1,1,2) [2025-01-17 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270352', 'tblTempUsageDetail_20' ) start [2025-01-17 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270352', 'tblTempUsageDetail_20' ) end [2025-01-17 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:12:22] Production.INFO: ==28343== Releasing lock... [2025-01-17 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:12:22] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:13:05 [end_date_ymd] => 2025-01-17 19:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:13:05' and `end` < '2025-01-17 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-17 19:13:21] Production.INFO: count ==4168 [2025-01-17 19:13:22] Production.ERROR: pbx CDR StartTime 2025-01-17 16:13:05 - End Time 2025-01-17 19:13:05 [2025-01-17 19:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270357', 'tblTempUsageDetail_20' ) start [2025-01-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270357', 'tblTempUsageDetail_20' ) end [2025-01-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270357', 'tblTempVendorCDR_20' ) start [2025-01-17 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270357', 'tblTempVendorCDR_20' ) end [2025-01-17 19:13:22] Production.INFO: ProcessCDR(1,14270357,1,1,2) [2025-01-17 19:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270357', 'tblTempUsageDetail_20' ) start [2025-01-17 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270357', 'tblTempUsageDetail_20' ) end [2025-01-17 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:13:25] Production.INFO: ==28425== Releasing lock... [2025-01-17 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:13:25] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:14:05 [end_date_ymd] => 2025-01-17 19:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:14:05' and `end` < '2025-01-17 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-17 19:14:18] Production.INFO: count ==4175 [2025-01-17 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:14:05 - End Time 2025-01-17 19:14:05 [2025-01-17 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270362', 'tblTempUsageDetail_20' ) start [2025-01-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270362', 'tblTempUsageDetail_20' ) end [2025-01-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270362', 'tblTempVendorCDR_20' ) start [2025-01-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270362', 'tblTempVendorCDR_20' ) end [2025-01-17 19:14:19] Production.INFO: ProcessCDR(1,14270362,1,1,2) [2025-01-17 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270362', 'tblTempUsageDetail_20' ) start [2025-01-17 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270362', 'tblTempUsageDetail_20' ) end [2025-01-17 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:14:23] Production.INFO: ==28508== Releasing lock... [2025-01-17 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:14:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-17 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:15:05 [end_date_ymd] => 2025-01-17 19:15:05 [RateCDR] => 1 ) [2025-01-17 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:15:05' and `end` < '2025-01-17 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:15:18] Production.INFO: count ==4162 [2025-01-17 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:15:05 - End Time 2025-01-17 19:15:05 [2025-01-17 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270367', 'tblTempUsageDetail_20' ) start [2025-01-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270367', 'tblTempUsageDetail_20' ) end [2025-01-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270367', 'tblTempVendorCDR_20' ) start [2025-01-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270367', 'tblTempVendorCDR_20' ) end [2025-01-17 19:15:19] Production.INFO: ProcessCDR(1,14270367,1,1,2) [2025-01-17 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270367', 'tblTempUsageDetail_20' ) start [2025-01-17 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270367', 'tblTempUsageDetail_20' ) end [2025-01-17 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:15:23] Production.INFO: ==28667== Releasing lock... [2025-01-17 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:15:23] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:16:05 [end_date_ymd] => 2025-01-17 19:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:16:05' and `end` < '2025-01-17 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-17 19:16:19] Production.INFO: count ==4164 [2025-01-17 19:16:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:16:05 - End Time 2025-01-17 19:16:05 [2025-01-17 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270372', 'tblTempUsageDetail_20' ) start [2025-01-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270372', 'tblTempUsageDetail_20' ) end [2025-01-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270372', 'tblTempVendorCDR_20' ) start [2025-01-17 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270372', 'tblTempVendorCDR_20' ) end [2025-01-17 19:16:21] Production.INFO: ProcessCDR(1,14270372,1,1,2) [2025-01-17 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270372', 'tblTempUsageDetail_20' ) start [2025-01-17 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270372', 'tblTempUsageDetail_20' ) end [2025-01-17 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:16:24] Production.INFO: ==28755== Releasing lock... [2025-01-17 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:16:24] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:17:05 [end_date_ymd] => 2025-01-17 19:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:17:05' and `end` < '2025-01-17 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-17 19:17:18] Production.INFO: count ==4157 [2025-01-17 19:17:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:17:05 - End Time 2025-01-17 19:17:05 [2025-01-17 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270377', 'tblTempUsageDetail_20' ) start [2025-01-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270377', 'tblTempUsageDetail_20' ) end [2025-01-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270377', 'tblTempVendorCDR_20' ) start [2025-01-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270377', 'tblTempVendorCDR_20' ) end [2025-01-17 19:17:20] Production.INFO: ProcessCDR(1,14270377,1,1,2) [2025-01-17 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270377', 'tblTempUsageDetail_20' ) start [2025-01-17 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270377', 'tblTempUsageDetail_20' ) end [2025-01-17 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:17:23] Production.INFO: ==28841== Releasing lock... [2025-01-17 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:17:23] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:18:05 [end_date_ymd] => 2025-01-17 19:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:18:05' and `end` < '2025-01-17 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-17 19:18:18] Production.INFO: count ==4145 [2025-01-17 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:18:05 - End Time 2025-01-17 19:18:05 [2025-01-17 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270382', 'tblTempUsageDetail_20' ) start [2025-01-17 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270382', 'tblTempUsageDetail_20' ) end [2025-01-17 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270382', 'tblTempVendorCDR_20' ) start [2025-01-17 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270382', 'tblTempVendorCDR_20' ) end [2025-01-17 19:18:20] Production.INFO: ProcessCDR(1,14270382,1,1,2) [2025-01-17 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270382', 'tblTempUsageDetail_20' ) start [2025-01-17 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270382', 'tblTempUsageDetail_20' ) end [2025-01-17 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:18:23] Production.INFO: ==28927== Releasing lock... [2025-01-17 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:18:23] Production.INFO: 59 MB #Memory Used# [2025-01-17 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:19:05 [end_date_ymd] => 2025-01-17 19:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:19:05' and `end` < '2025-01-17 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-17 19:19:20] Production.INFO: count ==4114 [2025-01-17 19:19:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:19:05 - End Time 2025-01-17 19:19:05 [2025-01-17 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270387', 'tblTempUsageDetail_20' ) start [2025-01-17 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270387', 'tblTempUsageDetail_20' ) end [2025-01-17 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270387', 'tblTempVendorCDR_20' ) start [2025-01-17 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270387', 'tblTempVendorCDR_20' ) end [2025-01-17 19:19:21] Production.INFO: ProcessCDR(1,14270387,1,1,2) [2025-01-17 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270387', 'tblTempUsageDetail_20' ) start [2025-01-17 19:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270387', 'tblTempUsageDetail_20' ) end [2025-01-17 19:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:19:26] Production.INFO: ==29012== Releasing lock... [2025-01-17 19:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:19:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-17 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:20:06 [end_date_ymd] => 2025-01-17 19:20:06 [RateCDR] => 1 ) [2025-01-17 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:20:06' and `end` < '2025-01-17 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:20:19] Production.INFO: count ==4102 [2025-01-17 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:20:06 - End Time 2025-01-17 19:20:06 [2025-01-17 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270393', 'tblTempUsageDetail_20' ) start [2025-01-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270393', 'tblTempUsageDetail_20' ) end [2025-01-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270393', 'tblTempVendorCDR_20' ) start [2025-01-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270393', 'tblTempVendorCDR_20' ) end [2025-01-17 19:20:20] Production.INFO: ProcessCDR(1,14270393,1,1,2) [2025-01-17 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270393', 'tblTempUsageDetail_20' ) start [2025-01-17 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270393', 'tblTempUsageDetail_20' ) end [2025-01-17 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:20:25] Production.INFO: ==29099== Releasing lock... [2025-01-17 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:20:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-17 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:21:04 [end_date_ymd] => 2025-01-17 19:21:04 [RateCDR] => 1 ) [2025-01-17 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:21:04' and `end` < '2025-01-17 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:21:17] Production.INFO: count ==4045 [2025-01-17 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:21:04 - End Time 2025-01-17 19:21:04 [2025-01-17 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270398', 'tblTempUsageDetail_20' ) start [2025-01-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270398', 'tblTempUsageDetail_20' ) end [2025-01-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270398', 'tblTempVendorCDR_20' ) start [2025-01-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270398', 'tblTempVendorCDR_20' ) end [2025-01-17 19:21:19] Production.INFO: ProcessCDR(1,14270398,1,1,2) [2025-01-17 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270398', 'tblTempUsageDetail_20' ) start [2025-01-17 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270398', 'tblTempUsageDetail_20' ) end [2025-01-17 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:21:22] Production.INFO: ==29189== Releasing lock... [2025-01-17 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:21:22] Production.INFO: 58.25 MB #Memory Used# [2025-01-17 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:22:06 [end_date_ymd] => 2025-01-17 19:22:06 [RateCDR] => 1 ) [2025-01-17 19: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-17 16:22:06' and `end` < '2025-01-17 19: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-17 19:22:19] Production.INFO: count ==3988 [2025-01-17 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:22:06 - End Time 2025-01-17 19:22:06 [2025-01-17 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270403', 'tblTempUsageDetail_20' ) start [2025-01-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270403', 'tblTempUsageDetail_20' ) end [2025-01-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270403', 'tblTempVendorCDR_20' ) start [2025-01-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270403', 'tblTempVendorCDR_20' ) end [2025-01-17 19:22:20] Production.INFO: ProcessCDR(1,14270403,1,1,2) [2025-01-17 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270403', 'tblTempUsageDetail_20' ) start [2025-01-17 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270403', 'tblTempUsageDetail_20' ) end [2025-01-17 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:22:23] Production.INFO: ==29261== Releasing lock... [2025-01-17 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:22:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-17 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:23:05 [end_date_ymd] => 2025-01-17 19:23:05 [RateCDR] => 1 ) [2025-01-17 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:23:05' and `end` < '2025-01-17 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:23:17] Production.INFO: count ==3957 [2025-01-17 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:23:05 - End Time 2025-01-17 19:23:05 [2025-01-17 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270408', 'tblTempUsageDetail_20' ) start [2025-01-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270408', 'tblTempUsageDetail_20' ) end [2025-01-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270408', 'tblTempVendorCDR_20' ) start [2025-01-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270408', 'tblTempVendorCDR_20' ) end [2025-01-17 19:23:19] Production.INFO: ProcessCDR(1,14270408,1,1,2) [2025-01-17 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270408', 'tblTempUsageDetail_20' ) start [2025-01-17 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270408', 'tblTempUsageDetail_20' ) end [2025-01-17 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:23:22] Production.INFO: ==29330== Releasing lock... [2025-01-17 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:23:22] Production.INFO: 57.5 MB #Memory Used# [2025-01-17 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:24:06 [end_date_ymd] => 2025-01-17 19:24:06 [RateCDR] => 1 ) [2025-01-17 19: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-17 16:24:06' and `end` < '2025-01-17 19: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-17 19:24:19] Production.INFO: count ==3936 [2025-01-17 19:24:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:24:06 - End Time 2025-01-17 19:24:06 [2025-01-17 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270413', 'tblTempUsageDetail_20' ) start [2025-01-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270413', 'tblTempUsageDetail_20' ) end [2025-01-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270413', 'tblTempVendorCDR_20' ) start [2025-01-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270413', 'tblTempVendorCDR_20' ) end [2025-01-17 19:24:20] Production.INFO: ProcessCDR(1,14270413,1,1,2) [2025-01-17 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270413', 'tblTempUsageDetail_20' ) start [2025-01-17 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270413', 'tblTempUsageDetail_20' ) end [2025-01-17 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:24:23] Production.INFO: ==29443== Releasing lock... [2025-01-17 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:24:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:25:05 [end_date_ymd] => 2025-01-17 19:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:25:05' and `end` < '2025-01-17 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-17 19:25:18] Production.INFO: count ==3911 [2025-01-17 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:25:05 - End Time 2025-01-17 19:25:05 [2025-01-17 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270418', 'tblTempUsageDetail_20' ) start [2025-01-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270418', 'tblTempUsageDetail_20' ) end [2025-01-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270418', 'tblTempVendorCDR_20' ) start [2025-01-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270418', 'tblTempVendorCDR_20' ) end [2025-01-17 19:25:19] Production.INFO: ProcessCDR(1,14270418,1,1,2) [2025-01-17 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270418', 'tblTempUsageDetail_20' ) start [2025-01-17 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270418', 'tblTempUsageDetail_20' ) end [2025-01-17 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:25:23] Production.INFO: ==29513== Releasing lock... [2025-01-17 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:25:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-17 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:26:05 [end_date_ymd] => 2025-01-17 19:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:26:05' and `end` < '2025-01-17 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-17 19:26:19] Production.INFO: count ==3893 [2025-01-17 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:26:05 - End Time 2025-01-17 19:26:05 [2025-01-17 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270423', 'tblTempUsageDetail_20' ) start [2025-01-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270423', 'tblTempUsageDetail_20' ) end [2025-01-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270423', 'tblTempVendorCDR_20' ) start [2025-01-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270423', 'tblTempVendorCDR_20' ) end [2025-01-17 19:26:20] Production.INFO: ProcessCDR(1,14270423,1,1,2) [2025-01-17 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270423', 'tblTempUsageDetail_20' ) start [2025-01-17 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270423', 'tblTempUsageDetail_20' ) end [2025-01-17 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:26:23] Production.INFO: ==29585== Releasing lock... [2025-01-17 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:26:23] Production.INFO: 57 MB #Memory Used# [2025-01-17 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:27:04 [end_date_ymd] => 2025-01-17 19:27:04 [RateCDR] => 1 ) [2025-01-17 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:27:04' and `end` < '2025-01-17 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:27:17] Production.INFO: count ==3880 [2025-01-17 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:27:04 - End Time 2025-01-17 19:27:04 [2025-01-17 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270428', 'tblTempUsageDetail_20' ) start [2025-01-17 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270428', 'tblTempUsageDetail_20' ) end [2025-01-17 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270428', 'tblTempVendorCDR_20' ) start [2025-01-17 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270428', 'tblTempVendorCDR_20' ) end [2025-01-17 19:27:18] Production.INFO: ProcessCDR(1,14270428,1,1,2) [2025-01-17 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270428', 'tblTempUsageDetail_20' ) start [2025-01-17 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270428', 'tblTempUsageDetail_20' ) end [2025-01-17 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:27:23] Production.INFO: ==29656== Releasing lock... [2025-01-17 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:27:23] Production.INFO: 57 MB #Memory Used# [2025-01-17 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:28:05 [end_date_ymd] => 2025-01-17 19:28:05 [RateCDR] => 1 ) [2025-01-17 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:28:05' and `end` < '2025-01-17 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:28:18] Production.INFO: count ==3872 [2025-01-17 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:28:05 - End Time 2025-01-17 19:28:05 [2025-01-17 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270433', 'tblTempUsageDetail_20' ) start [2025-01-17 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270433', 'tblTempUsageDetail_20' ) end [2025-01-17 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270433', 'tblTempVendorCDR_20' ) start [2025-01-17 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270433', 'tblTempVendorCDR_20' ) end [2025-01-17 19:28:19] Production.INFO: ProcessCDR(1,14270433,1,1,2) [2025-01-17 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270433', 'tblTempUsageDetail_20' ) start [2025-01-17 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270433', 'tblTempUsageDetail_20' ) end [2025-01-17 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:28:23] Production.INFO: ==29749== Releasing lock... [2025-01-17 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:28:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-17 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:29:05 [end_date_ymd] => 2025-01-17 19:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:29:05' and `end` < '2025-01-17 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-17 19:29:19] Production.INFO: count ==3867 [2025-01-17 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:29:05 - End Time 2025-01-17 19:29:05 [2025-01-17 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270438', 'tblTempUsageDetail_20' ) start [2025-01-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270438', 'tblTempUsageDetail_20' ) end [2025-01-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270438', 'tblTempVendorCDR_20' ) start [2025-01-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270438', 'tblTempVendorCDR_20' ) end [2025-01-17 19:29:20] Production.INFO: ProcessCDR(1,14270438,1,1,2) [2025-01-17 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270438', 'tblTempUsageDetail_20' ) start [2025-01-17 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270438', 'tblTempUsageDetail_20' ) end [2025-01-17 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:29:23] Production.INFO: ==29822== Releasing lock... [2025-01-17 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:29:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-17 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:30:06 [end_date_ymd] => 2025-01-17 19:30:06 [RateCDR] => 1 ) [2025-01-17 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:30:06' and `end` < '2025-01-17 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:30:20] Production.INFO: count ==3868 [2025-01-17 19:30:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:30:06 - End Time 2025-01-17 19:30:06 [2025-01-17 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270444', 'tblTempUsageDetail_20' ) start [2025-01-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270444', 'tblTempUsageDetail_20' ) end [2025-01-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270444', 'tblTempVendorCDR_20' ) start [2025-01-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270444', 'tblTempVendorCDR_20' ) end [2025-01-17 19:30:21] Production.INFO: ProcessCDR(1,14270444,1,1,2) [2025-01-17 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270444', 'tblTempUsageDetail_20' ) start [2025-01-17 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270444', 'tblTempUsageDetail_20' ) end [2025-01-17 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:30:26] Production.INFO: ==29921== Releasing lock... [2025-01-17 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:30:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-17 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:31:06 [end_date_ymd] => 2025-01-17 19:31:06 [RateCDR] => 1 ) [2025-01-17 19: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-17 16:31:06' and `end` < '2025-01-17 19: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-17 19:31:20] Production.INFO: count ==3838 [2025-01-17 19:31:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:31:06 - End Time 2025-01-17 19:31:06 [2025-01-17 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270449', 'tblTempUsageDetail_20' ) start [2025-01-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270449', 'tblTempUsageDetail_20' ) end [2025-01-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270449', 'tblTempVendorCDR_20' ) start [2025-01-17 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270449', 'tblTempVendorCDR_20' ) end [2025-01-17 19:31:21] Production.INFO: ProcessCDR(1,14270449,1,1,2) [2025-01-17 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270449', 'tblTempUsageDetail_20' ) start [2025-01-17 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270449', 'tblTempUsageDetail_20' ) end [2025-01-17 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:31:24] Production.INFO: ==29994== Releasing lock... [2025-01-17 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:31:24] Production.INFO: 57 MB #Memory Used# [2025-01-17 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:32:05 [end_date_ymd] => 2025-01-17 19:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:32:05' and `end` < '2025-01-17 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-17 19:32:18] Production.INFO: count ==3873 [2025-01-17 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:32:05 - End Time 2025-01-17 19:32:05 [2025-01-17 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270454', 'tblTempUsageDetail_20' ) start [2025-01-17 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270454', 'tblTempUsageDetail_20' ) end [2025-01-17 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270454', 'tblTempVendorCDR_20' ) start [2025-01-17 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270454', 'tblTempVendorCDR_20' ) end [2025-01-17 19:32:19] Production.INFO: ProcessCDR(1,14270454,1,1,2) [2025-01-17 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270454', 'tblTempUsageDetail_20' ) start [2025-01-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270454', 'tblTempUsageDetail_20' ) end [2025-01-17 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:32:22] Production.INFO: ==30063== Releasing lock... [2025-01-17 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:32:22] Production.INFO: 56.75 MB #Memory Used# [2025-01-17 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:33:05 [end_date_ymd] => 2025-01-17 19:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:33:05' and `end` < '2025-01-17 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-17 19:33:18] Production.INFO: count ==3849 [2025-01-17 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:33:05 - End Time 2025-01-17 19:33:05 [2025-01-17 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270459', 'tblTempUsageDetail_20' ) start [2025-01-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270459', 'tblTempUsageDetail_20' ) end [2025-01-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270459', 'tblTempVendorCDR_20' ) start [2025-01-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270459', 'tblTempVendorCDR_20' ) end [2025-01-17 19:33:19] Production.INFO: ProcessCDR(1,14270459,1,1,2) [2025-01-17 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270459', 'tblTempUsageDetail_20' ) start [2025-01-17 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270459', 'tblTempUsageDetail_20' ) end [2025-01-17 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:33:22] Production.INFO: ==30135== Releasing lock... [2025-01-17 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:33:22] Production.INFO: 56.75 MB #Memory Used# [2025-01-17 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:34:05 [end_date_ymd] => 2025-01-17 19:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:34:05' and `end` < '2025-01-17 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-17 19:34:17] Production.INFO: count ==3835 [2025-01-17 19:34:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:34:05 - End Time 2025-01-17 19:34:05 [2025-01-17 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270464', 'tblTempUsageDetail_20' ) start [2025-01-17 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270464', 'tblTempUsageDetail_20' ) end [2025-01-17 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270464', 'tblTempVendorCDR_20' ) start [2025-01-17 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270464', 'tblTempVendorCDR_20' ) end [2025-01-17 19:34:18] Production.INFO: ProcessCDR(1,14270464,1,1,2) [2025-01-17 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270464', 'tblTempUsageDetail_20' ) start [2025-01-17 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270464', 'tblTempUsageDetail_20' ) end [2025-01-17 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:34:22] Production.INFO: ==30207== Releasing lock... [2025-01-17 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:34:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:35:05 [end_date_ymd] => 2025-01-17 19:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:35:05' and `end` < '2025-01-17 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-17 19:35:18] Production.INFO: count ==3840 [2025-01-17 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:35:05 - End Time 2025-01-17 19:35:05 [2025-01-17 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270469', 'tblTempUsageDetail_20' ) start [2025-01-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270469', 'tblTempUsageDetail_20' ) end [2025-01-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270469', 'tblTempVendorCDR_20' ) start [2025-01-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270469', 'tblTempVendorCDR_20' ) end [2025-01-17 19:35:19] Production.INFO: ProcessCDR(1,14270469,1,1,2) [2025-01-17 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270469', 'tblTempUsageDetail_20' ) start [2025-01-17 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270469', 'tblTempUsageDetail_20' ) end [2025-01-17 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:35:22] Production.INFO: ==30280== Releasing lock... [2025-01-17 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:35:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:36:04 [end_date_ymd] => 2025-01-17 19:36:04 [RateCDR] => 1 ) [2025-01-17 19:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:36:04' and `end` < '2025-01-17 19:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:36:17] Production.INFO: count ==3819 [2025-01-17 19:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:36:04 - End Time 2025-01-17 19:36:04 [2025-01-17 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270474', 'tblTempUsageDetail_20' ) start [2025-01-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270474', 'tblTempUsageDetail_20' ) end [2025-01-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270474', 'tblTempVendorCDR_20' ) start [2025-01-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270474', 'tblTempVendorCDR_20' ) end [2025-01-17 19:36:19] Production.INFO: ProcessCDR(1,14270474,1,1,2) [2025-01-17 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270474', 'tblTempUsageDetail_20' ) start [2025-01-17 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270474', 'tblTempUsageDetail_20' ) end [2025-01-17 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:36:22] Production.INFO: ==30355== Releasing lock... [2025-01-17 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:36:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:37:05 [end_date_ymd] => 2025-01-17 19:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:37:05' and `end` < '2025-01-17 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-17 19:37:17] Production.INFO: count ==3815 [2025-01-17 19:37:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:37:05 - End Time 2025-01-17 19:37:05 [2025-01-17 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270479', 'tblTempUsageDetail_20' ) start [2025-01-17 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270479', 'tblTempUsageDetail_20' ) end [2025-01-17 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270479', 'tblTempVendorCDR_20' ) start [2025-01-17 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270479', 'tblTempVendorCDR_20' ) end [2025-01-17 19:37:19] Production.INFO: ProcessCDR(1,14270479,1,1,2) [2025-01-17 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270479', 'tblTempUsageDetail_20' ) start [2025-01-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270479', 'tblTempUsageDetail_20' ) end [2025-01-17 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:37:22] Production.INFO: ==30427== Releasing lock... [2025-01-17 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:37:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:38:05 [end_date_ymd] => 2025-01-17 19:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:38:05' and `end` < '2025-01-17 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-17 19:38:19] Production.INFO: count ==3806 [2025-01-17 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:38:05 - End Time 2025-01-17 19:38:05 [2025-01-17 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270484', 'tblTempUsageDetail_20' ) start [2025-01-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270484', 'tblTempUsageDetail_20' ) end [2025-01-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270484', 'tblTempVendorCDR_20' ) start [2025-01-17 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270484', 'tblTempVendorCDR_20' ) end [2025-01-17 19:38:21] Production.INFO: ProcessCDR(1,14270484,1,1,2) [2025-01-17 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270484', 'tblTempUsageDetail_20' ) start [2025-01-17 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270484', 'tblTempUsageDetail_20' ) end [2025-01-17 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:38:24] Production.INFO: ==30496== Releasing lock... [2025-01-17 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:38:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:39:05 [end_date_ymd] => 2025-01-17 19:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:39:05' and `end` < '2025-01-17 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-17 19:39:18] Production.INFO: count ==3799 [2025-01-17 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:39:05 - End Time 2025-01-17 19:39:05 [2025-01-17 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270489', 'tblTempUsageDetail_20' ) start [2025-01-17 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270489', 'tblTempUsageDetail_20' ) end [2025-01-17 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270489', 'tblTempVendorCDR_20' ) start [2025-01-17 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270489', 'tblTempVendorCDR_20' ) end [2025-01-17 19:39:19] Production.INFO: ProcessCDR(1,14270489,1,1,2) [2025-01-17 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270489', 'tblTempUsageDetail_20' ) start [2025-01-17 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270489', 'tblTempUsageDetail_20' ) end [2025-01-17 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:39:22] Production.INFO: ==30568== Releasing lock... [2025-01-17 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:39:22] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:40:05 [end_date_ymd] => 2025-01-17 19:40:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:40:05' and `end` < '2025-01-17 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-17 19:40:19] Production.INFO: count ==3777 [2025-01-17 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:40:05 - End Time 2025-01-17 19:40:05 [2025-01-17 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270493', 'tblTempUsageDetail_20' ) start [2025-01-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270493', 'tblTempUsageDetail_20' ) end [2025-01-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270493', 'tblTempVendorCDR_20' ) start [2025-01-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270493', 'tblTempVendorCDR_20' ) end [2025-01-17 19:40:20] Production.INFO: ProcessCDR(1,14270493,1,1,2) [2025-01-17 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270493', 'tblTempUsageDetail_20' ) start [2025-01-17 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270493', 'tblTempUsageDetail_20' ) end [2025-01-17 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:40:23] Production.INFO: ==30679== Releasing lock... [2025-01-17 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:40:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:41:05 [end_date_ymd] => 2025-01-17 19:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:41:05' and `end` < '2025-01-17 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-17 19:41:19] Production.INFO: count ==3749 [2025-01-17 19:41:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:41:05 - End Time 2025-01-17 19:41:05 [2025-01-17 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270500', 'tblTempUsageDetail_20' ) start [2025-01-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270500', 'tblTempUsageDetail_20' ) end [2025-01-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270500', 'tblTempVendorCDR_20' ) start [2025-01-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270500', 'tblTempVendorCDR_20' ) end [2025-01-17 19:41:20] Production.INFO: ProcessCDR(1,14270500,1,1,2) [2025-01-17 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270500', 'tblTempUsageDetail_20' ) start [2025-01-17 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270500', 'tblTempUsageDetail_20' ) end [2025-01-17 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:41:25] Production.INFO: ==30750== Releasing lock... [2025-01-17 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:41:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:42:05 [end_date_ymd] => 2025-01-17 19:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:42:05' and `end` < '2025-01-17 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-17 19:42:18] Production.INFO: count ==3734 [2025-01-17 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:42:05 - End Time 2025-01-17 19:42:05 [2025-01-17 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270505', 'tblTempUsageDetail_20' ) start [2025-01-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270505', 'tblTempUsageDetail_20' ) end [2025-01-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270505', 'tblTempVendorCDR_20' ) start [2025-01-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270505', 'tblTempVendorCDR_20' ) end [2025-01-17 19:42:19] Production.INFO: ProcessCDR(1,14270505,1,1,2) [2025-01-17 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270505', 'tblTempUsageDetail_20' ) start [2025-01-17 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270505', 'tblTempUsageDetail_20' ) end [2025-01-17 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:42:24] Production.INFO: ==30821== Releasing lock... [2025-01-17 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:42:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-17 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:43:05 [end_date_ymd] => 2025-01-17 19:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:43:05' and `end` < '2025-01-17 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-17 19:43:20] Production.INFO: count ==3745 [2025-01-17 19:43:21] Production.ERROR: pbx CDR StartTime 2025-01-17 16:43:05 - End Time 2025-01-17 19:43:05 [2025-01-17 19:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270510', 'tblTempUsageDetail_20' ) start [2025-01-17 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270510', 'tblTempUsageDetail_20' ) end [2025-01-17 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270510', 'tblTempVendorCDR_20' ) start [2025-01-17 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270510', 'tblTempVendorCDR_20' ) end [2025-01-17 19:43:21] Production.INFO: ProcessCDR(1,14270510,1,1,2) [2025-01-17 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270510', 'tblTempUsageDetail_20' ) start [2025-01-17 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270510', 'tblTempUsageDetail_20' ) end [2025-01-17 19:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:43:26] Production.INFO: ==30890== Releasing lock... [2025-01-17 19:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:43:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:44:05 [end_date_ymd] => 2025-01-17 19:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:44:05' and `end` < '2025-01-17 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-17 19:44:18] Production.INFO: count ==3744 [2025-01-17 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:44:05 - End Time 2025-01-17 19:44:05 [2025-01-17 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270515', 'tblTempUsageDetail_20' ) start [2025-01-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270515', 'tblTempUsageDetail_20' ) end [2025-01-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270515', 'tblTempVendorCDR_20' ) start [2025-01-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270515', 'tblTempVendorCDR_20' ) end [2025-01-17 19:44:19] Production.INFO: ProcessCDR(1,14270515,1,1,2) [2025-01-17 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270515', 'tblTempUsageDetail_20' ) start [2025-01-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270515', 'tblTempUsageDetail_20' ) end [2025-01-17 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:44:22] Production.INFO: ==30961== Releasing lock... [2025-01-17 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:44:22] Production.INFO: 56 MB #Memory Used# [2025-01-17 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:45:04 [end_date_ymd] => 2025-01-17 19:45:04 [RateCDR] => 1 ) [2025-01-17 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-17 16:45:04' and `end` < '2025-01-17 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-17 19:45:17] Production.INFO: count ==3737 [2025-01-17 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:45:04 - End Time 2025-01-17 19:45:04 [2025-01-17 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270520', 'tblTempUsageDetail_20' ) start [2025-01-17 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270520', 'tblTempUsageDetail_20' ) end [2025-01-17 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270520', 'tblTempVendorCDR_20' ) start [2025-01-17 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270520', 'tblTempVendorCDR_20' ) end [2025-01-17 19:45:18] Production.INFO: ProcessCDR(1,14270520,1,1,2) [2025-01-17 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270520', 'tblTempUsageDetail_20' ) start [2025-01-17 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270520', 'tblTempUsageDetail_20' ) end [2025-01-17 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:45:23] Production.INFO: ==31030== Releasing lock... [2025-01-17 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:45:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-17 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:46:05 [end_date_ymd] => 2025-01-17 19:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:46:05' and `end` < '2025-01-17 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-17 19:46:18] Production.INFO: count ==3734 [2025-01-17 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:46:05 - End Time 2025-01-17 19:46:05 [2025-01-17 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270525', 'tblTempUsageDetail_20' ) start [2025-01-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270525', 'tblTempUsageDetail_20' ) end [2025-01-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270525', 'tblTempVendorCDR_20' ) start [2025-01-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270525', 'tblTempVendorCDR_20' ) end [2025-01-17 19:46:19] Production.INFO: ProcessCDR(1,14270525,1,1,2) [2025-01-17 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270525', 'tblTempUsageDetail_20' ) start [2025-01-17 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270525', 'tblTempUsageDetail_20' ) end [2025-01-17 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:46:24] Production.INFO: ==31102== Releasing lock... [2025-01-17 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:46:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-17 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:47:04 [end_date_ymd] => 2025-01-17 19:47:04 [RateCDR] => 1 ) [2025-01-17 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:47:04' and `end` < '2025-01-17 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:47:17] Production.INFO: count ==3716 [2025-01-17 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:47:04 - End Time 2025-01-17 19:47:04 [2025-01-17 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270530', 'tblTempUsageDetail_20' ) start [2025-01-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270530', 'tblTempUsageDetail_20' ) end [2025-01-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270530', 'tblTempVendorCDR_20' ) start [2025-01-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270530', 'tblTempVendorCDR_20' ) end [2025-01-17 19:47:18] Production.INFO: ProcessCDR(1,14270530,1,1,2) [2025-01-17 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270530', 'tblTempUsageDetail_20' ) start [2025-01-17 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270530', 'tblTempUsageDetail_20' ) end [2025-01-17 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:47:21] Production.INFO: ==31172== Releasing lock... [2025-01-17 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:47:21] Production.INFO: 56.25 MB #Memory Used# [2025-01-17 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:48:05 [end_date_ymd] => 2025-01-17 19:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:48:05' and `end` < '2025-01-17 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-17 19:48:17] Production.INFO: count ==3708 [2025-01-17 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:48:05 - End Time 2025-01-17 19:48:05 [2025-01-17 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270535', 'tblTempUsageDetail_20' ) start [2025-01-17 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270535', 'tblTempUsageDetail_20' ) end [2025-01-17 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270535', 'tblTempVendorCDR_20' ) start [2025-01-17 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270535', 'tblTempVendorCDR_20' ) end [2025-01-17 19:48:19] Production.INFO: ProcessCDR(1,14270535,1,1,2) [2025-01-17 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270535', 'tblTempUsageDetail_20' ) start [2025-01-17 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270535', 'tblTempUsageDetail_20' ) end [2025-01-17 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:48:22] Production.INFO: ==31242== Releasing lock... [2025-01-17 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:48:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-17 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:49:06 [end_date_ymd] => 2025-01-17 19:49:06 [RateCDR] => 1 ) [2025-01-17 19: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-17 16:49:06' and `end` < '2025-01-17 19: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-17 19:49:19] Production.INFO: count ==3694 [2025-01-17 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:49:06 - End Time 2025-01-17 19:49:06 [2025-01-17 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270540', 'tblTempUsageDetail_20' ) start [2025-01-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270540', 'tblTempUsageDetail_20' ) end [2025-01-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270540', 'tblTempVendorCDR_20' ) start [2025-01-17 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270540', 'tblTempVendorCDR_20' ) end [2025-01-17 19:49:20] Production.INFO: ProcessCDR(1,14270540,1,1,2) [2025-01-17 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270540', 'tblTempUsageDetail_20' ) start [2025-01-17 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270540', 'tblTempUsageDetail_20' ) end [2025-01-17 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:49:23] Production.INFO: ==31319== Releasing lock... [2025-01-17 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:49:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-17 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:50:06 [end_date_ymd] => 2025-01-17 19:50:06 [RateCDR] => 1 ) [2025-01-17 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:50:06' and `end` < '2025-01-17 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:50:19] Production.INFO: count ==3658 [2025-01-17 19:50:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:50:06 - End Time 2025-01-17 19:50:06 [2025-01-17 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270545', 'tblTempUsageDetail_20' ) start [2025-01-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270545', 'tblTempUsageDetail_20' ) end [2025-01-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270545', 'tblTempVendorCDR_20' ) start [2025-01-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270545', 'tblTempVendorCDR_20' ) end [2025-01-17 19:50:20] Production.INFO: ProcessCDR(1,14270545,1,1,2) [2025-01-17 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270545', 'tblTempUsageDetail_20' ) start [2025-01-17 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270545', 'tblTempUsageDetail_20' ) end [2025-01-17 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:50:23] Production.INFO: ==31393== Releasing lock... [2025-01-17 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:50:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-17 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:51:05 [end_date_ymd] => 2025-01-17 19:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:51:05' and `end` < '2025-01-17 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-17 19:51:18] Production.INFO: count ==3553 [2025-01-17 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:51:05 - End Time 2025-01-17 19:51:05 [2025-01-17 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270551', 'tblTempUsageDetail_20' ) start [2025-01-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270551', 'tblTempUsageDetail_20' ) end [2025-01-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270551', 'tblTempVendorCDR_20' ) start [2025-01-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270551', 'tblTempVendorCDR_20' ) end [2025-01-17 19:51:19] Production.INFO: ProcessCDR(1,14270551,1,1,2) [2025-01-17 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270551', 'tblTempUsageDetail_20' ) start [2025-01-17 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270551', 'tblTempUsageDetail_20' ) end [2025-01-17 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:51:23] Production.INFO: ==31464== Releasing lock... [2025-01-17 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:51:23] Production.INFO: 55 MB #Memory Used# [2025-01-17 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:52:05 [end_date_ymd] => 2025-01-17 19:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:52:05' and `end` < '2025-01-17 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-17 19:52:18] Production.INFO: count ==3528 [2025-01-17 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:52:05 - End Time 2025-01-17 19:52:05 [2025-01-17 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270556', 'tblTempUsageDetail_20' ) start [2025-01-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270556', 'tblTempUsageDetail_20' ) end [2025-01-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270556', 'tblTempVendorCDR_20' ) start [2025-01-17 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270556', 'tblTempVendorCDR_20' ) end [2025-01-17 19:52:18] Production.INFO: ProcessCDR(1,14270556,1,1,2) [2025-01-17 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270556', 'tblTempUsageDetail_20' ) start [2025-01-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270556', 'tblTempUsageDetail_20' ) end [2025-01-17 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:52:23] Production.INFO: ==31535== Releasing lock... [2025-01-17 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:52:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-17 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:53:05 [end_date_ymd] => 2025-01-17 19:53:05 [RateCDR] => 1 ) [2025-01-17 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:53:05' and `end` < '2025-01-17 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:53:19] Production.INFO: count ==3499 [2025-01-17 19:53:20] Production.ERROR: pbx CDR StartTime 2025-01-17 16:53:05 - End Time 2025-01-17 19:53:05 [2025-01-17 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270561', 'tblTempUsageDetail_20' ) start [2025-01-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270561', 'tblTempUsageDetail_20' ) end [2025-01-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270561', 'tblTempVendorCDR_20' ) start [2025-01-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270561', 'tblTempVendorCDR_20' ) end [2025-01-17 19:53:20] Production.INFO: ProcessCDR(1,14270561,1,1,2) [2025-01-17 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270561', 'tblTempUsageDetail_20' ) start [2025-01-17 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270561', 'tblTempUsageDetail_20' ) end [2025-01-17 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:53:25] Production.INFO: ==31606== Releasing lock... [2025-01-17 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:53:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-17 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:54:04 [end_date_ymd] => 2025-01-17 19:54:04 [RateCDR] => 1 ) [2025-01-17 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:54:04' and `end` < '2025-01-17 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:54:17] Production.INFO: count ==3482 [2025-01-17 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:54:04 - End Time 2025-01-17 19:54:04 [2025-01-17 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270566', 'tblTempUsageDetail_20' ) start [2025-01-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270566', 'tblTempUsageDetail_20' ) end [2025-01-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270566', 'tblTempVendorCDR_20' ) start [2025-01-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270566', 'tblTempVendorCDR_20' ) end [2025-01-17 19:54:18] Production.INFO: ProcessCDR(1,14270566,1,1,2) [2025-01-17 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270566', 'tblTempUsageDetail_20' ) start [2025-01-17 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270566', 'tblTempUsageDetail_20' ) end [2025-01-17 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:54:22] Production.INFO: ==31676== Releasing lock... [2025-01-17 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:54:22] Production.INFO: 54 MB #Memory Used# [2025-01-17 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:55:05 [end_date_ymd] => 2025-01-17 19:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:55:05' and `end` < '2025-01-17 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-17 19:55:18] Production.INFO: count ==3467 [2025-01-17 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:55:05 - End Time 2025-01-17 19:55:05 [2025-01-17 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270571', 'tblTempUsageDetail_20' ) start [2025-01-17 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270571', 'tblTempUsageDetail_20' ) end [2025-01-17 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270571', 'tblTempVendorCDR_20' ) start [2025-01-17 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270571', 'tblTempVendorCDR_20' ) end [2025-01-17 19:55:18] Production.INFO: ProcessCDR(1,14270571,1,1,2) [2025-01-17 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270571', 'tblTempUsageDetail_20' ) start [2025-01-17 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270571', 'tblTempUsageDetail_20' ) end [2025-01-17 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:55:22] Production.INFO: ==31787== Releasing lock... [2025-01-17 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:55:22] Production.INFO: 54 MB #Memory Used# [2025-01-17 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:56:05 [end_date_ymd] => 2025-01-17 19:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:56:05' and `end` < '2025-01-17 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-17 19:56:18] Production.INFO: count ==3457 [2025-01-17 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:56:05 - End Time 2025-01-17 19:56:05 [2025-01-17 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270576', 'tblTempUsageDetail_20' ) start [2025-01-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270576', 'tblTempUsageDetail_20' ) end [2025-01-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270576', 'tblTempVendorCDR_20' ) start [2025-01-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270576', 'tblTempVendorCDR_20' ) end [2025-01-17 19:56:19] Production.INFO: ProcessCDR(1,14270576,1,1,2) [2025-01-17 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270576', 'tblTempUsageDetail_20' ) start [2025-01-17 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270576', 'tblTempUsageDetail_20' ) end [2025-01-17 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:56:24] Production.INFO: ==31857== Releasing lock... [2025-01-17 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:56:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-17 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:57:05 [end_date_ymd] => 2025-01-17 19:57:05 [RateCDR] => 1 ) [2025-01-17 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:57:05' and `end` < '2025-01-17 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:57:17] Production.INFO: count ==3451 [2025-01-17 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:57:05 - End Time 2025-01-17 19:57:05 [2025-01-17 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270581', 'tblTempUsageDetail_20' ) start [2025-01-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270581', 'tblTempUsageDetail_20' ) end [2025-01-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270581', 'tblTempVendorCDR_20' ) start [2025-01-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270581', 'tblTempVendorCDR_20' ) end [2025-01-17 19:57:18] Production.INFO: ProcessCDR(1,14270581,1,1,2) [2025-01-17 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270581', 'tblTempUsageDetail_20' ) start [2025-01-17 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270581', 'tblTempUsageDetail_20' ) end [2025-01-17 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:57:23] Production.INFO: ==31926== Releasing lock... [2025-01-17 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:57:23] Production.INFO: 54 MB #Memory Used# [2025-01-17 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:58:05 [end_date_ymd] => 2025-01-17 19:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 16:58:05' and `end` < '2025-01-17 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-17 19:58:18] Production.INFO: count ==3449 [2025-01-17 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 16:58:05 - End Time 2025-01-17 19:58:05 [2025-01-17 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270586', 'tblTempUsageDetail_20' ) start [2025-01-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270586', 'tblTempUsageDetail_20' ) end [2025-01-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270586', 'tblTempVendorCDR_20' ) start [2025-01-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270586', 'tblTempVendorCDR_20' ) end [2025-01-17 19:58:19] Production.INFO: ProcessCDR(1,14270586,1,1,2) [2025-01-17 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270586', 'tblTempUsageDetail_20' ) start [2025-01-17 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270586', 'tblTempUsageDetail_20' ) end [2025-01-17 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:58:22] Production.INFO: ==31997== Releasing lock... [2025-01-17 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:58:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-17 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 16:59:05 [end_date_ymd] => 2025-01-17 19:59:05 [RateCDR] => 1 ) [2025-01-17 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 16:59:05' and `end` < '2025-01-17 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 19:59:18] Production.INFO: count ==3445 [2025-01-17 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 16:59:05 - End Time 2025-01-17 19:59:05 [2025-01-17 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270591', 'tblTempUsageDetail_20' ) start [2025-01-17 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270591', 'tblTempUsageDetail_20' ) end [2025-01-17 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270591', 'tblTempVendorCDR_20' ) start [2025-01-17 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270591', 'tblTempVendorCDR_20' ) end [2025-01-17 19:59:18] Production.INFO: ProcessCDR(1,14270591,1,1,2) [2025-01-17 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270591', 'tblTempUsageDetail_20' ) start [2025-01-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270591', 'tblTempUsageDetail_20' ) end [2025-01-17 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 19:59:22] Production.INFO: ==32067== Releasing lock... [2025-01-17 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 19:59:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-17 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:00:05 [end_date_ymd] => 2025-01-17 20:00:05 [RateCDR] => 1 ) [2025-01-17 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:00:05' and `end` < '2025-01-17 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:00:18] Production.INFO: count ==3439 [2025-01-17 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:00:05 - End Time 2025-01-17 20:00:05 [2025-01-17 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270596', 'tblTempUsageDetail_20' ) start [2025-01-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270596', 'tblTempUsageDetail_20' ) end [2025-01-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270596', 'tblTempVendorCDR_20' ) start [2025-01-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270596', 'tblTempVendorCDR_20' ) end [2025-01-17 20:00:19] Production.INFO: ProcessCDR(1,14270596,1,1,2) [2025-01-17 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270596', 'tblTempUsageDetail_20' ) start [2025-01-17 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270596', 'tblTempUsageDetail_20' ) end [2025-01-17 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:00:24] Production.INFO: ==32140== Releasing lock... [2025-01-17 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:00:24] Production.INFO: 54 MB #Memory Used# [2025-01-17 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:01:04 [end_date_ymd] => 2025-01-17 20:01:04 [RateCDR] => 1 ) [2025-01-17 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:01:04' and `end` < '2025-01-17 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:01:17] Production.INFO: count ==3365 [2025-01-17 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:01:04 - End Time 2025-01-17 20:01:04 [2025-01-17 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270602', 'tblTempUsageDetail_20' ) start [2025-01-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270602', 'tblTempUsageDetail_20' ) end [2025-01-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270602', 'tblTempVendorCDR_20' ) start [2025-01-17 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270602', 'tblTempVendorCDR_20' ) end [2025-01-17 20:01:18] Production.INFO: ProcessCDR(1,14270602,1,1,2) [2025-01-17 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270602', 'tblTempUsageDetail_20' ) start [2025-01-17 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270602', 'tblTempUsageDetail_20' ) end [2025-01-17 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:01:21] Production.INFO: ==32266== Releasing lock... [2025-01-17 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:01:21] Production.INFO: 53.5 MB #Memory Used# [2025-01-17 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:02:05 [end_date_ymd] => 2025-01-17 20:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:02:05' and `end` < '2025-01-17 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-17 20:02:18] Production.INFO: count ==3356 [2025-01-17 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:02:05 - End Time 2025-01-17 20:02:05 [2025-01-17 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270607', 'tblTempUsageDetail_20' ) start [2025-01-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270607', 'tblTempUsageDetail_20' ) end [2025-01-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270607', 'tblTempVendorCDR_20' ) start [2025-01-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270607', 'tblTempVendorCDR_20' ) end [2025-01-17 20:02:18] Production.INFO: ProcessCDR(1,14270607,1,1,2) [2025-01-17 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270607', 'tblTempUsageDetail_20' ) start [2025-01-17 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270607', 'tblTempUsageDetail_20' ) end [2025-01-17 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:02:23] Production.INFO: ==32337== Releasing lock... [2025-01-17 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:02:23] Production.INFO: 54 MB #Memory Used# [2025-01-17 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:03:05 [end_date_ymd] => 2025-01-17 20:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:03:05' and `end` < '2025-01-17 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-17 20:03:17] Production.INFO: count ==3356 [2025-01-17 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:03:05 - End Time 2025-01-17 20:03:05 [2025-01-17 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270612', 'tblTempUsageDetail_20' ) start [2025-01-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270612', 'tblTempUsageDetail_20' ) end [2025-01-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270612', 'tblTempVendorCDR_20' ) start [2025-01-17 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270612', 'tblTempVendorCDR_20' ) end [2025-01-17 20:03:18] Production.INFO: ProcessCDR(1,14270612,1,1,2) [2025-01-17 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270612', 'tblTempUsageDetail_20' ) start [2025-01-17 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270612', 'tblTempUsageDetail_20' ) end [2025-01-17 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:03:22] Production.INFO: ==32406== Releasing lock... [2025-01-17 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:03:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-17 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:04:05 [end_date_ymd] => 2025-01-17 20:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:04:05' and `end` < '2025-01-17 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-17 20:04:18] Production.INFO: count ==3352 [2025-01-17 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:04:05 - End Time 2025-01-17 20:04:05 [2025-01-17 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270617', 'tblTempUsageDetail_20' ) start [2025-01-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270617', 'tblTempUsageDetail_20' ) end [2025-01-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270617', 'tblTempVendorCDR_20' ) start [2025-01-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270617', 'tblTempVendorCDR_20' ) end [2025-01-17 20:04:19] Production.INFO: ProcessCDR(1,14270617,1,1,2) [2025-01-17 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270617', 'tblTempUsageDetail_20' ) start [2025-01-17 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270617', 'tblTempUsageDetail_20' ) end [2025-01-17 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:04:24] Production.INFO: ==32484== Releasing lock... [2025-01-17 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:04:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-17 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:05:06 [end_date_ymd] => 2025-01-17 20:05:06 [RateCDR] => 1 ) [2025-01-17 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-17 17:05:06' and `end` < '2025-01-17 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-17 20:05:18] Production.INFO: count ==3354 [2025-01-17 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:05:06 - End Time 2025-01-17 20:05:06 [2025-01-17 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270622', 'tblTempUsageDetail_20' ) start [2025-01-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270622', 'tblTempUsageDetail_20' ) end [2025-01-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270622', 'tblTempVendorCDR_20' ) start [2025-01-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270622', 'tblTempVendorCDR_20' ) end [2025-01-17 20:05:19] Production.INFO: ProcessCDR(1,14270622,1,1,2) [2025-01-17 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270622', 'tblTempUsageDetail_20' ) start [2025-01-17 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270622', 'tblTempUsageDetail_20' ) end [2025-01-17 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:05:24] Production.INFO: ==32555== Releasing lock... [2025-01-17 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:05:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-17 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:06:05 [end_date_ymd] => 2025-01-17 20:06:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:06:05' and `end` < '2025-01-17 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-17 20:06:18] Production.INFO: count ==3348 [2025-01-17 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:06:05 - End Time 2025-01-17 20:06:05 [2025-01-17 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270627', 'tblTempUsageDetail_20' ) start [2025-01-17 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270627', 'tblTempUsageDetail_20' ) end [2025-01-17 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270627', 'tblTempVendorCDR_20' ) start [2025-01-17 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270627', 'tblTempVendorCDR_20' ) end [2025-01-17 20:06:18] Production.INFO: ProcessCDR(1,14270627,1,1,2) [2025-01-17 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270627', 'tblTempUsageDetail_20' ) start [2025-01-17 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270627', 'tblTempUsageDetail_20' ) end [2025-01-17 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:06:22] Production.INFO: ==32638== Releasing lock... [2025-01-17 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:06:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-17 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:07:05 [end_date_ymd] => 2025-01-17 20:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:07:05' and `end` < '2025-01-17 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-17 20:07:18] Production.INFO: count ==3327 [2025-01-17 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:07:05 - End Time 2025-01-17 20:07:05 [2025-01-17 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270632', 'tblTempUsageDetail_20' ) start [2025-01-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270632', 'tblTempUsageDetail_20' ) end [2025-01-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270632', 'tblTempVendorCDR_20' ) start [2025-01-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270632', 'tblTempVendorCDR_20' ) end [2025-01-17 20:07:19] Production.INFO: ProcessCDR(1,14270632,1,1,2) [2025-01-17 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270632', 'tblTempUsageDetail_20' ) start [2025-01-17 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270632', 'tblTempUsageDetail_20' ) end [2025-01-17 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:07:22] Production.INFO: ==32752== Releasing lock... [2025-01-17 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:07:22] Production.INFO: 53 MB #Memory Used# [2025-01-17 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:08:05 [end_date_ymd] => 2025-01-17 20:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:08:05' and `end` < '2025-01-17 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-17 20:08:18] Production.INFO: count ==3309 [2025-01-17 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:08:05 - End Time 2025-01-17 20:08:05 [2025-01-17 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270637', 'tblTempUsageDetail_20' ) start [2025-01-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270637', 'tblTempUsageDetail_20' ) end [2025-01-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270637', 'tblTempVendorCDR_20' ) start [2025-01-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270637', 'tblTempVendorCDR_20' ) end [2025-01-17 20:08:19] Production.INFO: ProcessCDR(1,14270637,1,1,2) [2025-01-17 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270637', 'tblTempUsageDetail_20' ) start [2025-01-17 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270637', 'tblTempUsageDetail_20' ) end [2025-01-17 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:08:22] Production.INFO: ==421== Releasing lock... [2025-01-17 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:08:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-17 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:09:05 [end_date_ymd] => 2025-01-17 20:09:05 [RateCDR] => 1 ) [2025-01-17 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:09:05' and `end` < '2025-01-17 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:09:18] Production.INFO: count ==3295 [2025-01-17 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:09:05 - End Time 2025-01-17 20:09:05 [2025-01-17 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270642', 'tblTempUsageDetail_20' ) start [2025-01-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270642', 'tblTempUsageDetail_20' ) end [2025-01-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270642', 'tblTempVendorCDR_20' ) start [2025-01-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270642', 'tblTempVendorCDR_20' ) end [2025-01-17 20:09:19] Production.INFO: ProcessCDR(1,14270642,1,1,2) [2025-01-17 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270642', 'tblTempUsageDetail_20' ) start [2025-01-17 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270642', 'tblTempUsageDetail_20' ) end [2025-01-17 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:09:22] Production.INFO: ==538== Releasing lock... [2025-01-17 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:09:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-17 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:10:05 [end_date_ymd] => 2025-01-17 20:10:05 [RateCDR] => 1 ) [2025-01-17 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:10:05' and `end` < '2025-01-17 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:10:18] Production.INFO: count ==3291 [2025-01-17 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:10:05 - End Time 2025-01-17 20:10:05 [2025-01-17 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270647', 'tblTempUsageDetail_20' ) start [2025-01-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270647', 'tblTempUsageDetail_20' ) end [2025-01-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270647', 'tblTempVendorCDR_20' ) start [2025-01-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270647', 'tblTempVendorCDR_20' ) end [2025-01-17 20:10:19] Production.INFO: ProcessCDR(1,14270647,1,1,2) [2025-01-17 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270647', 'tblTempUsageDetail_20' ) start [2025-01-17 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270647', 'tblTempUsageDetail_20' ) end [2025-01-17 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:10:22] Production.INFO: ==664== Releasing lock... [2025-01-17 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:10:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-17 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:11:05 [end_date_ymd] => 2025-01-17 20:11:05 [RateCDR] => 1 ) [2025-01-17 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:11:05' and `end` < '2025-01-17 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:11:18] Production.INFO: count ==3237 [2025-01-17 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:11:05 - End Time 2025-01-17 20:11:05 [2025-01-17 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270653', 'tblTempUsageDetail_20' ) start [2025-01-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270653', 'tblTempUsageDetail_20' ) end [2025-01-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270653', 'tblTempVendorCDR_20' ) start [2025-01-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270653', 'tblTempVendorCDR_20' ) end [2025-01-17 20:11:19] Production.INFO: ProcessCDR(1,14270653,1,1,2) [2025-01-17 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270653', 'tblTempUsageDetail_20' ) start [2025-01-17 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270653', 'tblTempUsageDetail_20' ) end [2025-01-17 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:11:23] Production.INFO: ==862== Releasing lock... [2025-01-17 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:11:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-17 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:12:05 [end_date_ymd] => 2025-01-17 20:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:12:05' and `end` < '2025-01-17 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-17 20:12:18] Production.INFO: count ==3227 [2025-01-17 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:12:05 - End Time 2025-01-17 20:12:05 [2025-01-17 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270658', 'tblTempUsageDetail_20' ) start [2025-01-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270658', 'tblTempUsageDetail_20' ) end [2025-01-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270658', 'tblTempVendorCDR_20' ) start [2025-01-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270658', 'tblTempVendorCDR_20' ) end [2025-01-17 20:12:19] Production.INFO: ProcessCDR(1,14270658,1,1,2) [2025-01-17 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270658', 'tblTempUsageDetail_20' ) start [2025-01-17 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270658', 'tblTempUsageDetail_20' ) end [2025-01-17 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:12:22] Production.INFO: ==1018== Releasing lock... [2025-01-17 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:12:22] Production.INFO: 52 MB #Memory Used# [2025-01-17 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:13:05 [end_date_ymd] => 2025-01-17 20:13:05 [RateCDR] => 1 ) [2025-01-17 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:13:05' and `end` < '2025-01-17 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:13:18] Production.INFO: count ==3218 [2025-01-17 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:13:05 - End Time 2025-01-17 20:13:05 [2025-01-17 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270663', 'tblTempUsageDetail_20' ) start [2025-01-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270663', 'tblTempUsageDetail_20' ) end [2025-01-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270663', 'tblTempVendorCDR_20' ) start [2025-01-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270663', 'tblTempVendorCDR_20' ) end [2025-01-17 20:13:19] Production.INFO: ProcessCDR(1,14270663,1,1,2) [2025-01-17 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270663', 'tblTempUsageDetail_20' ) start [2025-01-17 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270663', 'tblTempUsageDetail_20' ) end [2025-01-17 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:13:23] Production.INFO: ==1176== Releasing lock... [2025-01-17 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:13:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:14:05 [end_date_ymd] => 2025-01-17 20:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:14:05' and `end` < '2025-01-17 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-17 20:14:18] Production.INFO: count ==3218 [2025-01-17 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:14:05 - End Time 2025-01-17 20:14:05 [2025-01-17 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270668', 'tblTempUsageDetail_20' ) start [2025-01-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270668', 'tblTempUsageDetail_20' ) end [2025-01-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270668', 'tblTempVendorCDR_20' ) start [2025-01-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270668', 'tblTempVendorCDR_20' ) end [2025-01-17 20:14:19] Production.INFO: ProcessCDR(1,14270668,1,1,2) [2025-01-17 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270668', 'tblTempUsageDetail_20' ) start [2025-01-17 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270668', 'tblTempUsageDetail_20' ) end [2025-01-17 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:14:23] Production.INFO: ==1307== Releasing lock... [2025-01-17 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:14:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:15:04 [end_date_ymd] => 2025-01-17 20:15:04 [RateCDR] => 1 ) [2025-01-17 20:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:15:04' and `end` < '2025-01-17 20:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:15:17] Production.INFO: count ==3212 [2025-01-17 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:15:04 - End Time 2025-01-17 20:15:04 [2025-01-17 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270673', 'tblTempUsageDetail_20' ) start [2025-01-17 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270673', 'tblTempUsageDetail_20' ) end [2025-01-17 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270673', 'tblTempVendorCDR_20' ) start [2025-01-17 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270673', 'tblTempVendorCDR_20' ) end [2025-01-17 20:15:18] Production.INFO: ProcessCDR(1,14270673,1,1,2) [2025-01-17 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270673', 'tblTempUsageDetail_20' ) start [2025-01-17 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270673', 'tblTempUsageDetail_20' ) end [2025-01-17 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:15:22] Production.INFO: ==1428== Releasing lock... [2025-01-17 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:15:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-17 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:16:05 [end_date_ymd] => 2025-01-17 20:16:05 [RateCDR] => 1 ) [2025-01-17 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:16:05' and `end` < '2025-01-17 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:16:18] Production.INFO: count ==3200 [2025-01-17 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:16:05 - End Time 2025-01-17 20:16:05 [2025-01-17 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270678', 'tblTempUsageDetail_20' ) start [2025-01-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270678', 'tblTempUsageDetail_20' ) end [2025-01-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270678', 'tblTempVendorCDR_20' ) start [2025-01-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270678', 'tblTempVendorCDR_20' ) end [2025-01-17 20:16:19] Production.INFO: ProcessCDR(1,14270678,1,1,2) [2025-01-17 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270678', 'tblTempUsageDetail_20' ) start [2025-01-17 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270678', 'tblTempUsageDetail_20' ) end [2025-01-17 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:16:23] Production.INFO: ==1605== Releasing lock... [2025-01-17 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:16:23] Production.INFO: 52 MB #Memory Used# [2025-01-17 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:17:04 [end_date_ymd] => 2025-01-17 20:17:04 [RateCDR] => 1 ) [2025-01-17 20:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:17:04' and `end` < '2025-01-17 20:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:17:18] Production.INFO: count ==3199 [2025-01-17 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:17:04 - End Time 2025-01-17 20:17:04 [2025-01-17 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270683', 'tblTempUsageDetail_20' ) start [2025-01-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270683', 'tblTempUsageDetail_20' ) end [2025-01-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270683', 'tblTempVendorCDR_20' ) start [2025-01-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270683', 'tblTempVendorCDR_20' ) end [2025-01-17 20:17:19] Production.INFO: ProcessCDR(1,14270683,1,1,2) [2025-01-17 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270683', 'tblTempUsageDetail_20' ) start [2025-01-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270683', 'tblTempUsageDetail_20' ) end [2025-01-17 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:17:23] Production.INFO: ==1757== Releasing lock... [2025-01-17 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:17:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-17 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:18:05 [end_date_ymd] => 2025-01-17 20:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:18:05' and `end` < '2025-01-17 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-17 20:18:21] Production.INFO: count ==3195 [2025-01-17 20:18:22] Production.ERROR: pbx CDR StartTime 2025-01-17 17:18:05 - End Time 2025-01-17 20:18:05 [2025-01-17 20:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270688', 'tblTempUsageDetail_20' ) start [2025-01-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270688', 'tblTempUsageDetail_20' ) end [2025-01-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270688', 'tblTempVendorCDR_20' ) start [2025-01-17 20:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270688', 'tblTempVendorCDR_20' ) end [2025-01-17 20:18:22] Production.INFO: ProcessCDR(1,14270688,1,1,2) [2025-01-17 20:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270688', 'tblTempUsageDetail_20' ) start [2025-01-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270688', 'tblTempUsageDetail_20' ) end [2025-01-17 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:18:25] Production.INFO: ==1939== Releasing lock... [2025-01-17 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:18:25] Production.INFO: 51.75 MB #Memory Used# [2025-01-17 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:19:05 [end_date_ymd] => 2025-01-17 20:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:19:05' and `end` < '2025-01-17 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-17 20:19:18] Production.INFO: count ==3200 [2025-01-17 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:19:05 - End Time 2025-01-17 20:19:05 [2025-01-17 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270693', 'tblTempUsageDetail_20' ) start [2025-01-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270693', 'tblTempUsageDetail_20' ) end [2025-01-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270693', 'tblTempVendorCDR_20' ) start [2025-01-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270693', 'tblTempVendorCDR_20' ) end [2025-01-17 20:19:19] Production.INFO: ProcessCDR(1,14270693,1,1,2) [2025-01-17 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270693', 'tblTempUsageDetail_20' ) start [2025-01-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270693', 'tblTempUsageDetail_20' ) end [2025-01-17 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:19:23] Production.INFO: ==2069== Releasing lock... [2025-01-17 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:19:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-17 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:20:06 [end_date_ymd] => 2025-01-17 20:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 17:20:06' and `end` < '2025-01-17 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-17 20:20:19] Production.INFO: count ==3204 [2025-01-17 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:20:06 - End Time 2025-01-17 20:20:06 [2025-01-17 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270698', 'tblTempUsageDetail_20' ) start [2025-01-17 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270698', 'tblTempUsageDetail_20' ) end [2025-01-17 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270698', 'tblTempVendorCDR_20' ) start [2025-01-17 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270698', 'tblTempVendorCDR_20' ) end [2025-01-17 20:20:19] Production.INFO: ProcessCDR(1,14270698,1,1,2) [2025-01-17 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270698', 'tblTempUsageDetail_20' ) start [2025-01-17 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270698', 'tblTempUsageDetail_20' ) end [2025-01-17 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:20:23] Production.INFO: ==2188== Releasing lock... [2025-01-17 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:20:23] Production.INFO: 52 MB #Memory Used# [2025-01-17 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:21:04 [end_date_ymd] => 2025-01-17 20:21:04 [RateCDR] => 1 ) [2025-01-17 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:21:04' and `end` < '2025-01-17 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:21:17] Production.INFO: count ==3141 [2025-01-17 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:21:04 - End Time 2025-01-17 20:21:04 [2025-01-17 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270704', 'tblTempUsageDetail_20' ) start [2025-01-17 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270704', 'tblTempUsageDetail_20' ) end [2025-01-17 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270704', 'tblTempVendorCDR_20' ) start [2025-01-17 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270704', 'tblTempVendorCDR_20' ) end [2025-01-17 20:21:18] Production.INFO: ProcessCDR(1,14270704,1,1,2) [2025-01-17 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270704', 'tblTempUsageDetail_20' ) start [2025-01-17 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270704', 'tblTempUsageDetail_20' ) end [2025-01-17 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:21:21] Production.INFO: ==2287== Releasing lock... [2025-01-17 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:21:21] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:22:05 [end_date_ymd] => 2025-01-17 20:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:22:05' and `end` < '2025-01-17 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-17 20:22:18] Production.INFO: count ==3137 [2025-01-17 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:22:05 - End Time 2025-01-17 20:22:05 [2025-01-17 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270709', 'tblTempUsageDetail_20' ) start [2025-01-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270709', 'tblTempUsageDetail_20' ) end [2025-01-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270709', 'tblTempVendorCDR_20' ) start [2025-01-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270709', 'tblTempVendorCDR_20' ) end [2025-01-17 20:22:19] Production.INFO: ProcessCDR(1,14270709,1,1,2) [2025-01-17 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270709', 'tblTempUsageDetail_20' ) start [2025-01-17 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270709', 'tblTempUsageDetail_20' ) end [2025-01-17 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:22:22] Production.INFO: ==2372== Releasing lock... [2025-01-17 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:22:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:23:05 [end_date_ymd] => 2025-01-17 20:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:23:05' and `end` < '2025-01-17 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-17 20:23:18] Production.INFO: count ==3133 [2025-01-17 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:23:05 - End Time 2025-01-17 20:23:05 [2025-01-17 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270714', 'tblTempUsageDetail_20' ) start [2025-01-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270714', 'tblTempUsageDetail_20' ) end [2025-01-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270714', 'tblTempVendorCDR_20' ) start [2025-01-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270714', 'tblTempVendorCDR_20' ) end [2025-01-17 20:23:19] Production.INFO: ProcessCDR(1,14270714,1,1,2) [2025-01-17 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270714', 'tblTempUsageDetail_20' ) start [2025-01-17 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270714', 'tblTempUsageDetail_20' ) end [2025-01-17 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:23:22] Production.INFO: ==2441== Releasing lock... [2025-01-17 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:23:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:24:05 [end_date_ymd] => 2025-01-17 20:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:24:05' and `end` < '2025-01-17 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-17 20:24:18] Production.INFO: count ==3133 [2025-01-17 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:24:05 - End Time 2025-01-17 20:24:05 [2025-01-17 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270719', 'tblTempUsageDetail_20' ) start [2025-01-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270719', 'tblTempUsageDetail_20' ) end [2025-01-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270719', 'tblTempVendorCDR_20' ) start [2025-01-17 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270719', 'tblTempVendorCDR_20' ) end [2025-01-17 20:24:18] Production.INFO: ProcessCDR(1,14270719,1,1,2) [2025-01-17 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270719', 'tblTempUsageDetail_20' ) start [2025-01-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270719', 'tblTempUsageDetail_20' ) end [2025-01-17 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:24:22] Production.INFO: ==2512== Releasing lock... [2025-01-17 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:24:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:25:05 [end_date_ymd] => 2025-01-17 20:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:25:05' and `end` < '2025-01-17 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-17 20:25:18] Production.INFO: count ==3129 [2025-01-17 20:25:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:25:05 - End Time 2025-01-17 20:25:05 [2025-01-17 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270724', 'tblTempUsageDetail_20' ) start [2025-01-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270724', 'tblTempUsageDetail_20' ) end [2025-01-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270724', 'tblTempVendorCDR_20' ) start [2025-01-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270724', 'tblTempVendorCDR_20' ) end [2025-01-17 20:25:19] Production.INFO: ProcessCDR(1,14270724,1,1,2) [2025-01-17 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270724', 'tblTempUsageDetail_20' ) start [2025-01-17 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270724', 'tblTempUsageDetail_20' ) end [2025-01-17 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:25:23] Production.INFO: ==2582== Releasing lock... [2025-01-17 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:25:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-17 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:26:04 [end_date_ymd] => 2025-01-17 20:26:04 [RateCDR] => 1 ) [2025-01-17 20:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:26:04' and `end` < '2025-01-17 20:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:26:17] Production.INFO: count ==3115 [2025-01-17 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:26:04 - End Time 2025-01-17 20:26:04 [2025-01-17 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270729', 'tblTempUsageDetail_20' ) start [2025-01-17 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270729', 'tblTempUsageDetail_20' ) end [2025-01-17 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270729', 'tblTempVendorCDR_20' ) start [2025-01-17 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270729', 'tblTempVendorCDR_20' ) end [2025-01-17 20:26:18] Production.INFO: ProcessCDR(1,14270729,1,1,2) [2025-01-17 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270729', 'tblTempUsageDetail_20' ) start [2025-01-17 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270729', 'tblTempUsageDetail_20' ) end [2025-01-17 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:26:21] Production.INFO: ==2652== Releasing lock... [2025-01-17 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:26:21] Production.INFO: 51.5 MB #Memory Used# [2025-01-17 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:27:05 [end_date_ymd] => 2025-01-17 20:27:05 [RateCDR] => 1 ) [2025-01-17 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:27:05' and `end` < '2025-01-17 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:27:17] Production.INFO: count ==3110 [2025-01-17 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:27:05 - End Time 2025-01-17 20:27:05 [2025-01-17 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270734', 'tblTempUsageDetail_20' ) start [2025-01-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270734', 'tblTempUsageDetail_20' ) end [2025-01-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270734', 'tblTempVendorCDR_20' ) start [2025-01-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270734', 'tblTempVendorCDR_20' ) end [2025-01-17 20:27:18] Production.INFO: ProcessCDR(1,14270734,1,1,2) [2025-01-17 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270734', 'tblTempUsageDetail_20' ) start [2025-01-17 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270734', 'tblTempUsageDetail_20' ) end [2025-01-17 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:27:21] Production.INFO: ==2763== Releasing lock... [2025-01-17 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:27:21] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:28:05 [end_date_ymd] => 2025-01-17 20:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:28:05' and `end` < '2025-01-17 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-17 20:28:19] Production.INFO: count ==3111 [2025-01-17 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-17 17:28:05 - End Time 2025-01-17 20:28:05 [2025-01-17 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270739', 'tblTempUsageDetail_20' ) start [2025-01-17 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270739', 'tblTempUsageDetail_20' ) end [2025-01-17 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270739', 'tblTempVendorCDR_20' ) start [2025-01-17 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270739', 'tblTempVendorCDR_20' ) end [2025-01-17 20:28:20] Production.INFO: ProcessCDR(1,14270739,1,1,2) [2025-01-17 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270739', 'tblTempUsageDetail_20' ) start [2025-01-17 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270739', 'tblTempUsageDetail_20' ) end [2025-01-17 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:28:25] Production.INFO: ==2834== Releasing lock... [2025-01-17 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:28:25] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:29:05 [end_date_ymd] => 2025-01-17 20:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:29:05' and `end` < '2025-01-17 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-17 20:29:18] Production.INFO: count ==3110 [2025-01-17 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:29:05 - End Time 2025-01-17 20:29:05 [2025-01-17 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270744', 'tblTempUsageDetail_20' ) start [2025-01-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270744', 'tblTempUsageDetail_20' ) end [2025-01-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270744', 'tblTempVendorCDR_20' ) start [2025-01-17 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270744', 'tblTempVendorCDR_20' ) end [2025-01-17 20:29:18] Production.INFO: ProcessCDR(1,14270744,1,1,2) [2025-01-17 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270744', 'tblTempUsageDetail_20' ) start [2025-01-17 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270744', 'tblTempUsageDetail_20' ) end [2025-01-17 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:29:22] Production.INFO: ==2904== Releasing lock... [2025-01-17 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:29:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-17 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:30:05 [end_date_ymd] => 2025-01-17 20:30:05 [RateCDR] => 1 ) [2025-01-17 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:30:05' and `end` < '2025-01-17 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-17 20:30:18] Production.INFO: count ==3085 [2025-01-17 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:30:05 - End Time 2025-01-17 20:30:05 [2025-01-17 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270749', 'tblTempUsageDetail_20' ) start [2025-01-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270749', 'tblTempUsageDetail_20' ) end [2025-01-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270749', 'tblTempVendorCDR_20' ) start [2025-01-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270749', 'tblTempVendorCDR_20' ) end [2025-01-17 20:30:19] Production.INFO: ProcessCDR(1,14270749,1,1,2) [2025-01-17 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270749', 'tblTempUsageDetail_20' ) start [2025-01-17 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270749', 'tblTempUsageDetail_20' ) end [2025-01-17 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:30:22] Production.INFO: ==2979== Releasing lock... [2025-01-17 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:30:22] Production.INFO: 51 MB #Memory Used# [2025-01-17 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:31:05 [end_date_ymd] => 2025-01-17 20:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:31:05' and `end` < '2025-01-17 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-17 20:31:17] Production.INFO: count ==3017 [2025-01-17 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:31:05 - End Time 2025-01-17 20:31:05 [2025-01-17 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270755', 'tblTempUsageDetail_20' ) start [2025-01-17 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270755', 'tblTempUsageDetail_20' ) end [2025-01-17 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270755', 'tblTempVendorCDR_20' ) start [2025-01-17 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270755', 'tblTempVendorCDR_20' ) end [2025-01-17 20:31:18] Production.INFO: ProcessCDR(1,14270755,1,1,2) [2025-01-17 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270755', 'tblTempUsageDetail_20' ) start [2025-01-17 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270755', 'tblTempUsageDetail_20' ) end [2025-01-17 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:31:22] Production.INFO: ==3051== Releasing lock... [2025-01-17 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:31:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-17 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:32:05 [end_date_ymd] => 2025-01-17 20:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:32:05' and `end` < '2025-01-17 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-17 20:32:18] Production.INFO: count ==2974 [2025-01-17 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:32:05 - End Time 2025-01-17 20:32:05 [2025-01-17 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270760', 'tblTempUsageDetail_20' ) start [2025-01-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270760', 'tblTempUsageDetail_20' ) end [2025-01-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270760', 'tblTempVendorCDR_20' ) start [2025-01-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270760', 'tblTempVendorCDR_20' ) end [2025-01-17 20:32:19] Production.INFO: ProcessCDR(1,14270760,1,1,2) [2025-01-17 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270760', 'tblTempUsageDetail_20' ) start [2025-01-17 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270760', 'tblTempUsageDetail_20' ) end [2025-01-17 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:32:22] Production.INFO: ==3126== Releasing lock... [2025-01-17 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:32:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-17 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:33:05 [end_date_ymd] => 2025-01-17 20:33:05 [RateCDR] => 1 ) [2025-01-17 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:33:05' and `end` < '2025-01-17 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:33:18] Production.INFO: count ==2974 [2025-01-17 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:33:05 - End Time 2025-01-17 20:33:05 [2025-01-17 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270765', 'tblTempUsageDetail_20' ) start [2025-01-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270765', 'tblTempUsageDetail_20' ) end [2025-01-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270765', 'tblTempVendorCDR_20' ) start [2025-01-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270765', 'tblTempVendorCDR_20' ) end [2025-01-17 20:33:19] Production.INFO: ProcessCDR(1,14270765,1,1,2) [2025-01-17 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270765', 'tblTempUsageDetail_20' ) start [2025-01-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270765', 'tblTempUsageDetail_20' ) end [2025-01-17 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:33:22] Production.INFO: ==3201== Releasing lock... [2025-01-17 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:33:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-17 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:34:05 [end_date_ymd] => 2025-01-17 20:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:34:05' and `end` < '2025-01-17 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-17 20:34:18] Production.INFO: count ==2918 [2025-01-17 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:34:05 - End Time 2025-01-17 20:34:05 [2025-01-17 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270770', 'tblTempUsageDetail_20' ) start [2025-01-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270770', 'tblTempUsageDetail_20' ) end [2025-01-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270770', 'tblTempVendorCDR_20' ) start [2025-01-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270770', 'tblTempVendorCDR_20' ) end [2025-01-17 20:34:19] Production.INFO: ProcessCDR(1,14270770,1,1,2) [2025-01-17 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270770', 'tblTempUsageDetail_20' ) start [2025-01-17 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270770', 'tblTempUsageDetail_20' ) end [2025-01-17 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:34:22] Production.INFO: ==3271== Releasing lock... [2025-01-17 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:34:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-17 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:35:05 [end_date_ymd] => 2025-01-17 20:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:35:05' and `end` < '2025-01-17 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-17 20:35:17] Production.INFO: count ==2894 [2025-01-17 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:35:05 - End Time 2025-01-17 20:35:05 [2025-01-17 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270775', 'tblTempUsageDetail_20' ) start [2025-01-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270775', 'tblTempUsageDetail_20' ) end [2025-01-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270775', 'tblTempVendorCDR_20' ) start [2025-01-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270775', 'tblTempVendorCDR_20' ) end [2025-01-17 20:35:18] Production.INFO: ProcessCDR(1,14270775,1,1,2) [2025-01-17 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270775', 'tblTempUsageDetail_20' ) start [2025-01-17 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270775', 'tblTempUsageDetail_20' ) end [2025-01-17 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:35:23] Production.INFO: ==3343== Releasing lock... [2025-01-17 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:35:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:36:05 [end_date_ymd] => 2025-01-17 20:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:36:05' and `end` < '2025-01-17 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-17 20:36:18] Production.INFO: count ==2869 [2025-01-17 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:36:05 - End Time 2025-01-17 20:36:05 [2025-01-17 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270780', 'tblTempUsageDetail_20' ) start [2025-01-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270780', 'tblTempUsageDetail_20' ) end [2025-01-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270780', 'tblTempVendorCDR_20' ) start [2025-01-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270780', 'tblTempVendorCDR_20' ) end [2025-01-17 20:36:19] Production.INFO: ProcessCDR(1,14270780,1,1,2) [2025-01-17 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270780', 'tblTempUsageDetail_20' ) start [2025-01-17 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270780', 'tblTempUsageDetail_20' ) end [2025-01-17 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:36:23] Production.INFO: ==3416== Releasing lock... [2025-01-17 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:36:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:37:04 [end_date_ymd] => 2025-01-17 20:37:04 [RateCDR] => 1 ) [2025-01-17 20:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:37:04' and `end` < '2025-01-17 20:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:37:17] Production.INFO: count ==2859 [2025-01-17 20:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 17:37:04 - End Time 2025-01-17 20:37:04 [2025-01-17 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270783', 'tblTempUsageDetail_20' ) start [2025-01-17 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270783', 'tblTempUsageDetail_20' ) end [2025-01-17 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270783', 'tblTempVendorCDR_20' ) start [2025-01-17 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270783', 'tblTempVendorCDR_20' ) end [2025-01-17 20:37:17] Production.INFO: ProcessCDR(1,14270783,1,1,2) [2025-01-17 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270783', 'tblTempUsageDetail_20' ) start [2025-01-17 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270783', 'tblTempUsageDetail_20' ) end [2025-01-17 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:37:21] Production.INFO: ==3486== Releasing lock... [2025-01-17 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:37:21] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:38:05 [end_date_ymd] => 2025-01-17 20:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:38:05' and `end` < '2025-01-17 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-17 20:38:18] Production.INFO: count ==2860 [2025-01-17 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:38:05 - End Time 2025-01-17 20:38:05 [2025-01-17 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270790', 'tblTempUsageDetail_20' ) start [2025-01-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270790', 'tblTempUsageDetail_20' ) end [2025-01-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270790', 'tblTempVendorCDR_20' ) start [2025-01-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270790', 'tblTempVendorCDR_20' ) end [2025-01-17 20:38:19] Production.INFO: ProcessCDR(1,14270790,1,1,2) [2025-01-17 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270790', 'tblTempUsageDetail_20' ) start [2025-01-17 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270790', 'tblTempUsageDetail_20' ) end [2025-01-17 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:38:22] Production.INFO: ==3561== Releasing lock... [2025-01-17 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:38:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:39:05 [end_date_ymd] => 2025-01-17 20:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:39:05' and `end` < '2025-01-17 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-17 20:39:18] Production.INFO: count ==2859 [2025-01-17 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:39:05 - End Time 2025-01-17 20:39:05 [2025-01-17 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270795', 'tblTempUsageDetail_20' ) start [2025-01-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270795', 'tblTempUsageDetail_20' ) end [2025-01-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270795', 'tblTempVendorCDR_20' ) start [2025-01-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270795', 'tblTempVendorCDR_20' ) end [2025-01-17 20:39:18] Production.INFO: ProcessCDR(1,14270795,1,1,2) [2025-01-17 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270795', 'tblTempUsageDetail_20' ) start [2025-01-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270795', 'tblTempUsageDetail_20' ) end [2025-01-17 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:39:22] Production.INFO: ==3637== Releasing lock... [2025-01-17 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:39:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-17 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:40:06 [end_date_ymd] => 2025-01-17 20:40:06 [RateCDR] => 1 ) [2025-01-17 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:40:06' and `end` < '2025-01-17 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:40:18] Production.INFO: count ==2859 [2025-01-17 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:40:06 - End Time 2025-01-17 20:40:06 [2025-01-17 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270801', 'tblTempUsageDetail_20' ) start [2025-01-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270801', 'tblTempUsageDetail_20' ) end [2025-01-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270801', 'tblTempVendorCDR_20' ) start [2025-01-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270801', 'tblTempVendorCDR_20' ) end [2025-01-17 20:40:19] Production.INFO: ProcessCDR(1,14270801,1,1,2) [2025-01-17 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270801', 'tblTempUsageDetail_20' ) start [2025-01-17 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270801', 'tblTempUsageDetail_20' ) end [2025-01-17 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:40:24] Production.INFO: ==3713== Releasing lock... [2025-01-17 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:40:24] Production.INFO: 49 MB #Memory Used# [2025-01-17 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:41:05 [end_date_ymd] => 2025-01-17 20:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:41:05' and `end` < '2025-01-17 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-17 20:41:18] Production.INFO: count ==2815 [2025-01-17 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:41:05 - End Time 2025-01-17 20:41:05 [2025-01-17 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270806', 'tblTempUsageDetail_20' ) start [2025-01-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270806', 'tblTempUsageDetail_20' ) end [2025-01-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270806', 'tblTempVendorCDR_20' ) start [2025-01-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270806', 'tblTempVendorCDR_20' ) end [2025-01-17 20:41:19] Production.INFO: ProcessCDR(1,14270806,1,1,2) [2025-01-17 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270806', 'tblTempUsageDetail_20' ) start [2025-01-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270806', 'tblTempUsageDetail_20' ) end [2025-01-17 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:41:22] Production.INFO: ==3789== Releasing lock... [2025-01-17 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:41:22] Production.INFO: 49 MB #Memory Used# [2025-01-17 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:42:04 [end_date_ymd] => 2025-01-17 20:42:04 [RateCDR] => 1 ) [2025-01-17 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:42:04' and `end` < '2025-01-17 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:42:17] Production.INFO: count ==2807 [2025-01-17 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:42:04 - End Time 2025-01-17 20:42:04 [2025-01-17 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270811', 'tblTempUsageDetail_20' ) start [2025-01-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270811', 'tblTempUsageDetail_20' ) end [2025-01-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270811', 'tblTempVendorCDR_20' ) start [2025-01-17 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270811', 'tblTempVendorCDR_20' ) end [2025-01-17 20:42:18] Production.INFO: ProcessCDR(1,14270811,1,1,2) [2025-01-17 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270811', 'tblTempUsageDetail_20' ) start [2025-01-17 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270811', 'tblTempUsageDetail_20' ) end [2025-01-17 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:42:21] Production.INFO: ==3907== Releasing lock... [2025-01-17 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:42:21] Production.INFO: 49 MB #Memory Used# [2025-01-17 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:43:05 [end_date_ymd] => 2025-01-17 20:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:43:05' and `end` < '2025-01-17 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-17 20:43:18] Production.INFO: count ==2799 [2025-01-17 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:43:05 - End Time 2025-01-17 20:43:05 [2025-01-17 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270816', 'tblTempUsageDetail_20' ) start [2025-01-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270816', 'tblTempUsageDetail_20' ) end [2025-01-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270816', 'tblTempVendorCDR_20' ) start [2025-01-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270816', 'tblTempVendorCDR_20' ) end [2025-01-17 20:43:19] Production.INFO: ProcessCDR(1,14270816,1,1,2) [2025-01-17 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270816', 'tblTempUsageDetail_20' ) start [2025-01-17 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270816', 'tblTempUsageDetail_20' ) end [2025-01-17 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:43:23] Production.INFO: ==3983== Releasing lock... [2025-01-17 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:43:23] Production.INFO: 49 MB #Memory Used# [2025-01-17 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:44:04 [end_date_ymd] => 2025-01-17 20:44:04 [RateCDR] => 1 ) [2025-01-17 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:44:04' and `end` < '2025-01-17 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:44:17] Production.INFO: count ==2793 [2025-01-17 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:44:04 - End Time 2025-01-17 20:44:04 [2025-01-17 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270821', 'tblTempUsageDetail_20' ) start [2025-01-17 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270821', 'tblTempUsageDetail_20' ) end [2025-01-17 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270821', 'tblTempVendorCDR_20' ) start [2025-01-17 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270821', 'tblTempVendorCDR_20' ) end [2025-01-17 20:44:18] Production.INFO: ProcessCDR(1,14270821,1,1,2) [2025-01-17 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270821', 'tblTempUsageDetail_20' ) start [2025-01-17 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270821', 'tblTempUsageDetail_20' ) end [2025-01-17 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:44:21] Production.INFO: ==4056== Releasing lock... [2025-01-17 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:44:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:45:05 [end_date_ymd] => 2025-01-17 20:45:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:45:05' and `end` < '2025-01-17 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-17 20:45:18] Production.INFO: count ==2786 [2025-01-17 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:45:05 - End Time 2025-01-17 20:45:05 [2025-01-17 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270826', 'tblTempUsageDetail_20' ) start [2025-01-17 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270826', 'tblTempUsageDetail_20' ) end [2025-01-17 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270826', 'tblTempVendorCDR_20' ) start [2025-01-17 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270826', 'tblTempVendorCDR_20' ) end [2025-01-17 20:45:18] Production.INFO: ProcessCDR(1,14270826,1,1,2) [2025-01-17 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270826', 'tblTempUsageDetail_20' ) start [2025-01-17 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270826', 'tblTempUsageDetail_20' ) end [2025-01-17 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:45:21] Production.INFO: ==4131== Releasing lock... [2025-01-17 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:45:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:46:05 [end_date_ymd] => 2025-01-17 20:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:46:05' and `end` < '2025-01-17 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-17 20:46:19] Production.INFO: count ==2774 [2025-01-17 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:46:05 - End Time 2025-01-17 20:46:05 [2025-01-17 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270831', 'tblTempUsageDetail_20' ) start [2025-01-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270831', 'tblTempUsageDetail_20' ) end [2025-01-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270831', 'tblTempVendorCDR_20' ) start [2025-01-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270831', 'tblTempVendorCDR_20' ) end [2025-01-17 20:46:19] Production.INFO: ProcessCDR(1,14270831,1,1,2) [2025-01-17 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270831', 'tblTempUsageDetail_20' ) start [2025-01-17 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270831', 'tblTempUsageDetail_20' ) end [2025-01-17 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:46:23] Production.INFO: ==4203== Releasing lock... [2025-01-17 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:46:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:47:05 [end_date_ymd] => 2025-01-17 20:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:47:05' and `end` < '2025-01-17 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-17 20:47:17] Production.INFO: count ==2753 [2025-01-17 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:47:05 - End Time 2025-01-17 20:47:05 [2025-01-17 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270836', 'tblTempUsageDetail_20' ) start [2025-01-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270836', 'tblTempUsageDetail_20' ) end [2025-01-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270836', 'tblTempVendorCDR_20' ) start [2025-01-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270836', 'tblTempVendorCDR_20' ) end [2025-01-17 20:47:18] Production.INFO: ProcessCDR(1,14270836,1,1,2) [2025-01-17 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270836', 'tblTempUsageDetail_20' ) start [2025-01-17 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270836', 'tblTempUsageDetail_20' ) end [2025-01-17 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:47:21] Production.INFO: ==4280== Releasing lock... [2025-01-17 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:47:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-17 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:48:05 [end_date_ymd] => 2025-01-17 20:48:05 [RateCDR] => 1 ) [2025-01-17 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:48:05' and `end` < '2025-01-17 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:48:17] Production.INFO: count ==2746 [2025-01-17 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:48:05 - End Time 2025-01-17 20:48:05 [2025-01-17 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270841', 'tblTempUsageDetail_20' ) start [2025-01-17 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270841', 'tblTempUsageDetail_20' ) end [2025-01-17 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270841', 'tblTempVendorCDR_20' ) start [2025-01-17 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270841', 'tblTempVendorCDR_20' ) end [2025-01-17 20:48:18] Production.INFO: ProcessCDR(1,14270841,1,1,2) [2025-01-17 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270841', 'tblTempUsageDetail_20' ) start [2025-01-17 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270841', 'tblTempUsageDetail_20' ) end [2025-01-17 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:48:22] Production.INFO: ==4354== Releasing lock... [2025-01-17 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:48:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-17 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:49:05 [end_date_ymd] => 2025-01-17 20:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:49:05' and `end` < '2025-01-17 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-17 20:49:18] Production.INFO: count ==2730 [2025-01-17 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:49:05 - End Time 2025-01-17 20:49:05 [2025-01-17 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270846', 'tblTempUsageDetail_20' ) start [2025-01-17 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270846', 'tblTempUsageDetail_20' ) end [2025-01-17 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270846', 'tblTempVendorCDR_20' ) start [2025-01-17 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270846', 'tblTempVendorCDR_20' ) end [2025-01-17 20:49:19] Production.INFO: ProcessCDR(1,14270846,1,1,2) [2025-01-17 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270846', 'tblTempUsageDetail_20' ) start [2025-01-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270846', 'tblTempUsageDetail_20' ) end [2025-01-17 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:49:22] Production.INFO: ==4430== Releasing lock... [2025-01-17 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:49:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-17 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:50:05 [end_date_ymd] => 2025-01-17 20:50:05 [RateCDR] => 1 ) [2025-01-17 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:50:05' and `end` < '2025-01-17 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:50:18] Production.INFO: count ==2717 [2025-01-17 20:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:50:05 - End Time 2025-01-17 20:50:05 [2025-01-17 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270851', 'tblTempUsageDetail_20' ) start [2025-01-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270851', 'tblTempUsageDetail_20' ) end [2025-01-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270851', 'tblTempVendorCDR_20' ) start [2025-01-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270851', 'tblTempVendorCDR_20' ) end [2025-01-17 20:50:19] Production.INFO: ProcessCDR(1,14270851,1,1,2) [2025-01-17 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270851', 'tblTempUsageDetail_20' ) start [2025-01-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270851', 'tblTempUsageDetail_20' ) end [2025-01-17 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:50:23] Production.INFO: ==4502== Releasing lock... [2025-01-17 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:50:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-17 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:51:05 [end_date_ymd] => 2025-01-17 20:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:51:05' and `end` < '2025-01-17 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-17 20:51:18] Production.INFO: count ==2666 [2025-01-17 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:51:05 - End Time 2025-01-17 20:51:05 [2025-01-17 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270857', 'tblTempUsageDetail_20' ) start [2025-01-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270857', 'tblTempUsageDetail_20' ) end [2025-01-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270857', 'tblTempVendorCDR_20' ) start [2025-01-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270857', 'tblTempVendorCDR_20' ) end [2025-01-17 20:51:19] Production.INFO: ProcessCDR(1,14270857,1,1,2) [2025-01-17 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270857', 'tblTempUsageDetail_20' ) start [2025-01-17 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270857', 'tblTempUsageDetail_20' ) end [2025-01-17 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:51:24] Production.INFO: ==4582== Releasing lock... [2025-01-17 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:51:24] Production.INFO: 48 MB #Memory Used# [2025-01-17 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:52:05 [end_date_ymd] => 2025-01-17 20:52:05 [RateCDR] => 1 ) [2025-01-17 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:52:05' and `end` < '2025-01-17 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:52:18] Production.INFO: count ==2666 [2025-01-17 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:52:05 - End Time 2025-01-17 20:52:05 [2025-01-17 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270862', 'tblTempUsageDetail_20' ) start [2025-01-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270862', 'tblTempUsageDetail_20' ) end [2025-01-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270862', 'tblTempVendorCDR_20' ) start [2025-01-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270862', 'tblTempVendorCDR_20' ) end [2025-01-17 20:52:19] Production.INFO: ProcessCDR(1,14270862,1,1,2) [2025-01-17 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270862', 'tblTempUsageDetail_20' ) start [2025-01-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270862', 'tblTempUsageDetail_20' ) end [2025-01-17 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:52:23] Production.INFO: ==4654== Releasing lock... [2025-01-17 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:52:23] Production.INFO: 48 MB #Memory Used# [2025-01-17 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:53:05 [end_date_ymd] => 2025-01-17 20:53:05 [RateCDR] => 1 ) [2025-01-17 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:53:05' and `end` < '2025-01-17 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:53:18] Production.INFO: count ==2665 [2025-01-17 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:53:05 - End Time 2025-01-17 20:53:05 [2025-01-17 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270867', 'tblTempUsageDetail_20' ) start [2025-01-17 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270867', 'tblTempUsageDetail_20' ) end [2025-01-17 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270867', 'tblTempVendorCDR_20' ) start [2025-01-17 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270867', 'tblTempVendorCDR_20' ) end [2025-01-17 20:53:19] Production.INFO: ProcessCDR(1,14270867,1,1,2) [2025-01-17 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270867', 'tblTempUsageDetail_20' ) start [2025-01-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270867', 'tblTempUsageDetail_20' ) end [2025-01-17 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:53:22] Production.INFO: ==4725== Releasing lock... [2025-01-17 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:53:22] Production.INFO: 48 MB #Memory Used# [2025-01-17 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:54:05 [end_date_ymd] => 2025-01-17 20:54:05 [RateCDR] => 1 ) [2025-01-17 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:54:05' and `end` < '2025-01-17 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:54:17] Production.INFO: count ==2650 [2025-01-17 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:54:05 - End Time 2025-01-17 20:54:05 [2025-01-17 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270872', 'tblTempUsageDetail_20' ) start [2025-01-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270872', 'tblTempUsageDetail_20' ) end [2025-01-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270872', 'tblTempVendorCDR_20' ) start [2025-01-17 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270872', 'tblTempVendorCDR_20' ) end [2025-01-17 20:54:18] Production.INFO: ProcessCDR(1,14270872,1,1,2) [2025-01-17 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270872', 'tblTempUsageDetail_20' ) start [2025-01-17 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270872', 'tblTempUsageDetail_20' ) end [2025-01-17 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:54:21] Production.INFO: ==4795== Releasing lock... [2025-01-17 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:54:21] Production.INFO: 48 MB #Memory Used# [2025-01-17 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:55:05 [end_date_ymd] => 2025-01-17 20:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:55:05' and `end` < '2025-01-17 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-17 20:55:18] Production.INFO: count ==2643 [2025-01-17 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:55:05 - End Time 2025-01-17 20:55:05 [2025-01-17 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270877', 'tblTempUsageDetail_20' ) start [2025-01-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270877', 'tblTempUsageDetail_20' ) end [2025-01-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270877', 'tblTempVendorCDR_20' ) start [2025-01-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270877', 'tblTempVendorCDR_20' ) end [2025-01-17 20:55:18] Production.INFO: ProcessCDR(1,14270877,1,1,2) [2025-01-17 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270877', 'tblTempUsageDetail_20' ) start [2025-01-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270877', 'tblTempUsageDetail_20' ) end [2025-01-17 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:55:22] Production.INFO: ==4864== Releasing lock... [2025-01-17 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:55:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:56:05 [end_date_ymd] => 2025-01-17 20:56:05 [RateCDR] => 1 ) [2025-01-17 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 17:56:05' and `end` < '2025-01-17 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 20:56:18] Production.INFO: count ==2642 [2025-01-17 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:56:05 - End Time 2025-01-17 20:56:05 [2025-01-17 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270882', 'tblTempUsageDetail_20' ) start [2025-01-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270882', 'tblTempUsageDetail_20' ) end [2025-01-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270882', 'tblTempVendorCDR_20' ) start [2025-01-17 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270882', 'tblTempVendorCDR_20' ) end [2025-01-17 20:56:18] Production.INFO: ProcessCDR(1,14270882,1,1,2) [2025-01-17 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270882', 'tblTempUsageDetail_20' ) start [2025-01-17 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270882', 'tblTempUsageDetail_20' ) end [2025-01-17 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:56:23] Production.INFO: ==4938== Releasing lock... [2025-01-17 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:56:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:57:05 [end_date_ymd] => 2025-01-17 20:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:57:05' and `end` < '2025-01-17 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-17 20:57:18] Production.INFO: count ==2642 [2025-01-17 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:57:05 - End Time 2025-01-17 20:57:05 [2025-01-17 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270887', 'tblTempUsageDetail_20' ) start [2025-01-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270887', 'tblTempUsageDetail_20' ) end [2025-01-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270887', 'tblTempVendorCDR_20' ) start [2025-01-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270887', 'tblTempVendorCDR_20' ) end [2025-01-17 20:57:19] Production.INFO: ProcessCDR(1,14270887,1,1,2) [2025-01-17 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270887', 'tblTempUsageDetail_20' ) start [2025-01-17 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270887', 'tblTempUsageDetail_20' ) end [2025-01-17 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:57:22] Production.INFO: ==5009== Releasing lock... [2025-01-17 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:57:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:58:05 [end_date_ymd] => 2025-01-17 20:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:58:05' and `end` < '2025-01-17 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-17 20:58:19] Production.INFO: count ==2640 [2025-01-17 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 17:58:05 - End Time 2025-01-17 20:58:05 [2025-01-17 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270892', 'tblTempUsageDetail_20' ) start [2025-01-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270892', 'tblTempUsageDetail_20' ) end [2025-01-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270892', 'tblTempVendorCDR_20' ) start [2025-01-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270892', 'tblTempVendorCDR_20' ) end [2025-01-17 20:58:19] Production.INFO: ProcessCDR(1,14270892,1,1,2) [2025-01-17 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270892', 'tblTempUsageDetail_20' ) start [2025-01-17 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270892', 'tblTempUsageDetail_20' ) end [2025-01-17 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:58:22] Production.INFO: ==5124== Releasing lock... [2025-01-17 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:58:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 17:59:05 [end_date_ymd] => 2025-01-17 20:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 17:59:05' and `end` < '2025-01-17 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-17 20:59:18] Production.INFO: count ==2634 [2025-01-17 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 17:59:05 - End Time 2025-01-17 20:59:05 [2025-01-17 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270897', 'tblTempUsageDetail_20' ) start [2025-01-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270897', 'tblTempUsageDetail_20' ) end [2025-01-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270897', 'tblTempVendorCDR_20' ) start [2025-01-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270897', 'tblTempVendorCDR_20' ) end [2025-01-17 20:59:18] Production.INFO: ProcessCDR(1,14270897,1,1,2) [2025-01-17 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270897', 'tblTempUsageDetail_20' ) start [2025-01-17 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270897', 'tblTempUsageDetail_20' ) end [2025-01-17 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 20:59:22] Production.INFO: ==5196== Releasing lock... [2025-01-17 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 20:59:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:00:05 [end_date_ymd] => 2025-01-17 21:00:05 [RateCDR] => 1 ) [2025-01-17 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:00:05' and `end` < '2025-01-17 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:00:18] Production.INFO: count ==2624 [2025-01-17 21:00:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:00:05 - End Time 2025-01-17 21:00:05 [2025-01-17 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270902', 'tblTempUsageDetail_20' ) start [2025-01-17 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270902', 'tblTempUsageDetail_20' ) end [2025-01-17 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270902', 'tblTempVendorCDR_20' ) start [2025-01-17 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270902', 'tblTempVendorCDR_20' ) end [2025-01-17 21:00:18] Production.INFO: ProcessCDR(1,14270902,1,1,2) [2025-01-17 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270902', 'tblTempUsageDetail_20' ) start [2025-01-17 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270902', 'tblTempUsageDetail_20' ) end [2025-01-17 21:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:00:21] Production.INFO: ==5267== Releasing lock... [2025-01-17 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:00:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-17 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:01:05 [end_date_ymd] => 2025-01-17 21:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:01:05' and `end` < '2025-01-17 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-17 21:01:18] Production.INFO: count ==2542 [2025-01-17 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:01:05 - End Time 2025-01-17 21:01:05 [2025-01-17 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270908', 'tblTempUsageDetail_20' ) start [2025-01-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270908', 'tblTempUsageDetail_20' ) end [2025-01-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270908', 'tblTempVendorCDR_20' ) start [2025-01-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270908', 'tblTempVendorCDR_20' ) end [2025-01-17 21:01:19] Production.INFO: ProcessCDR(1,14270908,1,1,2) [2025-01-17 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270908', 'tblTempUsageDetail_20' ) start [2025-01-17 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270908', 'tblTempUsageDetail_20' ) end [2025-01-17 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:01:23] Production.INFO: ==5351== Releasing lock... [2025-01-17 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:01:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-17 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:02:05 [end_date_ymd] => 2025-01-17 21:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:02:05' and `end` < '2025-01-17 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-17 21:02:18] Production.INFO: count ==2524 [2025-01-17 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:02:05 - End Time 2025-01-17 21:02:05 [2025-01-17 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270913', 'tblTempUsageDetail_20' ) start [2025-01-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270913', 'tblTempUsageDetail_20' ) end [2025-01-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270913', 'tblTempVendorCDR_20' ) start [2025-01-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270913', 'tblTempVendorCDR_20' ) end [2025-01-17 21:02:19] Production.INFO: ProcessCDR(1,14270913,1,1,2) [2025-01-17 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270913', 'tblTempUsageDetail_20' ) start [2025-01-17 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270913', 'tblTempUsageDetail_20' ) end [2025-01-17 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:02:22] Production.INFO: ==5429== Releasing lock... [2025-01-17 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:02:22] Production.INFO: 47 MB #Memory Used# [2025-01-17 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:03:05 [end_date_ymd] => 2025-01-17 21:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:03:05' and `end` < '2025-01-17 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-17 21:03:17] Production.INFO: count ==2523 [2025-01-17 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:03:05 - End Time 2025-01-17 21:03:05 [2025-01-17 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270918', 'tblTempUsageDetail_20' ) start [2025-01-17 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270918', 'tblTempUsageDetail_20' ) end [2025-01-17 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270918', 'tblTempVendorCDR_20' ) start [2025-01-17 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270918', 'tblTempVendorCDR_20' ) end [2025-01-17 21:03:18] Production.INFO: ProcessCDR(1,14270918,1,1,2) [2025-01-17 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270918', 'tblTempUsageDetail_20' ) start [2025-01-17 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270918', 'tblTempUsageDetail_20' ) end [2025-01-17 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:03:21] Production.INFO: ==5498== Releasing lock... [2025-01-17 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:03:21] Production.INFO: 47 MB #Memory Used# [2025-01-17 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:04:05 [end_date_ymd] => 2025-01-17 21:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:04:05' and `end` < '2025-01-17 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-17 21:04:18] Production.INFO: count ==2495 [2025-01-17 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:04:05 - End Time 2025-01-17 21:04:05 [2025-01-17 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270923', 'tblTempUsageDetail_20' ) start [2025-01-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270923', 'tblTempUsageDetail_20' ) end [2025-01-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270923', 'tblTempVendorCDR_20' ) start [2025-01-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270923', 'tblTempVendorCDR_20' ) end [2025-01-17 21:04:19] Production.INFO: ProcessCDR(1,14270923,1,1,2) [2025-01-17 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270923', 'tblTempUsageDetail_20' ) start [2025-01-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270923', 'tblTempUsageDetail_20' ) end [2025-01-17 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:04:22] Production.INFO: ==5569== Releasing lock... [2025-01-17 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:04:22] Production.INFO: 47 MB #Memory Used# [2025-01-17 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:05:05 [end_date_ymd] => 2025-01-17 21:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:05:05' and `end` < '2025-01-17 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-17 21:05:18] Production.INFO: count ==2439 [2025-01-17 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:05:05 - End Time 2025-01-17 21:05:05 [2025-01-17 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270928', 'tblTempUsageDetail_20' ) start [2025-01-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270928', 'tblTempUsageDetail_20' ) end [2025-01-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270928', 'tblTempVendorCDR_20' ) start [2025-01-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270928', 'tblTempVendorCDR_20' ) end [2025-01-17 21:05:18] Production.INFO: ProcessCDR(1,14270928,1,1,2) [2025-01-17 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270928', 'tblTempUsageDetail_20' ) start [2025-01-17 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270928', 'tblTempUsageDetail_20' ) end [2025-01-17 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:05:23] Production.INFO: ==5670== Releasing lock... [2025-01-17 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:05:23] Production.INFO: 46 MB #Memory Used# [2025-01-17 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:06:05 [end_date_ymd] => 2025-01-17 21:06:05 [RateCDR] => 1 ) [2025-01-17 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:06:05' and `end` < '2025-01-17 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:06:18] Production.INFO: count ==2439 [2025-01-17 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:06:05 - End Time 2025-01-17 21:06:05 [2025-01-17 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270933', 'tblTempUsageDetail_20' ) start [2025-01-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270933', 'tblTempUsageDetail_20' ) end [2025-01-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270933', 'tblTempVendorCDR_20' ) start [2025-01-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270933', 'tblTempVendorCDR_20' ) end [2025-01-17 21:06:19] Production.INFO: ProcessCDR(1,14270933,1,1,2) [2025-01-17 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270933', 'tblTempUsageDetail_20' ) start [2025-01-17 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270933', 'tblTempUsageDetail_20' ) end [2025-01-17 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:06:22] Production.INFO: ==5778== Releasing lock... [2025-01-17 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:06:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-17 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:07:04 [end_date_ymd] => 2025-01-17 21:07:04 [RateCDR] => 1 ) [2025-01-17 21:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:07:04' and `end` < '2025-01-17 21:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:07:18] Production.INFO: count ==2444 [2025-01-17 21:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:07:04 - End Time 2025-01-17 21:07:04 [2025-01-17 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270938', 'tblTempUsageDetail_20' ) start [2025-01-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270938', 'tblTempUsageDetail_20' ) end [2025-01-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270938', 'tblTempVendorCDR_20' ) start [2025-01-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270938', 'tblTempVendorCDR_20' ) end [2025-01-17 21:07:19] Production.INFO: ProcessCDR(1,14270938,1,1,2) [2025-01-17 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270938', 'tblTempUsageDetail_20' ) start [2025-01-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270938', 'tblTempUsageDetail_20' ) end [2025-01-17 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:07:22] Production.INFO: ==5882== Releasing lock... [2025-01-17 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:07:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-17 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:08:05 [end_date_ymd] => 2025-01-17 21:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:08:05' and `end` < '2025-01-17 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-17 21:08:17] Production.INFO: count ==2429 [2025-01-17 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:08:05 - End Time 2025-01-17 21:08:05 [2025-01-17 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270943', 'tblTempUsageDetail_20' ) start [2025-01-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270943', 'tblTempUsageDetail_20' ) end [2025-01-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270943', 'tblTempVendorCDR_20' ) start [2025-01-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270943', 'tblTempVendorCDR_20' ) end [2025-01-17 21:08:18] Production.INFO: ProcessCDR(1,14270943,1,1,2) [2025-01-17 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270943', 'tblTempUsageDetail_20' ) start [2025-01-17 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270943', 'tblTempUsageDetail_20' ) end [2025-01-17 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:08:21] Production.INFO: ==5989== Releasing lock... [2025-01-17 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:08:21] Production.INFO: 46 MB #Memory Used# [2025-01-17 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:09:05 [end_date_ymd] => 2025-01-17 21:09:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:09:05' and `end` < '2025-01-17 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-17 21:09:17] Production.INFO: count ==2411 [2025-01-17 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:09:05 - End Time 2025-01-17 21:09:05 [2025-01-17 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270948', 'tblTempUsageDetail_20' ) start [2025-01-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270948', 'tblTempUsageDetail_20' ) end [2025-01-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270948', 'tblTempVendorCDR_20' ) start [2025-01-17 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270948', 'tblTempVendorCDR_20' ) end [2025-01-17 21:09:18] Production.INFO: ProcessCDR(1,14270948,1,1,2) [2025-01-17 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270948', 'tblTempUsageDetail_20' ) start [2025-01-17 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270948', 'tblTempUsageDetail_20' ) end [2025-01-17 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:09:21] Production.INFO: ==6092== Releasing lock... [2025-01-17 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:09:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-17 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:10:06 [end_date_ymd] => 2025-01-17 21:10:06 [RateCDR] => 1 ) [2025-01-17 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:10:06' and `end` < '2025-01-17 21: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-17 21:10:19] Production.INFO: count ==2398 [2025-01-17 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:10:06 - End Time 2025-01-17 21:10:06 [2025-01-17 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270954', 'tblTempUsageDetail_20' ) start [2025-01-17 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270954', 'tblTempUsageDetail_20' ) end [2025-01-17 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270954', 'tblTempVendorCDR_20' ) start [2025-01-17 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270954', 'tblTempVendorCDR_20' ) end [2025-01-17 21:10:19] Production.INFO: ProcessCDR(1,14270954,1,1,2) [2025-01-17 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270954', 'tblTempUsageDetail_20' ) start [2025-01-17 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270954', 'tblTempUsageDetail_20' ) end [2025-01-17 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:10:23] Production.INFO: ==6199== Releasing lock... [2025-01-17 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:10:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-17 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:11:05 [end_date_ymd] => 2025-01-17 21:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:11:05' and `end` < '2025-01-17 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-17 21:11:18] Production.INFO: count ==2345 [2025-01-17 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:11:05 - End Time 2025-01-17 21:11:05 [2025-01-17 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270959', 'tblTempUsageDetail_20' ) start [2025-01-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270959', 'tblTempUsageDetail_20' ) end [2025-01-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270959', 'tblTempVendorCDR_20' ) start [2025-01-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270959', 'tblTempVendorCDR_20' ) end [2025-01-17 21:11:19] Production.INFO: ProcessCDR(1,14270959,1,1,2) [2025-01-17 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270959', 'tblTempUsageDetail_20' ) start [2025-01-17 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270959', 'tblTempUsageDetail_20' ) end [2025-01-17 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:11:22] Production.INFO: ==6306== Releasing lock... [2025-01-17 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:11:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-17 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:12:05 [end_date_ymd] => 2025-01-17 21:12:05 [RateCDR] => 1 ) [2025-01-17 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:12:05' and `end` < '2025-01-17 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:12:18] Production.INFO: count ==2343 [2025-01-17 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:12:05 - End Time 2025-01-17 21:12:05 [2025-01-17 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270964', 'tblTempUsageDetail_20' ) start [2025-01-17 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270964', 'tblTempUsageDetail_20' ) end [2025-01-17 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270964', 'tblTempVendorCDR_20' ) start [2025-01-17 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270964', 'tblTempVendorCDR_20' ) end [2025-01-17 21:12:18] Production.INFO: ProcessCDR(1,14270964,1,1,2) [2025-01-17 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270964', 'tblTempUsageDetail_20' ) start [2025-01-17 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270964', 'tblTempUsageDetail_20' ) end [2025-01-17 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:12:22] Production.INFO: ==6407== Releasing lock... [2025-01-17 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:12:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:13:05 [end_date_ymd] => 2025-01-17 21:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:13:05' and `end` < '2025-01-17 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-17 21:13:18] Production.INFO: count ==2341 [2025-01-17 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:13:05 - End Time 2025-01-17 21:13:05 [2025-01-17 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270969', 'tblTempUsageDetail_20' ) start [2025-01-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270969', 'tblTempUsageDetail_20' ) end [2025-01-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270969', 'tblTempVendorCDR_20' ) start [2025-01-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270969', 'tblTempVendorCDR_20' ) end [2025-01-17 21:13:19] Production.INFO: ProcessCDR(1,14270969,1,1,2) [2025-01-17 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270969', 'tblTempUsageDetail_20' ) start [2025-01-17 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270969', 'tblTempUsageDetail_20' ) end [2025-01-17 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:13:23] Production.INFO: ==6555== Releasing lock... [2025-01-17 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-17 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:14:05 [end_date_ymd] => 2025-01-17 21:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:14:05' and `end` < '2025-01-17 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-17 21:14:18] Production.INFO: count ==2340 [2025-01-17 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:14:05 - End Time 2025-01-17 21:14:05 [2025-01-17 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270974', 'tblTempUsageDetail_20' ) start [2025-01-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270974', 'tblTempUsageDetail_20' ) end [2025-01-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270974', 'tblTempVendorCDR_20' ) start [2025-01-17 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270974', 'tblTempVendorCDR_20' ) end [2025-01-17 21:14:18] Production.INFO: ProcessCDR(1,14270974,1,1,2) [2025-01-17 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270974', 'tblTempUsageDetail_20' ) start [2025-01-17 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270974', 'tblTempUsageDetail_20' ) end [2025-01-17 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:14:22] Production.INFO: ==6660== Releasing lock... [2025-01-17 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:14:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:15:05 [end_date_ymd] => 2025-01-17 21:15:05 [RateCDR] => 1 ) [2025-01-17 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:15:05' and `end` < '2025-01-17 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:15:18] Production.INFO: count ==2337 [2025-01-17 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:15:05 - End Time 2025-01-17 21:15:05 [2025-01-17 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270979', 'tblTempUsageDetail_20' ) start [2025-01-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270979', 'tblTempUsageDetail_20' ) end [2025-01-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270979', 'tblTempVendorCDR_20' ) start [2025-01-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270979', 'tblTempVendorCDR_20' ) end [2025-01-17 21:15:18] Production.INFO: ProcessCDR(1,14270979,1,1,2) [2025-01-17 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270979', 'tblTempUsageDetail_20' ) start [2025-01-17 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270979', 'tblTempUsageDetail_20' ) end [2025-01-17 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:15:22] Production.INFO: ==6763== Releasing lock... [2025-01-17 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:15:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-17 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:16:05 [end_date_ymd] => 2025-01-17 21:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:16:05' and `end` < '2025-01-17 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-17 21:16:20] Production.INFO: count ==2336 [2025-01-17 21:16:20] Production.ERROR: pbx CDR StartTime 2025-01-17 18:16:05 - End Time 2025-01-17 21:16:05 [2025-01-17 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270984', 'tblTempUsageDetail_20' ) start [2025-01-17 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270984', 'tblTempUsageDetail_20' ) end [2025-01-17 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270984', 'tblTempVendorCDR_20' ) start [2025-01-17 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270984', 'tblTempVendorCDR_20' ) end [2025-01-17 21:16:20] Production.INFO: ProcessCDR(1,14270984,1,1,2) [2025-01-17 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270984', 'tblTempUsageDetail_20' ) start [2025-01-17 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270984', 'tblTempUsageDetail_20' ) end [2025-01-17 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:16:23] Production.INFO: ==6867== Releasing lock... [2025-01-17 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:16:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:17:05 [end_date_ymd] => 2025-01-17 21:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:17:05' and `end` < '2025-01-17 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-17 21:17:18] Production.INFO: count ==2336 [2025-01-17 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:17:05 - End Time 2025-01-17 21:17:05 [2025-01-17 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270989', 'tblTempUsageDetail_20' ) start [2025-01-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270989', 'tblTempUsageDetail_20' ) end [2025-01-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270989', 'tblTempVendorCDR_20' ) start [2025-01-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270989', 'tblTempVendorCDR_20' ) end [2025-01-17 21:17:18] Production.INFO: ProcessCDR(1,14270989,1,1,2) [2025-01-17 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270989', 'tblTempUsageDetail_20' ) start [2025-01-17 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270989', 'tblTempUsageDetail_20' ) end [2025-01-17 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:17:22] Production.INFO: ==6969== Releasing lock... [2025-01-17 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:17:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:18:05 [end_date_ymd] => 2025-01-17 21:18:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:18:05' and `end` < '2025-01-17 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-17 21:18:18] Production.INFO: count ==2336 [2025-01-17 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:18:05 - End Time 2025-01-17 21:18:05 [2025-01-17 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270994', 'tblTempUsageDetail_20' ) start [2025-01-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270994', 'tblTempUsageDetail_20' ) end [2025-01-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270994', 'tblTempVendorCDR_20' ) start [2025-01-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270994', 'tblTempVendorCDR_20' ) end [2025-01-17 21:18:19] Production.INFO: ProcessCDR(1,14270994,1,1,2) [2025-01-17 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270994', 'tblTempUsageDetail_20' ) start [2025-01-17 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270994', 'tblTempUsageDetail_20' ) end [2025-01-17 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:18:22] Production.INFO: ==7070== Releasing lock... [2025-01-17 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:18:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:19:05 [end_date_ymd] => 2025-01-17 21:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:19:05' and `end` < '2025-01-17 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-17 21:19:18] Production.INFO: count ==2340 [2025-01-17 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:19:05 - End Time 2025-01-17 21:19:05 [2025-01-17 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270999', 'tblTempUsageDetail_20' ) start [2025-01-17 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14270999', 'tblTempUsageDetail_20' ) end [2025-01-17 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270999', 'tblTempVendorCDR_20' ) start [2025-01-17 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14270999', 'tblTempVendorCDR_20' ) end [2025-01-17 21:19:19] Production.INFO: ProcessCDR(1,14270999,1,1,2) [2025-01-17 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14270999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14270999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14270999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14270999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270999', 'tblTempUsageDetail_20' ) start [2025-01-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14270999', 'tblTempUsageDetail_20' ) end [2025-01-17 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:19:22] Production.INFO: ==7179== Releasing lock... [2025-01-17 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:19:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-17 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:20:06 [end_date_ymd] => 2025-01-17 21:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 18:20:06' and `end` < '2025-01-17 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-17 21:20:18] Production.INFO: count ==2334 [2025-01-17 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:20:06 - End Time 2025-01-17 21:20:06 [2025-01-17 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271005', 'tblTempUsageDetail_20' ) start [2025-01-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271005', 'tblTempUsageDetail_20' ) end [2025-01-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271005', 'tblTempVendorCDR_20' ) start [2025-01-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271005', 'tblTempVendorCDR_20' ) end [2025-01-17 21:20:19] Production.INFO: ProcessCDR(1,14271005,1,1,2) [2025-01-17 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271005', 'tblTempUsageDetail_20' ) start [2025-01-17 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271005', 'tblTempUsageDetail_20' ) end [2025-01-17 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:20:22] Production.INFO: ==7286== Releasing lock... [2025-01-17 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:20:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-17 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:21:05 [end_date_ymd] => 2025-01-17 21:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:21:05' and `end` < '2025-01-17 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-17 21:21:18] Production.INFO: count ==2312 [2025-01-17 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:21:05 - End Time 2025-01-17 21:21:05 [2025-01-17 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271010', 'tblTempUsageDetail_20' ) start [2025-01-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271010', 'tblTempUsageDetail_20' ) end [2025-01-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271010', 'tblTempVendorCDR_20' ) start [2025-01-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271010', 'tblTempVendorCDR_20' ) end [2025-01-17 21:21:18] Production.INFO: ProcessCDR(1,14271010,1,1,2) [2025-01-17 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271010', 'tblTempUsageDetail_20' ) start [2025-01-17 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271010', 'tblTempUsageDetail_20' ) end [2025-01-17 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:21:22] Production.INFO: ==7391== Releasing lock... [2025-01-17 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:21:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:22:05 [end_date_ymd] => 2025-01-17 21:22:05 [RateCDR] => 1 ) [2025-01-17 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:22:05' and `end` < '2025-01-17 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:22:17] Production.INFO: count ==2312 [2025-01-17 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:22:05 - End Time 2025-01-17 21:22:05 [2025-01-17 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271014', 'tblTempUsageDetail_20' ) start [2025-01-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271014', 'tblTempUsageDetail_20' ) end [2025-01-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271014', 'tblTempVendorCDR_20' ) start [2025-01-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271014', 'tblTempVendorCDR_20' ) end [2025-01-17 21:22:18] Production.INFO: ProcessCDR(1,14271014,1,1,2) [2025-01-17 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271014', 'tblTempUsageDetail_20' ) start [2025-01-17 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271014', 'tblTempUsageDetail_20' ) end [2025-01-17 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:22:23] Production.INFO: ==7494== Releasing lock... [2025-01-17 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:22:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:23:06 [end_date_ymd] => 2025-01-17 21:23:06 [RateCDR] => 1 ) [2025-01-17 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:23:06' and `end` < '2025-01-17 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:23:18] Production.INFO: count ==2309 [2025-01-17 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:23:06 - End Time 2025-01-17 21:23:06 [2025-01-17 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271020', 'tblTempUsageDetail_20' ) start [2025-01-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271020', 'tblTempUsageDetail_20' ) end [2025-01-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271020', 'tblTempVendorCDR_20' ) start [2025-01-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271020', 'tblTempVendorCDR_20' ) end [2025-01-17 21:23:19] Production.INFO: ProcessCDR(1,14271020,1,1,2) [2025-01-17 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271020', 'tblTempUsageDetail_20' ) start [2025-01-17 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271020', 'tblTempUsageDetail_20' ) end [2025-01-17 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:23:23] Production.INFO: ==7596== Releasing lock... [2025-01-17 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:23:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:24:06 [end_date_ymd] => 2025-01-17 21:24:06 [RateCDR] => 1 ) [2025-01-17 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:24:06' and `end` < '2025-01-17 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:24:18] Production.INFO: count ==2312 [2025-01-17 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:24:06 - End Time 2025-01-17 21:24:06 [2025-01-17 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271025', 'tblTempUsageDetail_20' ) start [2025-01-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271025', 'tblTempUsageDetail_20' ) end [2025-01-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271025', 'tblTempVendorCDR_20' ) start [2025-01-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271025', 'tblTempVendorCDR_20' ) end [2025-01-17 21:24:19] Production.INFO: ProcessCDR(1,14271025,1,1,2) [2025-01-17 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271025', 'tblTempUsageDetail_20' ) start [2025-01-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271025', 'tblTempUsageDetail_20' ) end [2025-01-17 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:24:22] Production.INFO: ==7701== Releasing lock... [2025-01-17 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:24:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:25:05 [end_date_ymd] => 2025-01-17 21:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:25:05' and `end` < '2025-01-17 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-17 21:25:18] Production.INFO: count ==2298 [2025-01-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:25:05 - End Time 2025-01-17 21:25:05 [2025-01-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271030', 'tblTempUsageDetail_20' ) start [2025-01-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271030', 'tblTempUsageDetail_20' ) end [2025-01-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271030', 'tblTempVendorCDR_20' ) start [2025-01-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271030', 'tblTempVendorCDR_20' ) end [2025-01-17 21:25:18] Production.INFO: ProcessCDR(1,14271030,1,1,2) [2025-01-17 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271030', 'tblTempUsageDetail_20' ) start [2025-01-17 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271030', 'tblTempUsageDetail_20' ) end [2025-01-17 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:25:21] Production.INFO: ==7807== Releasing lock... [2025-01-17 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:25:21] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:26:05 [end_date_ymd] => 2025-01-17 21:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:26:05' and `end` < '2025-01-17 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-17 21:26:18] Production.INFO: count ==2291 [2025-01-17 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:26:05 - End Time 2025-01-17 21:26:05 [2025-01-17 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271035', 'tblTempUsageDetail_20' ) start [2025-01-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271035', 'tblTempUsageDetail_20' ) end [2025-01-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271035', 'tblTempVendorCDR_20' ) start [2025-01-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271035', 'tblTempVendorCDR_20' ) end [2025-01-17 21:26:18] Production.INFO: ProcessCDR(1,14271035,1,1,2) [2025-01-17 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271035', 'tblTempUsageDetail_20' ) start [2025-01-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271035', 'tblTempUsageDetail_20' ) end [2025-01-17 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:26:22] Production.INFO: ==7911== Releasing lock... [2025-01-17 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:26:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-17 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:27:04 [end_date_ymd] => 2025-01-17 21:27:04 [RateCDR] => 1 ) [2025-01-17 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:27:04' and `end` < '2025-01-17 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:27:17] Production.INFO: count ==2276 [2025-01-17 21:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 18:27:04 - End Time 2025-01-17 21:27:04 [2025-01-17 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271040', 'tblTempUsageDetail_20' ) start [2025-01-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271040', 'tblTempUsageDetail_20' ) end [2025-01-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271040', 'tblTempVendorCDR_20' ) start [2025-01-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271040', 'tblTempVendorCDR_20' ) end [2025-01-17 21:27:18] Production.INFO: ProcessCDR(1,14271040,1,1,2) [2025-01-17 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271040', 'tblTempUsageDetail_20' ) start [2025-01-17 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271040', 'tblTempUsageDetail_20' ) end [2025-01-17 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:27:21] Production.INFO: ==8015== Releasing lock... [2025-01-17 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:27:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-17 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:28:05 [end_date_ymd] => 2025-01-17 21:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:28:05' and `end` < '2025-01-17 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-17 21:28:19] Production.INFO: count ==2261 [2025-01-17 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:28:05 - End Time 2025-01-17 21:28:05 [2025-01-17 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271045', 'tblTempUsageDetail_20' ) start [2025-01-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271045', 'tblTempUsageDetail_20' ) end [2025-01-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271045', 'tblTempVendorCDR_20' ) start [2025-01-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271045', 'tblTempVendorCDR_20' ) end [2025-01-17 21:28:19] Production.INFO: ProcessCDR(1,14271045,1,1,2) [2025-01-17 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271045', 'tblTempUsageDetail_20' ) start [2025-01-17 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271045', 'tblTempUsageDetail_20' ) end [2025-01-17 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:28:24] Production.INFO: ==8119== Releasing lock... [2025-01-17 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:28:24] Production.INFO: 45 MB #Memory Used# [2025-01-17 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:29:05 [end_date_ymd] => 2025-01-17 21:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:29:05' and `end` < '2025-01-17 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-17 21:29:18] Production.INFO: count ==2260 [2025-01-17 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:29:05 - End Time 2025-01-17 21:29:05 [2025-01-17 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271050', 'tblTempUsageDetail_20' ) start [2025-01-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271050', 'tblTempUsageDetail_20' ) end [2025-01-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271050', 'tblTempVendorCDR_20' ) start [2025-01-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271050', 'tblTempVendorCDR_20' ) end [2025-01-17 21:29:18] Production.INFO: ProcessCDR(1,14271050,1,1,2) [2025-01-17 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271050', 'tblTempUsageDetail_20' ) start [2025-01-17 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271050', 'tblTempUsageDetail_20' ) end [2025-01-17 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:29:22] Production.INFO: ==8262== Releasing lock... [2025-01-17 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:29:22] Production.INFO: 45 MB #Memory Used# [2025-01-17 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:30:05 [end_date_ymd] => 2025-01-17 21:30:05 [RateCDR] => 1 ) [2025-01-17 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:30:05' and `end` < '2025-01-17 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:30:19] Production.INFO: count ==2257 [2025-01-17 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:30:05 - End Time 2025-01-17 21:30:05 [2025-01-17 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271054', 'tblTempUsageDetail_20' ) start [2025-01-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271054', 'tblTempUsageDetail_20' ) end [2025-01-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271054', 'tblTempVendorCDR_20' ) start [2025-01-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271054', 'tblTempVendorCDR_20' ) end [2025-01-17 21:30:19] Production.INFO: ProcessCDR(1,14271054,1,1,2) [2025-01-17 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271054', 'tblTempUsageDetail_20' ) start [2025-01-17 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271054', 'tblTempUsageDetail_20' ) end [2025-01-17 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:30:23] Production.INFO: ==8372== Releasing lock... [2025-01-17 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:30:23] Production.INFO: 45 MB #Memory Used# [2025-01-17 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:31:05 [end_date_ymd] => 2025-01-17 21:31:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:31:05' and `end` < '2025-01-17 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:31:18] Production.INFO: count ==2162 [2025-01-17 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:31:05 - End Time 2025-01-17 21:31:05 [2025-01-17 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271061', 'tblTempUsageDetail_20' ) start [2025-01-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271061', 'tblTempUsageDetail_20' ) end [2025-01-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271061', 'tblTempVendorCDR_20' ) start [2025-01-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271061', 'tblTempVendorCDR_20' ) end [2025-01-17 21:31:18] Production.INFO: ProcessCDR(1,14271061,1,1,2) [2025-01-17 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271061', 'tblTempUsageDetail_20' ) start [2025-01-17 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271061', 'tblTempUsageDetail_20' ) end [2025-01-17 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:31:21] Production.INFO: ==8480== Releasing lock... [2025-01-17 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:31:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-17 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:32:05 [end_date_ymd] => 2025-01-17 21:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:32:05' and `end` < '2025-01-17 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-17 21:32:18] Production.INFO: count ==2150 [2025-01-17 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:32:05 - End Time 2025-01-17 21:32:05 [2025-01-17 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271066', 'tblTempUsageDetail_20' ) start [2025-01-17 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271066', 'tblTempUsageDetail_20' ) end [2025-01-17 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271066', 'tblTempVendorCDR_20' ) start [2025-01-17 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271066', 'tblTempVendorCDR_20' ) end [2025-01-17 21:32:19] Production.INFO: ProcessCDR(1,14271066,1,1,2) [2025-01-17 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271066', 'tblTempUsageDetail_20' ) start [2025-01-17 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271066', 'tblTempUsageDetail_20' ) end [2025-01-17 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:32:22] Production.INFO: ==8585== Releasing lock... [2025-01-17 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:32:22] Production.INFO: 44 MB #Memory Used# [2025-01-17 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:33:05 [end_date_ymd] => 2025-01-17 21:33:05 [RateCDR] => 1 ) [2025-01-17 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:33:05' and `end` < '2025-01-17 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:33:18] Production.INFO: count ==2151 [2025-01-17 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:33:05 - End Time 2025-01-17 21:33:05 [2025-01-17 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271071', 'tblTempUsageDetail_20' ) start [2025-01-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271071', 'tblTempUsageDetail_20' ) end [2025-01-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271071', 'tblTempVendorCDR_20' ) start [2025-01-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271071', 'tblTempVendorCDR_20' ) end [2025-01-17 21:33:18] Production.INFO: ProcessCDR(1,14271071,1,1,2) [2025-01-17 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271071', 'tblTempUsageDetail_20' ) start [2025-01-17 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271071', 'tblTempUsageDetail_20' ) end [2025-01-17 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:33:22] Production.INFO: ==8692== Releasing lock... [2025-01-17 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:33:22] Production.INFO: 44 MB #Memory Used# [2025-01-17 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:34:05 [end_date_ymd] => 2025-01-17 21:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:34:05' and `end` < '2025-01-17 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-17 21:34:19] Production.INFO: count ==2135 [2025-01-17 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-17 18:34:05 - End Time 2025-01-17 21:34:05 [2025-01-17 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271076', 'tblTempUsageDetail_20' ) start [2025-01-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271076', 'tblTempUsageDetail_20' ) end [2025-01-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271076', 'tblTempVendorCDR_20' ) start [2025-01-17 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271076', 'tblTempVendorCDR_20' ) end [2025-01-17 21:34:20] Production.INFO: ProcessCDR(1,14271076,1,1,2) [2025-01-17 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271076', 'tblTempUsageDetail_20' ) start [2025-01-17 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271076', 'tblTempUsageDetail_20' ) end [2025-01-17 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:34:23] Production.INFO: ==8794== Releasing lock... [2025-01-17 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:34:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:35:05 [end_date_ymd] => 2025-01-17 21:35:05 [RateCDR] => 1 ) [2025-01-17 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:35:05' and `end` < '2025-01-17 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:35:17] Production.INFO: count ==2133 [2025-01-17 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:35:05 - End Time 2025-01-17 21:35:05 [2025-01-17 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271081', 'tblTempUsageDetail_20' ) start [2025-01-17 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271081', 'tblTempUsageDetail_20' ) end [2025-01-17 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271081', 'tblTempVendorCDR_20' ) start [2025-01-17 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271081', 'tblTempVendorCDR_20' ) end [2025-01-17 21:35:18] Production.INFO: ProcessCDR(1,14271081,1,1,2) [2025-01-17 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271081', 'tblTempUsageDetail_20' ) start [2025-01-17 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271081', 'tblTempUsageDetail_20' ) end [2025-01-17 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:35:21] Production.INFO: ==8896== Releasing lock... [2025-01-17 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:35:21] Production.INFO: 44 MB #Memory Used# [2025-01-17 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:36:05 [end_date_ymd] => 2025-01-17 21:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:36:05' and `end` < '2025-01-17 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-17 21:36:18] Production.INFO: count ==2131 [2025-01-17 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:36:05 - End Time 2025-01-17 21:36:05 [2025-01-17 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271086', 'tblTempUsageDetail_20' ) start [2025-01-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271086', 'tblTempUsageDetail_20' ) end [2025-01-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271086', 'tblTempVendorCDR_20' ) start [2025-01-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271086', 'tblTempVendorCDR_20' ) end [2025-01-17 21:36:18] Production.INFO: ProcessCDR(1,14271086,1,1,2) [2025-01-17 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271086', 'tblTempUsageDetail_20' ) start [2025-01-17 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271086', 'tblTempUsageDetail_20' ) end [2025-01-17 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:36:22] Production.INFO: ==8997== Releasing lock... [2025-01-17 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:36:22] Production.INFO: 44 MB #Memory Used# [2025-01-17 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:37:04 [end_date_ymd] => 2025-01-17 21:37:04 [RateCDR] => 1 ) [2025-01-17 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:37:04' and `end` < '2025-01-17 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:37:19] Production.INFO: count ==2110 [2025-01-17 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:37:04 - End Time 2025-01-17 21:37:04 [2025-01-17 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271091', 'tblTempUsageDetail_20' ) start [2025-01-17 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271091', 'tblTempUsageDetail_20' ) end [2025-01-17 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271091', 'tblTempVendorCDR_20' ) start [2025-01-17 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271091', 'tblTempVendorCDR_20' ) end [2025-01-17 21:37:19] Production.INFO: ProcessCDR(1,14271091,1,1,2) [2025-01-17 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271091', 'tblTempUsageDetail_20' ) start [2025-01-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271091', 'tblTempUsageDetail_20' ) end [2025-01-17 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:37:22] Production.INFO: ==9100== Releasing lock... [2025-01-17 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:37:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-17 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:38:05 [end_date_ymd] => 2025-01-17 21:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:38:05' and `end` < '2025-01-17 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-17 21:38:18] Production.INFO: count ==2109 [2025-01-17 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:38:05 - End Time 2025-01-17 21:38:05 [2025-01-17 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271096', 'tblTempUsageDetail_20' ) start [2025-01-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271096', 'tblTempUsageDetail_20' ) end [2025-01-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271096', 'tblTempVendorCDR_20' ) start [2025-01-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271096', 'tblTempVendorCDR_20' ) end [2025-01-17 21:38:19] Production.INFO: ProcessCDR(1,14271096,1,1,2) [2025-01-17 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271096', 'tblTempUsageDetail_20' ) start [2025-01-17 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271096', 'tblTempUsageDetail_20' ) end [2025-01-17 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:38:22] Production.INFO: ==9203== Releasing lock... [2025-01-17 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:38:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:39:06 [end_date_ymd] => 2025-01-17 21:39:06 [RateCDR] => 1 ) [2025-01-17 21: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-17 18:39:06' and `end` < '2025-01-17 21: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-17 21:39:18] Production.INFO: count ==2095 [2025-01-17 21:39:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:39:06 - End Time 2025-01-17 21:39:06 [2025-01-17 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271101', 'tblTempUsageDetail_20' ) start [2025-01-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271101', 'tblTempUsageDetail_20' ) end [2025-01-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271101', 'tblTempVendorCDR_20' ) start [2025-01-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271101', 'tblTempVendorCDR_20' ) end [2025-01-17 21:39:19] Production.INFO: ProcessCDR(1,14271101,1,1,2) [2025-01-17 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271101', 'tblTempUsageDetail_20' ) start [2025-01-17 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271101', 'tblTempUsageDetail_20' ) end [2025-01-17 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:39:22] Production.INFO: ==9310== Releasing lock... [2025-01-17 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:39:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:40:05 [end_date_ymd] => 2025-01-17 21:40:05 [RateCDR] => 1 ) [2025-01-17 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:40:05' and `end` < '2025-01-17 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:40:18] Production.INFO: count ==2092 [2025-01-17 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:40:05 - End Time 2025-01-17 21:40:05 [2025-01-17 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271107', 'tblTempUsageDetail_20' ) start [2025-01-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271107', 'tblTempUsageDetail_20' ) end [2025-01-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271107', 'tblTempVendorCDR_20' ) start [2025-01-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271107', 'tblTempVendorCDR_20' ) end [2025-01-17 21:40:18] Production.INFO: ProcessCDR(1,14271107,1,1,2) [2025-01-17 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271107', 'tblTempUsageDetail_20' ) start [2025-01-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271107', 'tblTempUsageDetail_20' ) end [2025-01-17 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:40:22] Production.INFO: ==9417== Releasing lock... [2025-01-17 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:40:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-17 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:41:06 [end_date_ymd] => 2025-01-17 21:41:06 [RateCDR] => 1 ) [2025-01-17 21: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-17 18:41:06' and `end` < '2025-01-17 21: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-17 21:41:19] Production.INFO: count ==2042 [2025-01-17 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:41:06 - End Time 2025-01-17 21:41:06 [2025-01-17 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271112', 'tblTempUsageDetail_20' ) start [2025-01-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271112', 'tblTempUsageDetail_20' ) end [2025-01-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271112', 'tblTempVendorCDR_20' ) start [2025-01-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271112', 'tblTempVendorCDR_20' ) end [2025-01-17 21:41:19] Production.INFO: ProcessCDR(1,14271112,1,1,2) [2025-01-17 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271112', 'tblTempUsageDetail_20' ) start [2025-01-17 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271112', 'tblTempUsageDetail_20' ) end [2025-01-17 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:41:23] Production.INFO: ==9522== Releasing lock... [2025-01-17 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-17 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:42:05 [end_date_ymd] => 2025-01-17 21:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:42:05' and `end` < '2025-01-17 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-17 21:42:18] Production.INFO: count ==2025 [2025-01-17 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:42:05 - End Time 2025-01-17 21:42:05 [2025-01-17 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271117', 'tblTempUsageDetail_20' ) start [2025-01-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271117', 'tblTempUsageDetail_20' ) end [2025-01-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271117', 'tblTempVendorCDR_20' ) start [2025-01-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271117', 'tblTempVendorCDR_20' ) end [2025-01-17 21:42:18] Production.INFO: ProcessCDR(1,14271117,1,1,2) [2025-01-17 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271117', 'tblTempUsageDetail_20' ) start [2025-01-17 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271117', 'tblTempUsageDetail_20' ) end [2025-01-17 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:42:21] Production.INFO: ==9624== Releasing lock... [2025-01-17 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:42:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-17 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:43:06 [end_date_ymd] => 2025-01-17 21:43:06 [RateCDR] => 1 ) [2025-01-17 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:43:06' and `end` < '2025-01-17 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:43:20] Production.INFO: count ==2023 [2025-01-17 21:43:21] Production.ERROR: pbx CDR StartTime 2025-01-17 18:43:06 - End Time 2025-01-17 21:43:06 [2025-01-17 21:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271122', 'tblTempUsageDetail_20' ) start [2025-01-17 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271122', 'tblTempUsageDetail_20' ) end [2025-01-17 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271122', 'tblTempVendorCDR_20' ) start [2025-01-17 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271122', 'tblTempVendorCDR_20' ) end [2025-01-17 21:43:21] Production.INFO: ProcessCDR(1,14271122,1,1,2) [2025-01-17 21:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271122', 'tblTempUsageDetail_20' ) start [2025-01-17 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271122', 'tblTempUsageDetail_20' ) end [2025-01-17 21:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:43:25] Production.INFO: ==9726== Releasing lock... [2025-01-17 21:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:43:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-17 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:44:05 [end_date_ymd] => 2025-01-17 21:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:44:05' and `end` < '2025-01-17 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-17 21:44:18] Production.INFO: count ==2017 [2025-01-17 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:44:05 - End Time 2025-01-17 21:44:05 [2025-01-17 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271127', 'tblTempUsageDetail_20' ) start [2025-01-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271127', 'tblTempUsageDetail_20' ) end [2025-01-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271127', 'tblTempVendorCDR_20' ) start [2025-01-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271127', 'tblTempVendorCDR_20' ) end [2025-01-17 21:44:18] Production.INFO: ProcessCDR(1,14271127,1,1,2) [2025-01-17 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271127', 'tblTempUsageDetail_20' ) start [2025-01-17 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271127', 'tblTempUsageDetail_20' ) end [2025-01-17 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:44:22] Production.INFO: ==9831== Releasing lock... [2025-01-17 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:44:22] Production.INFO: 43 MB #Memory Used# [2025-01-17 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:45:06 [end_date_ymd] => 2025-01-17 21:45:06 [RateCDR] => 1 ) [2025-01-17 21: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-17 18:45:06' and `end` < '2025-01-17 21: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-17 21:45:18] Production.INFO: count ==2015 [2025-01-17 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:45:06 - End Time 2025-01-17 21:45:06 [2025-01-17 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271132', 'tblTempUsageDetail_20' ) start [2025-01-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271132', 'tblTempUsageDetail_20' ) end [2025-01-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271132', 'tblTempVendorCDR_20' ) start [2025-01-17 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271132', 'tblTempVendorCDR_20' ) end [2025-01-17 21:45:19] Production.INFO: ProcessCDR(1,14271132,1,1,2) [2025-01-17 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271132', 'tblTempUsageDetail_20' ) start [2025-01-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271132', 'tblTempUsageDetail_20' ) end [2025-01-17 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:45:22] Production.INFO: ==9978== Releasing lock... [2025-01-17 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:45:22] Production.INFO: 43 MB #Memory Used# [2025-01-17 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:46:05 [end_date_ymd] => 2025-01-17 21:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:46:05' and `end` < '2025-01-17 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-17 21:46:18] Production.INFO: count ==2015 [2025-01-17 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:46:05 - End Time 2025-01-17 21:46:05 [2025-01-17 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271137', 'tblTempUsageDetail_20' ) start [2025-01-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271137', 'tblTempUsageDetail_20' ) end [2025-01-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271137', 'tblTempVendorCDR_20' ) start [2025-01-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271137', 'tblTempVendorCDR_20' ) end [2025-01-17 21:46:19] Production.INFO: ProcessCDR(1,14271137,1,1,2) [2025-01-17 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271137', 'tblTempUsageDetail_20' ) start [2025-01-17 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271137', 'tblTempUsageDetail_20' ) end [2025-01-17 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:46:22] Production.INFO: ==10086== Releasing lock... [2025-01-17 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:46:22] Production.INFO: 43 MB #Memory Used# [2025-01-17 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:47:05 [end_date_ymd] => 2025-01-17 21:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:47:05' and `end` < '2025-01-17 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-17 21:47:18] Production.INFO: count ==2001 [2025-01-17 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:47:05 - End Time 2025-01-17 21:47:05 [2025-01-17 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271142', 'tblTempUsageDetail_20' ) start [2025-01-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271142', 'tblTempUsageDetail_20' ) end [2025-01-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271142', 'tblTempVendorCDR_20' ) start [2025-01-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271142', 'tblTempVendorCDR_20' ) end [2025-01-17 21:47:19] Production.INFO: ProcessCDR(1,14271142,1,1,2) [2025-01-17 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271142', 'tblTempUsageDetail_20' ) start [2025-01-17 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271142', 'tblTempUsageDetail_20' ) end [2025-01-17 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:47:22] Production.INFO: ==10191== Releasing lock... [2025-01-17 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:47:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-17 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:48:05 [end_date_ymd] => 2025-01-17 21:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:48:05' and `end` < '2025-01-17 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-17 21:48:17] Production.INFO: count ==1999 [2025-01-17 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:48:05 - End Time 2025-01-17 21:48:05 [2025-01-17 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271147', 'tblTempUsageDetail_20' ) start [2025-01-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271147', 'tblTempUsageDetail_20' ) end [2025-01-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271147', 'tblTempVendorCDR_20' ) start [2025-01-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271147', 'tblTempVendorCDR_20' ) end [2025-01-17 21:48:18] Production.INFO: ProcessCDR(1,14271147,1,1,2) [2025-01-17 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271147', 'tblTempUsageDetail_20' ) start [2025-01-17 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271147', 'tblTempUsageDetail_20' ) end [2025-01-17 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:48:21] Production.INFO: ==10291== Releasing lock... [2025-01-17 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:48:21] Production.INFO: 43 MB #Memory Used# [2025-01-17 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:49:05 [end_date_ymd] => 2025-01-17 21:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:49:05' and `end` < '2025-01-17 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-17 21:49:18] Production.INFO: count ==1986 [2025-01-17 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:49:05 - End Time 2025-01-17 21:49:05 [2025-01-17 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271152', 'tblTempUsageDetail_20' ) start [2025-01-17 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271152', 'tblTempUsageDetail_20' ) end [2025-01-17 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271152', 'tblTempVendorCDR_20' ) start [2025-01-17 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271152', 'tblTempVendorCDR_20' ) end [2025-01-17 21:49:19] Production.INFO: ProcessCDR(1,14271152,1,1,2) [2025-01-17 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271152', 'tblTempUsageDetail_20' ) start [2025-01-17 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271152', 'tblTempUsageDetail_20' ) end [2025-01-17 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:49:23] Production.INFO: ==10394== Releasing lock... [2025-01-17 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:49:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-17 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:50:06 [end_date_ymd] => 2025-01-17 21:50:06 [RateCDR] => 1 ) [2025-01-17 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-17 18:50:06' and `end` < '2025-01-17 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-17 21:50:18] Production.INFO: count ==1968 [2025-01-17 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:50:06 - End Time 2025-01-17 21:50:06 [2025-01-17 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271157', 'tblTempUsageDetail_20' ) start [2025-01-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271157', 'tblTempUsageDetail_20' ) end [2025-01-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271157', 'tblTempVendorCDR_20' ) start [2025-01-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271157', 'tblTempVendorCDR_20' ) end [2025-01-17 21:50:19] Production.INFO: ProcessCDR(1,14271157,1,1,2) [2025-01-17 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271157', 'tblTempUsageDetail_20' ) start [2025-01-17 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271157', 'tblTempUsageDetail_20' ) end [2025-01-17 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:50:22] Production.INFO: ==10503== Releasing lock... [2025-01-17 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:50:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-17 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:51:05 [end_date_ymd] => 2025-01-17 21:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:51:05' and `end` < '2025-01-17 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-17 21:51:18] Production.INFO: count ==1910 [2025-01-17 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:51:05 - End Time 2025-01-17 21:51:05 [2025-01-17 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271163', 'tblTempUsageDetail_20' ) start [2025-01-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271163', 'tblTempUsageDetail_20' ) end [2025-01-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271163', 'tblTempVendorCDR_20' ) start [2025-01-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271163', 'tblTempVendorCDR_20' ) end [2025-01-17 21:51:18] Production.INFO: ProcessCDR(1,14271163,1,1,2) [2025-01-17 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271163', 'tblTempUsageDetail_20' ) start [2025-01-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271163', 'tblTempUsageDetail_20' ) end [2025-01-17 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:51:21] Production.INFO: ==10611== Releasing lock... [2025-01-17 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:51:21] Production.INFO: 42 MB #Memory Used# [2025-01-17 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:52:05 [end_date_ymd] => 2025-01-17 21:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:52:05' and `end` < '2025-01-17 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:52:19] Production.INFO: count ==1901 [2025-01-17 21:52:19] Production.ERROR: pbx CDR StartTime 2025-01-17 18:52:05 - End Time 2025-01-17 21:52:05 [2025-01-17 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271168', 'tblTempUsageDetail_20' ) start [2025-01-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271168', 'tblTempUsageDetail_20' ) end [2025-01-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271168', 'tblTempVendorCDR_20' ) start [2025-01-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271168', 'tblTempVendorCDR_20' ) end [2025-01-17 21:52:19] Production.INFO: ProcessCDR(1,14271168,1,1,2) [2025-01-17 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271168', 'tblTempUsageDetail_20' ) start [2025-01-17 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271168', 'tblTempUsageDetail_20' ) end [2025-01-17 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:52:22] Production.INFO: ==10713== Releasing lock... [2025-01-17 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:52:22] Production.INFO: 42 MB #Memory Used# [2025-01-17 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:53:05 [end_date_ymd] => 2025-01-17 21:53:05 [RateCDR] => 1 ) [2025-01-17 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:53:05' and `end` < '2025-01-17 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:53:18] Production.INFO: count ==1862 [2025-01-17 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:53:05 - End Time 2025-01-17 21:53:05 [2025-01-17 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271173', 'tblTempUsageDetail_20' ) start [2025-01-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271173', 'tblTempUsageDetail_20' ) end [2025-01-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271173', 'tblTempVendorCDR_20' ) start [2025-01-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271173', 'tblTempVendorCDR_20' ) end [2025-01-17 21:53:18] Production.INFO: ProcessCDR(1,14271173,1,1,2) [2025-01-17 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271173', 'tblTempUsageDetail_20' ) start [2025-01-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271173', 'tblTempUsageDetail_20' ) end [2025-01-17 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:53:23] Production.INFO: ==10817== Releasing lock... [2025-01-17 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-17 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:54:05 [end_date_ymd] => 2025-01-17 21:54:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:54:05' and `end` < '2025-01-17 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-17 21:54:17] Production.INFO: count ==1834 [2025-01-17 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:54:05 - End Time 2025-01-17 21:54:05 [2025-01-17 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271178', 'tblTempUsageDetail_20' ) start [2025-01-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271178', 'tblTempUsageDetail_20' ) end [2025-01-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271178', 'tblTempVendorCDR_20' ) start [2025-01-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271178', 'tblTempVendorCDR_20' ) end [2025-01-17 21:54:18] Production.INFO: ProcessCDR(1,14271178,1,1,2) [2025-01-17 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271178', 'tblTempUsageDetail_20' ) start [2025-01-17 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271178', 'tblTempUsageDetail_20' ) end [2025-01-17 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:54:21] Production.INFO: ==10917== Releasing lock... [2025-01-17 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:54:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:55:05 [end_date_ymd] => 2025-01-17 21:55:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:55:05' and `end` < '2025-01-17 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-17 21:55:17] Production.INFO: count ==1818 [2025-01-17 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:55:05 - End Time 2025-01-17 21:55:05 [2025-01-17 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271183', 'tblTempUsageDetail_20' ) start [2025-01-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271183', 'tblTempUsageDetail_20' ) end [2025-01-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271183', 'tblTempVendorCDR_20' ) start [2025-01-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271183', 'tblTempVendorCDR_20' ) end [2025-01-17 21:55:18] Production.INFO: ProcessCDR(1,14271183,1,1,2) [2025-01-17 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271183', 'tblTempUsageDetail_20' ) start [2025-01-17 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271183', 'tblTempUsageDetail_20' ) end [2025-01-17 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:55:21] Production.INFO: ==11022== Releasing lock... [2025-01-17 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:55:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-17 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:56:05 [end_date_ymd] => 2025-01-17 21:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:56:05' and `end` < '2025-01-17 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-17 21:56:18] Production.INFO: count ==1796 [2025-01-17 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:56:05 - End Time 2025-01-17 21:56:05 [2025-01-17 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271188', 'tblTempUsageDetail_20' ) start [2025-01-17 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271188', 'tblTempUsageDetail_20' ) end [2025-01-17 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271188', 'tblTempVendorCDR_20' ) start [2025-01-17 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271188', 'tblTempVendorCDR_20' ) end [2025-01-17 21:56:18] Production.INFO: ProcessCDR(1,14271188,1,1,2) [2025-01-17 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271188', 'tblTempUsageDetail_20' ) start [2025-01-17 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271188', 'tblTempUsageDetail_20' ) end [2025-01-17 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:56:23] Production.INFO: ==11123== Releasing lock... [2025-01-17 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:56:23] Production.INFO: 41 MB #Memory Used# [2025-01-17 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:57:05 [end_date_ymd] => 2025-01-17 21:57:05 [RateCDR] => 1 ) [2025-01-17 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:57:05' and `end` < '2025-01-17 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:57:18] Production.INFO: count ==1797 [2025-01-17 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:57:05 - End Time 2025-01-17 21:57:05 [2025-01-17 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271193', 'tblTempUsageDetail_20' ) start [2025-01-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271193', 'tblTempUsageDetail_20' ) end [2025-01-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271193', 'tblTempVendorCDR_20' ) start [2025-01-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271193', 'tblTempVendorCDR_20' ) end [2025-01-17 21:57:18] Production.INFO: ProcessCDR(1,14271193,1,1,2) [2025-01-17 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271193', 'tblTempUsageDetail_20' ) start [2025-01-17 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271193', 'tblTempUsageDetail_20' ) end [2025-01-17 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:57:21] Production.INFO: ==11228== Releasing lock... [2025-01-17 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:57:21] Production.INFO: 41 MB #Memory Used# [2025-01-17 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:58:05 [end_date_ymd] => 2025-01-17 21:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 18:58:05' and `end` < '2025-01-17 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-17 21:58:17] Production.INFO: count ==1793 [2025-01-17 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:58:05 - End Time 2025-01-17 21:58:05 [2025-01-17 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271198', 'tblTempUsageDetail_20' ) start [2025-01-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271198', 'tblTempUsageDetail_20' ) end [2025-01-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271198', 'tblTempVendorCDR_20' ) start [2025-01-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271198', 'tblTempVendorCDR_20' ) end [2025-01-17 21:58:18] Production.INFO: ProcessCDR(1,14271198,1,1,2) [2025-01-17 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271198', 'tblTempUsageDetail_20' ) start [2025-01-17 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271198', 'tblTempUsageDetail_20' ) end [2025-01-17 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:58:21] Production.INFO: ==11334== Releasing lock... [2025-01-17 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:58:21] Production.INFO: 41 MB #Memory Used# [2025-01-17 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 18:59:05 [end_date_ymd] => 2025-01-17 21:59:05 [RateCDR] => 1 ) [2025-01-17 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 18:59:05' and `end` < '2025-01-17 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 21:59:18] Production.INFO: count ==1766 [2025-01-17 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 18:59:05 - End Time 2025-01-17 21:59:05 [2025-01-17 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271203', 'tblTempUsageDetail_20' ) start [2025-01-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271203', 'tblTempUsageDetail_20' ) end [2025-01-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271203', 'tblTempVendorCDR_20' ) start [2025-01-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271203', 'tblTempVendorCDR_20' ) end [2025-01-17 21:59:18] Production.INFO: ProcessCDR(1,14271203,1,1,2) [2025-01-17 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271203', 'tblTempUsageDetail_20' ) start [2025-01-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271203', 'tblTempUsageDetail_20' ) end [2025-01-17 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 21:59:22] Production.INFO: ==11440== Releasing lock... [2025-01-17 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 21:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-17 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:00:07 [end_date_ymd] => 2025-01-17 22:00:07 [RateCDR] => 1 ) [2025-01-17 22: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-17 19:00:07' and `end` < '2025-01-17 22: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-17 22:00:19] Production.INFO: count ==1761 [2025-01-17 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:00:07 - End Time 2025-01-17 22:00:07 [2025-01-17 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271209', 'tblTempUsageDetail_20' ) start [2025-01-17 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271209', 'tblTempUsageDetail_20' ) end [2025-01-17 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271209', 'tblTempVendorCDR_20' ) start [2025-01-17 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271209', 'tblTempVendorCDR_20' ) end [2025-01-17 22:00:20] Production.INFO: ProcessCDR(1,14271209,1,1,2) [2025-01-17 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271209', 'tblTempUsageDetail_20' ) start [2025-01-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271209', 'tblTempUsageDetail_20' ) end [2025-01-17 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:00:23] Production.INFO: ==11591== Releasing lock... [2025-01-17 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-17 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:01:05 [end_date_ymd] => 2025-01-17 22:01:05 [RateCDR] => 1 ) [2025-01-17 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:01:05' and `end` < '2025-01-17 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:01:17] Production.INFO: count ==1688 [2025-01-17 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:01:05 - End Time 2025-01-17 22:01:05 [2025-01-17 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271213', 'tblTempUsageDetail_20' ) start [2025-01-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271213', 'tblTempUsageDetail_20' ) end [2025-01-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271213', 'tblTempVendorCDR_20' ) start [2025-01-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271213', 'tblTempVendorCDR_20' ) end [2025-01-17 22:01:18] Production.INFO: ProcessCDR(1,14271213,1,1,2) [2025-01-17 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271213', 'tblTempUsageDetail_20' ) start [2025-01-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271213', 'tblTempUsageDetail_20' ) end [2025-01-17 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:01:21] Production.INFO: ==11709== Releasing lock... [2025-01-17 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:01:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-17 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:02:04 [end_date_ymd] => 2025-01-17 22:02:04 [RateCDR] => 1 ) [2025-01-17 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:02:04' and `end` < '2025-01-17 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:02:17] Production.INFO: count ==1688 [2025-01-17 22:02:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:02:04 - End Time 2025-01-17 22:02:04 [2025-01-17 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271219', 'tblTempUsageDetail_20' ) start [2025-01-17 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271219', 'tblTempUsageDetail_20' ) end [2025-01-17 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271219', 'tblTempVendorCDR_20' ) start [2025-01-17 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271219', 'tblTempVendorCDR_20' ) end [2025-01-17 22:02:17] Production.INFO: ProcessCDR(1,14271219,1,1,2) [2025-01-17 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271219', 'tblTempUsageDetail_20' ) start [2025-01-17 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271219', 'tblTempUsageDetail_20' ) end [2025-01-17 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:02:21] Production.INFO: ==11810== Releasing lock... [2025-01-17 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:02:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-17 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:03:05 [end_date_ymd] => 2025-01-17 22:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:03:05' and `end` < '2025-01-17 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-17 22:03:17] Production.INFO: count ==1679 [2025-01-17 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:03:05 - End Time 2025-01-17 22:03:05 [2025-01-17 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271224', 'tblTempUsageDetail_20' ) start [2025-01-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271224', 'tblTempUsageDetail_20' ) end [2025-01-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271224', 'tblTempVendorCDR_20' ) start [2025-01-17 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271224', 'tblTempVendorCDR_20' ) end [2025-01-17 22:03:18] Production.INFO: ProcessCDR(1,14271224,1,1,2) [2025-01-17 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271224', 'tblTempUsageDetail_20' ) start [2025-01-17 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271224', 'tblTempUsageDetail_20' ) end [2025-01-17 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:03:23] Production.INFO: ==11918== Releasing lock... [2025-01-17 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:03:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-17 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:04:05 [end_date_ymd] => 2025-01-17 22:04:05 [RateCDR] => 1 ) [2025-01-17 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:04:05' and `end` < '2025-01-17 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:04:18] Production.INFO: count ==1679 [2025-01-17 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:04:05 - End Time 2025-01-17 22:04:05 [2025-01-17 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271229', 'tblTempUsageDetail_20' ) start [2025-01-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271229', 'tblTempUsageDetail_20' ) end [2025-01-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271229', 'tblTempVendorCDR_20' ) start [2025-01-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271229', 'tblTempVendorCDR_20' ) end [2025-01-17 22:04:18] Production.INFO: ProcessCDR(1,14271229,1,1,2) [2025-01-17 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271229', 'tblTempUsageDetail_20' ) start [2025-01-17 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271229', 'tblTempUsageDetail_20' ) end [2025-01-17 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:04:21] Production.INFO: ==12024== Releasing lock... [2025-01-17 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:04:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-17 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:05:05 [end_date_ymd] => 2025-01-17 22:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:05:05' and `end` < '2025-01-17 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-17 22:05:17] Production.INFO: count ==1669 [2025-01-17 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:05:05 - End Time 2025-01-17 22:05:05 [2025-01-17 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271234', 'tblTempUsageDetail_20' ) start [2025-01-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271234', 'tblTempUsageDetail_20' ) end [2025-01-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271234', 'tblTempVendorCDR_20' ) start [2025-01-17 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271234', 'tblTempVendorCDR_20' ) end [2025-01-17 22:05:17] Production.INFO: ProcessCDR(1,14271234,1,1,2) [2025-01-17 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271234', 'tblTempUsageDetail_20' ) start [2025-01-17 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271234', 'tblTempUsageDetail_20' ) end [2025-01-17 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:05:22] Production.INFO: ==12129== Releasing lock... [2025-01-17 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:05:22] Production.INFO: 40 MB #Memory Used# [2025-01-17 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:06:06 [end_date_ymd] => 2025-01-17 22:06:06 [RateCDR] => 1 ) [2025-01-17 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-17 19:06:06' and `end` < '2025-01-17 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-17 22:06:18] Production.INFO: count ==1669 [2025-01-17 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:06:06 - End Time 2025-01-17 22:06:06 [2025-01-17 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271239', 'tblTempUsageDetail_20' ) start [2025-01-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271239', 'tblTempUsageDetail_20' ) end [2025-01-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271239', 'tblTempVendorCDR_20' ) start [2025-01-17 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271239', 'tblTempVendorCDR_20' ) end [2025-01-17 22:06:18] Production.INFO: ProcessCDR(1,14271239,1,1,2) [2025-01-17 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271239', 'tblTempUsageDetail_20' ) start [2025-01-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271239', 'tblTempUsageDetail_20' ) end [2025-01-17 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:06:22] Production.INFO: ==12238== Releasing lock... [2025-01-17 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:06:22] Production.INFO: 40 MB #Memory Used# [2025-01-17 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:07:05 [end_date_ymd] => 2025-01-17 22:07:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:07:05' and `end` < '2025-01-17 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-17 22:07:19] Production.INFO: count ==1668 [2025-01-17 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:07:05 - End Time 2025-01-17 22:07:05 [2025-01-17 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271244', 'tblTempUsageDetail_20' ) start [2025-01-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271244', 'tblTempUsageDetail_20' ) end [2025-01-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271244', 'tblTempVendorCDR_20' ) start [2025-01-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271244', 'tblTempVendorCDR_20' ) end [2025-01-17 22:07:19] Production.INFO: ProcessCDR(1,14271244,1,1,2) [2025-01-17 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271244', 'tblTempUsageDetail_20' ) start [2025-01-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271244', 'tblTempUsageDetail_20' ) end [2025-01-17 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:07:22] Production.INFO: ==12344== Releasing lock... [2025-01-17 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:07:22] Production.INFO: 40 MB #Memory Used# [2025-01-17 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:08:05 [end_date_ymd] => 2025-01-17 22:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:08:05' and `end` < '2025-01-17 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-17 22:08:18] Production.INFO: count ==1645 [2025-01-17 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:08:05 - End Time 2025-01-17 22:08:05 [2025-01-17 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271249', 'tblTempUsageDetail_20' ) start [2025-01-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271249', 'tblTempUsageDetail_20' ) end [2025-01-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271249', 'tblTempVendorCDR_20' ) start [2025-01-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271249', 'tblTempVendorCDR_20' ) end [2025-01-17 22:08:18] Production.INFO: ProcessCDR(1,14271249,1,1,2) [2025-01-17 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271249', 'tblTempUsageDetail_20' ) start [2025-01-17 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271249', 'tblTempUsageDetail_20' ) end [2025-01-17 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:08:21] Production.INFO: ==12449== Releasing lock... [2025-01-17 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:08:21] Production.INFO: 40 MB #Memory Used# [2025-01-17 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:09:05 [end_date_ymd] => 2025-01-17 22:09:05 [RateCDR] => 1 ) [2025-01-17 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:09:05' and `end` < '2025-01-17 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:09:18] Production.INFO: count ==1645 [2025-01-17 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:09:05 - End Time 2025-01-17 22:09:05 [2025-01-17 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271254', 'tblTempUsageDetail_20' ) start [2025-01-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271254', 'tblTempUsageDetail_20' ) end [2025-01-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271254', 'tblTempVendorCDR_20' ) start [2025-01-17 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271254', 'tblTempVendorCDR_20' ) end [2025-01-17 22:09:18] Production.INFO: ProcessCDR(1,14271254,1,1,2) [2025-01-17 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271254', 'tblTempUsageDetail_20' ) start [2025-01-17 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271254', 'tblTempUsageDetail_20' ) end [2025-01-17 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:09:22] Production.INFO: ==12550== Releasing lock... [2025-01-17 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:09:22] Production.INFO: 40 MB #Memory Used# [2025-01-17 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:10:06 [end_date_ymd] => 2025-01-17 22:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 19:10:06' and `end` < '2025-01-17 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-17 22:10:19] Production.INFO: count ==1636 [2025-01-17 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:10:06 - End Time 2025-01-17 22:10:06 [2025-01-17 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271260', 'tblTempUsageDetail_20' ) start [2025-01-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271260', 'tblTempUsageDetail_20' ) end [2025-01-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271260', 'tblTempVendorCDR_20' ) start [2025-01-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271260', 'tblTempVendorCDR_20' ) end [2025-01-17 22:10:19] Production.INFO: ProcessCDR(1,14271260,1,1,2) [2025-01-17 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271260', 'tblTempUsageDetail_20' ) start [2025-01-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271260', 'tblTempUsageDetail_20' ) end [2025-01-17 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:10:22] Production.INFO: ==12658== Releasing lock... [2025-01-17 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-17 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:11:05 [end_date_ymd] => 2025-01-17 22:11:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:11:05' and `end` < '2025-01-17 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-17 22:11:17] Production.INFO: count ==1557 [2025-01-17 22:11:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:11:05 - End Time 2025-01-17 22:11:05 [2025-01-17 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271265', 'tblTempUsageDetail_20' ) start [2025-01-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271265', 'tblTempUsageDetail_20' ) end [2025-01-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271265', 'tblTempVendorCDR_20' ) start [2025-01-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271265', 'tblTempVendorCDR_20' ) end [2025-01-17 22:11:17] Production.INFO: ProcessCDR(1,14271265,1,1,2) [2025-01-17 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271265', 'tblTempUsageDetail_20' ) start [2025-01-17 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271265', 'tblTempUsageDetail_20' ) end [2025-01-17 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:11:21] Production.INFO: ==12763== Releasing lock... [2025-01-17 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:11:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-17 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:12:05 [end_date_ymd] => 2025-01-17 22:12:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:12:05' and `end` < '2025-01-17 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:12:18] Production.INFO: count ==1536 [2025-01-17 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:12:05 - End Time 2025-01-17 22:12:05 [2025-01-17 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271269', 'tblTempUsageDetail_20' ) start [2025-01-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271269', 'tblTempUsageDetail_20' ) end [2025-01-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271269', 'tblTempVendorCDR_20' ) start [2025-01-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271269', 'tblTempVendorCDR_20' ) end [2025-01-17 22:12:18] Production.INFO: ProcessCDR(1,14271269,1,1,2) [2025-01-17 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271269', 'tblTempUsageDetail_20' ) start [2025-01-17 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271269', 'tblTempUsageDetail_20' ) end [2025-01-17 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:12:22] Production.INFO: ==12864== Releasing lock... [2025-01-17 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:12:22] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:13:05 [end_date_ymd] => 2025-01-17 22:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:13:05' and `end` < '2025-01-17 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-17 22:13:17] Production.INFO: count ==1533 [2025-01-17 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:13:05 - End Time 2025-01-17 22:13:05 [2025-01-17 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271275', 'tblTempUsageDetail_20' ) start [2025-01-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271275', 'tblTempUsageDetail_20' ) end [2025-01-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271275', 'tblTempVendorCDR_20' ) start [2025-01-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271275', 'tblTempVendorCDR_20' ) end [2025-01-17 22:13:18] Production.INFO: ProcessCDR(1,14271275,1,1,2) [2025-01-17 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271275', 'tblTempUsageDetail_20' ) start [2025-01-17 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271275', 'tblTempUsageDetail_20' ) end [2025-01-17 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:13:21] Production.INFO: ==12965== Releasing lock... [2025-01-17 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:13:21] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:14:05 [end_date_ymd] => 2025-01-17 22:14:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:14:05' and `end` < '2025-01-17 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-17 22:14:18] Production.INFO: count ==1519 [2025-01-17 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:14:05 - End Time 2025-01-17 22:14:05 [2025-01-17 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271280', 'tblTempUsageDetail_20' ) start [2025-01-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271280', 'tblTempUsageDetail_20' ) end [2025-01-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271280', 'tblTempVendorCDR_20' ) start [2025-01-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271280', 'tblTempVendorCDR_20' ) end [2025-01-17 22:14:18] Production.INFO: ProcessCDR(1,14271280,1,1,2) [2025-01-17 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271280', 'tblTempUsageDetail_20' ) start [2025-01-17 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271280', 'tblTempUsageDetail_20' ) end [2025-01-17 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:14:21] Production.INFO: ==13070== Releasing lock... [2025-01-17 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:14:21] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:15:05 [end_date_ymd] => 2025-01-17 22:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:15:05' and `end` < '2025-01-17 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-17 22:15:18] Production.INFO: count ==1519 [2025-01-17 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:15:05 - End Time 2025-01-17 22:15:05 [2025-01-17 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271285', 'tblTempUsageDetail_20' ) start [2025-01-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271285', 'tblTempUsageDetail_20' ) end [2025-01-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271285', 'tblTempVendorCDR_20' ) start [2025-01-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271285', 'tblTempVendorCDR_20' ) end [2025-01-17 22:15:18] Production.INFO: ProcessCDR(1,14271285,1,1,2) [2025-01-17 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271285', 'tblTempUsageDetail_20' ) start [2025-01-17 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271285', 'tblTempUsageDetail_20' ) end [2025-01-17 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:15:21] Production.INFO: ==13176== Releasing lock... [2025-01-17 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:15:21] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:16:05 [end_date_ymd] => 2025-01-17 22:16:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:16:05' and `end` < '2025-01-17 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-17 22:16:18] Production.INFO: count ==1519 [2025-01-17 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:16:05 - End Time 2025-01-17 22:16:05 [2025-01-17 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271290', 'tblTempUsageDetail_20' ) start [2025-01-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271290', 'tblTempUsageDetail_20' ) end [2025-01-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271290', 'tblTempVendorCDR_20' ) start [2025-01-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271290', 'tblTempVendorCDR_20' ) end [2025-01-17 22:16:18] Production.INFO: ProcessCDR(1,14271290,1,1,2) [2025-01-17 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271290', 'tblTempUsageDetail_20' ) start [2025-01-17 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271290', 'tblTempUsageDetail_20' ) end [2025-01-17 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:16:23] Production.INFO: ==13321== Releasing lock... [2025-01-17 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:16:23] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:17:04 [end_date_ymd] => 2025-01-17 22:17:04 [RateCDR] => 1 ) [2025-01-17 22:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:17:04' and `end` < '2025-01-17 22:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:17:17] Production.INFO: count ==1509 [2025-01-17 22:17:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:17:04 - End Time 2025-01-17 22:17:04 [2025-01-17 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271295', 'tblTempUsageDetail_20' ) start [2025-01-17 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271295', 'tblTempUsageDetail_20' ) end [2025-01-17 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271295', 'tblTempVendorCDR_20' ) start [2025-01-17 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271295', 'tblTempVendorCDR_20' ) end [2025-01-17 22:17:17] Production.INFO: ProcessCDR(1,14271295,1,1,2) [2025-01-17 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271295', 'tblTempUsageDetail_20' ) start [2025-01-17 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271295', 'tblTempUsageDetail_20' ) end [2025-01-17 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:17:21] Production.INFO: ==13425== Releasing lock... [2025-01-17 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:17:21] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:18:05 [end_date_ymd] => 2025-01-17 22:18:05 [RateCDR] => 1 ) [2025-01-17 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:18:05' and `end` < '2025-01-17 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:18:18] Production.INFO: count ==1507 [2025-01-17 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:18:05 - End Time 2025-01-17 22:18:05 [2025-01-17 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271300', 'tblTempUsageDetail_20' ) start [2025-01-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271300', 'tblTempUsageDetail_20' ) end [2025-01-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271300', 'tblTempVendorCDR_20' ) start [2025-01-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271300', 'tblTempVendorCDR_20' ) end [2025-01-17 22:18:18] Production.INFO: ProcessCDR(1,14271300,1,1,2) [2025-01-17 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271300', 'tblTempUsageDetail_20' ) start [2025-01-17 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271300', 'tblTempUsageDetail_20' ) end [2025-01-17 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:18:22] Production.INFO: ==13532== Releasing lock... [2025-01-17 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:19:06 [end_date_ymd] => 2025-01-17 22:19:06 [RateCDR] => 1 ) [2025-01-17 22:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:19:06' and `end` < '2025-01-17 22:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:19:18] Production.INFO: count ==1507 [2025-01-17 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:19:06 - End Time 2025-01-17 22:19:06 [2025-01-17 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271305', 'tblTempUsageDetail_20' ) start [2025-01-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271305', 'tblTempUsageDetail_20' ) end [2025-01-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271305', 'tblTempVendorCDR_20' ) start [2025-01-17 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271305', 'tblTempVendorCDR_20' ) end [2025-01-17 22:19:19] Production.INFO: ProcessCDR(1,14271305,1,1,2) [2025-01-17 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271305', 'tblTempUsageDetail_20' ) start [2025-01-17 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271305', 'tblTempUsageDetail_20' ) end [2025-01-17 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:19:23] Production.INFO: ==13639== Releasing lock... [2025-01-17 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:19:23] Production.INFO: 39 MB #Memory Used# [2025-01-17 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:20:05 [end_date_ymd] => 2025-01-17 22:20:05 [RateCDR] => 1 ) [2025-01-17 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:20:05' and `end` < '2025-01-17 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:20:18] Production.INFO: count ==1493 [2025-01-17 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:20:05 - End Time 2025-01-17 22:20:05 [2025-01-17 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271311', 'tblTempUsageDetail_20' ) start [2025-01-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271311', 'tblTempUsageDetail_20' ) end [2025-01-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271311', 'tblTempVendorCDR_20' ) start [2025-01-17 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271311', 'tblTempVendorCDR_20' ) end [2025-01-17 22:20:18] Production.INFO: ProcessCDR(1,14271311,1,1,2) [2025-01-17 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271311', 'tblTempUsageDetail_20' ) start [2025-01-17 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271311', 'tblTempUsageDetail_20' ) end [2025-01-17 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:20:21] Production.INFO: ==13746== Releasing lock... [2025-01-17 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:20:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:21:05 [end_date_ymd] => 2025-01-17 22:21:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:21:05' and `end` < '2025-01-17 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-17 22:21:18] Production.INFO: count ==1498 [2025-01-17 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:21:05 - End Time 2025-01-17 22:21:05 [2025-01-17 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271316', 'tblTempUsageDetail_20' ) start [2025-01-17 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271316', 'tblTempUsageDetail_20' ) end [2025-01-17 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271316', 'tblTempVendorCDR_20' ) start [2025-01-17 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271316', 'tblTempVendorCDR_20' ) end [2025-01-17 22:21:19] Production.INFO: ProcessCDR(1,14271316,1,1,2) [2025-01-17 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271316', 'tblTempUsageDetail_20' ) start [2025-01-17 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271316', 'tblTempUsageDetail_20' ) end [2025-01-17 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:21:22] Production.INFO: ==13857== Releasing lock... [2025-01-17 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:21:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:22:04 [end_date_ymd] => 2025-01-17 22:22:04 [RateCDR] => 1 ) [2025-01-17 22:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:22:04' and `end` < '2025-01-17 22:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:22:17] Production.INFO: count ==1497 [2025-01-17 22:22:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:22:04 - End Time 2025-01-17 22:22:04 [2025-01-17 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271321', 'tblTempUsageDetail_20' ) start [2025-01-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271321', 'tblTempUsageDetail_20' ) end [2025-01-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271321', 'tblTempVendorCDR_20' ) start [2025-01-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271321', 'tblTempVendorCDR_20' ) end [2025-01-17 22:22:17] Production.INFO: ProcessCDR(1,14271321,1,1,2) [2025-01-17 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271321', 'tblTempUsageDetail_20' ) start [2025-01-17 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271321', 'tblTempUsageDetail_20' ) end [2025-01-17 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:22:22] Production.INFO: ==13967== Releasing lock... [2025-01-17 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:23:05 [end_date_ymd] => 2025-01-17 22:23:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:23:05' and `end` < '2025-01-17 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-17 22:23:17] Production.INFO: count ==1504 [2025-01-17 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:23:05 - End Time 2025-01-17 22:23:05 [2025-01-17 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271326', 'tblTempUsageDetail_20' ) start [2025-01-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271326', 'tblTempUsageDetail_20' ) end [2025-01-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271326', 'tblTempVendorCDR_20' ) start [2025-01-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271326', 'tblTempVendorCDR_20' ) end [2025-01-17 22:23:18] Production.INFO: ProcessCDR(1,14271326,1,1,2) [2025-01-17 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271326', 'tblTempUsageDetail_20' ) start [2025-01-17 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271326', 'tblTempUsageDetail_20' ) end [2025-01-17 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:23:23] Production.INFO: ==14099== Releasing lock... [2025-01-17 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:23:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:24:05 [end_date_ymd] => 2025-01-17 22:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:24:05' and `end` < '2025-01-17 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-17 22:24:17] Production.INFO: count ==1504 [2025-01-17 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:24:05 - End Time 2025-01-17 22:24:05 [2025-01-17 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271331', 'tblTempUsageDetail_20' ) start [2025-01-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271331', 'tblTempUsageDetail_20' ) end [2025-01-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271331', 'tblTempVendorCDR_20' ) start [2025-01-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271331', 'tblTempVendorCDR_20' ) end [2025-01-17 22:24:18] Production.INFO: ProcessCDR(1,14271331,1,1,2) [2025-01-17 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271331', 'tblTempUsageDetail_20' ) start [2025-01-17 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271331', 'tblTempUsageDetail_20' ) end [2025-01-17 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:24:21] Production.INFO: ==14227== Releasing lock... [2025-01-17 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:25:05 [end_date_ymd] => 2025-01-17 22:25:05 [RateCDR] => 1 ) [2025-01-17 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:25:05' and `end` < '2025-01-17 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:25:18] Production.INFO: count ==1489 [2025-01-17 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:25:05 - End Time 2025-01-17 22:25:05 [2025-01-17 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271336', 'tblTempUsageDetail_20' ) start [2025-01-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271336', 'tblTempUsageDetail_20' ) end [2025-01-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271336', 'tblTempVendorCDR_20' ) start [2025-01-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271336', 'tblTempVendorCDR_20' ) end [2025-01-17 22:25:18] Production.INFO: ProcessCDR(1,14271336,1,1,2) [2025-01-17 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271336', 'tblTempUsageDetail_20' ) start [2025-01-17 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271336', 'tblTempUsageDetail_20' ) end [2025-01-17 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:25:22] Production.INFO: ==14358== Releasing lock... [2025-01-17 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:26:05 [end_date_ymd] => 2025-01-17 22:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:26:05' and `end` < '2025-01-17 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-17 22:26:17] Production.INFO: count ==1483 [2025-01-17 22:26:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:26:05 - End Time 2025-01-17 22:26:05 [2025-01-17 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271341', 'tblTempUsageDetail_20' ) start [2025-01-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271341', 'tblTempUsageDetail_20' ) end [2025-01-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271341', 'tblTempVendorCDR_20' ) start [2025-01-17 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271341', 'tblTempVendorCDR_20' ) end [2025-01-17 22:26:17] Production.INFO: ProcessCDR(1,14271341,1,1,2) [2025-01-17 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271341', 'tblTempUsageDetail_20' ) start [2025-01-17 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271341', 'tblTempUsageDetail_20' ) end [2025-01-17 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:26:22] Production.INFO: ==14486== Releasing lock... [2025-01-17 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:27:05 [end_date_ymd] => 2025-01-17 22:27:05 [RateCDR] => 1 ) [2025-01-17 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:27:05' and `end` < '2025-01-17 22: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-17 22:27:17] Production.INFO: count ==1475 [2025-01-17 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:27:05 - End Time 2025-01-17 22:27:05 [2025-01-17 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271346', 'tblTempUsageDetail_20' ) start [2025-01-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271346', 'tblTempUsageDetail_20' ) end [2025-01-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271346', 'tblTempVendorCDR_20' ) start [2025-01-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271346', 'tblTempVendorCDR_20' ) end [2025-01-17 22:27:18] Production.INFO: ProcessCDR(1,14271346,1,1,2) [2025-01-17 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271346', 'tblTempUsageDetail_20' ) start [2025-01-17 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271346', 'tblTempUsageDetail_20' ) end [2025-01-17 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:27:21] Production.INFO: ==14618== Releasing lock... [2025-01-17 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:27:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-17 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:28:05 [end_date_ymd] => 2025-01-17 22:28:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:28:05' and `end` < '2025-01-17 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-17 22:28:18] Production.INFO: count ==1451 [2025-01-17 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:28:05 - End Time 2025-01-17 22:28:05 [2025-01-17 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271351', 'tblTempUsageDetail_20' ) start [2025-01-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271351', 'tblTempUsageDetail_20' ) end [2025-01-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271351', 'tblTempVendorCDR_20' ) start [2025-01-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271351', 'tblTempVendorCDR_20' ) end [2025-01-17 22:28:18] Production.INFO: ProcessCDR(1,14271351,1,1,2) [2025-01-17 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271351', 'tblTempUsageDetail_20' ) start [2025-01-17 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271351', 'tblTempUsageDetail_20' ) end [2025-01-17 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:28:23] Production.INFO: ==14754== Releasing lock... [2025-01-17 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-17 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:29:05 [end_date_ymd] => 2025-01-17 22:29:05 [RateCDR] => 1 ) [2025-01-17 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:29:05' and `end` < '2025-01-17 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:29:18] Production.INFO: count ==1436 [2025-01-17 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:29:05 - End Time 2025-01-17 22:29:05 [2025-01-17 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271356', 'tblTempUsageDetail_20' ) start [2025-01-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271356', 'tblTempUsageDetail_20' ) end [2025-01-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271356', 'tblTempVendorCDR_20' ) start [2025-01-17 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271356', 'tblTempVendorCDR_20' ) end [2025-01-17 22:29:18] Production.INFO: ProcessCDR(1,14271356,1,1,2) [2025-01-17 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271356', 'tblTempUsageDetail_20' ) start [2025-01-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271356', 'tblTempUsageDetail_20' ) end [2025-01-17 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:29:21] Production.INFO: ==14890== Releasing lock... [2025-01-17 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:29:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-17 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:30:07 [end_date_ymd] => 2025-01-17 22:30:07 [RateCDR] => 1 ) [2025-01-17 22:30: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-17 19:30:07' and `end` < '2025-01-17 22:30: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-17 22:30:19] Production.INFO: count ==1419 [2025-01-17 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:30:07 - End Time 2025-01-17 22:30:07 [2025-01-17 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271362', 'tblTempUsageDetail_20' ) start [2025-01-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271362', 'tblTempUsageDetail_20' ) end [2025-01-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271362', 'tblTempVendorCDR_20' ) start [2025-01-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271362', 'tblTempVendorCDR_20' ) end [2025-01-17 22:30:19] Production.INFO: ProcessCDR(1,14271362,1,1,2) [2025-01-17 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271362', 'tblTempUsageDetail_20' ) start [2025-01-17 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271362', 'tblTempUsageDetail_20' ) end [2025-01-17 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:30:23] Production.INFO: ==15027== Releasing lock... [2025-01-17 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:30:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-17 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:31:05 [end_date_ymd] => 2025-01-17 22:31:05 [RateCDR] => 1 ) [2025-01-17 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:31:05' and `end` < '2025-01-17 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:31:17] Production.INFO: count ==1380 [2025-01-17 22:31:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:31:05 - End Time 2025-01-17 22:31:05 [2025-01-17 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271367', 'tblTempUsageDetail_20' ) start [2025-01-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271367', 'tblTempUsageDetail_20' ) end [2025-01-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271367', 'tblTempVendorCDR_20' ) start [2025-01-17 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271367', 'tblTempVendorCDR_20' ) end [2025-01-17 22:31:17] Production.INFO: ProcessCDR(1,14271367,1,1,2) [2025-01-17 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271367', 'tblTempUsageDetail_20' ) start [2025-01-17 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271367', 'tblTempUsageDetail_20' ) end [2025-01-17 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:31:21] Production.INFO: ==15200== Releasing lock... [2025-01-17 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:31:21] Production.INFO: 38 MB #Memory Used# [2025-01-17 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:32:05 [end_date_ymd] => 2025-01-17 22:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:32:05' and `end` < '2025-01-17 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-17 22:32:18] Production.INFO: count ==1380 [2025-01-17 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:32:05 - End Time 2025-01-17 22:32:05 [2025-01-17 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271372', 'tblTempUsageDetail_20' ) start [2025-01-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271372', 'tblTempUsageDetail_20' ) end [2025-01-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271372', 'tblTempVendorCDR_20' ) start [2025-01-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271372', 'tblTempVendorCDR_20' ) end [2025-01-17 22:32:18] Production.INFO: ProcessCDR(1,14271372,1,1,2) [2025-01-17 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271372', 'tblTempUsageDetail_20' ) start [2025-01-17 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271372', 'tblTempUsageDetail_20' ) end [2025-01-17 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:32:21] Production.INFO: ==15332== Releasing lock... [2025-01-17 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:32:21] Production.INFO: 38 MB #Memory Used# [2025-01-17 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:33:05 [end_date_ymd] => 2025-01-17 22:33:05 [RateCDR] => 1 ) [2025-01-17 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:33:05' and `end` < '2025-01-17 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:33:18] Production.INFO: count ==1381 [2025-01-17 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:33:05 - End Time 2025-01-17 22:33:05 [2025-01-17 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271377', 'tblTempUsageDetail_20' ) start [2025-01-17 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271377', 'tblTempUsageDetail_20' ) end [2025-01-17 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271377', 'tblTempVendorCDR_20' ) start [2025-01-17 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271377', 'tblTempVendorCDR_20' ) end [2025-01-17 22:33:18] Production.INFO: ProcessCDR(1,14271377,1,1,2) [2025-01-17 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271377', 'tblTempUsageDetail_20' ) start [2025-01-17 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271377', 'tblTempUsageDetail_20' ) end [2025-01-17 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:33:22] Production.INFO: ==15465== Releasing lock... [2025-01-17 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:33:22] Production.INFO: 38 MB #Memory Used# [2025-01-17 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:34:06 [end_date_ymd] => 2025-01-17 22:34:06 [RateCDR] => 1 ) [2025-01-17 22: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-17 19:34:06' and `end` < '2025-01-17 22: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-17 22:34:19] Production.INFO: count ==1365 [2025-01-17 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:34:06 - End Time 2025-01-17 22:34:06 [2025-01-17 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271382', 'tblTempUsageDetail_20' ) start [2025-01-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271382', 'tblTempUsageDetail_20' ) end [2025-01-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271382', 'tblTempVendorCDR_20' ) start [2025-01-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271382', 'tblTempVendorCDR_20' ) end [2025-01-17 22:34:19] Production.INFO: ProcessCDR(1,14271382,1,1,2) [2025-01-17 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271382', 'tblTempUsageDetail_20' ) start [2025-01-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271382', 'tblTempUsageDetail_20' ) end [2025-01-17 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:34:22] Production.INFO: ==15597== Releasing lock... [2025-01-17 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:34:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:35:05 [end_date_ymd] => 2025-01-17 22:35:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:35:05' and `end` < '2025-01-17 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-17 22:35:17] Production.INFO: count ==1367 [2025-01-17 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:35:05 - End Time 2025-01-17 22:35:05 [2025-01-17 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271387', 'tblTempUsageDetail_20' ) start [2025-01-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271387', 'tblTempUsageDetail_20' ) end [2025-01-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271387', 'tblTempVendorCDR_20' ) start [2025-01-17 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271387', 'tblTempVendorCDR_20' ) end [2025-01-17 22:35:17] Production.INFO: ProcessCDR(1,14271387,1,1,2) [2025-01-17 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271387', 'tblTempUsageDetail_20' ) start [2025-01-17 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271387', 'tblTempUsageDetail_20' ) end [2025-01-17 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:35:21] Production.INFO: ==15727== Releasing lock... [2025-01-17 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:35:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:36:05 [end_date_ymd] => 2025-01-17 22:36:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:36:05' and `end` < '2025-01-17 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-17 22:36:18] Production.INFO: count ==1367 [2025-01-17 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:36:05 - End Time 2025-01-17 22:36:05 [2025-01-17 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271392', 'tblTempUsageDetail_20' ) start [2025-01-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271392', 'tblTempUsageDetail_20' ) end [2025-01-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271392', 'tblTempVendorCDR_20' ) start [2025-01-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271392', 'tblTempVendorCDR_20' ) end [2025-01-17 22:36:18] Production.INFO: ProcessCDR(1,14271392,1,1,2) [2025-01-17 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271392', 'tblTempUsageDetail_20' ) start [2025-01-17 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271392', 'tblTempUsageDetail_20' ) end [2025-01-17 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:36:22] Production.INFO: ==15858== Releasing lock... [2025-01-17 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:37:05 [end_date_ymd] => 2025-01-17 22:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:37:05' and `end` < '2025-01-17 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-17 22:37:18] Production.INFO: count ==1367 [2025-01-17 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:37:05 - End Time 2025-01-17 22:37:05 [2025-01-17 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271397', 'tblTempUsageDetail_20' ) start [2025-01-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271397', 'tblTempUsageDetail_20' ) end [2025-01-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271397', 'tblTempVendorCDR_20' ) start [2025-01-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271397', 'tblTempVendorCDR_20' ) end [2025-01-17 22:37:18] Production.INFO: ProcessCDR(1,14271397,1,1,2) [2025-01-17 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271397', 'tblTempUsageDetail_20' ) start [2025-01-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271397', 'tblTempUsageDetail_20' ) end [2025-01-17 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:37:21] Production.INFO: ==15990== Releasing lock... [2025-01-17 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:37:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:38:05 [end_date_ymd] => 2025-01-17 22:38:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:38:05' and `end` < '2025-01-17 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-17 22:38:18] Production.INFO: count ==1364 [2025-01-17 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:38:05 - End Time 2025-01-17 22:38:05 [2025-01-17 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271402', 'tblTempUsageDetail_20' ) start [2025-01-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271402', 'tblTempUsageDetail_20' ) end [2025-01-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271402', 'tblTempVendorCDR_20' ) start [2025-01-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271402', 'tblTempVendorCDR_20' ) end [2025-01-17 22:38:18] Production.INFO: ProcessCDR(1,14271402,1,1,2) [2025-01-17 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271402', 'tblTempUsageDetail_20' ) start [2025-01-17 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271402', 'tblTempUsageDetail_20' ) end [2025-01-17 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:38:21] Production.INFO: ==16123== Releasing lock... [2025-01-17 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:38:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:39:05 [end_date_ymd] => 2025-01-17 22:39:05 [RateCDR] => 1 ) [2025-01-17 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:39:05' and `end` < '2025-01-17 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:39:17] Production.INFO: count ==1359 [2025-01-17 22:39:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:39:05 - End Time 2025-01-17 22:39:05 [2025-01-17 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271407', 'tblTempUsageDetail_20' ) start [2025-01-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271407', 'tblTempUsageDetail_20' ) end [2025-01-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271407', 'tblTempVendorCDR_20' ) start [2025-01-17 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271407', 'tblTempVendorCDR_20' ) end [2025-01-17 22:39:17] Production.INFO: ProcessCDR(1,14271407,1,1,2) [2025-01-17 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271407', 'tblTempUsageDetail_20' ) start [2025-01-17 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271407', 'tblTempUsageDetail_20' ) end [2025-01-17 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:39:21] Production.INFO: ==16250== Releasing lock... [2025-01-17 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:39:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:40:06 [end_date_ymd] => 2025-01-17 22:40:06 [RateCDR] => 1 ) [2025-01-17 22: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-17 19:40:06' and `end` < '2025-01-17 22: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-17 22:40:19] Production.INFO: count ==1363 [2025-01-17 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:40:06 - End Time 2025-01-17 22:40:06 [2025-01-17 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271413', 'tblTempUsageDetail_20' ) start [2025-01-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271413', 'tblTempUsageDetail_20' ) end [2025-01-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271413', 'tblTempVendorCDR_20' ) start [2025-01-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271413', 'tblTempVendorCDR_20' ) end [2025-01-17 22:40:19] Production.INFO: ProcessCDR(1,14271413,1,1,2) [2025-01-17 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271413', 'tblTempUsageDetail_20' ) start [2025-01-17 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271413', 'tblTempUsageDetail_20' ) end [2025-01-17 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:40:22] Production.INFO: ==16383== Releasing lock... [2025-01-17 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-17 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:41:05 [end_date_ymd] => 2025-01-17 22:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:41:05' and `end` < '2025-01-17 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-17 22:41:17] Production.INFO: count ==1296 [2025-01-17 22:41:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:41:05 - End Time 2025-01-17 22:41:05 [2025-01-17 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271418', 'tblTempUsageDetail_20' ) start [2025-01-17 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271418', 'tblTempUsageDetail_20' ) end [2025-01-17 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271418', 'tblTempVendorCDR_20' ) start [2025-01-17 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271418', 'tblTempVendorCDR_20' ) end [2025-01-17 22:41:17] Production.INFO: ProcessCDR(1,14271418,1,1,2) [2025-01-17 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271418', 'tblTempUsageDetail_20' ) start [2025-01-17 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271418', 'tblTempUsageDetail_20' ) end [2025-01-17 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:41:21] Production.INFO: ==16494== Releasing lock... [2025-01-17 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:41:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-17 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:42:05 [end_date_ymd] => 2025-01-17 22:42:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:42:05' and `end` < '2025-01-17 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-17 22:42:18] Production.INFO: count ==1295 [2025-01-17 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:42:05 - End Time 2025-01-17 22:42:05 [2025-01-17 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271423', 'tblTempUsageDetail_20' ) start [2025-01-17 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271423', 'tblTempUsageDetail_20' ) end [2025-01-17 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271423', 'tblTempVendorCDR_20' ) start [2025-01-17 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271423', 'tblTempVendorCDR_20' ) end [2025-01-17 22:42:18] Production.INFO: ProcessCDR(1,14271423,1,1,2) [2025-01-17 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271423', 'tblTempUsageDetail_20' ) start [2025-01-17 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271423', 'tblTempUsageDetail_20' ) end [2025-01-17 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:42:21] Production.INFO: ==16601== Releasing lock... [2025-01-17 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:42:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-17 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:43:05 [end_date_ymd] => 2025-01-17 22:43:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:43:05' and `end` < '2025-01-17 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-17 22:43:19] Production.INFO: count ==1274 [2025-01-17 22:43:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:43:05 - End Time 2025-01-17 22:43:05 [2025-01-17 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271428', 'tblTempUsageDetail_20' ) start [2025-01-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271428', 'tblTempUsageDetail_20' ) end [2025-01-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271428', 'tblTempVendorCDR_20' ) start [2025-01-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271428', 'tblTempVendorCDR_20' ) end [2025-01-17 22:43:19] Production.INFO: ProcessCDR(1,14271428,1,1,2) [2025-01-17 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271428', 'tblTempUsageDetail_20' ) start [2025-01-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271428', 'tblTempUsageDetail_20' ) end [2025-01-17 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:43:22] Production.INFO: ==16712== Releasing lock... [2025-01-17 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-17 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:44:05 [end_date_ymd] => 2025-01-17 22:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:44:05' and `end` < '2025-01-17 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-17 22:44:17] Production.INFO: count ==1271 [2025-01-17 22:44:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:44:05 - End Time 2025-01-17 22:44:05 [2025-01-17 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271433', 'tblTempUsageDetail_20' ) start [2025-01-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271433', 'tblTempUsageDetail_20' ) end [2025-01-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271433', 'tblTempVendorCDR_20' ) start [2025-01-17 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271433', 'tblTempVendorCDR_20' ) end [2025-01-17 22:44:17] Production.INFO: ProcessCDR(1,14271433,1,1,2) [2025-01-17 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271433', 'tblTempUsageDetail_20' ) start [2025-01-17 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271433', 'tblTempUsageDetail_20' ) end [2025-01-17 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:44:21] Production.INFO: ==16820== Releasing lock... [2025-01-17 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:44:21] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:45:05 [end_date_ymd] => 2025-01-17 22:45:05 [RateCDR] => 1 ) [2025-01-17 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:45:05' and `end` < '2025-01-17 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:45:17] Production.INFO: count ==1266 [2025-01-17 22:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:45:05 - End Time 2025-01-17 22:45:05 [2025-01-17 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271438', 'tblTempUsageDetail_20' ) start [2025-01-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271438', 'tblTempUsageDetail_20' ) end [2025-01-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271438', 'tblTempVendorCDR_20' ) start [2025-01-17 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271438', 'tblTempVendorCDR_20' ) end [2025-01-17 22:45:17] Production.INFO: ProcessCDR(1,14271438,1,1,2) [2025-01-17 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271438', 'tblTempUsageDetail_20' ) start [2025-01-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271438', 'tblTempUsageDetail_20' ) end [2025-01-17 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:45:21] Production.INFO: ==16925== Releasing lock... [2025-01-17 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:45:21] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:46:05 [end_date_ymd] => 2025-01-17 22:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:46:05' and `end` < '2025-01-17 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-17 22:46:19] Production.INFO: count ==1259 [2025-01-17 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:46:05 - End Time 2025-01-17 22:46:05 [2025-01-17 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271443', 'tblTempUsageDetail_20' ) start [2025-01-17 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271443', 'tblTempUsageDetail_20' ) end [2025-01-17 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271443', 'tblTempVendorCDR_20' ) start [2025-01-17 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271443', 'tblTempVendorCDR_20' ) end [2025-01-17 22:46:19] Production.INFO: ProcessCDR(1,14271443,1,1,2) [2025-01-17 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271443', 'tblTempUsageDetail_20' ) start [2025-01-17 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271443', 'tblTempUsageDetail_20' ) end [2025-01-17 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:46:22] Production.INFO: ==17027== Releasing lock... [2025-01-17 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:46:22] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:47:05 [end_date_ymd] => 2025-01-17 22:47:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:47:05' and `end` < '2025-01-17 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-17 22:47:19] Production.INFO: count ==1262 [2025-01-17 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:47:05 - End Time 2025-01-17 22:47:05 [2025-01-17 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271448', 'tblTempUsageDetail_20' ) start [2025-01-17 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271448', 'tblTempUsageDetail_20' ) end [2025-01-17 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271448', 'tblTempVendorCDR_20' ) start [2025-01-17 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271448', 'tblTempVendorCDR_20' ) end [2025-01-17 22:47:19] Production.INFO: ProcessCDR(1,14271448,1,1,2) [2025-01-17 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271448', 'tblTempUsageDetail_20' ) start [2025-01-17 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271448', 'tblTempUsageDetail_20' ) end [2025-01-17 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:47:22] Production.INFO: ==17175== Releasing lock... [2025-01-17 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:47:22] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:48:05 [end_date_ymd] => 2025-01-17 22:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:48:05' and `end` < '2025-01-17 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-17 22:48:17] Production.INFO: count ==1261 [2025-01-17 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:48:05 - End Time 2025-01-17 22:48:05 [2025-01-17 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271453', 'tblTempUsageDetail_20' ) start [2025-01-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271453', 'tblTempUsageDetail_20' ) end [2025-01-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271453', 'tblTempVendorCDR_20' ) start [2025-01-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271453', 'tblTempVendorCDR_20' ) end [2025-01-17 22:48:18] Production.INFO: ProcessCDR(1,14271453,1,1,2) [2025-01-17 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271453', 'tblTempUsageDetail_20' ) start [2025-01-17 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271453', 'tblTempUsageDetail_20' ) end [2025-01-17 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:48:21] Production.INFO: ==17279== Releasing lock... [2025-01-17 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:48:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-17 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:49:05 [end_date_ymd] => 2025-01-17 22:49:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:49:05' and `end` < '2025-01-17 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-17 22:49:19] Production.INFO: count ==1262 [2025-01-17 22:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:49:05 - End Time 2025-01-17 22:49:05 [2025-01-17 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271458', 'tblTempUsageDetail_20' ) start [2025-01-17 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271458', 'tblTempUsageDetail_20' ) end [2025-01-17 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271458', 'tblTempVendorCDR_20' ) start [2025-01-17 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271458', 'tblTempVendorCDR_20' ) end [2025-01-17 22:49:19] Production.INFO: ProcessCDR(1,14271458,1,1,2) [2025-01-17 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271458', 'tblTempUsageDetail_20' ) start [2025-01-17 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271458', 'tblTempUsageDetail_20' ) end [2025-01-17 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:49:24] Production.INFO: ==17391== Releasing lock... [2025-01-17 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:49:24] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:50:05 [end_date_ymd] => 2025-01-17 22:50:05 [RateCDR] => 1 ) [2025-01-17 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:50:05' and `end` < '2025-01-17 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:50:18] Production.INFO: count ==1262 [2025-01-17 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:50:05 - End Time 2025-01-17 22:50:05 [2025-01-17 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271463', 'tblTempUsageDetail_20' ) start [2025-01-17 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271463', 'tblTempUsageDetail_20' ) end [2025-01-17 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271463', 'tblTempVendorCDR_20' ) start [2025-01-17 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271463', 'tblTempVendorCDR_20' ) end [2025-01-17 22:50:18] Production.INFO: ProcessCDR(1,14271463,1,1,2) [2025-01-17 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271463', 'tblTempUsageDetail_20' ) start [2025-01-17 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271463', 'tblTempUsageDetail_20' ) end [2025-01-17 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:50:21] Production.INFO: ==17496== Releasing lock... [2025-01-17 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:50:21] Production.INFO: 37 MB #Memory Used# [2025-01-17 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:51:05 [end_date_ymd] => 2025-01-17 22:51:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:51:05' and `end` < '2025-01-17 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-17 22:51:18] Production.INFO: count ==1225 [2025-01-17 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:51:05 - End Time 2025-01-17 22:51:05 [2025-01-17 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271469', 'tblTempUsageDetail_20' ) start [2025-01-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271469', 'tblTempUsageDetail_20' ) end [2025-01-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271469', 'tblTempVendorCDR_20' ) start [2025-01-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271469', 'tblTempVendorCDR_20' ) end [2025-01-17 22:51:18] Production.INFO: ProcessCDR(1,14271469,1,1,2) [2025-01-17 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271469', 'tblTempUsageDetail_20' ) start [2025-01-17 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271469', 'tblTempUsageDetail_20' ) end [2025-01-17 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:51:21] Production.INFO: ==17600== Releasing lock... [2025-01-17 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:52:05 [end_date_ymd] => 2025-01-17 22:52:05 [RateCDR] => 1 ) [2025-01-17 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:52:05' and `end` < '2025-01-17 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:52:17] Production.INFO: count ==1221 [2025-01-17 22:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:52:05 - End Time 2025-01-17 22:52:05 [2025-01-17 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271474', 'tblTempUsageDetail_20' ) start [2025-01-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271474', 'tblTempUsageDetail_20' ) end [2025-01-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271474', 'tblTempVendorCDR_20' ) start [2025-01-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271474', 'tblTempVendorCDR_20' ) end [2025-01-17 22:52:17] Production.INFO: ProcessCDR(1,14271474,1,1,2) [2025-01-17 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271474', 'tblTempUsageDetail_20' ) start [2025-01-17 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271474', 'tblTempUsageDetail_20' ) end [2025-01-17 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:52:21] Production.INFO: ==17700== Releasing lock... [2025-01-17 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:53:05 [end_date_ymd] => 2025-01-17 22:53:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:53:05' and `end` < '2025-01-17 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-17 22:53:19] Production.INFO: count ==1221 [2025-01-17 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-17 19:53:05 - End Time 2025-01-17 22:53:05 [2025-01-17 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271479', 'tblTempUsageDetail_20' ) start [2025-01-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271479', 'tblTempUsageDetail_20' ) end [2025-01-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271479', 'tblTempVendorCDR_20' ) start [2025-01-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271479', 'tblTempVendorCDR_20' ) end [2025-01-17 22:53:19] Production.INFO: ProcessCDR(1,14271479,1,1,2) [2025-01-17 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271479', 'tblTempUsageDetail_20' ) start [2025-01-17 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271479', 'tblTempUsageDetail_20' ) end [2025-01-17 22:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:53:24] Production.INFO: ==17804== Releasing lock... [2025-01-17 22:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:53:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:54:04 [end_date_ymd] => 2025-01-17 22:54:04 [RateCDR] => 1 ) [2025-01-17 22: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-17 19:54:04' and `end` < '2025-01-17 22: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-17 22:54:17] Production.INFO: count ==1220 [2025-01-17 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:54:04 - End Time 2025-01-17 22:54:04 [2025-01-17 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271484', 'tblTempUsageDetail_20' ) start [2025-01-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271484', 'tblTempUsageDetail_20' ) end [2025-01-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271484', 'tblTempVendorCDR_20' ) start [2025-01-17 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271484', 'tblTempVendorCDR_20' ) end [2025-01-17 22:54:17] Production.INFO: ProcessCDR(1,14271484,1,1,2) [2025-01-17 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271484', 'tblTempUsageDetail_20' ) start [2025-01-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271484', 'tblTempUsageDetail_20' ) end [2025-01-17 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:54:22] Production.INFO: ==17909== Releasing lock... [2025-01-17 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:54:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:55:05 [end_date_ymd] => 2025-01-17 22:55:05 [RateCDR] => 1 ) [2025-01-17 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:55:05' and `end` < '2025-01-17 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:55:18] Production.INFO: count ==1222 [2025-01-17 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:55:05 - End Time 2025-01-17 22:55:05 [2025-01-17 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271489', 'tblTempUsageDetail_20' ) start [2025-01-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271489', 'tblTempUsageDetail_20' ) end [2025-01-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271489', 'tblTempVendorCDR_20' ) start [2025-01-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271489', 'tblTempVendorCDR_20' ) end [2025-01-17 22:55:18] Production.INFO: ProcessCDR(1,14271489,1,1,2) [2025-01-17 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271489', 'tblTempUsageDetail_20' ) start [2025-01-17 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271489', 'tblTempUsageDetail_20' ) end [2025-01-17 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:55:21] Production.INFO: ==18016== Releasing lock... [2025-01-17 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:55:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:56:05 [end_date_ymd] => 2025-01-17 22:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:56:05' and `end` < '2025-01-17 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-17 22:56:17] Production.INFO: count ==1223 [2025-01-17 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:56:05 - End Time 2025-01-17 22:56:05 [2025-01-17 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271494', 'tblTempUsageDetail_20' ) start [2025-01-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271494', 'tblTempUsageDetail_20' ) end [2025-01-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271494', 'tblTempVendorCDR_20' ) start [2025-01-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271494', 'tblTempVendorCDR_20' ) end [2025-01-17 22:56:17] Production.INFO: ProcessCDR(1,14271494,1,1,2) [2025-01-17 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271494', 'tblTempUsageDetail_20' ) start [2025-01-17 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271494', 'tblTempUsageDetail_20' ) end [2025-01-17 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:56:21] Production.INFO: ==18117== Releasing lock... [2025-01-17 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:56:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:57:05 [end_date_ymd] => 2025-01-17 22:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:57:05' and `end` < '2025-01-17 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-17 22:57:17] Production.INFO: count ==1225 [2025-01-17 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:57:05 - End Time 2025-01-17 22:57:05 [2025-01-17 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271499', 'tblTempUsageDetail_20' ) start [2025-01-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271499', 'tblTempUsageDetail_20' ) end [2025-01-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271499', 'tblTempVendorCDR_20' ) start [2025-01-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271499', 'tblTempVendorCDR_20' ) end [2025-01-17 22:57:18] Production.INFO: ProcessCDR(1,14271499,1,1,2) [2025-01-17 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271499', 'tblTempUsageDetail_20' ) start [2025-01-17 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271499', 'tblTempUsageDetail_20' ) end [2025-01-17 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:57:21] Production.INFO: ==18224== Releasing lock... [2025-01-17 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:57:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:58:05 [end_date_ymd] => 2025-01-17 22:58:05 [RateCDR] => 1 ) [2025-01-17 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 19:58:05' and `end` < '2025-01-17 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 22:58:18] Production.INFO: count ==1223 [2025-01-17 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-17 19:58:05 - End Time 2025-01-17 22:58:05 [2025-01-17 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271504', 'tblTempUsageDetail_20' ) start [2025-01-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271504', 'tblTempUsageDetail_20' ) end [2025-01-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271504', 'tblTempVendorCDR_20' ) start [2025-01-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271504', 'tblTempVendorCDR_20' ) end [2025-01-17 22:58:19] Production.INFO: ProcessCDR(1,14271504,1,1,2) [2025-01-17 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271504', 'tblTempUsageDetail_20' ) start [2025-01-17 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271504', 'tblTempUsageDetail_20' ) end [2025-01-17 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:58:22] Production.INFO: ==18333== Releasing lock... [2025-01-17 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 19:59:05 [end_date_ymd] => 2025-01-17 22:59:05 [RateCDR] => 1 ) [2025-01-17 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-17 19:59:05' and `end` < '2025-01-17 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-17 22:59:17] Production.INFO: count ==1223 [2025-01-17 22:59:17] Production.ERROR: pbx CDR StartTime 2025-01-17 19:59:05 - End Time 2025-01-17 22:59:05 [2025-01-17 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271509', 'tblTempUsageDetail_20' ) start [2025-01-17 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271509', 'tblTempUsageDetail_20' ) end [2025-01-17 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271509', 'tblTempVendorCDR_20' ) start [2025-01-17 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271509', 'tblTempVendorCDR_20' ) end [2025-01-17 22:59:17] Production.INFO: ProcessCDR(1,14271509,1,1,2) [2025-01-17 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271509', 'tblTempUsageDetail_20' ) start [2025-01-17 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271509', 'tblTempUsageDetail_20' ) end [2025-01-17 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 22:59:21] Production.INFO: ==18436== Releasing lock... [2025-01-17 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 22:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:00:06 [end_date_ymd] => 2025-01-17 23:00:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:00:06' and `end` < '2025-01-17 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-17 23:00:18] Production.INFO: count ==1223 [2025-01-17 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:00:06 - End Time 2025-01-17 23:00:06 [2025-01-17 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271514', 'tblTempUsageDetail_20' ) start [2025-01-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271514', 'tblTempUsageDetail_20' ) end [2025-01-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271514', 'tblTempVendorCDR_20' ) start [2025-01-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271514', 'tblTempVendorCDR_20' ) end [2025-01-17 23:00:19] Production.INFO: ProcessCDR(1,14271514,1,1,2) [2025-01-17 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271514', 'tblTempUsageDetail_20' ) start [2025-01-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271514', 'tblTempUsageDetail_20' ) end [2025-01-17 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:00:23] Production.INFO: ==18543== Releasing lock... [2025-01-17 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:00:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-17 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:01:05 [end_date_ymd] => 2025-01-17 23:01:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:01:05' and `end` < '2025-01-17 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-17 23:01:18] Production.INFO: count ==1196 [2025-01-17 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:01:05 - End Time 2025-01-17 23:01:05 [2025-01-17 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271520', 'tblTempUsageDetail_20' ) start [2025-01-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271520', 'tblTempUsageDetail_20' ) end [2025-01-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271520', 'tblTempVendorCDR_20' ) start [2025-01-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271520', 'tblTempVendorCDR_20' ) end [2025-01-17 23:01:18] Production.INFO: ProcessCDR(1,14271520,1,1,2) [2025-01-17 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271520', 'tblTempUsageDetail_20' ) start [2025-01-17 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271520', 'tblTempUsageDetail_20' ) end [2025-01-17 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:01:21] Production.INFO: ==18662== Releasing lock... [2025-01-17 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:02:05 [end_date_ymd] => 2025-01-17 23:02:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:02:05' and `end` < '2025-01-17 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-17 23:02:18] Production.INFO: count ==1189 [2025-01-17 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:02:05 - End Time 2025-01-17 23:02:05 [2025-01-17 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271525', 'tblTempUsageDetail_20' ) start [2025-01-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271525', 'tblTempUsageDetail_20' ) end [2025-01-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271525', 'tblTempVendorCDR_20' ) start [2025-01-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271525', 'tblTempVendorCDR_20' ) end [2025-01-17 23:02:18] Production.INFO: ProcessCDR(1,14271525,1,1,2) [2025-01-17 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271525', 'tblTempUsageDetail_20' ) start [2025-01-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271525', 'tblTempUsageDetail_20' ) end [2025-01-17 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:02:21] Production.INFO: ==18849== Releasing lock... [2025-01-17 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:02:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:03:05 [end_date_ymd] => 2025-01-17 23:03:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:03:05' and `end` < '2025-01-17 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-17 23:03:18] Production.INFO: count ==1188 [2025-01-17 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:03:05 - End Time 2025-01-17 23:03:05 [2025-01-17 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271530', 'tblTempUsageDetail_20' ) start [2025-01-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271530', 'tblTempUsageDetail_20' ) end [2025-01-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271530', 'tblTempVendorCDR_20' ) start [2025-01-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271530', 'tblTempVendorCDR_20' ) end [2025-01-17 23:03:18] Production.INFO: ProcessCDR(1,14271530,1,1,2) [2025-01-17 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271530', 'tblTempUsageDetail_20' ) start [2025-01-17 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271530', 'tblTempUsageDetail_20' ) end [2025-01-17 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:03:21] Production.INFO: ==18989== Releasing lock... [2025-01-17 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:03:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:04:05 [end_date_ymd] => 2025-01-17 23:04:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:04:05' and `end` < '2025-01-17 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-17 23:04:18] Production.INFO: count ==1188 [2025-01-17 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:04:05 - End Time 2025-01-17 23:04:05 [2025-01-17 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271535', 'tblTempUsageDetail_20' ) start [2025-01-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271535', 'tblTempUsageDetail_20' ) end [2025-01-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271535', 'tblTempVendorCDR_20' ) start [2025-01-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271535', 'tblTempVendorCDR_20' ) end [2025-01-17 23:04:18] Production.INFO: ProcessCDR(1,14271535,1,1,2) [2025-01-17 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271535', 'tblTempUsageDetail_20' ) start [2025-01-17 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271535', 'tblTempUsageDetail_20' ) end [2025-01-17 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:04:21] Production.INFO: ==19092== Releasing lock... [2025-01-17 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:04:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:05:05 [end_date_ymd] => 2025-01-17 23:05:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:05:05' and `end` < '2025-01-17 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-17 23:05:18] Production.INFO: count ==1190 [2025-01-17 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:05:05 - End Time 2025-01-17 23:05:05 [2025-01-17 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271540', 'tblTempUsageDetail_20' ) start [2025-01-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271540', 'tblTempUsageDetail_20' ) end [2025-01-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271540', 'tblTempVendorCDR_20' ) start [2025-01-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271540', 'tblTempVendorCDR_20' ) end [2025-01-17 23:05:18] Production.INFO: ProcessCDR(1,14271540,1,1,2) [2025-01-17 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271540', 'tblTempUsageDetail_20' ) start [2025-01-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271540', 'tblTempUsageDetail_20' ) end [2025-01-17 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:05:21] Production.INFO: ==19272== Releasing lock... [2025-01-17 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:05:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:06:05 [end_date_ymd] => 2025-01-17 23:06:05 [RateCDR] => 1 ) [2025-01-17 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:06:05' and `end` < '2025-01-17 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:06:18] Production.INFO: count ==1192 [2025-01-17 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:06:05 - End Time 2025-01-17 23:06:05 [2025-01-17 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271545', 'tblTempUsageDetail_20' ) start [2025-01-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271545', 'tblTempUsageDetail_20' ) end [2025-01-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271545', 'tblTempVendorCDR_20' ) start [2025-01-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271545', 'tblTempVendorCDR_20' ) end [2025-01-17 23:06:18] Production.INFO: ProcessCDR(1,14271545,1,1,2) [2025-01-17 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271545', 'tblTempUsageDetail_20' ) start [2025-01-17 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271545', 'tblTempUsageDetail_20' ) end [2025-01-17 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:06:22] Production.INFO: ==19380== Releasing lock... [2025-01-17 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:06:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:07:05 [end_date_ymd] => 2025-01-17 23:07:05 [RateCDR] => 1 ) [2025-01-17 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:07:05' and `end` < '2025-01-17 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:07:19] Production.INFO: count ==1200 [2025-01-17 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:07:05 - End Time 2025-01-17 23:07:05 [2025-01-17 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271550', 'tblTempUsageDetail_20' ) start [2025-01-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271550', 'tblTempUsageDetail_20' ) end [2025-01-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271550', 'tblTempVendorCDR_20' ) start [2025-01-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271550', 'tblTempVendorCDR_20' ) end [2025-01-17 23:07:19] Production.INFO: ProcessCDR(1,14271550,1,1,2) [2025-01-17 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271550', 'tblTempUsageDetail_20' ) start [2025-01-17 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271550', 'tblTempUsageDetail_20' ) end [2025-01-17 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:07:23] Production.INFO: ==19483== Releasing lock... [2025-01-17 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:07:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:08:05 [end_date_ymd] => 2025-01-17 23:08:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:08:05' and `end` < '2025-01-17 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-17 23:08:18] Production.INFO: count ==1197 [2025-01-17 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:08:05 - End Time 2025-01-17 23:08:05 [2025-01-17 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271555', 'tblTempUsageDetail_20' ) start [2025-01-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271555', 'tblTempUsageDetail_20' ) end [2025-01-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271555', 'tblTempVendorCDR_20' ) start [2025-01-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271555', 'tblTempVendorCDR_20' ) end [2025-01-17 23:08:18] Production.INFO: ProcessCDR(1,14271555,1,1,2) [2025-01-17 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271555', 'tblTempUsageDetail_20' ) start [2025-01-17 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271555', 'tblTempUsageDetail_20' ) end [2025-01-17 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:08:21] Production.INFO: ==19632== Releasing lock... [2025-01-17 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:09:05 [end_date_ymd] => 2025-01-17 23:09:05 [RateCDR] => 1 ) [2025-01-17 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:09:05' and `end` < '2025-01-17 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:09:17] Production.INFO: count ==1198 [2025-01-17 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:09:05 - End Time 2025-01-17 23:09:05 [2025-01-17 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271560', 'tblTempUsageDetail_20' ) start [2025-01-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271560', 'tblTempUsageDetail_20' ) end [2025-01-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271560', 'tblTempVendorCDR_20' ) start [2025-01-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271560', 'tblTempVendorCDR_20' ) end [2025-01-17 23:09:17] Production.INFO: ProcessCDR(1,14271560,1,1,2) [2025-01-17 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271560', 'tblTempUsageDetail_20' ) start [2025-01-17 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271560', 'tblTempUsageDetail_20' ) end [2025-01-17 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:09:22] Production.INFO: ==19778== Releasing lock... [2025-01-17 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:10:06 [end_date_ymd] => 2025-01-17 23:10:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:10:06' and `end` < '2025-01-17 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-17 23:10:19] Production.INFO: count ==1197 [2025-01-17 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:10:06 - End Time 2025-01-17 23:10:06 [2025-01-17 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271565', 'tblTempUsageDetail_20' ) start [2025-01-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271565', 'tblTempUsageDetail_20' ) end [2025-01-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271565', 'tblTempVendorCDR_20' ) start [2025-01-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271565', 'tblTempVendorCDR_20' ) end [2025-01-17 23:10:19] Production.INFO: ProcessCDR(1,14271565,1,1,2) [2025-01-17 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271565', 'tblTempUsageDetail_20' ) start [2025-01-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271565', 'tblTempUsageDetail_20' ) end [2025-01-17 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:10:22] Production.INFO: ==19885== Releasing lock... [2025-01-17 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:10:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-17 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:11:04 [end_date_ymd] => 2025-01-17 23:11:04 [RateCDR] => 1 ) [2025-01-17 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:11:04' and `end` < '2025-01-17 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:11:17] Production.INFO: count ==1144 [2025-01-17 23:11:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:11:04 - End Time 2025-01-17 23:11:04 [2025-01-17 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271571', 'tblTempUsageDetail_20' ) start [2025-01-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271571', 'tblTempUsageDetail_20' ) end [2025-01-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271571', 'tblTempVendorCDR_20' ) start [2025-01-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271571', 'tblTempVendorCDR_20' ) end [2025-01-17 23:11:17] Production.INFO: ProcessCDR(1,14271571,1,1,2) [2025-01-17 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271571', 'tblTempUsageDetail_20' ) start [2025-01-17 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271571', 'tblTempUsageDetail_20' ) end [2025-01-17 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:11:20] Production.INFO: ==19990== Releasing lock... [2025-01-17 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:11:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:12:05 [end_date_ymd] => 2025-01-17 23:12:05 [RateCDR] => 1 ) [2025-01-17 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:12:05' and `end` < '2025-01-17 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:12:17] Production.INFO: count ==1144 [2025-01-17 23:12:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:12:05 - End Time 2025-01-17 23:12:05 [2025-01-17 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271576', 'tblTempUsageDetail_20' ) start [2025-01-17 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271576', 'tblTempUsageDetail_20' ) end [2025-01-17 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271576', 'tblTempVendorCDR_20' ) start [2025-01-17 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271576', 'tblTempVendorCDR_20' ) end [2025-01-17 23:12:17] Production.INFO: ProcessCDR(1,14271576,1,1,2) [2025-01-17 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271576', 'tblTempUsageDetail_20' ) start [2025-01-17 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271576', 'tblTempUsageDetail_20' ) end [2025-01-17 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:12:20] Production.INFO: ==20170== Releasing lock... [2025-01-17 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:12:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:13:05 [end_date_ymd] => 2025-01-17 23:13:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:13:05' and `end` < '2025-01-17 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-17 23:13:18] Production.INFO: count ==1144 [2025-01-17 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:13:05 - End Time 2025-01-17 23:13:05 [2025-01-17 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271581', 'tblTempUsageDetail_20' ) start [2025-01-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271581', 'tblTempUsageDetail_20' ) end [2025-01-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271581', 'tblTempVendorCDR_20' ) start [2025-01-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271581', 'tblTempVendorCDR_20' ) end [2025-01-17 23:13:18] Production.INFO: ProcessCDR(1,14271581,1,1,2) [2025-01-17 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271581', 'tblTempUsageDetail_20' ) start [2025-01-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271581', 'tblTempUsageDetail_20' ) end [2025-01-17 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:13:21] Production.INFO: ==20278== Releasing lock... [2025-01-17 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:14:04 [end_date_ymd] => 2025-01-17 23:14:04 [RateCDR] => 1 ) [2025-01-17 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-17 20:14:04' and `end` < '2025-01-17 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-17 23:14:17] Production.INFO: count ==1143 [2025-01-17 23:14:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:14:04 - End Time 2025-01-17 23:14:04 [2025-01-17 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271586', 'tblTempUsageDetail_20' ) start [2025-01-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271586', 'tblTempUsageDetail_20' ) end [2025-01-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271586', 'tblTempVendorCDR_20' ) start [2025-01-17 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271586', 'tblTempVendorCDR_20' ) end [2025-01-17 23:14:17] Production.INFO: ProcessCDR(1,14271586,1,1,2) [2025-01-17 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271586', 'tblTempUsageDetail_20' ) start [2025-01-17 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271586', 'tblTempUsageDetail_20' ) end [2025-01-17 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:14:20] Production.INFO: ==20387== Releasing lock... [2025-01-17 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:14:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:15:05 [end_date_ymd] => 2025-01-17 23:15:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:15:05' and `end` < '2025-01-17 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-17 23:15:17] Production.INFO: count ==1144 [2025-01-17 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:15:05 - End Time 2025-01-17 23:15:05 [2025-01-17 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271591', 'tblTempUsageDetail_20' ) start [2025-01-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271591', 'tblTempUsageDetail_20' ) end [2025-01-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271591', 'tblTempVendorCDR_20' ) start [2025-01-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271591', 'tblTempVendorCDR_20' ) end [2025-01-17 23:15:18] Production.INFO: ProcessCDR(1,14271591,1,1,2) [2025-01-17 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271591', 'tblTempUsageDetail_20' ) start [2025-01-17 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271591', 'tblTempUsageDetail_20' ) end [2025-01-17 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:15:24] Production.INFO: ==20592== Releasing lock... [2025-01-17 23:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:15:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:16:06 [end_date_ymd] => 2025-01-17 23:16:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:16:06' and `end` < '2025-01-17 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-17 23:16:18] Production.INFO: count ==1145 [2025-01-17 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:16:06 - End Time 2025-01-17 23:16:06 [2025-01-17 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271596', 'tblTempUsageDetail_20' ) start [2025-01-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271596', 'tblTempUsageDetail_20' ) end [2025-01-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271596', 'tblTempVendorCDR_20' ) start [2025-01-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271596', 'tblTempVendorCDR_20' ) end [2025-01-17 23:16:18] Production.INFO: ProcessCDR(1,14271596,1,1,2) [2025-01-17 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271596', 'tblTempUsageDetail_20' ) start [2025-01-17 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271596', 'tblTempUsageDetail_20' ) end [2025-01-17 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:16:22] Production.INFO: ==20695== Releasing lock... [2025-01-17 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:17:05 [end_date_ymd] => 2025-01-17 23:17:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:17:05' and `end` < '2025-01-17 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-17 23:17:18] Production.INFO: count ==1143 [2025-01-17 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:17:05 - End Time 2025-01-17 23:17:05 [2025-01-17 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271601', 'tblTempUsageDetail_20' ) start [2025-01-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271601', 'tblTempUsageDetail_20' ) end [2025-01-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271601', 'tblTempVendorCDR_20' ) start [2025-01-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271601', 'tblTempVendorCDR_20' ) end [2025-01-17 23:17:18] Production.INFO: ProcessCDR(1,14271601,1,1,2) [2025-01-17 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271601', 'tblTempUsageDetail_20' ) start [2025-01-17 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271601', 'tblTempUsageDetail_20' ) end [2025-01-17 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:17:21] Production.INFO: ==20797== Releasing lock... [2025-01-17 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:17:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:18:04 [end_date_ymd] => 2025-01-17 23:18:04 [RateCDR] => 1 ) [2025-01-17 23:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:18:04' and `end` < '2025-01-17 23:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:18:17] Production.INFO: count ==1145 [2025-01-17 23:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:18:04 - End Time 2025-01-17 23:18:04 [2025-01-17 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271606', 'tblTempUsageDetail_20' ) start [2025-01-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271606', 'tblTempUsageDetail_20' ) end [2025-01-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271606', 'tblTempVendorCDR_20' ) start [2025-01-17 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271606', 'tblTempVendorCDR_20' ) end [2025-01-17 23:18:17] Production.INFO: ProcessCDR(1,14271606,1,1,2) [2025-01-17 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271606', 'tblTempUsageDetail_20' ) start [2025-01-17 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271606', 'tblTempUsageDetail_20' ) end [2025-01-17 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:18:22] Production.INFO: ==20949== Releasing lock... [2025-01-17 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-17 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:19:05 [end_date_ymd] => 2025-01-17 23:19:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:19:05' and `end` < '2025-01-17 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-17 23:19:19] Production.INFO: count ==1138 [2025-01-17 23:19:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:19:05 - End Time 2025-01-17 23:19:05 [2025-01-17 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271611', 'tblTempUsageDetail_20' ) start [2025-01-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271611', 'tblTempUsageDetail_20' ) end [2025-01-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271611', 'tblTempVendorCDR_20' ) start [2025-01-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271611', 'tblTempVendorCDR_20' ) end [2025-01-17 23:19:19] Production.INFO: ProcessCDR(1,14271611,1,1,2) [2025-01-17 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271611', 'tblTempUsageDetail_20' ) start [2025-01-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271611', 'tblTempUsageDetail_20' ) end [2025-01-17 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:19:22] Production.INFO: ==21055== Releasing lock... [2025-01-17 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:19:22] Production.INFO: 36 MB #Memory Used# [2025-01-17 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:20:06 [end_date_ymd] => 2025-01-17 23:20:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:20:06' and `end` < '2025-01-17 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-17 23:20:18] Production.INFO: count ==1133 [2025-01-17 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:20:06 - End Time 2025-01-17 23:20:06 [2025-01-17 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271617', 'tblTempUsageDetail_20' ) start [2025-01-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271617', 'tblTempUsageDetail_20' ) end [2025-01-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271617', 'tblTempVendorCDR_20' ) start [2025-01-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271617', 'tblTempVendorCDR_20' ) end [2025-01-17 23:20:18] Production.INFO: ProcessCDR(1,14271617,1,1,2) [2025-01-17 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271617', 'tblTempUsageDetail_20' ) start [2025-01-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271617', 'tblTempUsageDetail_20' ) end [2025-01-17 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:20:22] Production.INFO: ==21157== Releasing lock... [2025-01-17 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:20:22] Production.INFO: 36 MB #Memory Used# [2025-01-17 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:21:05 [end_date_ymd] => 2025-01-17 23:21:05 [RateCDR] => 1 ) [2025-01-17 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:21:05' and `end` < '2025-01-17 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:21:18] Production.INFO: count ==1076 [2025-01-17 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:21:05 - End Time 2025-01-17 23:21:05 [2025-01-17 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271622', 'tblTempUsageDetail_20' ) start [2025-01-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271622', 'tblTempUsageDetail_20' ) end [2025-01-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271622', 'tblTempVendorCDR_20' ) start [2025-01-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271622', 'tblTempVendorCDR_20' ) end [2025-01-17 23:21:18] Production.INFO: ProcessCDR(1,14271622,1,1,2) [2025-01-17 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271622', 'tblTempUsageDetail_20' ) start [2025-01-17 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271622', 'tblTempUsageDetail_20' ) end [2025-01-17 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:21:22] Production.INFO: ==21268== Releasing lock... [2025-01-17 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:21:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:22:05 [end_date_ymd] => 2025-01-17 23:22:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:22:05' and `end` < '2025-01-17 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-17 23:22:18] Production.INFO: count ==1078 [2025-01-17 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:22:05 - End Time 2025-01-17 23:22:05 [2025-01-17 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271627', 'tblTempUsageDetail_20' ) start [2025-01-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271627', 'tblTempUsageDetail_20' ) end [2025-01-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271627', 'tblTempVendorCDR_20' ) start [2025-01-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271627', 'tblTempVendorCDR_20' ) end [2025-01-17 23:22:18] Production.INFO: ProcessCDR(1,14271627,1,1,2) [2025-01-17 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271627', 'tblTempUsageDetail_20' ) start [2025-01-17 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271627', 'tblTempUsageDetail_20' ) end [2025-01-17 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:22:21] Production.INFO: ==21370== Releasing lock... [2025-01-17 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:22:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:23:05 [end_date_ymd] => 2025-01-17 23:23:05 [RateCDR] => 1 ) [2025-01-17 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:23:05' and `end` < '2025-01-17 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:23:18] Production.INFO: count ==1076 [2025-01-17 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:23:05 - End Time 2025-01-17 23:23:05 [2025-01-17 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271632', 'tblTempUsageDetail_20' ) start [2025-01-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271632', 'tblTempUsageDetail_20' ) end [2025-01-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271632', 'tblTempVendorCDR_20' ) start [2025-01-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271632', 'tblTempVendorCDR_20' ) end [2025-01-17 23:23:18] Production.INFO: ProcessCDR(1,14271632,1,1,2) [2025-01-17 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271632', 'tblTempUsageDetail_20' ) start [2025-01-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271632', 'tblTempUsageDetail_20' ) end [2025-01-17 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:23:22] Production.INFO: ==21470== Releasing lock... [2025-01-17 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:23:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:24:05 [end_date_ymd] => 2025-01-17 23:24:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:24:05' and `end` < '2025-01-17 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-17 23:24:17] Production.INFO: count ==1076 [2025-01-17 23:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:24:05 - End Time 2025-01-17 23:24:05 [2025-01-17 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271637', 'tblTempUsageDetail_20' ) start [2025-01-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271637', 'tblTempUsageDetail_20' ) end [2025-01-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271637', 'tblTempVendorCDR_20' ) start [2025-01-17 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271637', 'tblTempVendorCDR_20' ) end [2025-01-17 23:24:17] Production.INFO: ProcessCDR(1,14271637,1,1,2) [2025-01-17 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271637', 'tblTempUsageDetail_20' ) start [2025-01-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271637', 'tblTempUsageDetail_20' ) end [2025-01-17 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:24:21] Production.INFO: ==21573== Releasing lock... [2025-01-17 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:24:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:25:05 [end_date_ymd] => 2025-01-17 23:25:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:25:05' and `end` < '2025-01-17 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-17 23:25:18] Production.INFO: count ==1073 [2025-01-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:25:05 - End Time 2025-01-17 23:25:05 [2025-01-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271642', 'tblTempUsageDetail_20' ) start [2025-01-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271642', 'tblTempUsageDetail_20' ) end [2025-01-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271642', 'tblTempVendorCDR_20' ) start [2025-01-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271642', 'tblTempVendorCDR_20' ) end [2025-01-17 23:25:18] Production.INFO: ProcessCDR(1,14271642,1,1,2) [2025-01-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271642', 'tblTempUsageDetail_20' ) start [2025-01-17 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271642', 'tblTempUsageDetail_20' ) end [2025-01-17 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:25:21] Production.INFO: ==21677== Releasing lock... [2025-01-17 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:25:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:26:05 [end_date_ymd] => 2025-01-17 23:26:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:26:05' and `end` < '2025-01-17 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-17 23:26:17] Production.INFO: count ==1072 [2025-01-17 23:26:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:26:05 - End Time 2025-01-17 23:26:05 [2025-01-17 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271647', 'tblTempUsageDetail_20' ) start [2025-01-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271647', 'tblTempUsageDetail_20' ) end [2025-01-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271647', 'tblTempVendorCDR_20' ) start [2025-01-17 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271647', 'tblTempVendorCDR_20' ) end [2025-01-17 23:26:17] Production.INFO: ProcessCDR(1,14271647,1,1,2) [2025-01-17 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271647', 'tblTempUsageDetail_20' ) start [2025-01-17 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271647', 'tblTempUsageDetail_20' ) end [2025-01-17 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:26:21] Production.INFO: ==21784== Releasing lock... [2025-01-17 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:26:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:27:05 [end_date_ymd] => 2025-01-17 23:27:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:27:05' and `end` < '2025-01-17 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-17 23:27:18] Production.INFO: count ==1070 [2025-01-17 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:27:05 - End Time 2025-01-17 23:27:05 [2025-01-17 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271652', 'tblTempUsageDetail_20' ) start [2025-01-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271652', 'tblTempUsageDetail_20' ) end [2025-01-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271652', 'tblTempVendorCDR_20' ) start [2025-01-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271652', 'tblTempVendorCDR_20' ) end [2025-01-17 23:27:18] Production.INFO: ProcessCDR(1,14271652,1,1,2) [2025-01-17 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271652', 'tblTempUsageDetail_20' ) start [2025-01-17 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271652', 'tblTempUsageDetail_20' ) end [2025-01-17 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:27:23] Production.INFO: ==21894== Releasing lock... [2025-01-17 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:27:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:28:04 [end_date_ymd] => 2025-01-17 23:28:04 [RateCDR] => 1 ) [2025-01-17 23: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-17 20:28:04' and `end` < '2025-01-17 23: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-17 23:28:17] Production.INFO: count ==1073 [2025-01-17 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:28:04 - End Time 2025-01-17 23:28:04 [2025-01-17 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271657', 'tblTempUsageDetail_20' ) start [2025-01-17 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271657', 'tblTempUsageDetail_20' ) end [2025-01-17 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271657', 'tblTempVendorCDR_20' ) start [2025-01-17 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271657', 'tblTempVendorCDR_20' ) end [2025-01-17 23:28:17] Production.INFO: ProcessCDR(1,14271657,1,1,2) [2025-01-17 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271657', 'tblTempUsageDetail_20' ) start [2025-01-17 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271657', 'tblTempUsageDetail_20' ) end [2025-01-17 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:28:20] Production.INFO: ==21995== Releasing lock... [2025-01-17 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:28:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:29:05 [end_date_ymd] => 2025-01-17 23:29:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:29:05' and `end` < '2025-01-17 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-17 23:29:18] Production.INFO: count ==1073 [2025-01-17 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:29:05 - End Time 2025-01-17 23:29:05 [2025-01-17 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271662', 'tblTempUsageDetail_20' ) start [2025-01-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271662', 'tblTempUsageDetail_20' ) end [2025-01-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271662', 'tblTempVendorCDR_20' ) start [2025-01-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271662', 'tblTempVendorCDR_20' ) end [2025-01-17 23:29:18] Production.INFO: ProcessCDR(1,14271662,1,1,2) [2025-01-17 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271662', 'tblTempUsageDetail_20' ) start [2025-01-17 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271662', 'tblTempUsageDetail_20' ) end [2025-01-17 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:29:21] Production.INFO: ==22097== Releasing lock... [2025-01-17 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:29:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:30:05 [end_date_ymd] => 2025-01-17 23:30:05 [RateCDR] => 1 ) [2025-01-17 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:30:05' and `end` < '2025-01-17 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:30:18] Production.INFO: count ==1068 [2025-01-17 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:30:05 - End Time 2025-01-17 23:30:05 [2025-01-17 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271667', 'tblTempUsageDetail_20' ) start [2025-01-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271667', 'tblTempUsageDetail_20' ) end [2025-01-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271667', 'tblTempVendorCDR_20' ) start [2025-01-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271667', 'tblTempVendorCDR_20' ) end [2025-01-17 23:30:18] Production.INFO: ProcessCDR(1,14271667,1,1,2) [2025-01-17 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271667', 'tblTempUsageDetail_20' ) start [2025-01-17 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271667', 'tblTempUsageDetail_20' ) end [2025-01-17 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:30:21] Production.INFO: ==22204== Releasing lock... [2025-01-17 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:30:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-17 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:31:05 [end_date_ymd] => 2025-01-17 23:31:05 [RateCDR] => 1 ) [2025-01-17 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:31:05' and `end` < '2025-01-17 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:31:18] Production.INFO: count ==1038 [2025-01-17 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:31:05 - End Time 2025-01-17 23:31:05 [2025-01-17 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271673', 'tblTempUsageDetail_20' ) start [2025-01-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271673', 'tblTempUsageDetail_20' ) end [2025-01-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271673', 'tblTempVendorCDR_20' ) start [2025-01-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271673', 'tblTempVendorCDR_20' ) end [2025-01-17 23:31:18] Production.INFO: ProcessCDR(1,14271673,1,1,2) [2025-01-17 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271673', 'tblTempUsageDetail_20' ) start [2025-01-17 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271673', 'tblTempUsageDetail_20' ) end [2025-01-17 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:31:23] Production.INFO: ==22320== Releasing lock... [2025-01-17 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:31:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:32:05 [end_date_ymd] => 2025-01-17 23:32:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:32:05' and `end` < '2025-01-17 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-17 23:32:18] Production.INFO: count ==1037 [2025-01-17 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:32:05 - End Time 2025-01-17 23:32:05 [2025-01-17 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271678', 'tblTempUsageDetail_20' ) start [2025-01-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271678', 'tblTempUsageDetail_20' ) end [2025-01-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271678', 'tblTempVendorCDR_20' ) start [2025-01-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271678', 'tblTempVendorCDR_20' ) end [2025-01-17 23:32:18] Production.INFO: ProcessCDR(1,14271678,1,1,2) [2025-01-17 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271678', 'tblTempUsageDetail_20' ) start [2025-01-17 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271678', 'tblTempUsageDetail_20' ) end [2025-01-17 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:32:23] Production.INFO: ==22474== Releasing lock... [2025-01-17 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:32:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:33:05 [end_date_ymd] => 2025-01-17 23:33:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:33:05' and `end` < '2025-01-17 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-17 23:33:17] Production.INFO: count ==1040 [2025-01-17 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:33:05 - End Time 2025-01-17 23:33:05 [2025-01-17 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271683', 'tblTempUsageDetail_20' ) start [2025-01-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271683', 'tblTempUsageDetail_20' ) end [2025-01-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271683', 'tblTempVendorCDR_20' ) start [2025-01-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271683', 'tblTempVendorCDR_20' ) end [2025-01-17 23:33:18] Production.INFO: ProcessCDR(1,14271683,1,1,2) [2025-01-17 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271683', 'tblTempUsageDetail_20' ) start [2025-01-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271683', 'tblTempUsageDetail_20' ) end [2025-01-17 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:33:21] Production.INFO: ==22613== Releasing lock... [2025-01-17 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:33:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:34:05 [end_date_ymd] => 2025-01-17 23:34:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:34:05' and `end` < '2025-01-17 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-17 23:34:19] Production.INFO: count ==1040 [2025-01-17 23:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:34:05 - End Time 2025-01-17 23:34:05 [2025-01-17 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271688', 'tblTempUsageDetail_20' ) start [2025-01-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271688', 'tblTempUsageDetail_20' ) end [2025-01-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271688', 'tblTempVendorCDR_20' ) start [2025-01-17 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271688', 'tblTempVendorCDR_20' ) end [2025-01-17 23:34:19] Production.INFO: ProcessCDR(1,14271688,1,1,2) [2025-01-17 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271688', 'tblTempUsageDetail_20' ) start [2025-01-17 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271688', 'tblTempUsageDetail_20' ) end [2025-01-17 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:34:22] Production.INFO: ==22756== Releasing lock... [2025-01-17 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:35:05 [end_date_ymd] => 2025-01-17 23:35:05 [RateCDR] => 1 ) [2025-01-17 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:35:05' and `end` < '2025-01-17 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:35:17] Production.INFO: count ==1036 [2025-01-17 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:35:05 - End Time 2025-01-17 23:35:05 [2025-01-17 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271693', 'tblTempUsageDetail_20' ) start [2025-01-17 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271693', 'tblTempUsageDetail_20' ) end [2025-01-17 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271693', 'tblTempVendorCDR_20' ) start [2025-01-17 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271693', 'tblTempVendorCDR_20' ) end [2025-01-17 23:35:17] Production.INFO: ProcessCDR(1,14271693,1,1,2) [2025-01-17 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271693', 'tblTempUsageDetail_20' ) start [2025-01-17 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271693', 'tblTempUsageDetail_20' ) end [2025-01-17 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:35:21] Production.INFO: ==22860== Releasing lock... [2025-01-17 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:36:06 [end_date_ymd] => 2025-01-17 23:36:06 [RateCDR] => 1 ) [2025-01-17 23: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-17 20:36:06' and `end` < '2025-01-17 23: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-17 23:36:18] Production.INFO: count ==1034 [2025-01-17 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:36:06 - End Time 2025-01-17 23:36:06 [2025-01-17 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271698', 'tblTempUsageDetail_20' ) start [2025-01-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271698', 'tblTempUsageDetail_20' ) end [2025-01-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271698', 'tblTempVendorCDR_20' ) start [2025-01-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271698', 'tblTempVendorCDR_20' ) end [2025-01-17 23:36:18] Production.INFO: ProcessCDR(1,14271698,1,1,2) [2025-01-17 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271698', 'tblTempUsageDetail_20' ) start [2025-01-17 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271698', 'tblTempUsageDetail_20' ) end [2025-01-17 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:36:22] Production.INFO: ==22964== Releasing lock... [2025-01-17 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:36:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:37:05 [end_date_ymd] => 2025-01-17 23:37:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:37:05' and `end` < '2025-01-17 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-17 23:37:19] Production.INFO: count ==1033 [2025-01-17 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:37:05 - End Time 2025-01-17 23:37:05 [2025-01-17 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271703', 'tblTempUsageDetail_20' ) start [2025-01-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271703', 'tblTempUsageDetail_20' ) end [2025-01-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271703', 'tblTempVendorCDR_20' ) start [2025-01-17 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271703', 'tblTempVendorCDR_20' ) end [2025-01-17 23:37:19] Production.INFO: ProcessCDR(1,14271703,1,1,2) [2025-01-17 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271703', 'tblTempUsageDetail_20' ) start [2025-01-17 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271703', 'tblTempUsageDetail_20' ) end [2025-01-17 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:37:22] Production.INFO: ==23069== Releasing lock... [2025-01-17 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:38:06 [end_date_ymd] => 2025-01-17 23:38:06 [RateCDR] => 1 ) [2025-01-17 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:38:06' and `end` < '2025-01-17 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:38:18] Production.INFO: count ==1033 [2025-01-17 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:38:06 - End Time 2025-01-17 23:38:06 [2025-01-17 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271708', 'tblTempUsageDetail_20' ) start [2025-01-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271708', 'tblTempUsageDetail_20' ) end [2025-01-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271708', 'tblTempVendorCDR_20' ) start [2025-01-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271708', 'tblTempVendorCDR_20' ) end [2025-01-17 23:38:18] Production.INFO: ProcessCDR(1,14271708,1,1,2) [2025-01-17 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271708', 'tblTempUsageDetail_20' ) start [2025-01-17 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271708', 'tblTempUsageDetail_20' ) end [2025-01-17 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:38:21] Production.INFO: ==23168== Releasing lock... [2025-01-17 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:39:05 [end_date_ymd] => 2025-01-17 23:39:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:39:05' and `end` < '2025-01-17 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-17 23:39:17] Production.INFO: count ==1033 [2025-01-17 23:39:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:39:05 - End Time 2025-01-17 23:39:05 [2025-01-17 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271713', 'tblTempUsageDetail_20' ) start [2025-01-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271713', 'tblTempUsageDetail_20' ) end [2025-01-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271713', 'tblTempVendorCDR_20' ) start [2025-01-17 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271713', 'tblTempVendorCDR_20' ) end [2025-01-17 23:39:17] Production.INFO: ProcessCDR(1,14271713,1,1,2) [2025-01-17 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271713', 'tblTempUsageDetail_20' ) start [2025-01-17 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271713', 'tblTempUsageDetail_20' ) end [2025-01-17 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:39:21] Production.INFO: ==23275== Releasing lock... [2025-01-17 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:40:06 [end_date_ymd] => 2025-01-17 23:40:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:40:06' and `end` < '2025-01-17 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-17 23:40:19] Production.INFO: count ==1034 [2025-01-17 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:40:06 - End Time 2025-01-17 23:40:06 [2025-01-17 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271719', 'tblTempUsageDetail_20' ) start [2025-01-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271719', 'tblTempUsageDetail_20' ) end [2025-01-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271719', 'tblTempVendorCDR_20' ) start [2025-01-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271719', 'tblTempVendorCDR_20' ) end [2025-01-17 23:40:19] Production.INFO: ProcessCDR(1,14271719,1,1,2) [2025-01-17 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271719', 'tblTempUsageDetail_20' ) start [2025-01-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271719', 'tblTempUsageDetail_20' ) end [2025-01-17 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:40:23] Production.INFO: ==23380== Releasing lock... [2025-01-17 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:40:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:41:05 [end_date_ymd] => 2025-01-17 23:41:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:41:05' and `end` < '2025-01-17 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-17 23:41:18] Production.INFO: count ==989 [2025-01-17 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:41:05 - End Time 2025-01-17 23:41:05 [2025-01-17 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271724', 'tblTempUsageDetail_20' ) start [2025-01-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271724', 'tblTempUsageDetail_20' ) end [2025-01-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271724', 'tblTempVendorCDR_20' ) start [2025-01-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271724', 'tblTempVendorCDR_20' ) end [2025-01-17 23:41:18] Production.INFO: ProcessCDR(1,14271724,1,1,2) [2025-01-17 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271724', 'tblTempUsageDetail_20' ) start [2025-01-17 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271724', 'tblTempUsageDetail_20' ) end [2025-01-17 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:41:23] Production.INFO: ==23488== Releasing lock... [2025-01-17 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:41:23] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:42:06 [end_date_ymd] => 2025-01-17 23:42:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:42:06' and `end` < '2025-01-17 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-17 23:42:18] Production.INFO: count ==994 [2025-01-17 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:42:06 - End Time 2025-01-17 23:42:06 [2025-01-17 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271729', 'tblTempUsageDetail_20' ) start [2025-01-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271729', 'tblTempUsageDetail_20' ) end [2025-01-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271729', 'tblTempVendorCDR_20' ) start [2025-01-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271729', 'tblTempVendorCDR_20' ) end [2025-01-17 23:42:18] Production.INFO: ProcessCDR(1,14271729,1,1,2) [2025-01-17 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271729', 'tblTempUsageDetail_20' ) start [2025-01-17 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271729', 'tblTempUsageDetail_20' ) end [2025-01-17 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:42:23] Production.INFO: ==23597== Releasing lock... [2025-01-17 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:42:23] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:43:04 [end_date_ymd] => 2025-01-17 23:43:04 [RateCDR] => 1 ) [2025-01-17 23: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-17 20:43:04' and `end` < '2025-01-17 23: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-17 23:43:17] Production.INFO: count ==991 [2025-01-17 23:43:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:43:04 - End Time 2025-01-17 23:43:04 [2025-01-17 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271734', 'tblTempUsageDetail_20' ) start [2025-01-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271734', 'tblTempUsageDetail_20' ) end [2025-01-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271734', 'tblTempVendorCDR_20' ) start [2025-01-17 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271734', 'tblTempVendorCDR_20' ) end [2025-01-17 23:43:17] Production.INFO: ProcessCDR(1,14271734,1,1,2) [2025-01-17 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271734', 'tblTempUsageDetail_20' ) start [2025-01-17 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271734', 'tblTempUsageDetail_20' ) end [2025-01-17 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:43:20] Production.INFO: ==23699== Releasing lock... [2025-01-17 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:43:20] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:44:05 [end_date_ymd] => 2025-01-17 23:44:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:44:05' and `end` < '2025-01-17 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-17 23:44:18] Production.INFO: count ==992 [2025-01-17 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:44:05 - End Time 2025-01-17 23:44:05 [2025-01-17 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271739', 'tblTempUsageDetail_20' ) start [2025-01-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271739', 'tblTempUsageDetail_20' ) end [2025-01-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271739', 'tblTempVendorCDR_20' ) start [2025-01-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271739', 'tblTempVendorCDR_20' ) end [2025-01-17 23:44:18] Production.INFO: ProcessCDR(1,14271739,1,1,2) [2025-01-17 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271739', 'tblTempUsageDetail_20' ) start [2025-01-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271739', 'tblTempUsageDetail_20' ) end [2025-01-17 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:44:22] Production.INFO: ==23821== Releasing lock... [2025-01-17 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:44:22] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:45:05 [end_date_ymd] => 2025-01-17 23:45:05 [RateCDR] => 1 ) [2025-01-17 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:45:05' and `end` < '2025-01-17 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:45:18] Production.INFO: count ==996 [2025-01-17 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:45:05 - End Time 2025-01-17 23:45:05 [2025-01-17 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271744', 'tblTempUsageDetail_20' ) start [2025-01-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271744', 'tblTempUsageDetail_20' ) end [2025-01-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271744', 'tblTempVendorCDR_20' ) start [2025-01-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271744', 'tblTempVendorCDR_20' ) end [2025-01-17 23:45:18] Production.INFO: ProcessCDR(1,14271744,1,1,2) [2025-01-17 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271744', 'tblTempUsageDetail_20' ) start [2025-01-17 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271744', 'tblTempUsageDetail_20' ) end [2025-01-17 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:45:23] Production.INFO: ==23949== Releasing lock... [2025-01-17 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:45:23] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:46:05 [end_date_ymd] => 2025-01-17 23:46:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:46:05' and `end` < '2025-01-17 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-17 23:46:18] Production.INFO: count ==996 [2025-01-17 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:46:05 - End Time 2025-01-17 23:46:05 [2025-01-17 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271749', 'tblTempUsageDetail_20' ) start [2025-01-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271749', 'tblTempUsageDetail_20' ) end [2025-01-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271749', 'tblTempVendorCDR_20' ) start [2025-01-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271749', 'tblTempVendorCDR_20' ) end [2025-01-17 23:46:18] Production.INFO: ProcessCDR(1,14271749,1,1,2) [2025-01-17 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271749', 'tblTempUsageDetail_20' ) start [2025-01-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271749', 'tblTempUsageDetail_20' ) end [2025-01-17 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:46:21] Production.INFO: ==24071== Releasing lock... [2025-01-17 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:46:21] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:47:04 [end_date_ymd] => 2025-01-17 23:47:04 [RateCDR] => 1 ) [2025-01-17 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:47:04' and `end` < '2025-01-17 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:47:17] Production.INFO: count ==996 [2025-01-17 23:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:47:04 - End Time 2025-01-17 23:47:04 [2025-01-17 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271754', 'tblTempUsageDetail_20' ) start [2025-01-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271754', 'tblTempUsageDetail_20' ) end [2025-01-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271754', 'tblTempVendorCDR_20' ) start [2025-01-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271754', 'tblTempVendorCDR_20' ) end [2025-01-17 23:47:17] Production.INFO: ProcessCDR(1,14271754,1,1,2) [2025-01-17 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271754', 'tblTempUsageDetail_20' ) start [2025-01-17 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271754', 'tblTempUsageDetail_20' ) end [2025-01-17 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:47:22] Production.INFO: ==24200== Releasing lock... [2025-01-17 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:47:22] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:48:05 [end_date_ymd] => 2025-01-17 23:48:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:48:05' and `end` < '2025-01-17 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-17 23:48:18] Production.INFO: count ==998 [2025-01-17 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:48:05 - End Time 2025-01-17 23:48:05 [2025-01-17 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271759', 'tblTempUsageDetail_20' ) start [2025-01-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271759', 'tblTempUsageDetail_20' ) end [2025-01-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271759', 'tblTempVendorCDR_20' ) start [2025-01-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271759', 'tblTempVendorCDR_20' ) end [2025-01-17 23:48:18] Production.INFO: ProcessCDR(1,14271759,1,1,2) [2025-01-17 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271759', 'tblTempUsageDetail_20' ) start [2025-01-17 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271759', 'tblTempUsageDetail_20' ) end [2025-01-17 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:48:21] Production.INFO: ==24314== Releasing lock... [2025-01-17 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-17 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:49:04 [end_date_ymd] => 2025-01-17 23:49:04 [RateCDR] => 1 ) [2025-01-17 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:49:04' and `end` < '2025-01-17 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:49:17] Production.INFO: count ==998 [2025-01-17 23:49:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:49:04 - End Time 2025-01-17 23:49:04 [2025-01-17 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271764', 'tblTempUsageDetail_20' ) start [2025-01-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271764', 'tblTempUsageDetail_20' ) end [2025-01-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271764', 'tblTempVendorCDR_20' ) start [2025-01-17 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271764', 'tblTempVendorCDR_20' ) end [2025-01-17 23:49:17] Production.INFO: ProcessCDR(1,14271764,1,1,2) [2025-01-17 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271764', 'tblTempUsageDetail_20' ) start [2025-01-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271764', 'tblTempUsageDetail_20' ) end [2025-01-17 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:49:22] Production.INFO: ==24438== Releasing lock... [2025-01-17 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:49:22] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:50:06 [end_date_ymd] => 2025-01-17 23:50:06 [RateCDR] => 1 ) [2025-01-17 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-17 20:50:06' and `end` < '2025-01-17 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-17 23:50:18] Production.INFO: count ==1001 [2025-01-17 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:50:06 - End Time 2025-01-17 23:50:06 [2025-01-17 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271770', 'tblTempUsageDetail_20' ) start [2025-01-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271770', 'tblTempUsageDetail_20' ) end [2025-01-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271770', 'tblTempVendorCDR_20' ) start [2025-01-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271770', 'tblTempVendorCDR_20' ) end [2025-01-17 23:50:18] Production.INFO: ProcessCDR(1,14271770,1,1,2) [2025-01-17 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271770', 'tblTempUsageDetail_20' ) start [2025-01-17 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271770', 'tblTempUsageDetail_20' ) end [2025-01-17 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:50:22] Production.INFO: ==24589== Releasing lock... [2025-01-17 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:50:22] Production.INFO: 35 MB #Memory Used# [2025-01-17 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:51:04 [end_date_ymd] => 2025-01-17 23:51:04 [RateCDR] => 1 ) [2025-01-17 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:51:04' and `end` < '2025-01-17 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:51:17] Production.INFO: count ==968 [2025-01-17 23:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:51:04 - End Time 2025-01-17 23:51:04 [2025-01-17 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271775', 'tblTempUsageDetail_20' ) start [2025-01-17 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271775', 'tblTempUsageDetail_20' ) end [2025-01-17 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271775', 'tblTempVendorCDR_20' ) start [2025-01-17 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271775', 'tblTempVendorCDR_20' ) end [2025-01-17 23:51:17] Production.INFO: ProcessCDR(1,14271775,1,1,2) [2025-01-17 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271775', 'tblTempUsageDetail_20' ) start [2025-01-17 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271775', 'tblTempUsageDetail_20' ) end [2025-01-17 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:51:20] Production.INFO: ==24718== Releasing lock... [2025-01-17 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:51:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:52:05 [end_date_ymd] => 2025-01-17 23:52:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:52:05' and `end` < '2025-01-17 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-17 23:52:18] Production.INFO: count ==965 [2025-01-17 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:52:05 - End Time 2025-01-17 23:52:05 [2025-01-17 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271780', 'tblTempUsageDetail_20' ) start [2025-01-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271780', 'tblTempUsageDetail_20' ) end [2025-01-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271780', 'tblTempVendorCDR_20' ) start [2025-01-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271780', 'tblTempVendorCDR_20' ) end [2025-01-17 23:52:18] Production.INFO: ProcessCDR(1,14271780,1,1,2) [2025-01-17 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271780', 'tblTempUsageDetail_20' ) start [2025-01-17 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271780', 'tblTempUsageDetail_20' ) end [2025-01-17 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:52:21] Production.INFO: ==24827== Releasing lock... [2025-01-17 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:53:04 [end_date_ymd] => 2025-01-17 23:53:04 [RateCDR] => 1 ) [2025-01-17 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:53:04' and `end` < '2025-01-17 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:53:17] Production.INFO: count ==970 [2025-01-17 23:53:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:53:04 - End Time 2025-01-17 23:53:04 [2025-01-17 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271785', 'tblTempUsageDetail_20' ) start [2025-01-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271785', 'tblTempUsageDetail_20' ) end [2025-01-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271785', 'tblTempVendorCDR_20' ) start [2025-01-17 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271785', 'tblTempVendorCDR_20' ) end [2025-01-17 23:53:17] Production.INFO: ProcessCDR(1,14271785,1,1,2) [2025-01-17 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271785', 'tblTempUsageDetail_20' ) start [2025-01-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271785', 'tblTempUsageDetail_20' ) end [2025-01-17 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:53:22] Production.INFO: ==24961== Releasing lock... [2025-01-17 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:54:05 [end_date_ymd] => 2025-01-17 23:54:05 [RateCDR] => 1 ) [2025-01-17 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:54:05' and `end` < '2025-01-17 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:54:17] Production.INFO: count ==973 [2025-01-17 23:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:54:05 - End Time 2025-01-17 23:54:05 [2025-01-17 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271790', 'tblTempUsageDetail_20' ) start [2025-01-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271790', 'tblTempUsageDetail_20' ) end [2025-01-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271790', 'tblTempVendorCDR_20' ) start [2025-01-17 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271790', 'tblTempVendorCDR_20' ) end [2025-01-17 23:54:17] Production.INFO: ProcessCDR(1,14271790,1,1,2) [2025-01-17 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271790', 'tblTempUsageDetail_20' ) start [2025-01-17 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271790', 'tblTempUsageDetail_20' ) end [2025-01-17 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:54:21] Production.INFO: ==25067== Releasing lock... [2025-01-17 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:55:06 [end_date_ymd] => 2025-01-17 23:55:06 [RateCDR] => 1 ) [2025-01-17 23: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-17 20:55:06' and `end` < '2025-01-17 23: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-17 23:55:18] Production.INFO: count ==974 [2025-01-17 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:55:06 - End Time 2025-01-17 23:55:06 [2025-01-17 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271795', 'tblTempUsageDetail_20' ) start [2025-01-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271795', 'tblTempUsageDetail_20' ) end [2025-01-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271795', 'tblTempVendorCDR_20' ) start [2025-01-17 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271795', 'tblTempVendorCDR_20' ) end [2025-01-17 23:55:19] Production.INFO: ProcessCDR(1,14271795,1,1,2) [2025-01-17 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271795', 'tblTempUsageDetail_20' ) start [2025-01-17 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271795', 'tblTempUsageDetail_20' ) end [2025-01-17 23:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:55:24] Production.INFO: ==25199== Releasing lock... [2025-01-17 23:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:55:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:56:05 [end_date_ymd] => 2025-01-17 23:56:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:56:05' and `end` < '2025-01-17 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-17 23:56:17] Production.INFO: count ==972 [2025-01-17 23:56:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:56:05 - End Time 2025-01-17 23:56:05 [2025-01-17 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271800', 'tblTempUsageDetail_20' ) start [2025-01-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271800', 'tblTempUsageDetail_20' ) end [2025-01-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271800', 'tblTempVendorCDR_20' ) start [2025-01-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271800', 'tblTempVendorCDR_20' ) end [2025-01-17 23:56:17] Production.INFO: ProcessCDR(1,14271800,1,1,2) [2025-01-17 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271800', 'tblTempUsageDetail_20' ) start [2025-01-17 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271800', 'tblTempUsageDetail_20' ) end [2025-01-17 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:56:21] Production.INFO: ==25307== Releasing lock... [2025-01-17 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:57:05 [end_date_ymd] => 2025-01-17 23:57:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:57:05' and `end` < '2025-01-17 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-17 23:57:17] Production.INFO: count ==972 [2025-01-17 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 20:57:05 - End Time 2025-01-17 23:57:05 [2025-01-17 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271805', 'tblTempUsageDetail_20' ) start [2025-01-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271805', 'tblTempUsageDetail_20' ) end [2025-01-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271805', 'tblTempVendorCDR_20' ) start [2025-01-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271805', 'tblTempVendorCDR_20' ) end [2025-01-17 23:57:18] Production.INFO: ProcessCDR(1,14271805,1,1,2) [2025-01-17 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271805', 'tblTempUsageDetail_20' ) start [2025-01-17 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271805', 'tblTempUsageDetail_20' ) end [2025-01-17 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:57:21] Production.INFO: ==25443== Releasing lock... [2025-01-17 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:57:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:58:05 [end_date_ymd] => 2025-01-17 23:58:05 [RateCDR] => 1 ) [2025-01-17 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-17 20:58:05' and `end` < '2025-01-17 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-17 23:58:17] Production.INFO: count ==972 [2025-01-17 23:58:17] Production.ERROR: pbx CDR StartTime 2025-01-17 20:58:05 - End Time 2025-01-17 23:58:05 [2025-01-17 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271810', 'tblTempUsageDetail_20' ) start [2025-01-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271810', 'tblTempUsageDetail_20' ) end [2025-01-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271810', 'tblTempVendorCDR_20' ) start [2025-01-17 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271810', 'tblTempVendorCDR_20' ) end [2025-01-17 23:58:17] Production.INFO: ProcessCDR(1,14271810,1,1,2) [2025-01-17 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271810', 'tblTempUsageDetail_20' ) start [2025-01-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271810', 'tblTempUsageDetail_20' ) end [2025-01-17 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:58:21] Production.INFO: ==25555== Releasing lock... [2025-01-17 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-17 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 20:59:05 [end_date_ymd] => 2025-01-17 23:59:05 [RateCDR] => 1 ) [2025-01-17 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 20:59:05' and `end` < '2025-01-17 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-17 23:59:19] Production.INFO: count ==971 [2025-01-17 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-17 20:59:05 - End Time 2025-01-17 23:59:05 [2025-01-17 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-17 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271815', 'tblTempUsageDetail_20' ) start [2025-01-17 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271815', 'tblTempUsageDetail_20' ) end [2025-01-17 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271815', 'tblTempVendorCDR_20' ) start [2025-01-17 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271815', 'tblTempVendorCDR_20' ) end [2025-01-17 23:59:19] Production.INFO: ProcessCDR(1,14271815,1,1,2) [2025-01-17 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-17 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-17 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271815', 'tblTempUsageDetail_20' ) start [2025-01-17 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271815', 'tblTempUsageDetail_20' ) end [2025-01-17 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-17 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-17 23:59:22] Production.INFO: ==25692== Releasing lock... [2025-01-17 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-17 23:59:22] Production.INFO: 34.75 MB #Memory Used#