[2025-01-23 00:00:05] Production.INFO: next invoice date [2025-01-23 00:00:05] Production.INFO: 2025-02-23 [2025-01-23 00:00:05] Production.INFO: getdaysdiff [2025-01-23 00:00:05] Production.INFO: +31 [2025-01-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,31,31,'RMScheduler',2025-01-23 00:00:05,1,0,,,0) [2025-01-23 00:00:05] Production.INFO: next invoice date [2025-01-23 00:00:05] Production.INFO: 2025-02-23 [2025-01-23 00:00:05] Production.INFO: getdaysdiff [2025-01-23 00:00:05] Production.INFO: +31 [2025-01-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,31,31,'RMScheduler',2025-01-23 00:00:05,1,0,,,0) [2025-01-23 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:00:07 [end_date_ymd] => 2025-01-23 00:00:07 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:00:07' and `end` < '2025-01-23 00: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-23 00:00:20] Production.INFO: count ==836 [2025-01-23 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-22 21:00:07 - End Time 2025-01-23 00:00:07 [2025-01-23 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308512', 'tblTempUsageDetail_20' ) start [2025-01-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308512', 'tblTempUsageDetail_20' ) end [2025-01-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308512', 'tblTempVendorCDR_20' ) start [2025-01-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308512', 'tblTempVendorCDR_20' ) end [2025-01-23 00:00:20] Production.INFO: ProcessCDR(1,14308512,1,1,2) [2025-01-23 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308512', 'tblTempUsageDetail_20' ) start [2025-01-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308512', 'tblTempUsageDetail_20' ) end [2025-01-23 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:00:25] Production.INFO: ==24031== Releasing lock... [2025-01-23 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:00:25] Production.INFO: 35.25 MB #Memory Used# [2025-01-23 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:01:05 [end_date_ymd] => 2025-01-23 00:01:05 [RateCDR] => 1 ) [2025-01-23 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:01:05' and `end` < '2025-01-23 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:01:18] Production.INFO: count ==830 [2025-01-23 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:01:05 - End Time 2025-01-23 00:01:05 [2025-01-23 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308517', 'tblTempUsageDetail_20' ) start [2025-01-23 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308517', 'tblTempUsageDetail_20' ) end [2025-01-23 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308517', 'tblTempVendorCDR_20' ) start [2025-01-23 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308517', 'tblTempVendorCDR_20' ) end [2025-01-23 00:01:18] Production.INFO: ProcessCDR(1,14308517,1,1,2) [2025-01-23 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308517', 'tblTempUsageDetail_20' ) start [2025-01-23 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308517', 'tblTempUsageDetail_20' ) end [2025-01-23 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:01:21] Production.INFO: ==24128== Releasing lock... [2025-01-23 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:02:05 [end_date_ymd] => 2025-01-23 00:02:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:02:05' and `end` < '2025-01-23 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-23 00:02:32] Production.INFO: count ==208 [2025-01-23 00:02:32] Production.ERROR: pbx CDR StartTime 2025-01-22 21:02:05 - End Time 2025-01-23 00:02:05 [2025-01-23 00:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308522', 'tblTempUsageDetail_20' ) start [2025-01-23 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308522', 'tblTempUsageDetail_20' ) end [2025-01-23 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308522', 'tblTempVendorCDR_20' ) start [2025-01-23 00:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308522', 'tblTempVendorCDR_20' ) end [2025-01-23 00:02:32] Production.INFO: ProcessCDR(1,14308522,1,1,2) [2025-01-23 00:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308522', 'tblTempUsageDetail_20' ) start [2025-01-23 00:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308522', 'tblTempUsageDetail_20' ) end [2025-01-23 00:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:02:36] Production.INFO: ==24206== Releasing lock... [2025-01-23 00:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:02:36] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:03:06 [end_date_ymd] => 2025-01-23 00:03:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:03:06' and `end` < '2025-01-23 00: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-23 00:03:30] Production.INFO: count ==206 [2025-01-23 00:03:30] Production.ERROR: pbx CDR StartTime 2025-01-22 21:03:06 - End Time 2025-01-23 00:03:06 [2025-01-23 00:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308527', 'tblTempUsageDetail_20' ) start [2025-01-23 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308527', 'tblTempUsageDetail_20' ) end [2025-01-23 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308527', 'tblTempVendorCDR_20' ) start [2025-01-23 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308527', 'tblTempVendorCDR_20' ) end [2025-01-23 00:03:30] Production.INFO: ProcessCDR(1,14308527,1,1,2) [2025-01-23 00:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308527', 'tblTempUsageDetail_20' ) start [2025-01-23 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308527', 'tblTempUsageDetail_20' ) end [2025-01-23 00:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:03:33] Production.INFO: ==24286== Releasing lock... [2025-01-23 00:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:03:33] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:04:05 [end_date_ymd] => 2025-01-23 00:04:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:04:05' and `end` < '2025-01-23 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-23 00:04:31] Production.INFO: count ==202 [2025-01-23 00:04:31] Production.ERROR: pbx CDR StartTime 2025-01-22 21:04:05 - End Time 2025-01-23 00:04:05 [2025-01-23 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308532', 'tblTempUsageDetail_20' ) start [2025-01-23 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308532', 'tblTempUsageDetail_20' ) end [2025-01-23 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308532', 'tblTempVendorCDR_20' ) start [2025-01-23 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308532', 'tblTempVendorCDR_20' ) end [2025-01-23 00:04:31] Production.INFO: ProcessCDR(1,14308532,1,1,2) [2025-01-23 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308532', 'tblTempUsageDetail_20' ) start [2025-01-23 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308532', 'tblTempUsageDetail_20' ) end [2025-01-23 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:04:34] Production.INFO: ==24366== Releasing lock... [2025-01-23 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:04:34] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:05:05 [end_date_ymd] => 2025-01-23 00:05:05 [RateCDR] => 1 ) [2025-01-23 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:05:05' and `end` < '2025-01-23 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:05:30] Production.INFO: count ==202 [2025-01-23 00:05:30] Production.ERROR: pbx CDR StartTime 2025-01-22 21:05:05 - End Time 2025-01-23 00:05:05 [2025-01-23 00:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308537', 'tblTempUsageDetail_20' ) start [2025-01-23 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308537', 'tblTempUsageDetail_20' ) end [2025-01-23 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308537', 'tblTempVendorCDR_20' ) start [2025-01-23 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308537', 'tblTempVendorCDR_20' ) end [2025-01-23 00:05:30] Production.INFO: ProcessCDR(1,14308537,1,1,2) [2025-01-23 00:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308537', 'tblTempUsageDetail_20' ) start [2025-01-23 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308537', 'tblTempUsageDetail_20' ) end [2025-01-23 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:05:34] Production.INFO: ==24449== Releasing lock... [2025-01-23 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:05:34] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:06:05 [end_date_ymd] => 2025-01-23 00:06:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:06:05' and `end` < '2025-01-23 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-23 00:06:29] Production.INFO: count ==200 [2025-01-23 00:06:29] Production.ERROR: pbx CDR StartTime 2025-01-22 21:06:05 - End Time 2025-01-23 00:06:05 [2025-01-23 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308542', 'tblTempUsageDetail_20' ) start [2025-01-23 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308542', 'tblTempUsageDetail_20' ) end [2025-01-23 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308542', 'tblTempVendorCDR_20' ) start [2025-01-23 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308542', 'tblTempVendorCDR_20' ) end [2025-01-23 00:06:29] Production.INFO: ProcessCDR(1,14308542,1,1,2) [2025-01-23 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308542', 'tblTempUsageDetail_20' ) start [2025-01-23 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308542', 'tblTempUsageDetail_20' ) end [2025-01-23 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:06:32] Production.INFO: ==24527== Releasing lock... [2025-01-23 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:06:32] Production.INFO: 30 MB #Memory Used# [2025-01-23 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:07:05 [end_date_ymd] => 2025-01-23 00:07:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:07:05' and `end` < '2025-01-23 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-23 00:07:26] Production.INFO: count ==199 [2025-01-23 00:07:26] Production.ERROR: pbx CDR StartTime 2025-01-22 21:07:05 - End Time 2025-01-23 00:07:05 [2025-01-23 00:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308547', 'tblTempUsageDetail_20' ) start [2025-01-23 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308547', 'tblTempUsageDetail_20' ) end [2025-01-23 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308547', 'tblTempVendorCDR_20' ) start [2025-01-23 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308547', 'tblTempVendorCDR_20' ) end [2025-01-23 00:07:26] Production.INFO: ProcessCDR(1,14308547,1,1,2) [2025-01-23 00:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308547', 'tblTempUsageDetail_20' ) start [2025-01-23 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308547', 'tblTempUsageDetail_20' ) end [2025-01-23 00:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:07:29] Production.INFO: ==24606== Releasing lock... [2025-01-23 00:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:07:29] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:08:05 [end_date_ymd] => 2025-01-23 00:08:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:08:05' and `end` < '2025-01-23 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-23 00:08:23] Production.INFO: count ==199 [2025-01-23 00:08:23] Production.ERROR: pbx CDR StartTime 2025-01-22 21:08:05 - End Time 2025-01-23 00:08:05 [2025-01-23 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308552', 'tblTempUsageDetail_20' ) start [2025-01-23 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308552', 'tblTempUsageDetail_20' ) end [2025-01-23 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308552', 'tblTempVendorCDR_20' ) start [2025-01-23 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308552', 'tblTempVendorCDR_20' ) end [2025-01-23 00:08:23] Production.INFO: ProcessCDR(1,14308552,1,1,2) [2025-01-23 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308552', 'tblTempUsageDetail_20' ) start [2025-01-23 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308552', 'tblTempUsageDetail_20' ) end [2025-01-23 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:08:26] Production.INFO: ==24685== Releasing lock... [2025-01-23 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:08:26] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:09:05 [end_date_ymd] => 2025-01-23 00:09:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:09:05' and `end` < '2025-01-23 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-23 00:09:18] Production.INFO: count ==198 [2025-01-23 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:09:05 - End Time 2025-01-23 00:09:05 [2025-01-23 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308557', 'tblTempUsageDetail_20' ) start [2025-01-23 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308557', 'tblTempUsageDetail_20' ) end [2025-01-23 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308557', 'tblTempVendorCDR_20' ) start [2025-01-23 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308557', 'tblTempVendorCDR_20' ) end [2025-01-23 00:09:18] Production.INFO: ProcessCDR(1,14308557,1,1,2) [2025-01-23 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308557', 'tblTempUsageDetail_20' ) start [2025-01-23 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308557', 'tblTempUsageDetail_20' ) end [2025-01-23 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:09:21] Production.INFO: ==24765== Releasing lock... [2025-01-23 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:09:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:10:06 [end_date_ymd] => 2025-01-23 00:10:06 [RateCDR] => 1 ) [2025-01-23 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-22 21:10:06' and `end` < '2025-01-23 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-23 00:10:23] Production.INFO: count ==216 [2025-01-23 00:10:23] Production.ERROR: pbx CDR StartTime 2025-01-22 21:10:06 - End Time 2025-01-23 00:10:06 [2025-01-23 00:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308563', 'tblTempUsageDetail_20' ) start [2025-01-23 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308563', 'tblTempUsageDetail_20' ) end [2025-01-23 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308563', 'tblTempVendorCDR_20' ) start [2025-01-23 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308563', 'tblTempVendorCDR_20' ) end [2025-01-23 00:10:23] Production.INFO: ProcessCDR(1,14308563,1,1,2) [2025-01-23 00:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308563', 'tblTempUsageDetail_20' ) start [2025-01-23 00:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308563', 'tblTempUsageDetail_20' ) end [2025-01-23 00:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:10:26] Production.INFO: ==24886== Releasing lock... [2025-01-23 00:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:10:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:11:05 [end_date_ymd] => 2025-01-23 00:11:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:11:05' and `end` < '2025-01-23 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-23 00:11:18] Production.INFO: count ==244 [2025-01-23 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:11:05 - End Time 2025-01-23 00:11:05 [2025-01-23 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308568', 'tblTempUsageDetail_20' ) start [2025-01-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308568', 'tblTempUsageDetail_20' ) end [2025-01-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308568', 'tblTempVendorCDR_20' ) start [2025-01-23 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308568', 'tblTempVendorCDR_20' ) end [2025-01-23 00:11:18] Production.INFO: ProcessCDR(1,14308568,1,1,2) [2025-01-23 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308568', 'tblTempUsageDetail_20' ) start [2025-01-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308568', 'tblTempUsageDetail_20' ) end [2025-01-23 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:11:21] Production.INFO: ==24971== Releasing lock... [2025-01-23 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:12:04 [end_date_ymd] => 2025-01-23 00:12:04 [RateCDR] => 1 ) [2025-01-23 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-22 21:12:04' and `end` < '2025-01-23 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-23 00:12:41] Production.INFO: count ==244 [2025-01-23 00:12:41] Production.ERROR: pbx CDR StartTime 2025-01-22 21:12:04 - End Time 2025-01-23 00:12:04 [2025-01-23 00:12:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:12:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308573', 'tblTempUsageDetail_20' ) start [2025-01-23 00:12:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308573', 'tblTempUsageDetail_20' ) end [2025-01-23 00:12:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308573', 'tblTempVendorCDR_20' ) start [2025-01-23 00:12:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308573', 'tblTempVendorCDR_20' ) end [2025-01-23 00:12:41] Production.INFO: ProcessCDR(1,14308573,1,1,2) [2025-01-23 00:12:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:12:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:12:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:12:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:12:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308573', 'tblTempUsageDetail_20' ) start [2025-01-23 00:12:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308573', 'tblTempUsageDetail_20' ) end [2025-01-23 00:12:44] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:12:44] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:12:44] Production.INFO: ==25050== Releasing lock... [2025-01-23 00:12:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:12:44] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:13:05 [end_date_ymd] => 2025-01-23 00:13:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:13:05' and `end` < '2025-01-23 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-23 00:13:20] Production.INFO: count ==244 [2025-01-23 00:13:20] Production.ERROR: pbx CDR StartTime 2025-01-22 21:13:05 - End Time 2025-01-23 00:13:05 [2025-01-23 00:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308578', 'tblTempUsageDetail_20' ) start [2025-01-23 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308578', 'tblTempUsageDetail_20' ) end [2025-01-23 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308578', 'tblTempVendorCDR_20' ) start [2025-01-23 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308578', 'tblTempVendorCDR_20' ) end [2025-01-23 00:13:20] Production.INFO: ProcessCDR(1,14308578,1,1,2) [2025-01-23 00:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308578', 'tblTempUsageDetail_20' ) start [2025-01-23 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308578', 'tblTempUsageDetail_20' ) end [2025-01-23 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:13:23] Production.INFO: ==25129== Releasing lock... [2025-01-23 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:14:05 [end_date_ymd] => 2025-01-23 00:14:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:14:05' and `end` < '2025-01-23 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-23 00:14:21] Production.INFO: count ==245 [2025-01-23 00:14:21] Production.ERROR: pbx CDR StartTime 2025-01-22 21:14:05 - End Time 2025-01-23 00:14:05 [2025-01-23 00:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308583', 'tblTempUsageDetail_20' ) start [2025-01-23 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308583', 'tblTempUsageDetail_20' ) end [2025-01-23 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308583', 'tblTempVendorCDR_20' ) start [2025-01-23 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308583', 'tblTempVendorCDR_20' ) end [2025-01-23 00:14:21] Production.INFO: ProcessCDR(1,14308583,1,1,2) [2025-01-23 00:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308583', 'tblTempUsageDetail_20' ) start [2025-01-23 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308583', 'tblTempUsageDetail_20' ) end [2025-01-23 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:14:24] Production.INFO: ==25209== Releasing lock... [2025-01-23 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:14:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:15:05 [end_date_ymd] => 2025-01-23 00:15:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:15:05' and `end` < '2025-01-23 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-23 00:15:21] Production.INFO: count ==244 [2025-01-23 00:15:21] Production.ERROR: pbx CDR StartTime 2025-01-22 21:15:05 - End Time 2025-01-23 00:15:05 [2025-01-23 00:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308588', 'tblTempUsageDetail_20' ) start [2025-01-23 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308588', 'tblTempUsageDetail_20' ) end [2025-01-23 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308588', 'tblTempVendorCDR_20' ) start [2025-01-23 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308588', 'tblTempVendorCDR_20' ) end [2025-01-23 00:15:21] Production.INFO: ProcessCDR(1,14308588,1,1,2) [2025-01-23 00:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308588', 'tblTempUsageDetail_20' ) start [2025-01-23 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308588', 'tblTempUsageDetail_20' ) end [2025-01-23 00:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:15:24] Production.INFO: ==25295== Releasing lock... [2025-01-23 00:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:15:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:16:05 [end_date_ymd] => 2025-01-23 00:16:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:16:05' and `end` < '2025-01-23 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-23 00:16:18] Production.INFO: count ==242 [2025-01-23 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:16:05 - End Time 2025-01-23 00:16:05 [2025-01-23 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308593', 'tblTempUsageDetail_20' ) start [2025-01-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308593', 'tblTempUsageDetail_20' ) end [2025-01-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308593', 'tblTempVendorCDR_20' ) start [2025-01-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308593', 'tblTempVendorCDR_20' ) end [2025-01-23 00:16:18] Production.INFO: ProcessCDR(1,14308593,1,1,2) [2025-01-23 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308593', 'tblTempUsageDetail_20' ) start [2025-01-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308593', 'tblTempUsageDetail_20' ) end [2025-01-23 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:16:21] Production.INFO: ==25375== Releasing lock... [2025-01-23 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:17:05 [end_date_ymd] => 2025-01-23 00:17:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:17:05' and `end` < '2025-01-23 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-23 00:17:18] Production.INFO: count ==242 [2025-01-23 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:17:05 - End Time 2025-01-23 00:17:05 [2025-01-23 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308598', 'tblTempUsageDetail_20' ) start [2025-01-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308598', 'tblTempUsageDetail_20' ) end [2025-01-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308598', 'tblTempVendorCDR_20' ) start [2025-01-23 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308598', 'tblTempVendorCDR_20' ) end [2025-01-23 00:17:18] Production.INFO: ProcessCDR(1,14308598,1,1,2) [2025-01-23 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308598', 'tblTempUsageDetail_20' ) start [2025-01-23 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308598', 'tblTempUsageDetail_20' ) end [2025-01-23 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:17:21] Production.INFO: ==25456== Releasing lock... [2025-01-23 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:18:05 [end_date_ymd] => 2025-01-23 00:18:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:18:05' and `end` < '2025-01-23 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-23 00:18:18] Production.INFO: count ==242 [2025-01-23 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:18:05 - End Time 2025-01-23 00:18:05 [2025-01-23 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308603', 'tblTempUsageDetail_20' ) start [2025-01-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308603', 'tblTempUsageDetail_20' ) end [2025-01-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308603', 'tblTempVendorCDR_20' ) start [2025-01-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308603', 'tblTempVendorCDR_20' ) end [2025-01-23 00:18:18] Production.INFO: ProcessCDR(1,14308603,1,1,2) [2025-01-23 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308603', 'tblTempUsageDetail_20' ) start [2025-01-23 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308603', 'tblTempUsageDetail_20' ) end [2025-01-23 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:18:21] Production.INFO: ==25549== Releasing lock... [2025-01-23 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:19:05 [end_date_ymd] => 2025-01-23 00:19:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:19:05' and `end` < '2025-01-23 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-23 00:19:18] Production.INFO: count ==241 [2025-01-23 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:19:05 - End Time 2025-01-23 00:19:05 [2025-01-23 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308608', 'tblTempUsageDetail_20' ) start [2025-01-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308608', 'tblTempUsageDetail_20' ) end [2025-01-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308608', 'tblTempVendorCDR_20' ) start [2025-01-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308608', 'tblTempVendorCDR_20' ) end [2025-01-23 00:19:18] Production.INFO: ProcessCDR(1,14308608,1,1,2) [2025-01-23 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308608', 'tblTempUsageDetail_20' ) start [2025-01-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308608', 'tblTempUsageDetail_20' ) end [2025-01-23 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:19:21] Production.INFO: ==25628== Releasing lock... [2025-01-23 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:20:06 [end_date_ymd] => 2025-01-23 00:20:06 [RateCDR] => 1 ) [2025-01-23 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-22 21:20:06' and `end` < '2025-01-23 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-23 00:20:20] Production.INFO: count ==256 [2025-01-23 00:20:20] Production.ERROR: pbx CDR StartTime 2025-01-22 21:20:06 - End Time 2025-01-23 00:20:06 [2025-01-23 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308614', 'tblTempUsageDetail_20' ) start [2025-01-23 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308614', 'tblTempUsageDetail_20' ) end [2025-01-23 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308614', 'tblTempVendorCDR_20' ) start [2025-01-23 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308614', 'tblTempVendorCDR_20' ) end [2025-01-23 00:20:20] Production.INFO: ProcessCDR(1,14308614,1,1,2) [2025-01-23 00:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308614', 'tblTempUsageDetail_20' ) start [2025-01-23 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308614', 'tblTempUsageDetail_20' ) end [2025-01-23 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:20:23] Production.INFO: ==25710== Releasing lock... [2025-01-23 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:21:04 [end_date_ymd] => 2025-01-23 00:21:04 [RateCDR] => 1 ) [2025-01-23 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:21:04' and `end` < '2025-01-23 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:21:23] Production.INFO: count ==251 [2025-01-23 00:21:23] Production.ERROR: pbx CDR StartTime 2025-01-22 21:21:04 - End Time 2025-01-23 00:21:04 [2025-01-23 00:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308619', 'tblTempUsageDetail_20' ) start [2025-01-23 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308619', 'tblTempUsageDetail_20' ) end [2025-01-23 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308619', 'tblTempVendorCDR_20' ) start [2025-01-23 00:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308619', 'tblTempVendorCDR_20' ) end [2025-01-23 00:21:23] Production.INFO: ProcessCDR(1,14308619,1,1,2) [2025-01-23 00:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308619', 'tblTempUsageDetail_20' ) start [2025-01-23 00:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308619', 'tblTempUsageDetail_20' ) end [2025-01-23 00:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:21:26] Production.INFO: ==25794== Releasing lock... [2025-01-23 00:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:21:26] Production.INFO: 30 MB #Memory Used# [2025-01-23 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:22:05 [end_date_ymd] => 2025-01-23 00:22:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:22:05' and `end` < '2025-01-23 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-23 00:22:20] Production.INFO: count ==254 [2025-01-23 00:22:20] Production.ERROR: pbx CDR StartTime 2025-01-22 21:22:05 - End Time 2025-01-23 00:22:05 [2025-01-23 00:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308624', 'tblTempUsageDetail_20' ) start [2025-01-23 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308624', 'tblTempUsageDetail_20' ) end [2025-01-23 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308624', 'tblTempVendorCDR_20' ) start [2025-01-23 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308624', 'tblTempVendorCDR_20' ) end [2025-01-23 00:22:20] Production.INFO: ProcessCDR(1,14308624,1,1,2) [2025-01-23 00:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308624', 'tblTempUsageDetail_20' ) start [2025-01-23 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308624', 'tblTempUsageDetail_20' ) end [2025-01-23 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:22:23] Production.INFO: ==25877== Releasing lock... [2025-01-23 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:23:06 [end_date_ymd] => 2025-01-23 00:23:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:23:06' and `end` < '2025-01-23 00: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-23 00:23:19] Production.INFO: count ==253 [2025-01-23 00:23:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:23:06 - End Time 2025-01-23 00:23:06 [2025-01-23 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308629', 'tblTempUsageDetail_20' ) start [2025-01-23 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308629', 'tblTempUsageDetail_20' ) end [2025-01-23 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308629', 'tblTempVendorCDR_20' ) start [2025-01-23 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308629', 'tblTempVendorCDR_20' ) end [2025-01-23 00:23:19] Production.INFO: ProcessCDR(1,14308629,1,1,2) [2025-01-23 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308629', 'tblTempUsageDetail_20' ) start [2025-01-23 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308629', 'tblTempUsageDetail_20' ) end [2025-01-23 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:23:22] Production.INFO: ==25958== Releasing lock... [2025-01-23 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:24:05 [end_date_ymd] => 2025-01-23 00:24:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:24:05' and `end` < '2025-01-23 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-23 00:24:18] Production.INFO: count ==253 [2025-01-23 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:24:05 - End Time 2025-01-23 00:24:05 [2025-01-23 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308634', 'tblTempUsageDetail_20' ) start [2025-01-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308634', 'tblTempUsageDetail_20' ) end [2025-01-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308634', 'tblTempVendorCDR_20' ) start [2025-01-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308634', 'tblTempVendorCDR_20' ) end [2025-01-23 00:24:18] Production.INFO: ProcessCDR(1,14308634,1,1,2) [2025-01-23 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308634', 'tblTempUsageDetail_20' ) start [2025-01-23 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308634', 'tblTempUsageDetail_20' ) end [2025-01-23 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:24:21] Production.INFO: ==26039== Releasing lock... [2025-01-23 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:25:06 [end_date_ymd] => 2025-01-23 00:25:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:25:06' and `end` < '2025-01-23 00: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-23 00:25:18] Production.INFO: count ==253 [2025-01-23 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:25:06 - End Time 2025-01-23 00:25:06 [2025-01-23 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308639', 'tblTempUsageDetail_20' ) start [2025-01-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308639', 'tblTempUsageDetail_20' ) end [2025-01-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308639', 'tblTempVendorCDR_20' ) start [2025-01-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308639', 'tblTempVendorCDR_20' ) end [2025-01-23 00:25:18] Production.INFO: ProcessCDR(1,14308639,1,1,2) [2025-01-23 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308639', 'tblTempUsageDetail_20' ) start [2025-01-23 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308639', 'tblTempUsageDetail_20' ) end [2025-01-23 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:25:21] Production.INFO: ==26159== Releasing lock... [2025-01-23 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:26:05 [end_date_ymd] => 2025-01-23 00:26:05 [RateCDR] => 1 ) [2025-01-23 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:26:05' and `end` < '2025-01-23 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-23 00:26:18] Production.INFO: count ==254 [2025-01-23 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:26:05 - End Time 2025-01-23 00:26:05 [2025-01-23 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308644', 'tblTempUsageDetail_20' ) start [2025-01-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308644', 'tblTempUsageDetail_20' ) end [2025-01-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308644', 'tblTempVendorCDR_20' ) start [2025-01-23 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308644', 'tblTempVendorCDR_20' ) end [2025-01-23 00:26:18] Production.INFO: ProcessCDR(1,14308644,1,1,2) [2025-01-23 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308644', 'tblTempUsageDetail_20' ) start [2025-01-23 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308644', 'tblTempUsageDetail_20' ) end [2025-01-23 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:26:21] Production.INFO: ==26244== Releasing lock... [2025-01-23 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:27:05 [end_date_ymd] => 2025-01-23 00:27:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:27:05' and `end` < '2025-01-23 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-23 00:27:18] Production.INFO: count ==253 [2025-01-23 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:27:05 - End Time 2025-01-23 00:27:05 [2025-01-23 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308649', 'tblTempUsageDetail_20' ) start [2025-01-23 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308649', 'tblTempUsageDetail_20' ) end [2025-01-23 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308649', 'tblTempVendorCDR_20' ) start [2025-01-23 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308649', 'tblTempVendorCDR_20' ) end [2025-01-23 00:27:18] Production.INFO: ProcessCDR(1,14308649,1,1,2) [2025-01-23 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308649', 'tblTempUsageDetail_20' ) start [2025-01-23 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308649', 'tblTempUsageDetail_20' ) end [2025-01-23 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:27:21] Production.INFO: ==26325== Releasing lock... [2025-01-23 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:28:05 [end_date_ymd] => 2025-01-23 00:28:05 [RateCDR] => 1 ) [2025-01-23 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:28:05' and `end` < '2025-01-23 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:28:17] Production.INFO: count ==264 [2025-01-23 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-22 21:28:05 - End Time 2025-01-23 00:28:05 [2025-01-23 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308654', 'tblTempUsageDetail_20' ) start [2025-01-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308654', 'tblTempUsageDetail_20' ) end [2025-01-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308654', 'tblTempVendorCDR_20' ) start [2025-01-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308654', 'tblTempVendorCDR_20' ) end [2025-01-23 00:28:17] Production.INFO: ProcessCDR(1,14308654,1,1,2) [2025-01-23 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308654', 'tblTempUsageDetail_20' ) start [2025-01-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308654', 'tblTempUsageDetail_20' ) end [2025-01-23 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:28:20] Production.INFO: ==26400== Releasing lock... [2025-01-23 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:29:05 [end_date_ymd] => 2025-01-23 00:29:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:29:05' and `end` < '2025-01-23 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-23 00:29:18] Production.INFO: count ==274 [2025-01-23 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:29:05 - End Time 2025-01-23 00:29:05 [2025-01-23 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308659', 'tblTempUsageDetail_20' ) start [2025-01-23 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308659', 'tblTempUsageDetail_20' ) end [2025-01-23 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308659', 'tblTempVendorCDR_20' ) start [2025-01-23 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308659', 'tblTempVendorCDR_20' ) end [2025-01-23 00:29:18] Production.INFO: ProcessCDR(1,14308659,1,1,2) [2025-01-23 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308659', 'tblTempUsageDetail_20' ) start [2025-01-23 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308659', 'tblTempUsageDetail_20' ) end [2025-01-23 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:29:21] Production.INFO: ==26483== Releasing lock... [2025-01-23 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:30:06 [end_date_ymd] => 2025-01-23 00:30:06 [RateCDR] => 1 ) [2025-01-23 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-22 21:30:06' and `end` < '2025-01-23 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-23 00:30:19] Production.INFO: count ==298 [2025-01-23 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:30:06 - End Time 2025-01-23 00:30:06 [2025-01-23 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308665', 'tblTempUsageDetail_20' ) start [2025-01-23 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308665', 'tblTempUsageDetail_20' ) end [2025-01-23 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308665', 'tblTempVendorCDR_20' ) start [2025-01-23 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308665', 'tblTempVendorCDR_20' ) end [2025-01-23 00:30:19] Production.INFO: ProcessCDR(1,14308665,1,1,2) [2025-01-23 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308665', 'tblTempUsageDetail_20' ) start [2025-01-23 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308665', 'tblTempUsageDetail_20' ) end [2025-01-23 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:30:22] Production.INFO: ==26566== Releasing lock... [2025-01-23 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:30:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:31:06 [end_date_ymd] => 2025-01-23 00:31:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:31:06' and `end` < '2025-01-23 00: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-23 00:31:18] Production.INFO: count ==313 [2025-01-23 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:31:06 - End Time 2025-01-23 00:31:06 [2025-01-23 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308670', 'tblTempUsageDetail_20' ) start [2025-01-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308670', 'tblTempUsageDetail_20' ) end [2025-01-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308670', 'tblTempVendorCDR_20' ) start [2025-01-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308670', 'tblTempVendorCDR_20' ) end [2025-01-23 00:31:18] Production.INFO: ProcessCDR(1,14308670,1,1,2) [2025-01-23 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308670', 'tblTempUsageDetail_20' ) start [2025-01-23 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308670', 'tblTempUsageDetail_20' ) end [2025-01-23 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:31:21] Production.INFO: ==26652== Releasing lock... [2025-01-23 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:32:05 [end_date_ymd] => 2025-01-23 00:32:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:32:05' and `end` < '2025-01-23 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-23 00:32:18] Production.INFO: count ==324 [2025-01-23 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:32:05 - End Time 2025-01-23 00:32:05 [2025-01-23 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308675', 'tblTempUsageDetail_20' ) start [2025-01-23 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308675', 'tblTempUsageDetail_20' ) end [2025-01-23 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308675', 'tblTempVendorCDR_20' ) start [2025-01-23 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308675', 'tblTempVendorCDR_20' ) end [2025-01-23 00:32:18] Production.INFO: ProcessCDR(1,14308675,1,1,2) [2025-01-23 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308675', 'tblTempUsageDetail_20' ) start [2025-01-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308675', 'tblTempUsageDetail_20' ) end [2025-01-23 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:32:21] Production.INFO: ==26731== Releasing lock... [2025-01-23 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:33:05 [end_date_ymd] => 2025-01-23 00:33:05 [RateCDR] => 1 ) [2025-01-23 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:33:05' and `end` < '2025-01-23 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:33:18] Production.INFO: count ==330 [2025-01-23 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:33:05 - End Time 2025-01-23 00:33:05 [2025-01-23 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308680', 'tblTempUsageDetail_20' ) start [2025-01-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308680', 'tblTempUsageDetail_20' ) end [2025-01-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308680', 'tblTempVendorCDR_20' ) start [2025-01-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308680', 'tblTempVendorCDR_20' ) end [2025-01-23 00:33:18] Production.INFO: ProcessCDR(1,14308680,1,1,2) [2025-01-23 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308680', 'tblTempUsageDetail_20' ) start [2025-01-23 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308680', 'tblTempUsageDetail_20' ) end [2025-01-23 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:33:21] Production.INFO: ==26810== Releasing lock... [2025-01-23 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:34:05 [end_date_ymd] => 2025-01-23 00:34:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:34:05' and `end` < '2025-01-23 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-23 00:34:18] Production.INFO: count ==336 [2025-01-23 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:34:05 - End Time 2025-01-23 00:34:05 [2025-01-23 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308685', 'tblTempUsageDetail_20' ) start [2025-01-23 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308685', 'tblTempUsageDetail_20' ) end [2025-01-23 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308685', 'tblTempVendorCDR_20' ) start [2025-01-23 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308685', 'tblTempVendorCDR_20' ) end [2025-01-23 00:34:18] Production.INFO: ProcessCDR(1,14308685,1,1,2) [2025-01-23 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308685', 'tblTempUsageDetail_20' ) start [2025-01-23 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308685', 'tblTempUsageDetail_20' ) end [2025-01-23 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:34:21] Production.INFO: ==26892== Releasing lock... [2025-01-23 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:35:05 [end_date_ymd] => 2025-01-23 00:35:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:35:05' and `end` < '2025-01-23 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-23 00:35:18] Production.INFO: count ==334 [2025-01-23 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:35:05 - End Time 2025-01-23 00:35:05 [2025-01-23 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308690', 'tblTempUsageDetail_20' ) start [2025-01-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308690', 'tblTempUsageDetail_20' ) end [2025-01-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308690', 'tblTempVendorCDR_20' ) start [2025-01-23 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308690', 'tblTempVendorCDR_20' ) end [2025-01-23 00:35:18] Production.INFO: ProcessCDR(1,14308690,1,1,2) [2025-01-23 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308690', 'tblTempUsageDetail_20' ) start [2025-01-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308690', 'tblTempUsageDetail_20' ) end [2025-01-23 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:35:21] Production.INFO: ==26975== Releasing lock... [2025-01-23 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:36:05 [end_date_ymd] => 2025-01-23 00:36:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:36:05' and `end` < '2025-01-23 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-23 00:36:18] Production.INFO: count ==334 [2025-01-23 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:36:05 - End Time 2025-01-23 00:36:05 [2025-01-23 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308695', 'tblTempUsageDetail_20' ) start [2025-01-23 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308695', 'tblTempUsageDetail_20' ) end [2025-01-23 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308695', 'tblTempVendorCDR_20' ) start [2025-01-23 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308695', 'tblTempVendorCDR_20' ) end [2025-01-23 00:36:18] Production.INFO: ProcessCDR(1,14308695,1,1,2) [2025-01-23 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308695', 'tblTempUsageDetail_20' ) start [2025-01-23 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308695', 'tblTempUsageDetail_20' ) end [2025-01-23 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:36:21] Production.INFO: ==27059== Releasing lock... [2025-01-23 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:37:05 [end_date_ymd] => 2025-01-23 00:37:05 [RateCDR] => 1 ) [2025-01-23 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:37:05' and `end` < '2025-01-23 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:37:18] Production.INFO: count ==334 [2025-01-23 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:37:05 - End Time 2025-01-23 00:37:05 [2025-01-23 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308700', 'tblTempUsageDetail_20' ) start [2025-01-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308700', 'tblTempUsageDetail_20' ) end [2025-01-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308700', 'tblTempVendorCDR_20' ) start [2025-01-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308700', 'tblTempVendorCDR_20' ) end [2025-01-23 00:37:18] Production.INFO: ProcessCDR(1,14308700,1,1,2) [2025-01-23 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308700', 'tblTempUsageDetail_20' ) start [2025-01-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308700', 'tblTempUsageDetail_20' ) end [2025-01-23 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:37:21] Production.INFO: ==27140== Releasing lock... [2025-01-23 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:38:05 [end_date_ymd] => 2025-01-23 00:38:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:38:05' and `end` < '2025-01-23 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-23 00:38:18] Production.INFO: count ==334 [2025-01-23 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:38:05 - End Time 2025-01-23 00:38:05 [2025-01-23 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308705', 'tblTempUsageDetail_20' ) start [2025-01-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308705', 'tblTempUsageDetail_20' ) end [2025-01-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308705', 'tblTempVendorCDR_20' ) start [2025-01-23 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308705', 'tblTempVendorCDR_20' ) end [2025-01-23 00:38:18] Production.INFO: ProcessCDR(1,14308705,1,1,2) [2025-01-23 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308705', 'tblTempUsageDetail_20' ) start [2025-01-23 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308705', 'tblTempUsageDetail_20' ) end [2025-01-23 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:38:21] Production.INFO: ==27219== Releasing lock... [2025-01-23 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:39:06 [end_date_ymd] => 2025-01-23 00:39:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:39:06' and `end` < '2025-01-23 00: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-23 00:39:18] Production.INFO: count ==332 [2025-01-23 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:39:06 - End Time 2025-01-23 00:39:06 [2025-01-23 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308710', 'tblTempUsageDetail_20' ) start [2025-01-23 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308710', 'tblTempUsageDetail_20' ) end [2025-01-23 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308710', 'tblTempVendorCDR_20' ) start [2025-01-23 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308710', 'tblTempVendorCDR_20' ) end [2025-01-23 00:39:18] Production.INFO: ProcessCDR(1,14308710,1,1,2) [2025-01-23 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308710', 'tblTempUsageDetail_20' ) start [2025-01-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308710', 'tblTempUsageDetail_20' ) end [2025-01-23 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:39:21] Production.INFO: ==27301== Releasing lock... [2025-01-23 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:40:06 [end_date_ymd] => 2025-01-23 00:40:06 [RateCDR] => 1 ) [2025-01-23 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:40:06' and `end` < '2025-01-23 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:40:18] Production.INFO: count ==339 [2025-01-23 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:40:06 - End Time 2025-01-23 00:40:06 [2025-01-23 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308716', 'tblTempUsageDetail_20' ) start [2025-01-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308716', 'tblTempUsageDetail_20' ) end [2025-01-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308716', 'tblTempVendorCDR_20' ) start [2025-01-23 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308716', 'tblTempVendorCDR_20' ) end [2025-01-23 00:40:19] Production.INFO: ProcessCDR(1,14308716,1,1,2) [2025-01-23 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308716', 'tblTempUsageDetail_20' ) start [2025-01-23 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308716', 'tblTempUsageDetail_20' ) end [2025-01-23 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:40:22] Production.INFO: ==27426== Releasing lock... [2025-01-23 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:41:05 [end_date_ymd] => 2025-01-23 00:41:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:41:05' and `end` < '2025-01-23 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-23 00:41:18] Production.INFO: count ==347 [2025-01-23 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:41:05 - End Time 2025-01-23 00:41:05 [2025-01-23 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308721', 'tblTempUsageDetail_20' ) start [2025-01-23 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308721', 'tblTempUsageDetail_20' ) end [2025-01-23 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308721', 'tblTempVendorCDR_20' ) start [2025-01-23 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308721', 'tblTempVendorCDR_20' ) end [2025-01-23 00:41:18] Production.INFO: ProcessCDR(1,14308721,1,1,2) [2025-01-23 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308721', 'tblTempUsageDetail_20' ) start [2025-01-23 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308721', 'tblTempUsageDetail_20' ) end [2025-01-23 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:41:22] Production.INFO: ==27511== Releasing lock... [2025-01-23 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:42:05 [end_date_ymd] => 2025-01-23 00:42:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:42:05' and `end` < '2025-01-23 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-23 00:42:18] Production.INFO: count ==346 [2025-01-23 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:42:05 - End Time 2025-01-23 00:42:05 [2025-01-23 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308726', 'tblTempUsageDetail_20' ) start [2025-01-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308726', 'tblTempUsageDetail_20' ) end [2025-01-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308726', 'tblTempVendorCDR_20' ) start [2025-01-23 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308726', 'tblTempVendorCDR_20' ) end [2025-01-23 00:42:18] Production.INFO: ProcessCDR(1,14308726,1,1,2) [2025-01-23 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308726', 'tblTempUsageDetail_20' ) start [2025-01-23 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308726', 'tblTempUsageDetail_20' ) end [2025-01-23 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:42:21] Production.INFO: ==27600== Releasing lock... [2025-01-23 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:43:05 [end_date_ymd] => 2025-01-23 00:43:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:43:05' and `end` < '2025-01-23 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-23 00:43:17] Production.INFO: count ==345 [2025-01-23 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:43:05 - End Time 2025-01-23 00:43:05 [2025-01-23 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308731', 'tblTempUsageDetail_20' ) start [2025-01-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308731', 'tblTempUsageDetail_20' ) end [2025-01-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308731', 'tblTempVendorCDR_20' ) start [2025-01-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308731', 'tblTempVendorCDR_20' ) end [2025-01-23 00:43:18] Production.INFO: ProcessCDR(1,14308731,1,1,2) [2025-01-23 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308731', 'tblTempUsageDetail_20' ) start [2025-01-23 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308731', 'tblTempUsageDetail_20' ) end [2025-01-23 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:43:21] Production.INFO: ==27683== Releasing lock... [2025-01-23 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:44:05 [end_date_ymd] => 2025-01-23 00:44:05 [RateCDR] => 1 ) [2025-01-23 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:44:05' and `end` < '2025-01-23 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:44:17] Production.INFO: count ==345 [2025-01-23 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:44:05 - End Time 2025-01-23 00:44:05 [2025-01-23 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308736', 'tblTempUsageDetail_20' ) start [2025-01-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308736', 'tblTempUsageDetail_20' ) end [2025-01-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308736', 'tblTempVendorCDR_20' ) start [2025-01-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308736', 'tblTempVendorCDR_20' ) end [2025-01-23 00:44:18] Production.INFO: ProcessCDR(1,14308736,1,1,2) [2025-01-23 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308736', 'tblTempUsageDetail_20' ) start [2025-01-23 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308736', 'tblTempUsageDetail_20' ) end [2025-01-23 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:44:21] Production.INFO: ==27768== Releasing lock... [2025-01-23 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:45:05 [end_date_ymd] => 2025-01-23 00:45:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:45:05' and `end` < '2025-01-23 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-23 00:45:17] Production.INFO: count ==346 [2025-01-23 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-22 21:45:05 - End Time 2025-01-23 00:45:05 [2025-01-23 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308741', 'tblTempUsageDetail_20' ) start [2025-01-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308741', 'tblTempUsageDetail_20' ) end [2025-01-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308741', 'tblTempVendorCDR_20' ) start [2025-01-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308741', 'tblTempVendorCDR_20' ) end [2025-01-23 00:45:17] Production.INFO: ProcessCDR(1,14308741,1,1,2) [2025-01-23 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308741', 'tblTempUsageDetail_20' ) start [2025-01-23 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308741', 'tblTempUsageDetail_20' ) end [2025-01-23 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:45:20] Production.INFO: ==27852== Releasing lock... [2025-01-23 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:45:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:46:05 [end_date_ymd] => 2025-01-23 00:46:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:46:05' and `end` < '2025-01-23 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-23 00:46:17] Production.INFO: count ==346 [2025-01-23 00:46:17] Production.ERROR: pbx CDR StartTime 2025-01-22 21:46:05 - End Time 2025-01-23 00:46:05 [2025-01-23 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308746', 'tblTempUsageDetail_20' ) start [2025-01-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308746', 'tblTempUsageDetail_20' ) end [2025-01-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308746', 'tblTempVendorCDR_20' ) start [2025-01-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308746', 'tblTempVendorCDR_20' ) end [2025-01-23 00:46:17] Production.INFO: ProcessCDR(1,14308746,1,1,2) [2025-01-23 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308746', 'tblTempUsageDetail_20' ) start [2025-01-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308746', 'tblTempUsageDetail_20' ) end [2025-01-23 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:46:21] Production.INFO: ==27937== Releasing lock... [2025-01-23 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:47:05 [end_date_ymd] => 2025-01-23 00:47:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:47:05' and `end` < '2025-01-23 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-23 00:47:17] Production.INFO: count ==346 [2025-01-23 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-22 21:47:05 - End Time 2025-01-23 00:47:05 [2025-01-23 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308751', 'tblTempUsageDetail_20' ) start [2025-01-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308751', 'tblTempUsageDetail_20' ) end [2025-01-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308751', 'tblTempVendorCDR_20' ) start [2025-01-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308751', 'tblTempVendorCDR_20' ) end [2025-01-23 00:47:17] Production.INFO: ProcessCDR(1,14308751,1,1,2) [2025-01-23 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308751', 'tblTempUsageDetail_20' ) start [2025-01-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308751', 'tblTempUsageDetail_20' ) end [2025-01-23 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:47:20] Production.INFO: ==28018== Releasing lock... [2025-01-23 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:47:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:48:05 [end_date_ymd] => 2025-01-23 00:48:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:48:05' and `end` < '2025-01-23 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-23 00:48:17] Production.INFO: count ==341 [2025-01-23 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-22 21:48:05 - End Time 2025-01-23 00:48:05 [2025-01-23 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308756', 'tblTempUsageDetail_20' ) start [2025-01-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308756', 'tblTempUsageDetail_20' ) end [2025-01-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308756', 'tblTempVendorCDR_20' ) start [2025-01-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308756', 'tblTempVendorCDR_20' ) end [2025-01-23 00:48:17] Production.INFO: ProcessCDR(1,14308756,1,1,2) [2025-01-23 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308756', 'tblTempUsageDetail_20' ) start [2025-01-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308756', 'tblTempUsageDetail_20' ) end [2025-01-23 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:48:20] Production.INFO: ==28101== Releasing lock... [2025-01-23 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:48:20] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:49:05 [end_date_ymd] => 2025-01-23 00:49:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:49:05' and `end` < '2025-01-23 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-23 00:49:18] Production.INFO: count ==340 [2025-01-23 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:49:05 - End Time 2025-01-23 00:49:05 [2025-01-23 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308761', 'tblTempUsageDetail_20' ) start [2025-01-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308761', 'tblTempUsageDetail_20' ) end [2025-01-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308761', 'tblTempVendorCDR_20' ) start [2025-01-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308761', 'tblTempVendorCDR_20' ) end [2025-01-23 00:49:18] Production.INFO: ProcessCDR(1,14308761,1,1,2) [2025-01-23 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308761', 'tblTempUsageDetail_20' ) start [2025-01-23 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308761', 'tblTempUsageDetail_20' ) end [2025-01-23 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:49:22] Production.INFO: ==28189== Releasing lock... [2025-01-23 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:49:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:50:05 [end_date_ymd] => 2025-01-23 00:50:05 [RateCDR] => 1 ) [2025-01-23 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:50:05' and `end` < '2025-01-23 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:50:18] Production.INFO: count ==343 [2025-01-23 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:50:05 - End Time 2025-01-23 00:50:05 [2025-01-23 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308766', 'tblTempUsageDetail_20' ) start [2025-01-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308766', 'tblTempUsageDetail_20' ) end [2025-01-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308766', 'tblTempVendorCDR_20' ) start [2025-01-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308766', 'tblTempVendorCDR_20' ) end [2025-01-23 00:50:18] Production.INFO: ProcessCDR(1,14308766,1,1,2) [2025-01-23 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308766', 'tblTempUsageDetail_20' ) start [2025-01-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308766', 'tblTempUsageDetail_20' ) end [2025-01-23 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:50:21] Production.INFO: ==28274== Releasing lock... [2025-01-23 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:51:05 [end_date_ymd] => 2025-01-23 00:51:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:51:05' and `end` < '2025-01-23 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-23 00:51:19] Production.INFO: count ==349 [2025-01-23 00:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:51:05 - End Time 2025-01-23 00:51:05 [2025-01-23 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308772', 'tblTempUsageDetail_20' ) start [2025-01-23 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308772', 'tblTempUsageDetail_20' ) end [2025-01-23 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308772', 'tblTempVendorCDR_20' ) start [2025-01-23 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308772', 'tblTempVendorCDR_20' ) end [2025-01-23 00:51:19] Production.INFO: ProcessCDR(1,14308772,1,1,2) [2025-01-23 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308772', 'tblTempUsageDetail_20' ) start [2025-01-23 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308772', 'tblTempUsageDetail_20' ) end [2025-01-23 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:51:22] Production.INFO: ==28358== Releasing lock... [2025-01-23 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:52:05 [end_date_ymd] => 2025-01-23 00:52:05 [RateCDR] => 1 ) [2025-01-23 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:52:05' and `end` < '2025-01-23 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:52:18] Production.INFO: count ==348 [2025-01-23 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:52:05 - End Time 2025-01-23 00:52:05 [2025-01-23 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308777', 'tblTempUsageDetail_20' ) start [2025-01-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308777', 'tblTempUsageDetail_20' ) end [2025-01-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308777', 'tblTempVendorCDR_20' ) start [2025-01-23 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308777', 'tblTempVendorCDR_20' ) end [2025-01-23 00:52:19] Production.INFO: ProcessCDR(1,14308777,1,1,2) [2025-01-23 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308777', 'tblTempUsageDetail_20' ) start [2025-01-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308777', 'tblTempUsageDetail_20' ) end [2025-01-23 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:52:22] Production.INFO: ==28444== Releasing lock... [2025-01-23 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:52:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:53:05 [end_date_ymd] => 2025-01-23 00:53:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:53:05' and `end` < '2025-01-23 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-23 00:53:17] Production.INFO: count ==346 [2025-01-23 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:53:05 - End Time 2025-01-23 00:53:05 [2025-01-23 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308782', 'tblTempUsageDetail_20' ) start [2025-01-23 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308782', 'tblTempUsageDetail_20' ) end [2025-01-23 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308782', 'tblTempVendorCDR_20' ) start [2025-01-23 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308782', 'tblTempVendorCDR_20' ) end [2025-01-23 00:53:18] Production.INFO: ProcessCDR(1,14308782,1,1,2) [2025-01-23 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308782', 'tblTempUsageDetail_20' ) start [2025-01-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308782', 'tblTempUsageDetail_20' ) end [2025-01-23 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:53:21] Production.INFO: ==28523== Releasing lock... [2025-01-23 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:54:05 [end_date_ymd] => 2025-01-23 00:54:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:54:05' and `end` < '2025-01-23 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-23 00:54:20] Production.INFO: count ==338 [2025-01-23 00:54:20] Production.ERROR: pbx CDR StartTime 2025-01-22 21:54:05 - End Time 2025-01-23 00:54:05 [2025-01-23 00:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308787', 'tblTempUsageDetail_20' ) start [2025-01-23 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308787', 'tblTempUsageDetail_20' ) end [2025-01-23 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308787', 'tblTempVendorCDR_20' ) start [2025-01-23 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308787', 'tblTempVendorCDR_20' ) end [2025-01-23 00:54:20] Production.INFO: ProcessCDR(1,14308787,1,1,2) [2025-01-23 00:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308787', 'tblTempUsageDetail_20' ) start [2025-01-23 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308787', 'tblTempUsageDetail_20' ) end [2025-01-23 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:54:23] Production.INFO: ==28605== Releasing lock... [2025-01-23 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:54:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:55:05 [end_date_ymd] => 2025-01-23 00:55:05 [RateCDR] => 1 ) [2025-01-23 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 21:55:05' and `end` < '2025-01-23 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 00:55:18] Production.INFO: count ==334 [2025-01-23 00:55:19] Production.ERROR: pbx CDR StartTime 2025-01-22 21:55:05 - End Time 2025-01-23 00:55:05 [2025-01-23 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308792', 'tblTempUsageDetail_20' ) start [2025-01-23 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308792', 'tblTempUsageDetail_20' ) end [2025-01-23 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308792', 'tblTempVendorCDR_20' ) start [2025-01-23 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308792', 'tblTempVendorCDR_20' ) end [2025-01-23 00:55:19] Production.INFO: ProcessCDR(1,14308792,1,1,2) [2025-01-23 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308792', 'tblTempUsageDetail_20' ) start [2025-01-23 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308792', 'tblTempUsageDetail_20' ) end [2025-01-23 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:55:22] Production.INFO: ==28692== Releasing lock... [2025-01-23 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:55:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:56:06 [end_date_ymd] => 2025-01-23 00:56:06 [RateCDR] => 1 ) [2025-01-23 00: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-22 21:56:06' and `end` < '2025-01-23 00: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-23 00:56:18] Production.INFO: count ==331 [2025-01-23 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:56:06 - End Time 2025-01-23 00:56:06 [2025-01-23 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308797', 'tblTempUsageDetail_20' ) start [2025-01-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308797', 'tblTempUsageDetail_20' ) end [2025-01-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308797', 'tblTempVendorCDR_20' ) start [2025-01-23 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308797', 'tblTempVendorCDR_20' ) end [2025-01-23 00:56:18] Production.INFO: ProcessCDR(1,14308797,1,1,2) [2025-01-23 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308797', 'tblTempUsageDetail_20' ) start [2025-01-23 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308797', 'tblTempUsageDetail_20' ) end [2025-01-23 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:56:21] Production.INFO: ==28813== Releasing lock... [2025-01-23 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:56:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:57:05 [end_date_ymd] => 2025-01-23 00:57:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:57:05' and `end` < '2025-01-23 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-23 00:57:18] Production.INFO: count ==329 [2025-01-23 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:57:05 - End Time 2025-01-23 00:57:05 [2025-01-23 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308802', 'tblTempUsageDetail_20' ) start [2025-01-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308802', 'tblTempUsageDetail_20' ) end [2025-01-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308802', 'tblTempVendorCDR_20' ) start [2025-01-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308802', 'tblTempVendorCDR_20' ) end [2025-01-23 00:57:18] Production.INFO: ProcessCDR(1,14308802,1,1,2) [2025-01-23 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308802', 'tblTempUsageDetail_20' ) start [2025-01-23 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308802', 'tblTempUsageDetail_20' ) end [2025-01-23 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:57:22] Production.INFO: ==28902== Releasing lock... [2025-01-23 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:57:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:58:05 [end_date_ymd] => 2025-01-23 00:58:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:58:05' and `end` < '2025-01-23 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-23 00:58:18] Production.INFO: count ==333 [2025-01-23 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:58:05 - End Time 2025-01-23 00:58:05 [2025-01-23 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308807', 'tblTempUsageDetail_20' ) start [2025-01-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308807', 'tblTempUsageDetail_20' ) end [2025-01-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308807', 'tblTempVendorCDR_20' ) start [2025-01-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308807', 'tblTempVendorCDR_20' ) end [2025-01-23 00:58:18] Production.INFO: ProcessCDR(1,14308807,1,1,2) [2025-01-23 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308807', 'tblTempUsageDetail_20' ) start [2025-01-23 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308807', 'tblTempUsageDetail_20' ) end [2025-01-23 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:58:21] Production.INFO: ==28990== Releasing lock... [2025-01-23 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:58:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 21:59:05 [end_date_ymd] => 2025-01-23 00:59:05 [RateCDR] => 1 ) [2025-01-23 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-22 21:59:05' and `end` < '2025-01-23 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-23 00:59:18] Production.INFO: count ==333 [2025-01-23 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-22 21:59:05 - End Time 2025-01-23 00:59:05 [2025-01-23 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308812', 'tblTempUsageDetail_20' ) start [2025-01-23 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308812', 'tblTempUsageDetail_20' ) end [2025-01-23 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308812', 'tblTempVendorCDR_20' ) start [2025-01-23 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308812', 'tblTempVendorCDR_20' ) end [2025-01-23 00:59:18] Production.INFO: ProcessCDR(1,14308812,1,1,2) [2025-01-23 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308812', 'tblTempUsageDetail_20' ) start [2025-01-23 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308812', 'tblTempUsageDetail_20' ) end [2025-01-23 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 00:59:21] Production.INFO: ==29075== Releasing lock... [2025-01-23 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 00:59:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:00:06 [end_date_ymd] => 2025-01-23 01:00:06 [RateCDR] => 1 ) [2025-01-23 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-22 22:00:06' and `end` < '2025-01-23 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-23 01:00:18] Production.INFO: count ==339 [2025-01-23 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:00:06 - End Time 2025-01-23 01:00:06 [2025-01-23 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308818', 'tblTempUsageDetail_20' ) start [2025-01-23 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308818', 'tblTempUsageDetail_20' ) end [2025-01-23 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308818', 'tblTempVendorCDR_20' ) start [2025-01-23 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308818', 'tblTempVendorCDR_20' ) end [2025-01-23 01:00:18] Production.INFO: ProcessCDR(1,14308818,1,1,2) [2025-01-23 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308818', 'tblTempUsageDetail_20' ) start [2025-01-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308818', 'tblTempUsageDetail_20' ) end [2025-01-23 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:00:22] Production.INFO: ==29163== Releasing lock... [2025-01-23 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:00:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:01:05 [end_date_ymd] => 2025-01-23 01:01:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:01:05' and `end` < '2025-01-23 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-23 01:01:17] Production.INFO: count ==337 [2025-01-23 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:01:05 - End Time 2025-01-23 01:01:05 [2025-01-23 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308823', 'tblTempUsageDetail_20' ) start [2025-01-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308823', 'tblTempUsageDetail_20' ) end [2025-01-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308823', 'tblTempVendorCDR_20' ) start [2025-01-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308823', 'tblTempVendorCDR_20' ) end [2025-01-23 01:01:17] Production.INFO: ProcessCDR(1,14308823,1,1,2) [2025-01-23 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308823', 'tblTempUsageDetail_20' ) start [2025-01-23 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308823', 'tblTempUsageDetail_20' ) end [2025-01-23 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:01:20] Production.INFO: ==29267== Releasing lock... [2025-01-23 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:01:20] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:02:05 [end_date_ymd] => 2025-01-23 01:02:05 [RateCDR] => 1 ) [2025-01-23 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:02:05' and `end` < '2025-01-23 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:02:18] Production.INFO: count ==334 [2025-01-23 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:02:05 - End Time 2025-01-23 01:02:05 [2025-01-23 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308828', 'tblTempUsageDetail_20' ) start [2025-01-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308828', 'tblTempUsageDetail_20' ) end [2025-01-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308828', 'tblTempVendorCDR_20' ) start [2025-01-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308828', 'tblTempVendorCDR_20' ) end [2025-01-23 01:02:18] Production.INFO: ProcessCDR(1,14308828,1,1,2) [2025-01-23 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308828', 'tblTempUsageDetail_20' ) start [2025-01-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308828', 'tblTempUsageDetail_20' ) end [2025-01-23 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:02:21] Production.INFO: ==29349== Releasing lock... [2025-01-23 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:02:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:03:05 [end_date_ymd] => 2025-01-23 01:03:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:03:05' and `end` < '2025-01-23 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-23 01:03:19] Production.INFO: count ==330 [2025-01-23 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:03:05 - End Time 2025-01-23 01:03:05 [2025-01-23 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308833', 'tblTempUsageDetail_20' ) start [2025-01-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308833', 'tblTempUsageDetail_20' ) end [2025-01-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308833', 'tblTempVendorCDR_20' ) start [2025-01-23 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308833', 'tblTempVendorCDR_20' ) end [2025-01-23 01:03:19] Production.INFO: ProcessCDR(1,14308833,1,1,2) [2025-01-23 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308833', 'tblTempUsageDetail_20' ) start [2025-01-23 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308833', 'tblTempUsageDetail_20' ) end [2025-01-23 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:03:22] Production.INFO: ==29430== Releasing lock... [2025-01-23 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:04:05 [end_date_ymd] => 2025-01-23 01:04:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:04:05' and `end` < '2025-01-23 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-23 01:04:18] Production.INFO: count ==330 [2025-01-23 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:04:05 - End Time 2025-01-23 01:04:05 [2025-01-23 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308838', 'tblTempUsageDetail_20' ) start [2025-01-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308838', 'tblTempUsageDetail_20' ) end [2025-01-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308838', 'tblTempVendorCDR_20' ) start [2025-01-23 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308838', 'tblTempVendorCDR_20' ) end [2025-01-23 01:04:18] Production.INFO: ProcessCDR(1,14308838,1,1,2) [2025-01-23 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308838', 'tblTempUsageDetail_20' ) start [2025-01-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308838', 'tblTempUsageDetail_20' ) end [2025-01-23 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:04:21] Production.INFO: ==29516== Releasing lock... [2025-01-23 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:05:05 [end_date_ymd] => 2025-01-23 01:05:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:05:05' and `end` < '2025-01-23 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-23 01:05:17] Production.INFO: count ==331 [2025-01-23 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:05:05 - End Time 2025-01-23 01:05:05 [2025-01-23 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308843', 'tblTempUsageDetail_20' ) start [2025-01-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308843', 'tblTempUsageDetail_20' ) end [2025-01-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308843', 'tblTempVendorCDR_20' ) start [2025-01-23 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308843', 'tblTempVendorCDR_20' ) end [2025-01-23 01:05:18] Production.INFO: ProcessCDR(1,14308843,1,1,2) [2025-01-23 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308843', 'tblTempUsageDetail_20' ) start [2025-01-23 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308843', 'tblTempUsageDetail_20' ) end [2025-01-23 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:05:22] Production.INFO: ==29594== Releasing lock... [2025-01-23 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:05:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:06:06 [end_date_ymd] => 2025-01-23 01:06:06 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:06:06' and `end` < '2025-01-23 01: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-23 01:06:18] Production.INFO: count ==330 [2025-01-23 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:06:06 - End Time 2025-01-23 01:06:06 [2025-01-23 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308848', 'tblTempUsageDetail_20' ) start [2025-01-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308848', 'tblTempUsageDetail_20' ) end [2025-01-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308848', 'tblTempVendorCDR_20' ) start [2025-01-23 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308848', 'tblTempVendorCDR_20' ) end [2025-01-23 01:06:18] Production.INFO: ProcessCDR(1,14308848,1,1,2) [2025-01-23 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308848', 'tblTempUsageDetail_20' ) start [2025-01-23 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308848', 'tblTempUsageDetail_20' ) end [2025-01-23 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:06:23] Production.INFO: ==29673== Releasing lock... [2025-01-23 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:06:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:07:05 [end_date_ymd] => 2025-01-23 01:07:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:07:05' and `end` < '2025-01-23 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-23 01:07:17] Production.INFO: count ==327 [2025-01-23 01:07:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:07:05 - End Time 2025-01-23 01:07:05 [2025-01-23 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308853', 'tblTempUsageDetail_20' ) start [2025-01-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308853', 'tblTempUsageDetail_20' ) end [2025-01-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308853', 'tblTempVendorCDR_20' ) start [2025-01-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308853', 'tblTempVendorCDR_20' ) end [2025-01-23 01:07:17] Production.INFO: ProcessCDR(1,14308853,1,1,2) [2025-01-23 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308853', 'tblTempUsageDetail_20' ) start [2025-01-23 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308853', 'tblTempUsageDetail_20' ) end [2025-01-23 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:07:21] Production.INFO: ==29751== Releasing lock... [2025-01-23 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:08:05 [end_date_ymd] => 2025-01-23 01:08:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:08:05' and `end` < '2025-01-23 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-23 01:08:19] Production.INFO: count ==329 [2025-01-23 01:08:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:08:05 - End Time 2025-01-23 01:08:05 [2025-01-23 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308858', 'tblTempUsageDetail_20' ) start [2025-01-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308858', 'tblTempUsageDetail_20' ) end [2025-01-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308858', 'tblTempVendorCDR_20' ) start [2025-01-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308858', 'tblTempVendorCDR_20' ) end [2025-01-23 01:08:19] Production.INFO: ProcessCDR(1,14308858,1,1,2) [2025-01-23 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308858', 'tblTempUsageDetail_20' ) start [2025-01-23 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308858', 'tblTempUsageDetail_20' ) end [2025-01-23 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:08:23] Production.INFO: ==29829== Releasing lock... [2025-01-23 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:08:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:09:05 [end_date_ymd] => 2025-01-23 01:09:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:09:05' and `end` < '2025-01-23 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-23 01:09:19] Production.INFO: count ==329 [2025-01-23 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:09:05 - End Time 2025-01-23 01:09:05 [2025-01-23 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308863', 'tblTempUsageDetail_20' ) start [2025-01-23 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308863', 'tblTempUsageDetail_20' ) end [2025-01-23 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308863', 'tblTempVendorCDR_20' ) start [2025-01-23 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308863', 'tblTempVendorCDR_20' ) end [2025-01-23 01:09:19] Production.INFO: ProcessCDR(1,14308863,1,1,2) [2025-01-23 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308863', 'tblTempUsageDetail_20' ) start [2025-01-23 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308863', 'tblTempUsageDetail_20' ) end [2025-01-23 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:09:22] Production.INFO: ==29913== Releasing lock... [2025-01-23 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:10:07 [end_date_ymd] => 2025-01-23 01:10:07 [RateCDR] => 1 ) [2025-01-23 01:10: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-22 22:10:07' and `end` < '2025-01-23 01:10: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-23 01:10:19] Production.INFO: count ==336 [2025-01-23 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:10:07 - End Time 2025-01-23 01:10:07 [2025-01-23 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308869', 'tblTempUsageDetail_20' ) start [2025-01-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308869', 'tblTempUsageDetail_20' ) end [2025-01-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308869', 'tblTempVendorCDR_20' ) start [2025-01-23 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308869', 'tblTempVendorCDR_20' ) end [2025-01-23 01:10:19] Production.INFO: ProcessCDR(1,14308869,1,1,2) [2025-01-23 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308869', 'tblTempUsageDetail_20' ) start [2025-01-23 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308869', 'tblTempUsageDetail_20' ) end [2025-01-23 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:10:22] Production.INFO: ==29999== Releasing lock... [2025-01-23 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:11:05 [end_date_ymd] => 2025-01-23 01:11:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:11:05' and `end` < '2025-01-23 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-23 01:11:17] Production.INFO: count ==331 [2025-01-23 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:11:05 - End Time 2025-01-23 01:11:05 [2025-01-23 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308874', 'tblTempUsageDetail_20' ) start [2025-01-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308874', 'tblTempUsageDetail_20' ) end [2025-01-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308874', 'tblTempVendorCDR_20' ) start [2025-01-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308874', 'tblTempVendorCDR_20' ) end [2025-01-23 01:11:17] Production.INFO: ProcessCDR(1,14308874,1,1,2) [2025-01-23 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308874', 'tblTempUsageDetail_20' ) start [2025-01-23 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308874', 'tblTempUsageDetail_20' ) end [2025-01-23 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:11:20] Production.INFO: ==30126== Releasing lock... [2025-01-23 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:11:20] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:12:05 [end_date_ymd] => 2025-01-23 01:12:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:12:05' and `end` < '2025-01-23 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-23 01:12:18] Production.INFO: count ==331 [2025-01-23 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:12:05 - End Time 2025-01-23 01:12:05 [2025-01-23 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308879', 'tblTempUsageDetail_20' ) start [2025-01-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308879', 'tblTempUsageDetail_20' ) end [2025-01-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308879', 'tblTempVendorCDR_20' ) start [2025-01-23 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308879', 'tblTempVendorCDR_20' ) end [2025-01-23 01:12:18] Production.INFO: ProcessCDR(1,14308879,1,1,2) [2025-01-23 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308879', 'tblTempUsageDetail_20' ) start [2025-01-23 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308879', 'tblTempUsageDetail_20' ) end [2025-01-23 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:12:21] Production.INFO: ==30216== Releasing lock... [2025-01-23 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:12:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:13:05 [end_date_ymd] => 2025-01-23 01:13:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:13:05' and `end` < '2025-01-23 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-23 01:13:19] Production.INFO: count ==331 [2025-01-23 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:13:05 - End Time 2025-01-23 01:13:05 [2025-01-23 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308884', 'tblTempUsageDetail_20' ) start [2025-01-23 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308884', 'tblTempUsageDetail_20' ) end [2025-01-23 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308884', 'tblTempVendorCDR_20' ) start [2025-01-23 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308884', 'tblTempVendorCDR_20' ) end [2025-01-23 01:13:19] Production.INFO: ProcessCDR(1,14308884,1,1,2) [2025-01-23 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308884', 'tblTempUsageDetail_20' ) start [2025-01-23 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308884', 'tblTempUsageDetail_20' ) end [2025-01-23 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:13:22] Production.INFO: ==30302== Releasing lock... [2025-01-23 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:13:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:14:05 [end_date_ymd] => 2025-01-23 01:14:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:14:05' and `end` < '2025-01-23 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-23 01:14:18] Production.INFO: count ==330 [2025-01-23 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:14:05 - End Time 2025-01-23 01:14:05 [2025-01-23 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308889', 'tblTempUsageDetail_20' ) start [2025-01-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308889', 'tblTempUsageDetail_20' ) end [2025-01-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308889', 'tblTempVendorCDR_20' ) start [2025-01-23 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308889', 'tblTempVendorCDR_20' ) end [2025-01-23 01:14:18] Production.INFO: ProcessCDR(1,14308889,1,1,2) [2025-01-23 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308889', 'tblTempUsageDetail_20' ) start [2025-01-23 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308889', 'tblTempUsageDetail_20' ) end [2025-01-23 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:14:21] Production.INFO: ==30386== Releasing lock... [2025-01-23 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:14:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:15:05 [end_date_ymd] => 2025-01-23 01:15:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:15:05' and `end` < '2025-01-23 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-23 01:15:18] Production.INFO: count ==330 [2025-01-23 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:15:05 - End Time 2025-01-23 01:15:05 [2025-01-23 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308894', 'tblTempUsageDetail_20' ) start [2025-01-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308894', 'tblTempUsageDetail_20' ) end [2025-01-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308894', 'tblTempVendorCDR_20' ) start [2025-01-23 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308894', 'tblTempVendorCDR_20' ) end [2025-01-23 01:15:18] Production.INFO: ProcessCDR(1,14308894,1,1,2) [2025-01-23 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308894', 'tblTempUsageDetail_20' ) start [2025-01-23 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308894', 'tblTempUsageDetail_20' ) end [2025-01-23 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:15:22] Production.INFO: ==30466== Releasing lock... [2025-01-23 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:15:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:16:05 [end_date_ymd] => 2025-01-23 01:16:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:16:05' and `end` < '2025-01-23 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-23 01:16:18] Production.INFO: count ==329 [2025-01-23 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:16:05 - End Time 2025-01-23 01:16:05 [2025-01-23 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308899', 'tblTempUsageDetail_20' ) start [2025-01-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308899', 'tblTempUsageDetail_20' ) end [2025-01-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308899', 'tblTempVendorCDR_20' ) start [2025-01-23 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308899', 'tblTempVendorCDR_20' ) end [2025-01-23 01:16:18] Production.INFO: ProcessCDR(1,14308899,1,1,2) [2025-01-23 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308899', 'tblTempUsageDetail_20' ) start [2025-01-23 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308899', 'tblTempUsageDetail_20' ) end [2025-01-23 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:16:21] Production.INFO: ==30547== Releasing lock... [2025-01-23 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:17:05 [end_date_ymd] => 2025-01-23 01:17:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:17:05' and `end` < '2025-01-23 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-23 01:17:19] Production.INFO: count ==329 [2025-01-23 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:17:05 - End Time 2025-01-23 01:17:05 [2025-01-23 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308904', 'tblTempUsageDetail_20' ) start [2025-01-23 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308904', 'tblTempUsageDetail_20' ) end [2025-01-23 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308904', 'tblTempVendorCDR_20' ) start [2025-01-23 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308904', 'tblTempVendorCDR_20' ) end [2025-01-23 01:17:19] Production.INFO: ProcessCDR(1,14308904,1,1,2) [2025-01-23 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308904', 'tblTempUsageDetail_20' ) start [2025-01-23 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308904', 'tblTempUsageDetail_20' ) end [2025-01-23 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:17:22] Production.INFO: ==30629== Releasing lock... [2025-01-23 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:18:05 [end_date_ymd] => 2025-01-23 01:18:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:18:05' and `end` < '2025-01-23 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-23 01:18:18] Production.INFO: count ==325 [2025-01-23 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:18:05 - End Time 2025-01-23 01:18:05 [2025-01-23 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308909', 'tblTempUsageDetail_20' ) start [2025-01-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308909', 'tblTempUsageDetail_20' ) end [2025-01-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308909', 'tblTempVendorCDR_20' ) start [2025-01-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308909', 'tblTempVendorCDR_20' ) end [2025-01-23 01:18:18] Production.INFO: ProcessCDR(1,14308909,1,1,2) [2025-01-23 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308909', 'tblTempUsageDetail_20' ) start [2025-01-23 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308909', 'tblTempUsageDetail_20' ) end [2025-01-23 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:18:21] Production.INFO: ==30717== Releasing lock... [2025-01-23 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:18:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:19:05 [end_date_ymd] => 2025-01-23 01:19:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:19:05' and `end` < '2025-01-23 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-23 01:19:18] Production.INFO: count ==325 [2025-01-23 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:19:05 - End Time 2025-01-23 01:19:05 [2025-01-23 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308914', 'tblTempUsageDetail_20' ) start [2025-01-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308914', 'tblTempUsageDetail_20' ) end [2025-01-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308914', 'tblTempVendorCDR_20' ) start [2025-01-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308914', 'tblTempVendorCDR_20' ) end [2025-01-23 01:19:18] Production.INFO: ProcessCDR(1,14308914,1,1,2) [2025-01-23 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308914', 'tblTempUsageDetail_20' ) start [2025-01-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308914', 'tblTempUsageDetail_20' ) end [2025-01-23 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:19:21] Production.INFO: ==30803== Releasing lock... [2025-01-23 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:19:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:20:05 [end_date_ymd] => 2025-01-23 01:20:05 [RateCDR] => 1 ) [2025-01-23 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:20:05' and `end` < '2025-01-23 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:20:18] Production.INFO: count ==329 [2025-01-23 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:20:05 - End Time 2025-01-23 01:20:05 [2025-01-23 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308920', 'tblTempUsageDetail_20' ) start [2025-01-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308920', 'tblTempUsageDetail_20' ) end [2025-01-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308920', 'tblTempVendorCDR_20' ) start [2025-01-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308920', 'tblTempVendorCDR_20' ) end [2025-01-23 01:20:18] Production.INFO: ProcessCDR(1,14308920,1,1,2) [2025-01-23 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308920', 'tblTempUsageDetail_20' ) start [2025-01-23 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308920', 'tblTempUsageDetail_20' ) end [2025-01-23 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:20:21] Production.INFO: ==30894== Releasing lock... [2025-01-23 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:20:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:21:06 [end_date_ymd] => 2025-01-23 01:21:06 [RateCDR] => 1 ) [2025-01-23 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:21:06' and `end` < '2025-01-23 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:21:19] Production.INFO: count ==329 [2025-01-23 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:21:06 - End Time 2025-01-23 01:21:06 [2025-01-23 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308925', 'tblTempUsageDetail_20' ) start [2025-01-23 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308925', 'tblTempUsageDetail_20' ) end [2025-01-23 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308925', 'tblTempVendorCDR_20' ) start [2025-01-23 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308925', 'tblTempVendorCDR_20' ) end [2025-01-23 01:21:19] Production.INFO: ProcessCDR(1,14308925,1,1,2) [2025-01-23 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308925', 'tblTempUsageDetail_20' ) start [2025-01-23 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308925', 'tblTempUsageDetail_20' ) end [2025-01-23 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:21:23] Production.INFO: ==30984== Releasing lock... [2025-01-23 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:21:23] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:22:05 [end_date_ymd] => 2025-01-23 01:22:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:22:05' and `end` < '2025-01-23 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-23 01:22:17] Production.INFO: count ==329 [2025-01-23 01:22:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:22:05 - End Time 2025-01-23 01:22:05 [2025-01-23 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308930', 'tblTempUsageDetail_20' ) start [2025-01-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308930', 'tblTempUsageDetail_20' ) end [2025-01-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308930', 'tblTempVendorCDR_20' ) start [2025-01-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308930', 'tblTempVendorCDR_20' ) end [2025-01-23 01:22:17] Production.INFO: ProcessCDR(1,14308930,1,1,2) [2025-01-23 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308930', 'tblTempUsageDetail_20' ) start [2025-01-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308930', 'tblTempUsageDetail_20' ) end [2025-01-23 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:22:21] Production.INFO: ==31078== Releasing lock... [2025-01-23 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:22:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:23:05 [end_date_ymd] => 2025-01-23 01:23:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:23:05' and `end` < '2025-01-23 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-23 01:23:18] Production.INFO: count ==328 [2025-01-23 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:23:05 - End Time 2025-01-23 01:23:05 [2025-01-23 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308935', 'tblTempUsageDetail_20' ) start [2025-01-23 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308935', 'tblTempUsageDetail_20' ) end [2025-01-23 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308935', 'tblTempVendorCDR_20' ) start [2025-01-23 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308935', 'tblTempVendorCDR_20' ) end [2025-01-23 01:23:18] Production.INFO: ProcessCDR(1,14308935,1,1,2) [2025-01-23 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308935', 'tblTempUsageDetail_20' ) start [2025-01-23 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308935', 'tblTempUsageDetail_20' ) end [2025-01-23 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:23:22] Production.INFO: ==31171== Releasing lock... [2025-01-23 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:24:05 [end_date_ymd] => 2025-01-23 01:24:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:24:05' and `end` < '2025-01-23 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-23 01:24:18] Production.INFO: count ==325 [2025-01-23 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:24:05 - End Time 2025-01-23 01:24:05 [2025-01-23 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308940', 'tblTempUsageDetail_20' ) start [2025-01-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308940', 'tblTempUsageDetail_20' ) end [2025-01-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308940', 'tblTempVendorCDR_20' ) start [2025-01-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308940', 'tblTempVendorCDR_20' ) end [2025-01-23 01:24:18] Production.INFO: ProcessCDR(1,14308940,1,1,2) [2025-01-23 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308940', 'tblTempUsageDetail_20' ) start [2025-01-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308940', 'tblTempUsageDetail_20' ) end [2025-01-23 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:24:21] Production.INFO: ==31264== Releasing lock... [2025-01-23 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:25:05 [end_date_ymd] => 2025-01-23 01:25:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:25:05' and `end` < '2025-01-23 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-23 01:25:18] Production.INFO: count ==325 [2025-01-23 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:25:05 - End Time 2025-01-23 01:25:05 [2025-01-23 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308945', 'tblTempUsageDetail_20' ) start [2025-01-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308945', 'tblTempUsageDetail_20' ) end [2025-01-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308945', 'tblTempVendorCDR_20' ) start [2025-01-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308945', 'tblTempVendorCDR_20' ) end [2025-01-23 01:25:18] Production.INFO: ProcessCDR(1,14308945,1,1,2) [2025-01-23 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308945', 'tblTempUsageDetail_20' ) start [2025-01-23 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308945', 'tblTempUsageDetail_20' ) end [2025-01-23 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:25:21] Production.INFO: ==31357== Releasing lock... [2025-01-23 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:26:05 [end_date_ymd] => 2025-01-23 01:26:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:26:05' and `end` < '2025-01-23 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-23 01:26:18] Production.INFO: count ==320 [2025-01-23 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:26:05 - End Time 2025-01-23 01:26:05 [2025-01-23 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308950', 'tblTempUsageDetail_20' ) start [2025-01-23 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308950', 'tblTempUsageDetail_20' ) end [2025-01-23 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308950', 'tblTempVendorCDR_20' ) start [2025-01-23 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308950', 'tblTempVendorCDR_20' ) end [2025-01-23 01:26:19] Production.INFO: ProcessCDR(1,14308950,1,1,2) [2025-01-23 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308950', 'tblTempUsageDetail_20' ) start [2025-01-23 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308950', 'tblTempUsageDetail_20' ) end [2025-01-23 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:26:22] Production.INFO: ==31447== Releasing lock... [2025-01-23 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:27:05 [end_date_ymd] => 2025-01-23 01:27:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:27:05' and `end` < '2025-01-23 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-23 01:27:19] Production.INFO: count ==320 [2025-01-23 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:27:05 - End Time 2025-01-23 01:27:05 [2025-01-23 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308955', 'tblTempUsageDetail_20' ) start [2025-01-23 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308955', 'tblTempUsageDetail_20' ) end [2025-01-23 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308955', 'tblTempVendorCDR_20' ) start [2025-01-23 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308955', 'tblTempVendorCDR_20' ) end [2025-01-23 01:27:19] Production.INFO: ProcessCDR(1,14308955,1,1,2) [2025-01-23 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308955', 'tblTempUsageDetail_20' ) start [2025-01-23 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308955', 'tblTempUsageDetail_20' ) end [2025-01-23 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:27:23] Production.INFO: ==31577== Releasing lock... [2025-01-23 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:28:05 [end_date_ymd] => 2025-01-23 01:28:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:28:05' and `end` < '2025-01-23 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-23 01:28:17] Production.INFO: count ==318 [2025-01-23 01:28:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:28:05 - End Time 2025-01-23 01:28:05 [2025-01-23 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308960', 'tblTempUsageDetail_20' ) start [2025-01-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308960', 'tblTempUsageDetail_20' ) end [2025-01-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308960', 'tblTempVendorCDR_20' ) start [2025-01-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308960', 'tblTempVendorCDR_20' ) end [2025-01-23 01:28:17] Production.INFO: ProcessCDR(1,14308960,1,1,2) [2025-01-23 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308960', 'tblTempUsageDetail_20' ) start [2025-01-23 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308960', 'tblTempUsageDetail_20' ) end [2025-01-23 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:28:20] Production.INFO: ==31664== Releasing lock... [2025-01-23 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:29:05 [end_date_ymd] => 2025-01-23 01:29:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:29:05' and `end` < '2025-01-23 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-23 01:29:18] Production.INFO: count ==317 [2025-01-23 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:29:05 - End Time 2025-01-23 01:29:05 [2025-01-23 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308965', 'tblTempUsageDetail_20' ) start [2025-01-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308965', 'tblTempUsageDetail_20' ) end [2025-01-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308965', 'tblTempVendorCDR_20' ) start [2025-01-23 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308965', 'tblTempVendorCDR_20' ) end [2025-01-23 01:29:18] Production.INFO: ProcessCDR(1,14308965,1,1,2) [2025-01-23 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308965', 'tblTempUsageDetail_20' ) start [2025-01-23 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308965', 'tblTempUsageDetail_20' ) end [2025-01-23 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:29:21] Production.INFO: ==31749== Releasing lock... [2025-01-23 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:30:05 [end_date_ymd] => 2025-01-23 01:30:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:30:05' and `end` < '2025-01-23 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-23 01:30:18] Production.INFO: count ==329 [2025-01-23 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:30:05 - End Time 2025-01-23 01:30:05 [2025-01-23 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308971', 'tblTempUsageDetail_20' ) start [2025-01-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308971', 'tblTempUsageDetail_20' ) end [2025-01-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308971', 'tblTempVendorCDR_20' ) start [2025-01-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308971', 'tblTempVendorCDR_20' ) end [2025-01-23 01:30:18] Production.INFO: ProcessCDR(1,14308971,1,1,2) [2025-01-23 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308971', 'tblTempUsageDetail_20' ) start [2025-01-23 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308971', 'tblTempUsageDetail_20' ) end [2025-01-23 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:30:21] Production.INFO: ==31839== Releasing lock... [2025-01-23 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:31:05 [end_date_ymd] => 2025-01-23 01:31:05 [RateCDR] => 1 ) [2025-01-23 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:31:05' and `end` < '2025-01-23 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:31:18] Production.INFO: count ==340 [2025-01-23 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:31:05 - End Time 2025-01-23 01:31:05 [2025-01-23 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308976', 'tblTempUsageDetail_20' ) start [2025-01-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308976', 'tblTempUsageDetail_20' ) end [2025-01-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308976', 'tblTempVendorCDR_20' ) start [2025-01-23 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308976', 'tblTempVendorCDR_20' ) end [2025-01-23 01:31:18] Production.INFO: ProcessCDR(1,14308976,1,1,2) [2025-01-23 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308976', 'tblTempUsageDetail_20' ) start [2025-01-23 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308976', 'tblTempUsageDetail_20' ) end [2025-01-23 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:31:21] Production.INFO: ==31927== Releasing lock... [2025-01-23 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:32:05 [end_date_ymd] => 2025-01-23 01:32:05 [RateCDR] => 1 ) [2025-01-23 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:32:05' and `end` < '2025-01-23 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:32:18] Production.INFO: count ==339 [2025-01-23 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:32:05 - End Time 2025-01-23 01:32:05 [2025-01-23 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308981', 'tblTempUsageDetail_20' ) start [2025-01-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308981', 'tblTempUsageDetail_20' ) end [2025-01-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308981', 'tblTempVendorCDR_20' ) start [2025-01-23 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308981', 'tblTempVendorCDR_20' ) end [2025-01-23 01:32:18] Production.INFO: ProcessCDR(1,14308981,1,1,2) [2025-01-23 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308981', 'tblTempUsageDetail_20' ) start [2025-01-23 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308981', 'tblTempUsageDetail_20' ) end [2025-01-23 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:32:23] Production.INFO: ==32017== Releasing lock... [2025-01-23 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:32:23] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:33:06 [end_date_ymd] => 2025-01-23 01:33:06 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:33:06' and `end` < '2025-01-23 01: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-23 01:33:19] Production.INFO: count ==338 [2025-01-23 01:33:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:33:06 - End Time 2025-01-23 01:33:06 [2025-01-23 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308986', 'tblTempUsageDetail_20' ) start [2025-01-23 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308986', 'tblTempUsageDetail_20' ) end [2025-01-23 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308986', 'tblTempVendorCDR_20' ) start [2025-01-23 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308986', 'tblTempVendorCDR_20' ) end [2025-01-23 01:33:19] Production.INFO: ProcessCDR(1,14308986,1,1,2) [2025-01-23 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308986', 'tblTempUsageDetail_20' ) start [2025-01-23 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308986', 'tblTempUsageDetail_20' ) end [2025-01-23 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:33:22] Production.INFO: ==32108== Releasing lock... [2025-01-23 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:33:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:34:05 [end_date_ymd] => 2025-01-23 01:34:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:34:05' and `end` < '2025-01-23 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-23 01:34:18] Production.INFO: count ==338 [2025-01-23 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:34:05 - End Time 2025-01-23 01:34:05 [2025-01-23 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308991', 'tblTempUsageDetail_20' ) start [2025-01-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308991', 'tblTempUsageDetail_20' ) end [2025-01-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308991', 'tblTempVendorCDR_20' ) start [2025-01-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308991', 'tblTempVendorCDR_20' ) end [2025-01-23 01:34:18] Production.INFO: ProcessCDR(1,14308991,1,1,2) [2025-01-23 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308991', 'tblTempUsageDetail_20' ) start [2025-01-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308991', 'tblTempUsageDetail_20' ) end [2025-01-23 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:34:21] Production.INFO: ==32197== Releasing lock... [2025-01-23 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:34:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:35:05 [end_date_ymd] => 2025-01-23 01:35:05 [RateCDR] => 1 ) [2025-01-23 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:35:05' and `end` < '2025-01-23 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:35:18] Production.INFO: count ==338 [2025-01-23 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:35:05 - End Time 2025-01-23 01:35:05 [2025-01-23 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308996', 'tblTempUsageDetail_20' ) start [2025-01-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14308996', 'tblTempUsageDetail_20' ) end [2025-01-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308996', 'tblTempVendorCDR_20' ) start [2025-01-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14308996', 'tblTempVendorCDR_20' ) end [2025-01-23 01:35:18] Production.INFO: ProcessCDR(1,14308996,1,1,2) [2025-01-23 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14308996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14308996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14308996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14308996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308996', 'tblTempUsageDetail_20' ) start [2025-01-23 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14308996', 'tblTempUsageDetail_20' ) end [2025-01-23 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:35:21] Production.INFO: ==32284== Releasing lock... [2025-01-23 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:36:04 [end_date_ymd] => 2025-01-23 01:36:04 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:36:04' and `end` < '2025-01-23 01: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-23 01:36:17] Production.INFO: count ==339 [2025-01-23 01:36:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:36:04 - End Time 2025-01-23 01:36:04 [2025-01-23 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309001', 'tblTempUsageDetail_20' ) start [2025-01-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309001', 'tblTempUsageDetail_20' ) end [2025-01-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309001', 'tblTempVendorCDR_20' ) start [2025-01-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309001', 'tblTempVendorCDR_20' ) end [2025-01-23 01:36:17] Production.INFO: ProcessCDR(1,14309001,1,1,2) [2025-01-23 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309001', 'tblTempUsageDetail_20' ) start [2025-01-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309001', 'tblTempUsageDetail_20' ) end [2025-01-23 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:36:22] Production.INFO: ==32372== Releasing lock... [2025-01-23 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:37:05 [end_date_ymd] => 2025-01-23 01:37:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:37:05' and `end` < '2025-01-23 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-23 01:37:18] Production.INFO: count ==339 [2025-01-23 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:37:05 - End Time 2025-01-23 01:37:05 [2025-01-23 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309006', 'tblTempUsageDetail_20' ) start [2025-01-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309006', 'tblTempUsageDetail_20' ) end [2025-01-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309006', 'tblTempVendorCDR_20' ) start [2025-01-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309006', 'tblTempVendorCDR_20' ) end [2025-01-23 01:37:18] Production.INFO: ProcessCDR(1,14309006,1,1,2) [2025-01-23 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309006', 'tblTempUsageDetail_20' ) start [2025-01-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309006', 'tblTempUsageDetail_20' ) end [2025-01-23 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:37:21] Production.INFO: ==32458== Releasing lock... [2025-01-23 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:37:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:38:04 [end_date_ymd] => 2025-01-23 01:38:04 [RateCDR] => 1 ) [2025-01-23 01:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:38:04' and `end` < '2025-01-23 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-23 01:38:18] Production.INFO: count ==336 [2025-01-23 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:38:04 - End Time 2025-01-23 01:38:04 [2025-01-23 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309011', 'tblTempUsageDetail_20' ) start [2025-01-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309011', 'tblTempUsageDetail_20' ) end [2025-01-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309011', 'tblTempVendorCDR_20' ) start [2025-01-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309011', 'tblTempVendorCDR_20' ) end [2025-01-23 01:38:18] Production.INFO: ProcessCDR(1,14309011,1,1,2) [2025-01-23 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309011', 'tblTempUsageDetail_20' ) start [2025-01-23 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309011', 'tblTempUsageDetail_20' ) end [2025-01-23 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:38:21] Production.INFO: ==32544== Releasing lock... [2025-01-23 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:39:05 [end_date_ymd] => 2025-01-23 01:39:05 [RateCDR] => 1 ) [2025-01-23 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:39:05' and `end` < '2025-01-23 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:39:18] Production.INFO: count ==333 [2025-01-23 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:39:05 - End Time 2025-01-23 01:39:05 [2025-01-23 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309016', 'tblTempUsageDetail_20' ) start [2025-01-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309016', 'tblTempUsageDetail_20' ) end [2025-01-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309016', 'tblTempVendorCDR_20' ) start [2025-01-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309016', 'tblTempVendorCDR_20' ) end [2025-01-23 01:39:18] Production.INFO: ProcessCDR(1,14309016,1,1,2) [2025-01-23 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309016', 'tblTempUsageDetail_20' ) start [2025-01-23 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309016', 'tblTempUsageDetail_20' ) end [2025-01-23 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:39:21] Production.INFO: ==32634== Releasing lock... [2025-01-23 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:40:06 [end_date_ymd] => 2025-01-23 01:40:06 [RateCDR] => 1 ) [2025-01-23 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-22 22:40:06' and `end` < '2025-01-23 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-23 01:40:18] Production.INFO: count ==340 [2025-01-23 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:40:06 - End Time 2025-01-23 01:40:06 [2025-01-23 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309022', 'tblTempUsageDetail_20' ) start [2025-01-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309022', 'tblTempUsageDetail_20' ) end [2025-01-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309022', 'tblTempVendorCDR_20' ) start [2025-01-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309022', 'tblTempVendorCDR_20' ) end [2025-01-23 01:40:18] Production.INFO: ProcessCDR(1,14309022,1,1,2) [2025-01-23 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309022', 'tblTempUsageDetail_20' ) start [2025-01-23 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309022', 'tblTempUsageDetail_20' ) end [2025-01-23 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:40:21] Production.INFO: ==32724== Releasing lock... [2025-01-23 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:41:05 [end_date_ymd] => 2025-01-23 01:41:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:41:05' and `end` < '2025-01-23 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-23 01:41:17] Production.INFO: count ==340 [2025-01-23 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:41:05 - End Time 2025-01-23 01:41:05 [2025-01-23 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309027', 'tblTempUsageDetail_20' ) start [2025-01-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309027', 'tblTempUsageDetail_20' ) end [2025-01-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309027', 'tblTempVendorCDR_20' ) start [2025-01-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309027', 'tblTempVendorCDR_20' ) end [2025-01-23 01:41:17] Production.INFO: ProcessCDR(1,14309027,1,1,2) [2025-01-23 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309027', 'tblTempUsageDetail_20' ) start [2025-01-23 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309027', 'tblTempUsageDetail_20' ) end [2025-01-23 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:41:21] Production.INFO: ==362== Releasing lock... [2025-01-23 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:42:06 [end_date_ymd] => 2025-01-23 01:42:06 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:42:06' and `end` < '2025-01-23 01: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-23 01:42:19] Production.INFO: count ==340 [2025-01-23 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:42:06 - End Time 2025-01-23 01:42:06 [2025-01-23 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309032', 'tblTempUsageDetail_20' ) start [2025-01-23 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309032', 'tblTempUsageDetail_20' ) end [2025-01-23 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309032', 'tblTempVendorCDR_20' ) start [2025-01-23 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309032', 'tblTempVendorCDR_20' ) end [2025-01-23 01:42:19] Production.INFO: ProcessCDR(1,14309032,1,1,2) [2025-01-23 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309032', 'tblTempUsageDetail_20' ) start [2025-01-23 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309032', 'tblTempUsageDetail_20' ) end [2025-01-23 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:42:22] Production.INFO: ==496== Releasing lock... [2025-01-23 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:43:05 [end_date_ymd] => 2025-01-23 01:43:05 [RateCDR] => 1 ) [2025-01-23 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:43:05' and `end` < '2025-01-23 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:43:17] Production.INFO: count ==339 [2025-01-23 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:43:05 - End Time 2025-01-23 01:43:05 [2025-01-23 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309037', 'tblTempUsageDetail_20' ) start [2025-01-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309037', 'tblTempUsageDetail_20' ) end [2025-01-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309037', 'tblTempVendorCDR_20' ) start [2025-01-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309037', 'tblTempVendorCDR_20' ) end [2025-01-23 01:43:18] Production.INFO: ProcessCDR(1,14309037,1,1,2) [2025-01-23 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309037', 'tblTempUsageDetail_20' ) start [2025-01-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309037', 'tblTempUsageDetail_20' ) end [2025-01-23 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:43:21] Production.INFO: ==591== Releasing lock... [2025-01-23 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:44:05 [end_date_ymd] => 2025-01-23 01:44:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:44:05' and `end` < '2025-01-23 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-23 01:44:18] Production.INFO: count ==338 [2025-01-23 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:44:05 - End Time 2025-01-23 01:44:05 [2025-01-23 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309042', 'tblTempUsageDetail_20' ) start [2025-01-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309042', 'tblTempUsageDetail_20' ) end [2025-01-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309042', 'tblTempVendorCDR_20' ) start [2025-01-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309042', 'tblTempVendorCDR_20' ) end [2025-01-23 01:44:18] Production.INFO: ProcessCDR(1,14309042,1,1,2) [2025-01-23 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309042', 'tblTempUsageDetail_20' ) start [2025-01-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309042', 'tblTempUsageDetail_20' ) end [2025-01-23 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:44:21] Production.INFO: ==708== Releasing lock... [2025-01-23 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:45:05 [end_date_ymd] => 2025-01-23 01:45:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:45:05' and `end` < '2025-01-23 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-23 01:45:18] Production.INFO: count ==338 [2025-01-23 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:45:05 - End Time 2025-01-23 01:45:05 [2025-01-23 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309047', 'tblTempUsageDetail_20' ) start [2025-01-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309047', 'tblTempUsageDetail_20' ) end [2025-01-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309047', 'tblTempVendorCDR_20' ) start [2025-01-23 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309047', 'tblTempVendorCDR_20' ) end [2025-01-23 01:45:18] Production.INFO: ProcessCDR(1,14309047,1,1,2) [2025-01-23 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309047', 'tblTempUsageDetail_20' ) start [2025-01-23 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309047', 'tblTempUsageDetail_20' ) end [2025-01-23 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:45:21] Production.INFO: ==797== Releasing lock... [2025-01-23 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:46:06 [end_date_ymd] => 2025-01-23 01:46:06 [RateCDR] => 1 ) [2025-01-23 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:46:06' and `end` < '2025-01-23 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:46:19] Production.INFO: count ==337 [2025-01-23 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:46:06 - End Time 2025-01-23 01:46:06 [2025-01-23 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309052', 'tblTempUsageDetail_20' ) start [2025-01-23 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309052', 'tblTempUsageDetail_20' ) end [2025-01-23 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309052', 'tblTempVendorCDR_20' ) start [2025-01-23 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309052', 'tblTempVendorCDR_20' ) end [2025-01-23 01:46:19] Production.INFO: ProcessCDR(1,14309052,1,1,2) [2025-01-23 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309052', 'tblTempUsageDetail_20' ) start [2025-01-23 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309052', 'tblTempUsageDetail_20' ) end [2025-01-23 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:46:22] Production.INFO: ==888== Releasing lock... [2025-01-23 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:47:06 [end_date_ymd] => 2025-01-23 01:47:06 [RateCDR] => 1 ) [2025-01-23 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-22 22:47:06' and `end` < '2025-01-23 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-23 01:47:18] Production.INFO: count ==337 [2025-01-23 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:47:06 - End Time 2025-01-23 01:47:06 [2025-01-23 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309057', 'tblTempUsageDetail_20' ) start [2025-01-23 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309057', 'tblTempUsageDetail_20' ) end [2025-01-23 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309057', 'tblTempVendorCDR_20' ) start [2025-01-23 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309057', 'tblTempVendorCDR_20' ) end [2025-01-23 01:47:18] Production.INFO: ProcessCDR(1,14309057,1,1,2) [2025-01-23 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309057', 'tblTempUsageDetail_20' ) start [2025-01-23 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309057', 'tblTempUsageDetail_20' ) end [2025-01-23 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:47:21] Production.INFO: ==976== Releasing lock... [2025-01-23 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:48:06 [end_date_ymd] => 2025-01-23 01:48:06 [RateCDR] => 1 ) [2025-01-23 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:48:06' and `end` < '2025-01-23 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:48:18] Production.INFO: count ==336 [2025-01-23 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:48:06 - End Time 2025-01-23 01:48:06 [2025-01-23 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309062', 'tblTempUsageDetail_20' ) start [2025-01-23 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309062', 'tblTempUsageDetail_20' ) end [2025-01-23 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309062', 'tblTempVendorCDR_20' ) start [2025-01-23 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309062', 'tblTempVendorCDR_20' ) end [2025-01-23 01:48:19] Production.INFO: ProcessCDR(1,14309062,1,1,2) [2025-01-23 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309062', 'tblTempUsageDetail_20' ) start [2025-01-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309062', 'tblTempUsageDetail_20' ) end [2025-01-23 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:48:22] Production.INFO: ==1064== Releasing lock... [2025-01-23 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:49:05 [end_date_ymd] => 2025-01-23 01:49:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:49:05' and `end` < '2025-01-23 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-23 01:49:18] Production.INFO: count ==336 [2025-01-23 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:49:05 - End Time 2025-01-23 01:49:05 [2025-01-23 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309067', 'tblTempUsageDetail_20' ) start [2025-01-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309067', 'tblTempUsageDetail_20' ) end [2025-01-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309067', 'tblTempVendorCDR_20' ) start [2025-01-23 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309067', 'tblTempVendorCDR_20' ) end [2025-01-23 01:49:18] Production.INFO: ProcessCDR(1,14309067,1,1,2) [2025-01-23 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309067', 'tblTempUsageDetail_20' ) start [2025-01-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309067', 'tblTempUsageDetail_20' ) end [2025-01-23 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:49:21] Production.INFO: ==1158== Releasing lock... [2025-01-23 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:50:06 [end_date_ymd] => 2025-01-23 01:50:06 [RateCDR] => 1 ) [2025-01-23 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-22 22:50:06' and `end` < '2025-01-23 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-23 01:50:19] Production.INFO: count ==342 [2025-01-23 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:50:06 - End Time 2025-01-23 01:50:06 [2025-01-23 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309073', 'tblTempUsageDetail_20' ) start [2025-01-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309073', 'tblTempUsageDetail_20' ) end [2025-01-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309073', 'tblTempVendorCDR_20' ) start [2025-01-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309073', 'tblTempVendorCDR_20' ) end [2025-01-23 01:50:19] Production.INFO: ProcessCDR(1,14309073,1,1,2) [2025-01-23 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309073', 'tblTempUsageDetail_20' ) start [2025-01-23 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309073', 'tblTempUsageDetail_20' ) end [2025-01-23 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:50:23] Production.INFO: ==1267== Releasing lock... [2025-01-23 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:51:04 [end_date_ymd] => 2025-01-23 01:51:04 [RateCDR] => 1 ) [2025-01-23 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:51:04' and `end` < '2025-01-23 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:51:18] Production.INFO: count ==340 [2025-01-23 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:51:04 - End Time 2025-01-23 01:51:04 [2025-01-23 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309075', 'tblTempUsageDetail_20' ) start [2025-01-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309075', 'tblTempUsageDetail_20' ) end [2025-01-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309075', 'tblTempVendorCDR_20' ) start [2025-01-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309075', 'tblTempVendorCDR_20' ) end [2025-01-23 01:51:18] Production.INFO: ProcessCDR(1,14309075,1,1,2) [2025-01-23 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309075', 'tblTempUsageDetail_20' ) start [2025-01-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309075', 'tblTempUsageDetail_20' ) end [2025-01-23 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:51:21] Production.INFO: ==1357== Releasing lock... [2025-01-23 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:52:06 [end_date_ymd] => 2025-01-23 01:52:06 [RateCDR] => 1 ) [2025-01-23 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:52:06' and `end` < '2025-01-23 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:52:19] Production.INFO: count ==339 [2025-01-23 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:52:06 - End Time 2025-01-23 01:52:06 [2025-01-23 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309083', 'tblTempUsageDetail_20' ) start [2025-01-23 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309083', 'tblTempUsageDetail_20' ) end [2025-01-23 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309083', 'tblTempVendorCDR_20' ) start [2025-01-23 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309083', 'tblTempVendorCDR_20' ) end [2025-01-23 01:52:19] Production.INFO: ProcessCDR(1,14309083,1,1,2) [2025-01-23 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309083', 'tblTempUsageDetail_20' ) start [2025-01-23 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309083', 'tblTempUsageDetail_20' ) end [2025-01-23 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:52:22] Production.INFO: ==1437== Releasing lock... [2025-01-23 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:53:05 [end_date_ymd] => 2025-01-23 01:53:05 [RateCDR] => 1 ) [2025-01-23 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:53:05' and `end` < '2025-01-23 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:53:19] Production.INFO: count ==341 [2025-01-23 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:53:05 - End Time 2025-01-23 01:53:05 [2025-01-23 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309088', 'tblTempUsageDetail_20' ) start [2025-01-23 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309088', 'tblTempUsageDetail_20' ) end [2025-01-23 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309088', 'tblTempVendorCDR_20' ) start [2025-01-23 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309088', 'tblTempVendorCDR_20' ) end [2025-01-23 01:53:19] Production.INFO: ProcessCDR(1,14309088,1,1,2) [2025-01-23 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309088', 'tblTempUsageDetail_20' ) start [2025-01-23 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309088', 'tblTempUsageDetail_20' ) end [2025-01-23 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:53:23] Production.INFO: ==1548== Releasing lock... [2025-01-23 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:54:05 [end_date_ymd] => 2025-01-23 01:54:05 [RateCDR] => 1 ) [2025-01-23 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-22 22:54:05' and `end` < '2025-01-23 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-23 01:54:20] Production.INFO: count ==336 [2025-01-23 01:54:20] Production.ERROR: pbx CDR StartTime 2025-01-22 22:54:05 - End Time 2025-01-23 01:54:05 [2025-01-23 01:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309093', 'tblTempUsageDetail_20' ) start [2025-01-23 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309093', 'tblTempUsageDetail_20' ) end [2025-01-23 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309093', 'tblTempVendorCDR_20' ) start [2025-01-23 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309093', 'tblTempVendorCDR_20' ) end [2025-01-23 01:54:20] Production.INFO: ProcessCDR(1,14309093,1,1,2) [2025-01-23 01:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309093', 'tblTempUsageDetail_20' ) start [2025-01-23 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309093', 'tblTempUsageDetail_20' ) end [2025-01-23 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:54:23] Production.INFO: ==1642== Releasing lock... [2025-01-23 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:55:05 [end_date_ymd] => 2025-01-23 01:55:05 [RateCDR] => 1 ) [2025-01-23 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:55:05' and `end` < '2025-01-23 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:55:18] Production.INFO: count ==335 [2025-01-23 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:55:05 - End Time 2025-01-23 01:55:05 [2025-01-23 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309098', 'tblTempUsageDetail_20' ) start [2025-01-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309098', 'tblTempUsageDetail_20' ) end [2025-01-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309098', 'tblTempVendorCDR_20' ) start [2025-01-23 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309098', 'tblTempVendorCDR_20' ) end [2025-01-23 01:55:18] Production.INFO: ProcessCDR(1,14309098,1,1,2) [2025-01-23 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309098', 'tblTempUsageDetail_20' ) start [2025-01-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309098', 'tblTempUsageDetail_20' ) end [2025-01-23 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:55:21] Production.INFO: ==1718== Releasing lock... [2025-01-23 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:56:06 [end_date_ymd] => 2025-01-23 01:56:06 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:56:06' and `end` < '2025-01-23 01: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-23 01:56:18] Production.INFO: count ==332 [2025-01-23 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:56:06 - End Time 2025-01-23 01:56:06 [2025-01-23 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309103', 'tblTempUsageDetail_20' ) start [2025-01-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309103', 'tblTempUsageDetail_20' ) end [2025-01-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309103', 'tblTempVendorCDR_20' ) start [2025-01-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309103', 'tblTempVendorCDR_20' ) end [2025-01-23 01:56:18] Production.INFO: ProcessCDR(1,14309103,1,1,2) [2025-01-23 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309103', 'tblTempUsageDetail_20' ) start [2025-01-23 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309103', 'tblTempUsageDetail_20' ) end [2025-01-23 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:56:22] Production.INFO: ==1794== Releasing lock... [2025-01-23 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:57:05 [end_date_ymd] => 2025-01-23 01:57:05 [RateCDR] => 1 ) [2025-01-23 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 22:57:05' and `end` < '2025-01-23 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 01:57:19] Production.INFO: count ==330 [2025-01-23 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-22 22:57:05 - End Time 2025-01-23 01:57:05 [2025-01-23 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309108', 'tblTempUsageDetail_20' ) start [2025-01-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309108', 'tblTempUsageDetail_20' ) end [2025-01-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309108', 'tblTempVendorCDR_20' ) start [2025-01-23 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309108', 'tblTempVendorCDR_20' ) end [2025-01-23 01:57:19] Production.INFO: ProcessCDR(1,14309108,1,1,2) [2025-01-23 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309108', 'tblTempUsageDetail_20' ) start [2025-01-23 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309108', 'tblTempUsageDetail_20' ) end [2025-01-23 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:57:22] Production.INFO: ==1876== Releasing lock... [2025-01-23 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:58:06 [end_date_ymd] => 2025-01-23 01:58:06 [RateCDR] => 1 ) [2025-01-23 01: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-22 22:58:06' and `end` < '2025-01-23 01: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-23 01:58:18] Production.INFO: count ==329 [2025-01-23 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-22 22:58:06 - End Time 2025-01-23 01:58:06 [2025-01-23 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309113', 'tblTempUsageDetail_20' ) start [2025-01-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309113', 'tblTempUsageDetail_20' ) end [2025-01-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309113', 'tblTempVendorCDR_20' ) start [2025-01-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309113', 'tblTempVendorCDR_20' ) end [2025-01-23 01:58:18] Production.INFO: ProcessCDR(1,14309113,1,1,2) [2025-01-23 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309113', 'tblTempUsageDetail_20' ) start [2025-01-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309113', 'tblTempUsageDetail_20' ) end [2025-01-23 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:58:21] Production.INFO: ==1997== Releasing lock... [2025-01-23 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 22:59:04 [end_date_ymd] => 2025-01-23 01:59:04 [RateCDR] => 1 ) [2025-01-23 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-22 22:59:04' and `end` < '2025-01-23 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-23 01:59:17] Production.INFO: count ==327 [2025-01-23 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-22 22:59:04 - End Time 2025-01-23 01:59:04 [2025-01-23 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309118', 'tblTempUsageDetail_20' ) start [2025-01-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309118', 'tblTempUsageDetail_20' ) end [2025-01-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309118', 'tblTempVendorCDR_20' ) start [2025-01-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309118', 'tblTempVendorCDR_20' ) end [2025-01-23 01:59:17] Production.INFO: ProcessCDR(1,14309118,1,1,2) [2025-01-23 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309118', 'tblTempUsageDetail_20' ) start [2025-01-23 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309118', 'tblTempUsageDetail_20' ) end [2025-01-23 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 01:59:20] Production.INFO: ==2071== Releasing lock... [2025-01-23 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 01:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:00:07 [end_date_ymd] => 2025-01-23 02:00:07 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:00:07' and `end` < '2025-01-23 02: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-23 02:00:19] Production.INFO: count ==339 [2025-01-23 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:00:07 - End Time 2025-01-23 02:00:07 [2025-01-23 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309124', 'tblTempUsageDetail_20' ) start [2025-01-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309124', 'tblTempUsageDetail_20' ) end [2025-01-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309124', 'tblTempVendorCDR_20' ) start [2025-01-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309124', 'tblTempVendorCDR_20' ) end [2025-01-23 02:00:19] Production.INFO: ProcessCDR(1,14309124,1,1,2) [2025-01-23 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309124', 'tblTempUsageDetail_20' ) start [2025-01-23 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309124', 'tblTempUsageDetail_20' ) end [2025-01-23 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:00:23] Production.INFO: ==2150== Releasing lock... [2025-01-23 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:01:05 [end_date_ymd] => 2025-01-23 02:01:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:01:05' and `end` < '2025-01-23 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-23 02:01:18] Production.INFO: count ==340 [2025-01-23 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:01:05 - End Time 2025-01-23 02:01:05 [2025-01-23 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309129', 'tblTempUsageDetail_20' ) start [2025-01-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309129', 'tblTempUsageDetail_20' ) end [2025-01-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309129', 'tblTempVendorCDR_20' ) start [2025-01-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309129', 'tblTempVendorCDR_20' ) end [2025-01-23 02:01:18] Production.INFO: ProcessCDR(1,14309129,1,1,2) [2025-01-23 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309129', 'tblTempUsageDetail_20' ) start [2025-01-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309129', 'tblTempUsageDetail_20' ) end [2025-01-23 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:01:22] Production.INFO: ==2327== Releasing lock... [2025-01-23 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:02:05 [end_date_ymd] => 2025-01-23 02:02:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:02:05' and `end` < '2025-01-23 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-23 02:02:18] Production.INFO: count ==339 [2025-01-23 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:02:05 - End Time 2025-01-23 02:02:05 [2025-01-23 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309134', 'tblTempUsageDetail_20' ) start [2025-01-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309134', 'tblTempUsageDetail_20' ) end [2025-01-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309134', 'tblTempVendorCDR_20' ) start [2025-01-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309134', 'tblTempVendorCDR_20' ) end [2025-01-23 02:02:18] Production.INFO: ProcessCDR(1,14309134,1,1,2) [2025-01-23 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309134', 'tblTempUsageDetail_20' ) start [2025-01-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309134', 'tblTempUsageDetail_20' ) end [2025-01-23 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:02:21] Production.INFO: ==2404== Releasing lock... [2025-01-23 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:03:05 [end_date_ymd] => 2025-01-23 02:03:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:03:05' and `end` < '2025-01-23 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-23 02:03:18] Production.INFO: count ==338 [2025-01-23 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:03:05 - End Time 2025-01-23 02:03:05 [2025-01-23 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309139', 'tblTempUsageDetail_20' ) start [2025-01-23 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309139', 'tblTempUsageDetail_20' ) end [2025-01-23 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309139', 'tblTempVendorCDR_20' ) start [2025-01-23 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309139', 'tblTempVendorCDR_20' ) end [2025-01-23 02:03:19] Production.INFO: ProcessCDR(1,14309139,1,1,2) [2025-01-23 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309139', 'tblTempUsageDetail_20' ) start [2025-01-23 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309139', 'tblTempUsageDetail_20' ) end [2025-01-23 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:03:22] Production.INFO: ==2482== Releasing lock... [2025-01-23 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:04:05 [end_date_ymd] => 2025-01-23 02:04:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:04:05' and `end` < '2025-01-23 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-23 02:04:18] Production.INFO: count ==338 [2025-01-23 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:04:05 - End Time 2025-01-23 02:04:05 [2025-01-23 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309144', 'tblTempUsageDetail_20' ) start [2025-01-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309144', 'tblTempUsageDetail_20' ) end [2025-01-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309144', 'tblTempVendorCDR_20' ) start [2025-01-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309144', 'tblTempVendorCDR_20' ) end [2025-01-23 02:04:18] Production.INFO: ProcessCDR(1,14309144,1,1,2) [2025-01-23 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309144', 'tblTempUsageDetail_20' ) start [2025-01-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309144', 'tblTempUsageDetail_20' ) end [2025-01-23 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:04:21] Production.INFO: ==2558== Releasing lock... [2025-01-23 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:05:05 [end_date_ymd] => 2025-01-23 02:05:05 [RateCDR] => 1 ) [2025-01-23 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:05:05' and `end` < '2025-01-23 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:05:17] Production.INFO: count ==334 [2025-01-23 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:05:05 - End Time 2025-01-23 02:05:05 [2025-01-23 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309149', 'tblTempUsageDetail_20' ) start [2025-01-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309149', 'tblTempUsageDetail_20' ) end [2025-01-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309149', 'tblTempVendorCDR_20' ) start [2025-01-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309149', 'tblTempVendorCDR_20' ) end [2025-01-23 02:05:17] Production.INFO: ProcessCDR(1,14309149,1,1,2) [2025-01-23 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309149', 'tblTempUsageDetail_20' ) start [2025-01-23 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309149', 'tblTempUsageDetail_20' ) end [2025-01-23 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:05:21] Production.INFO: ==2633== Releasing lock... [2025-01-23 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:06:05 [end_date_ymd] => 2025-01-23 02:06:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:06:05' and `end` < '2025-01-23 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-23 02:06:18] Production.INFO: count ==332 [2025-01-23 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:06:05 - End Time 2025-01-23 02:06:05 [2025-01-23 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309154', 'tblTempUsageDetail_20' ) start [2025-01-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309154', 'tblTempUsageDetail_20' ) end [2025-01-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309154', 'tblTempVendorCDR_20' ) start [2025-01-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309154', 'tblTempVendorCDR_20' ) end [2025-01-23 02:06:18] Production.INFO: ProcessCDR(1,14309154,1,1,2) [2025-01-23 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309154', 'tblTempUsageDetail_20' ) start [2025-01-23 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309154', 'tblTempUsageDetail_20' ) end [2025-01-23 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:06:21] Production.INFO: ==2709== Releasing lock... [2025-01-23 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:07:04 [end_date_ymd] => 2025-01-23 02:07:04 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:07:04' and `end` < '2025-01-23 02: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-23 02:07:17] Production.INFO: count ==332 [2025-01-23 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:07:04 - End Time 2025-01-23 02:07:04 [2025-01-23 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309159', 'tblTempUsageDetail_20' ) start [2025-01-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309159', 'tblTempUsageDetail_20' ) end [2025-01-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309159', 'tblTempVendorCDR_20' ) start [2025-01-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309159', 'tblTempVendorCDR_20' ) end [2025-01-23 02:07:17] Production.INFO: ProcessCDR(1,14309159,1,1,2) [2025-01-23 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309159', 'tblTempUsageDetail_20' ) start [2025-01-23 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309159', 'tblTempUsageDetail_20' ) end [2025-01-23 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:07:20] Production.INFO: ==2787== Releasing lock... [2025-01-23 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:07:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:08:05 [end_date_ymd] => 2025-01-23 02:08:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:08:05' and `end` < '2025-01-23 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-23 02:08:18] Production.INFO: count ==332 [2025-01-23 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:08:05 - End Time 2025-01-23 02:08:05 [2025-01-23 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309164', 'tblTempUsageDetail_20' ) start [2025-01-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309164', 'tblTempUsageDetail_20' ) end [2025-01-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309164', 'tblTempVendorCDR_20' ) start [2025-01-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309164', 'tblTempVendorCDR_20' ) end [2025-01-23 02:08:18] Production.INFO: ProcessCDR(1,14309164,1,1,2) [2025-01-23 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309164', 'tblTempUsageDetail_20' ) start [2025-01-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309164', 'tblTempUsageDetail_20' ) end [2025-01-23 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:08:21] Production.INFO: ==2861== Releasing lock... [2025-01-23 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:09:05 [end_date_ymd] => 2025-01-23 02:09:05 [RateCDR] => 1 ) [2025-01-23 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:09:05' and `end` < '2025-01-23 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:09:17] Production.INFO: count ==332 [2025-01-23 02:09:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:09:05 - End Time 2025-01-23 02:09:05 [2025-01-23 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309169', 'tblTempUsageDetail_20' ) start [2025-01-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309169', 'tblTempUsageDetail_20' ) end [2025-01-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309169', 'tblTempVendorCDR_20' ) start [2025-01-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309169', 'tblTempVendorCDR_20' ) end [2025-01-23 02:09:17] Production.INFO: ProcessCDR(1,14309169,1,1,2) [2025-01-23 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309169', 'tblTempUsageDetail_20' ) start [2025-01-23 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309169', 'tblTempUsageDetail_20' ) end [2025-01-23 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:09:20] Production.INFO: ==2935== Releasing lock... [2025-01-23 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:10:06 [end_date_ymd] => 2025-01-23 02:10:06 [RateCDR] => 1 ) [2025-01-23 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-22 23:10:06' and `end` < '2025-01-23 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-23 02:10:18] Production.INFO: count ==344 [2025-01-23 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:10:06 - End Time 2025-01-23 02:10:06 [2025-01-23 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309175', 'tblTempUsageDetail_20' ) start [2025-01-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309175', 'tblTempUsageDetail_20' ) end [2025-01-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309175', 'tblTempVendorCDR_20' ) start [2025-01-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309175', 'tblTempVendorCDR_20' ) end [2025-01-23 02:10:18] Production.INFO: ProcessCDR(1,14309175,1,1,2) [2025-01-23 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309175', 'tblTempUsageDetail_20' ) start [2025-01-23 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309175', 'tblTempUsageDetail_20' ) end [2025-01-23 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:10:22] Production.INFO: ==3015== Releasing lock... [2025-01-23 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:11:05 [end_date_ymd] => 2025-01-23 02:11:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:11:05' and `end` < '2025-01-23 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-23 02:11:17] Production.INFO: count ==341 [2025-01-23 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:11:05 - End Time 2025-01-23 02:11:05 [2025-01-23 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309180', 'tblTempUsageDetail_20' ) start [2025-01-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309180', 'tblTempUsageDetail_20' ) end [2025-01-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309180', 'tblTempVendorCDR_20' ) start [2025-01-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309180', 'tblTempVendorCDR_20' ) end [2025-01-23 02:11:18] Production.INFO: ProcessCDR(1,14309180,1,1,2) [2025-01-23 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309180', 'tblTempUsageDetail_20' ) start [2025-01-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309180', 'tblTempUsageDetail_20' ) end [2025-01-23 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:11:21] Production.INFO: ==3093== Releasing lock... [2025-01-23 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:11:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:12:05 [end_date_ymd] => 2025-01-23 02:12:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:12:05' and `end` < '2025-01-23 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-23 02:12:18] Production.INFO: count ==341 [2025-01-23 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:12:05 - End Time 2025-01-23 02:12:05 [2025-01-23 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309185', 'tblTempUsageDetail_20' ) start [2025-01-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309185', 'tblTempUsageDetail_20' ) end [2025-01-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309185', 'tblTempVendorCDR_20' ) start [2025-01-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309185', 'tblTempVendorCDR_20' ) end [2025-01-23 02:12:18] Production.INFO: ProcessCDR(1,14309185,1,1,2) [2025-01-23 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309185', 'tblTempUsageDetail_20' ) start [2025-01-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309185', 'tblTempUsageDetail_20' ) end [2025-01-23 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:12:22] Production.INFO: ==3168== Releasing lock... [2025-01-23 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:12:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:13:05 [end_date_ymd] => 2025-01-23 02:13:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:13:05' and `end` < '2025-01-23 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-23 02:13:18] Production.INFO: count ==341 [2025-01-23 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:13:05 - End Time 2025-01-23 02:13:05 [2025-01-23 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309190', 'tblTempUsageDetail_20' ) start [2025-01-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309190', 'tblTempUsageDetail_20' ) end [2025-01-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309190', 'tblTempVendorCDR_20' ) start [2025-01-23 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309190', 'tblTempVendorCDR_20' ) end [2025-01-23 02:13:18] Production.INFO: ProcessCDR(1,14309190,1,1,2) [2025-01-23 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309190', 'tblTempUsageDetail_20' ) start [2025-01-23 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309190', 'tblTempUsageDetail_20' ) end [2025-01-23 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:13:22] Production.INFO: ==3283== Releasing lock... [2025-01-23 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:14:05 [end_date_ymd] => 2025-01-23 02:14:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:14:05' and `end` < '2025-01-23 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-23 02:14:17] Production.INFO: count ==340 [2025-01-23 02:14:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:14:05 - End Time 2025-01-23 02:14:05 [2025-01-23 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309195', 'tblTempUsageDetail_20' ) start [2025-01-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309195', 'tblTempUsageDetail_20' ) end [2025-01-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309195', 'tblTempVendorCDR_20' ) start [2025-01-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309195', 'tblTempVendorCDR_20' ) end [2025-01-23 02:14:17] Production.INFO: ProcessCDR(1,14309195,1,1,2) [2025-01-23 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309195', 'tblTempUsageDetail_20' ) start [2025-01-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309195', 'tblTempUsageDetail_20' ) end [2025-01-23 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:14:21] Production.INFO: ==3360== Releasing lock... [2025-01-23 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:14:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:15:05 [end_date_ymd] => 2025-01-23 02:15:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:15:05' and `end` < '2025-01-23 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-23 02:15:18] Production.INFO: count ==339 [2025-01-23 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:15:05 - End Time 2025-01-23 02:15:05 [2025-01-23 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309200', 'tblTempUsageDetail_20' ) start [2025-01-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309200', 'tblTempUsageDetail_20' ) end [2025-01-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309200', 'tblTempVendorCDR_20' ) start [2025-01-23 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309200', 'tblTempVendorCDR_20' ) end [2025-01-23 02:15:18] Production.INFO: ProcessCDR(1,14309200,1,1,2) [2025-01-23 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309200', 'tblTempUsageDetail_20' ) start [2025-01-23 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309200', 'tblTempUsageDetail_20' ) end [2025-01-23 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:15:21] Production.INFO: ==3440== Releasing lock... [2025-01-23 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:16:05 [end_date_ymd] => 2025-01-23 02:16:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:16:05' and `end` < '2025-01-23 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-23 02:16:17] Production.INFO: count ==339 [2025-01-23 02:16:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:16:05 - End Time 2025-01-23 02:16:05 [2025-01-23 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309205', 'tblTempUsageDetail_20' ) start [2025-01-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309205', 'tblTempUsageDetail_20' ) end [2025-01-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309205', 'tblTempVendorCDR_20' ) start [2025-01-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309205', 'tblTempVendorCDR_20' ) end [2025-01-23 02:16:17] Production.INFO: ProcessCDR(1,14309205,1,1,2) [2025-01-23 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309205', 'tblTempUsageDetail_20' ) start [2025-01-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309205', 'tblTempUsageDetail_20' ) end [2025-01-23 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:16:20] Production.INFO: ==3514== Releasing lock... [2025-01-23 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:16:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:17:05 [end_date_ymd] => 2025-01-23 02:17:05 [RateCDR] => 1 ) [2025-01-23 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:17:05' and `end` < '2025-01-23 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:17:17] Production.INFO: count ==339 [2025-01-23 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:17:05 - End Time 2025-01-23 02:17:05 [2025-01-23 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309210', 'tblTempUsageDetail_20' ) start [2025-01-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309210', 'tblTempUsageDetail_20' ) end [2025-01-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309210', 'tblTempVendorCDR_20' ) start [2025-01-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309210', 'tblTempVendorCDR_20' ) end [2025-01-23 02:17:17] Production.INFO: ProcessCDR(1,14309210,1,1,2) [2025-01-23 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309210', 'tblTempUsageDetail_20' ) start [2025-01-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309210', 'tblTempUsageDetail_20' ) end [2025-01-23 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:17:21] Production.INFO: ==3591== Releasing lock... [2025-01-23 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:17:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:18:06 [end_date_ymd] => 2025-01-23 02:18:06 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:18:06' and `end` < '2025-01-23 02: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-23 02:18:19] Production.INFO: count ==339 [2025-01-23 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:18:06 - End Time 2025-01-23 02:18:06 [2025-01-23 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309215', 'tblTempUsageDetail_20' ) start [2025-01-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309215', 'tblTempUsageDetail_20' ) end [2025-01-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309215', 'tblTempVendorCDR_20' ) start [2025-01-23 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309215', 'tblTempVendorCDR_20' ) end [2025-01-23 02:18:19] Production.INFO: ProcessCDR(1,14309215,1,1,2) [2025-01-23 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309215', 'tblTempUsageDetail_20' ) start [2025-01-23 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309215', 'tblTempUsageDetail_20' ) end [2025-01-23 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:18:23] Production.INFO: ==3667== Releasing lock... [2025-01-23 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:18:23] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:19:05 [end_date_ymd] => 2025-01-23 02:19:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:19:05' and `end` < '2025-01-23 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-23 02:19:18] Production.INFO: count ==339 [2025-01-23 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:19:05 - End Time 2025-01-23 02:19:05 [2025-01-23 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309220', 'tblTempUsageDetail_20' ) start [2025-01-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309220', 'tblTempUsageDetail_20' ) end [2025-01-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309220', 'tblTempVendorCDR_20' ) start [2025-01-23 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309220', 'tblTempVendorCDR_20' ) end [2025-01-23 02:19:18] Production.INFO: ProcessCDR(1,14309220,1,1,2) [2025-01-23 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309220', 'tblTempUsageDetail_20' ) start [2025-01-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309220', 'tblTempUsageDetail_20' ) end [2025-01-23 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:19:21] Production.INFO: ==3741== Releasing lock... [2025-01-23 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:19:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:20:06 [end_date_ymd] => 2025-01-23 02:20:06 [RateCDR] => 1 ) [2025-01-23 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-22 23:20:06' and `end` < '2025-01-23 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-23 02:20:18] Production.INFO: count ==345 [2025-01-23 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:20:06 - End Time 2025-01-23 02:20:06 [2025-01-23 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309225', 'tblTempUsageDetail_20' ) start [2025-01-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309225', 'tblTempUsageDetail_20' ) end [2025-01-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309225', 'tblTempVendorCDR_20' ) start [2025-01-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309225', 'tblTempVendorCDR_20' ) end [2025-01-23 02:20:18] Production.INFO: ProcessCDR(1,14309225,1,1,2) [2025-01-23 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309225', 'tblTempUsageDetail_20' ) start [2025-01-23 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309225', 'tblTempUsageDetail_20' ) end [2025-01-23 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:20:21] Production.INFO: ==3820== Releasing lock... [2025-01-23 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:20:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:21:05 [end_date_ymd] => 2025-01-23 02:21:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:21:05' and `end` < '2025-01-23 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-23 02:21:18] Production.INFO: count ==345 [2025-01-23 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:21:05 - End Time 2025-01-23 02:21:05 [2025-01-23 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309231', 'tblTempUsageDetail_20' ) start [2025-01-23 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309231', 'tblTempUsageDetail_20' ) end [2025-01-23 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309231', 'tblTempVendorCDR_20' ) start [2025-01-23 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309231', 'tblTempVendorCDR_20' ) end [2025-01-23 02:21:18] Production.INFO: ProcessCDR(1,14309231,1,1,2) [2025-01-23 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309231', 'tblTempUsageDetail_20' ) start [2025-01-23 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309231', 'tblTempUsageDetail_20' ) end [2025-01-23 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:21:21] Production.INFO: ==3898== Releasing lock... [2025-01-23 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:21:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:22:05 [end_date_ymd] => 2025-01-23 02:22:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:22:05' and `end` < '2025-01-23 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-23 02:22:18] Production.INFO: count ==345 [2025-01-23 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:22:05 - End Time 2025-01-23 02:22:05 [2025-01-23 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309236', 'tblTempUsageDetail_20' ) start [2025-01-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309236', 'tblTempUsageDetail_20' ) end [2025-01-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309236', 'tblTempVendorCDR_20' ) start [2025-01-23 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309236', 'tblTempVendorCDR_20' ) end [2025-01-23 02:22:18] Production.INFO: ProcessCDR(1,14309236,1,1,2) [2025-01-23 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309236', 'tblTempUsageDetail_20' ) start [2025-01-23 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309236', 'tblTempUsageDetail_20' ) end [2025-01-23 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:22:21] Production.INFO: ==3973== Releasing lock... [2025-01-23 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:23:05 [end_date_ymd] => 2025-01-23 02:23:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:23:05' and `end` < '2025-01-23 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-23 02:23:17] Production.INFO: count ==345 [2025-01-23 02:23:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:23:05 - End Time 2025-01-23 02:23:05 [2025-01-23 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309241', 'tblTempUsageDetail_20' ) start [2025-01-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309241', 'tblTempUsageDetail_20' ) end [2025-01-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309241', 'tblTempVendorCDR_20' ) start [2025-01-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309241', 'tblTempVendorCDR_20' ) end [2025-01-23 02:23:17] Production.INFO: ProcessCDR(1,14309241,1,1,2) [2025-01-23 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309241', 'tblTempUsageDetail_20' ) start [2025-01-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309241', 'tblTempUsageDetail_20' ) end [2025-01-23 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:23:20] Production.INFO: ==4047== Releasing lock... [2025-01-23 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:23:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:24:06 [end_date_ymd] => 2025-01-23 02:24:06 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:24:06' and `end` < '2025-01-23 02: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-23 02:24:18] Production.INFO: count ==345 [2025-01-23 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:24:06 - End Time 2025-01-23 02:24:06 [2025-01-23 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309246', 'tblTempUsageDetail_20' ) start [2025-01-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309246', 'tblTempUsageDetail_20' ) end [2025-01-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309246', 'tblTempVendorCDR_20' ) start [2025-01-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309246', 'tblTempVendorCDR_20' ) end [2025-01-23 02:24:18] Production.INFO: ProcessCDR(1,14309246,1,1,2) [2025-01-23 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309246', 'tblTempUsageDetail_20' ) start [2025-01-23 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309246', 'tblTempUsageDetail_20' ) end [2025-01-23 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:24:22] Production.INFO: ==4123== Releasing lock... [2025-01-23 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:24:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:25:05 [end_date_ymd] => 2025-01-23 02:25:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:25:05' and `end` < '2025-01-23 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-23 02:25:18] Production.INFO: count ==345 [2025-01-23 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:25:05 - End Time 2025-01-23 02:25:05 [2025-01-23 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309251', 'tblTempUsageDetail_20' ) start [2025-01-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309251', 'tblTempUsageDetail_20' ) end [2025-01-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309251', 'tblTempVendorCDR_20' ) start [2025-01-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309251', 'tblTempVendorCDR_20' ) end [2025-01-23 02:25:18] Production.INFO: ProcessCDR(1,14309251,1,1,2) [2025-01-23 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309251', 'tblTempUsageDetail_20' ) start [2025-01-23 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309251', 'tblTempUsageDetail_20' ) end [2025-01-23 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:25:21] Production.INFO: ==4200== Releasing lock... [2025-01-23 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:25:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:26:05 [end_date_ymd] => 2025-01-23 02:26:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:26:05' and `end` < '2025-01-23 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-23 02:26:17] Production.INFO: count ==345 [2025-01-23 02:26:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:26:05 - End Time 2025-01-23 02:26:05 [2025-01-23 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309252', 'tblTempUsageDetail_20' ) start [2025-01-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309252', 'tblTempUsageDetail_20' ) end [2025-01-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309252', 'tblTempVendorCDR_20' ) start [2025-01-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309252', 'tblTempVendorCDR_20' ) end [2025-01-23 02:26:17] Production.INFO: ProcessCDR(1,14309252,1,1,2) [2025-01-23 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309252', 'tblTempUsageDetail_20' ) start [2025-01-23 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309252', 'tblTempUsageDetail_20' ) end [2025-01-23 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:26:20] Production.INFO: ==4278== Releasing lock... [2025-01-23 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:26:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:27:05 [end_date_ymd] => 2025-01-23 02:27:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:27:05' and `end` < '2025-01-23 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-23 02:27:17] Production.INFO: count ==343 [2025-01-23 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:27:05 - End Time 2025-01-23 02:27:05 [2025-01-23 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309261', 'tblTempUsageDetail_20' ) start [2025-01-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309261', 'tblTempUsageDetail_20' ) end [2025-01-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309261', 'tblTempVendorCDR_20' ) start [2025-01-23 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309261', 'tblTempVendorCDR_20' ) end [2025-01-23 02:27:18] Production.INFO: ProcessCDR(1,14309261,1,1,2) [2025-01-23 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309261', 'tblTempUsageDetail_20' ) start [2025-01-23 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309261', 'tblTempUsageDetail_20' ) end [2025-01-23 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:27:21] Production.INFO: ==4355== Releasing lock... [2025-01-23 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:27:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:28:05 [end_date_ymd] => 2025-01-23 02:28:05 [RateCDR] => 1 ) [2025-01-23 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:28:05' and `end` < '2025-01-23 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:28:19] Production.INFO: count ==343 [2025-01-23 02:28:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:28:05 - End Time 2025-01-23 02:28:05 [2025-01-23 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309266', 'tblTempUsageDetail_20' ) start [2025-01-23 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309266', 'tblTempUsageDetail_20' ) end [2025-01-23 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309266', 'tblTempVendorCDR_20' ) start [2025-01-23 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309266', 'tblTempVendorCDR_20' ) end [2025-01-23 02:28:19] Production.INFO: ProcessCDR(1,14309266,1,1,2) [2025-01-23 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309266', 'tblTempUsageDetail_20' ) start [2025-01-23 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309266', 'tblTempUsageDetail_20' ) end [2025-01-23 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:28:22] Production.INFO: ==4470== Releasing lock... [2025-01-23 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:28:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:29:05 [end_date_ymd] => 2025-01-23 02:29:05 [RateCDR] => 1 ) [2025-01-23 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:29:05' and `end` < '2025-01-23 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:29:17] Production.INFO: count ==343 [2025-01-23 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:29:05 - End Time 2025-01-23 02:29:05 [2025-01-23 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309271', 'tblTempUsageDetail_20' ) start [2025-01-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309271', 'tblTempUsageDetail_20' ) end [2025-01-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309271', 'tblTempVendorCDR_20' ) start [2025-01-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309271', 'tblTempVendorCDR_20' ) end [2025-01-23 02:29:17] Production.INFO: ProcessCDR(1,14309271,1,1,2) [2025-01-23 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309271', 'tblTempUsageDetail_20' ) start [2025-01-23 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309271', 'tblTempUsageDetail_20' ) end [2025-01-23 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:29:20] Production.INFO: ==4549== Releasing lock... [2025-01-23 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:29:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:30:06 [end_date_ymd] => 2025-01-23 02:30:06 [RateCDR] => 1 ) [2025-01-23 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-22 23:30:06' and `end` < '2025-01-23 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-23 02:30:20] Production.INFO: count ==351 [2025-01-23 02:30:20] Production.ERROR: pbx CDR StartTime 2025-01-22 23:30:06 - End Time 2025-01-23 02:30:06 [2025-01-23 02:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309277', 'tblTempUsageDetail_20' ) start [2025-01-23 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309277', 'tblTempUsageDetail_20' ) end [2025-01-23 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309277', 'tblTempVendorCDR_20' ) start [2025-01-23 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309277', 'tblTempVendorCDR_20' ) end [2025-01-23 02:30:20] Production.INFO: ProcessCDR(1,14309277,1,1,2) [2025-01-23 02:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309277', 'tblTempUsageDetail_20' ) start [2025-01-23 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309277', 'tblTempUsageDetail_20' ) end [2025-01-23 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:30:23] Production.INFO: ==4636== Releasing lock... [2025-01-23 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:30:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:31:05 [end_date_ymd] => 2025-01-23 02:31:05 [RateCDR] => 1 ) [2025-01-23 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:31:05' and `end` < '2025-01-23 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:31:18] Production.INFO: count ==352 [2025-01-23 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:31:05 - End Time 2025-01-23 02:31:05 [2025-01-23 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309282', 'tblTempUsageDetail_20' ) start [2025-01-23 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309282', 'tblTempUsageDetail_20' ) end [2025-01-23 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309282', 'tblTempVendorCDR_20' ) start [2025-01-23 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309282', 'tblTempVendorCDR_20' ) end [2025-01-23 02:31:18] Production.INFO: ProcessCDR(1,14309282,1,1,2) [2025-01-23 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309282', 'tblTempUsageDetail_20' ) start [2025-01-23 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309282', 'tblTempUsageDetail_20' ) end [2025-01-23 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:31:21] Production.INFO: ==4711== Releasing lock... [2025-01-23 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:32:05 [end_date_ymd] => 2025-01-23 02:32:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:32:05' and `end` < '2025-01-23 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-23 02:32:18] Production.INFO: count ==352 [2025-01-23 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:32:05 - End Time 2025-01-23 02:32:05 [2025-01-23 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309287', 'tblTempUsageDetail_20' ) start [2025-01-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309287', 'tblTempUsageDetail_20' ) end [2025-01-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309287', 'tblTempVendorCDR_20' ) start [2025-01-23 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309287', 'tblTempVendorCDR_20' ) end [2025-01-23 02:32:18] Production.INFO: ProcessCDR(1,14309287,1,1,2) [2025-01-23 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309287', 'tblTempUsageDetail_20' ) start [2025-01-23 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309287', 'tblTempUsageDetail_20' ) end [2025-01-23 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:32:21] Production.INFO: ==4789== Releasing lock... [2025-01-23 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:33:05 [end_date_ymd] => 2025-01-23 02:33:05 [RateCDR] => 1 ) [2025-01-23 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:33:05' and `end` < '2025-01-23 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:33:18] Production.INFO: count ==351 [2025-01-23 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:33:05 - End Time 2025-01-23 02:33:05 [2025-01-23 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309292', 'tblTempUsageDetail_20' ) start [2025-01-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309292', 'tblTempUsageDetail_20' ) end [2025-01-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309292', 'tblTempVendorCDR_20' ) start [2025-01-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309292', 'tblTempVendorCDR_20' ) end [2025-01-23 02:33:18] Production.INFO: ProcessCDR(1,14309292,1,1,2) [2025-01-23 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309292', 'tblTempUsageDetail_20' ) start [2025-01-23 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309292', 'tblTempUsageDetail_20' ) end [2025-01-23 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:33:21] Production.INFO: ==4867== Releasing lock... [2025-01-23 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:34:05 [end_date_ymd] => 2025-01-23 02:34:05 [RateCDR] => 1 ) [2025-01-23 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:34:05' and `end` < '2025-01-23 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:34:18] Production.INFO: count ==350 [2025-01-23 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:34:05 - End Time 2025-01-23 02:34:05 [2025-01-23 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309297', 'tblTempUsageDetail_20' ) start [2025-01-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309297', 'tblTempUsageDetail_20' ) end [2025-01-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309297', 'tblTempVendorCDR_20' ) start [2025-01-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309297', 'tblTempVendorCDR_20' ) end [2025-01-23 02:34:18] Production.INFO: ProcessCDR(1,14309297,1,1,2) [2025-01-23 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309297', 'tblTempUsageDetail_20' ) start [2025-01-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309297', 'tblTempUsageDetail_20' ) end [2025-01-23 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:34:21] Production.INFO: ==4982== Releasing lock... [2025-01-23 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:35:05 [end_date_ymd] => 2025-01-23 02:35:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:35:05' and `end` < '2025-01-23 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-23 02:35:18] Production.INFO: count ==350 [2025-01-23 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:35:05 - End Time 2025-01-23 02:35:05 [2025-01-23 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309302', 'tblTempUsageDetail_20' ) start [2025-01-23 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309302', 'tblTempUsageDetail_20' ) end [2025-01-23 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309302', 'tblTempVendorCDR_20' ) start [2025-01-23 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309302', 'tblTempVendorCDR_20' ) end [2025-01-23 02:35:18] Production.INFO: ProcessCDR(1,14309302,1,1,2) [2025-01-23 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309302', 'tblTempUsageDetail_20' ) start [2025-01-23 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309302', 'tblTempUsageDetail_20' ) end [2025-01-23 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:35:22] Production.INFO: ==5112== Releasing lock... [2025-01-23 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:36:05 [end_date_ymd] => 2025-01-23 02:36:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:36:05' and `end` < '2025-01-23 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-23 02:36:18] Production.INFO: count ==350 [2025-01-23 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:36:05 - End Time 2025-01-23 02:36:05 [2025-01-23 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309307', 'tblTempUsageDetail_20' ) start [2025-01-23 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309307', 'tblTempUsageDetail_20' ) end [2025-01-23 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309307', 'tblTempVendorCDR_20' ) start [2025-01-23 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309307', 'tblTempVendorCDR_20' ) end [2025-01-23 02:36:19] Production.INFO: ProcessCDR(1,14309307,1,1,2) [2025-01-23 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309307', 'tblTempUsageDetail_20' ) start [2025-01-23 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309307', 'tblTempUsageDetail_20' ) end [2025-01-23 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:36:22] Production.INFO: ==5222== Releasing lock... [2025-01-23 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:37:05 [end_date_ymd] => 2025-01-23 02:37:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:37:05' and `end` < '2025-01-23 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-23 02:37:18] Production.INFO: count ==350 [2025-01-23 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:37:05 - End Time 2025-01-23 02:37:05 [2025-01-23 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309312', 'tblTempUsageDetail_20' ) start [2025-01-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309312', 'tblTempUsageDetail_20' ) end [2025-01-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309312', 'tblTempVendorCDR_20' ) start [2025-01-23 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309312', 'tblTempVendorCDR_20' ) end [2025-01-23 02:37:18] Production.INFO: ProcessCDR(1,14309312,1,1,2) [2025-01-23 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309312', 'tblTempUsageDetail_20' ) start [2025-01-23 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309312', 'tblTempUsageDetail_20' ) end [2025-01-23 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:37:21] Production.INFO: ==5309== Releasing lock... [2025-01-23 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:38:06 [end_date_ymd] => 2025-01-23 02:38:06 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:38:06' and `end` < '2025-01-23 02: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-23 02:38:18] Production.INFO: count ==348 [2025-01-23 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:38:06 - End Time 2025-01-23 02:38:06 [2025-01-23 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309316', 'tblTempUsageDetail_20' ) start [2025-01-23 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309316', 'tblTempUsageDetail_20' ) end [2025-01-23 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309316', 'tblTempVendorCDR_20' ) start [2025-01-23 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309316', 'tblTempVendorCDR_20' ) end [2025-01-23 02:38:18] Production.INFO: ProcessCDR(1,14309316,1,1,2) [2025-01-23 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309316', 'tblTempUsageDetail_20' ) start [2025-01-23 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309316', 'tblTempUsageDetail_20' ) end [2025-01-23 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:38:21] Production.INFO: ==5402== Releasing lock... [2025-01-23 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:39:05 [end_date_ymd] => 2025-01-23 02:39:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:39:05' and `end` < '2025-01-23 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-23 02:39:18] Production.INFO: count ==348 [2025-01-23 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:39:05 - End Time 2025-01-23 02:39:05 [2025-01-23 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309322', 'tblTempUsageDetail_20' ) start [2025-01-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309322', 'tblTempUsageDetail_20' ) end [2025-01-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309322', 'tblTempVendorCDR_20' ) start [2025-01-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309322', 'tblTempVendorCDR_20' ) end [2025-01-23 02:39:18] Production.INFO: ProcessCDR(1,14309322,1,1,2) [2025-01-23 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309322', 'tblTempUsageDetail_20' ) start [2025-01-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309322', 'tblTempUsageDetail_20' ) end [2025-01-23 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:39:21] Production.INFO: ==5483== Releasing lock... [2025-01-23 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:39:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:40:06 [end_date_ymd] => 2025-01-23 02:40:06 [RateCDR] => 1 ) [2025-01-23 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-22 23:40:06' and `end` < '2025-01-23 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-23 02:40:20] Production.INFO: count ==354 [2025-01-23 02:40:20] Production.ERROR: pbx CDR StartTime 2025-01-22 23:40:06 - End Time 2025-01-23 02:40:06 [2025-01-23 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309328', 'tblTempUsageDetail_20' ) start [2025-01-23 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309328', 'tblTempUsageDetail_20' ) end [2025-01-23 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309328', 'tblTempVendorCDR_20' ) start [2025-01-23 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309328', 'tblTempVendorCDR_20' ) end [2025-01-23 02:40:20] Production.INFO: ProcessCDR(1,14309328,1,1,2) [2025-01-23 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309328', 'tblTempUsageDetail_20' ) start [2025-01-23 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309328', 'tblTempUsageDetail_20' ) end [2025-01-23 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:40:23] Production.INFO: ==5562== Releasing lock... [2025-01-23 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:40:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:41:05 [end_date_ymd] => 2025-01-23 02:41:05 [RateCDR] => 1 ) [2025-01-23 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:41:05' and `end` < '2025-01-23 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:41:17] Production.INFO: count ==355 [2025-01-23 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:41:05 - End Time 2025-01-23 02:41:05 [2025-01-23 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309333', 'tblTempUsageDetail_20' ) start [2025-01-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309333', 'tblTempUsageDetail_20' ) end [2025-01-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309333', 'tblTempVendorCDR_20' ) start [2025-01-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309333', 'tblTempVendorCDR_20' ) end [2025-01-23 02:41:17] Production.INFO: ProcessCDR(1,14309333,1,1,2) [2025-01-23 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309333', 'tblTempUsageDetail_20' ) start [2025-01-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309333', 'tblTempUsageDetail_20' ) end [2025-01-23 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:41:20] Production.INFO: ==5639== Releasing lock... [2025-01-23 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:42:05 [end_date_ymd] => 2025-01-23 02:42:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:42:05' and `end` < '2025-01-23 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-23 02:42:19] Production.INFO: count ==355 [2025-01-23 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:42:05 - End Time 2025-01-23 02:42:05 [2025-01-23 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309338', 'tblTempUsageDetail_20' ) start [2025-01-23 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309338', 'tblTempUsageDetail_20' ) end [2025-01-23 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309338', 'tblTempVendorCDR_20' ) start [2025-01-23 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309338', 'tblTempVendorCDR_20' ) end [2025-01-23 02:42:19] Production.INFO: ProcessCDR(1,14309338,1,1,2) [2025-01-23 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309338', 'tblTempUsageDetail_20' ) start [2025-01-23 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309338', 'tblTempUsageDetail_20' ) end [2025-01-23 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:42:22] Production.INFO: ==5716== Releasing lock... [2025-01-23 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:43:04 [end_date_ymd] => 2025-01-23 02:43:04 [RateCDR] => 1 ) [2025-01-23 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-22 23:43:04' and `end` < '2025-01-23 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-23 02:43:17] Production.INFO: count ==353 [2025-01-23 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:43:04 - End Time 2025-01-23 02:43:04 [2025-01-23 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309343', 'tblTempUsageDetail_20' ) start [2025-01-23 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309343', 'tblTempUsageDetail_20' ) end [2025-01-23 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309343', 'tblTempVendorCDR_20' ) start [2025-01-23 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309343', 'tblTempVendorCDR_20' ) end [2025-01-23 02:43:17] Production.INFO: ProcessCDR(1,14309343,1,1,2) [2025-01-23 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309343', 'tblTempUsageDetail_20' ) start [2025-01-23 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309343', 'tblTempUsageDetail_20' ) end [2025-01-23 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:43:20] Production.INFO: ==5790== Releasing lock... [2025-01-23 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:44:06 [end_date_ymd] => 2025-01-23 02:44:06 [RateCDR] => 1 ) [2025-01-23 02: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-22 23:44:06' and `end` < '2025-01-23 02: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-23 02:44:19] Production.INFO: count ==350 [2025-01-23 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:44:06 - End Time 2025-01-23 02:44:06 [2025-01-23 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309348', 'tblTempUsageDetail_20' ) start [2025-01-23 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309348', 'tblTempUsageDetail_20' ) end [2025-01-23 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309348', 'tblTempVendorCDR_20' ) start [2025-01-23 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309348', 'tblTempVendorCDR_20' ) end [2025-01-23 02:44:19] Production.INFO: ProcessCDR(1,14309348,1,1,2) [2025-01-23 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309348', 'tblTempUsageDetail_20' ) start [2025-01-23 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309348', 'tblTempUsageDetail_20' ) end [2025-01-23 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:44:22] Production.INFO: ==5911== Releasing lock... [2025-01-23 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:45:05 [end_date_ymd] => 2025-01-23 02:45:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:45:05' and `end` < '2025-01-23 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-23 02:45:17] Production.INFO: count ==347 [2025-01-23 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:45:05 - End Time 2025-01-23 02:45:05 [2025-01-23 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309353', 'tblTempUsageDetail_20' ) start [2025-01-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309353', 'tblTempUsageDetail_20' ) end [2025-01-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309353', 'tblTempVendorCDR_20' ) start [2025-01-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309353', 'tblTempVendorCDR_20' ) end [2025-01-23 02:45:17] Production.INFO: ProcessCDR(1,14309353,1,1,2) [2025-01-23 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309353', 'tblTempUsageDetail_20' ) start [2025-01-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309353', 'tblTempUsageDetail_20' ) end [2025-01-23 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:45:20] Production.INFO: ==5996== Releasing lock... [2025-01-23 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:45:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:46:06 [end_date_ymd] => 2025-01-23 02:46:06 [RateCDR] => 1 ) [2025-01-23 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:46:06' and `end` < '2025-01-23 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:46:19] Production.INFO: count ==345 [2025-01-23 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:46:06 - End Time 2025-01-23 02:46:06 [2025-01-23 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309358', 'tblTempUsageDetail_20' ) start [2025-01-23 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309358', 'tblTempUsageDetail_20' ) end [2025-01-23 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309358', 'tblTempVendorCDR_20' ) start [2025-01-23 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309358', 'tblTempVendorCDR_20' ) end [2025-01-23 02:46:19] Production.INFO: ProcessCDR(1,14309358,1,1,2) [2025-01-23 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309358', 'tblTempUsageDetail_20' ) start [2025-01-23 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309358', 'tblTempUsageDetail_20' ) end [2025-01-23 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:46:22] Production.INFO: ==6073== Releasing lock... [2025-01-23 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:46:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:47:05 [end_date_ymd] => 2025-01-23 02:47:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:47:05' and `end` < '2025-01-23 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-23 02:47:18] Production.INFO: count ==343 [2025-01-23 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:47:05 - End Time 2025-01-23 02:47:05 [2025-01-23 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309363', 'tblTempUsageDetail_20' ) start [2025-01-23 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309363', 'tblTempUsageDetail_20' ) end [2025-01-23 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309363', 'tblTempVendorCDR_20' ) start [2025-01-23 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309363', 'tblTempVendorCDR_20' ) end [2025-01-23 02:47:18] Production.INFO: ProcessCDR(1,14309363,1,1,2) [2025-01-23 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309363', 'tblTempUsageDetail_20' ) start [2025-01-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309363', 'tblTempUsageDetail_20' ) end [2025-01-23 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:47:21] Production.INFO: ==6155== Releasing lock... [2025-01-23 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:47:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:48:05 [end_date_ymd] => 2025-01-23 02:48:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:48:05' and `end` < '2025-01-23 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-23 02:48:18] Production.INFO: count ==343 [2025-01-23 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:48:05 - End Time 2025-01-23 02:48:05 [2025-01-23 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309368', 'tblTempUsageDetail_20' ) start [2025-01-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309368', 'tblTempUsageDetail_20' ) end [2025-01-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309368', 'tblTempVendorCDR_20' ) start [2025-01-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309368', 'tblTempVendorCDR_20' ) end [2025-01-23 02:48:18] Production.INFO: ProcessCDR(1,14309368,1,1,2) [2025-01-23 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309368', 'tblTempUsageDetail_20' ) start [2025-01-23 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309368', 'tblTempUsageDetail_20' ) end [2025-01-23 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:48:21] Production.INFO: ==6239== Releasing lock... [2025-01-23 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:48:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:49:05 [end_date_ymd] => 2025-01-23 02:49:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:49:05' and `end` < '2025-01-23 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-23 02:49:17] Production.INFO: count ==343 [2025-01-23 02:49:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:49:05 - End Time 2025-01-23 02:49:05 [2025-01-23 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309373', 'tblTempUsageDetail_20' ) start [2025-01-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309373', 'tblTempUsageDetail_20' ) end [2025-01-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309373', 'tblTempVendorCDR_20' ) start [2025-01-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309373', 'tblTempVendorCDR_20' ) end [2025-01-23 02:49:17] Production.INFO: ProcessCDR(1,14309373,1,1,2) [2025-01-23 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309373', 'tblTempUsageDetail_20' ) start [2025-01-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309373', 'tblTempUsageDetail_20' ) end [2025-01-23 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:49:21] Production.INFO: ==6323== Releasing lock... [2025-01-23 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:49:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:50:06 [end_date_ymd] => 2025-01-23 02:50:06 [RateCDR] => 1 ) [2025-01-23 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:50:06' and `end` < '2025-01-23 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:50:18] Production.INFO: count ==347 [2025-01-23 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:50:06 - End Time 2025-01-23 02:50:06 [2025-01-23 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309378', 'tblTempUsageDetail_20' ) start [2025-01-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309378', 'tblTempUsageDetail_20' ) end [2025-01-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309378', 'tblTempVendorCDR_20' ) start [2025-01-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309378', 'tblTempVendorCDR_20' ) end [2025-01-23 02:50:18] Production.INFO: ProcessCDR(1,14309378,1,1,2) [2025-01-23 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309378', 'tblTempUsageDetail_20' ) start [2025-01-23 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309378', 'tblTempUsageDetail_20' ) end [2025-01-23 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:50:21] Production.INFO: ==6411== Releasing lock... [2025-01-23 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:51:05 [end_date_ymd] => 2025-01-23 02:51:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:51:05' and `end` < '2025-01-23 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-23 02:51:19] Production.INFO: count ==347 [2025-01-23 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:51:05 - End Time 2025-01-23 02:51:05 [2025-01-23 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309384', 'tblTempUsageDetail_20' ) start [2025-01-23 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309384', 'tblTempUsageDetail_20' ) end [2025-01-23 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309384', 'tblTempVendorCDR_20' ) start [2025-01-23 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309384', 'tblTempVendorCDR_20' ) end [2025-01-23 02:51:19] Production.INFO: ProcessCDR(1,14309384,1,1,2) [2025-01-23 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309384', 'tblTempUsageDetail_20' ) start [2025-01-23 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309384', 'tblTempUsageDetail_20' ) end [2025-01-23 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:51:22] Production.INFO: ==6497== Releasing lock... [2025-01-23 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:52:05 [end_date_ymd] => 2025-01-23 02:52:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:52:05' and `end` < '2025-01-23 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-23 02:52:18] Production.INFO: count ==347 [2025-01-23 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:52:05 - End Time 2025-01-23 02:52:05 [2025-01-23 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309389', 'tblTempUsageDetail_20' ) start [2025-01-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309389', 'tblTempUsageDetail_20' ) end [2025-01-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309389', 'tblTempVendorCDR_20' ) start [2025-01-23 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309389', 'tblTempVendorCDR_20' ) end [2025-01-23 02:52:18] Production.INFO: ProcessCDR(1,14309389,1,1,2) [2025-01-23 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309389', 'tblTempUsageDetail_20' ) start [2025-01-23 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309389', 'tblTempUsageDetail_20' ) end [2025-01-23 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:52:21] Production.INFO: ==6583== Releasing lock... [2025-01-23 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:53:04 [end_date_ymd] => 2025-01-23 02:53:04 [RateCDR] => 1 ) [2025-01-23 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:53:04' and `end` < '2025-01-23 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:53:17] Production.INFO: count ==346 [2025-01-23 02:53:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:53:04 - End Time 2025-01-23 02:53:04 [2025-01-23 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309394', 'tblTempUsageDetail_20' ) start [2025-01-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309394', 'tblTempUsageDetail_20' ) end [2025-01-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309394', 'tblTempVendorCDR_20' ) start [2025-01-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309394', 'tblTempVendorCDR_20' ) end [2025-01-23 02:53:17] Production.INFO: ProcessCDR(1,14309394,1,1,2) [2025-01-23 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309394', 'tblTempUsageDetail_20' ) start [2025-01-23 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309394', 'tblTempUsageDetail_20' ) end [2025-01-23 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:53:20] Production.INFO: ==6667== Releasing lock... [2025-01-23 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:53:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:54:05 [end_date_ymd] => 2025-01-23 02:54:05 [RateCDR] => 1 ) [2025-01-23 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-22 23:54:05' and `end` < '2025-01-23 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 02:54:18] Production.INFO: count ==344 [2025-01-23 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:54:05 - End Time 2025-01-23 02:54:05 [2025-01-23 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309399', 'tblTempUsageDetail_20' ) start [2025-01-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309399', 'tblTempUsageDetail_20' ) end [2025-01-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309399', 'tblTempVendorCDR_20' ) start [2025-01-23 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309399', 'tblTempVendorCDR_20' ) end [2025-01-23 02:54:18] Production.INFO: ProcessCDR(1,14309399,1,1,2) [2025-01-23 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309399', 'tblTempUsageDetail_20' ) start [2025-01-23 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309399', 'tblTempUsageDetail_20' ) end [2025-01-23 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:54:21] Production.INFO: ==6753== Releasing lock... [2025-01-23 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:54:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:55:05 [end_date_ymd] => 2025-01-23 02:55:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:55:05' and `end` < '2025-01-23 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-23 02:55:18] Production.INFO: count ==344 [2025-01-23 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:55:05 - End Time 2025-01-23 02:55:05 [2025-01-23 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309404', 'tblTempUsageDetail_20' ) start [2025-01-23 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309404', 'tblTempUsageDetail_20' ) end [2025-01-23 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309404', 'tblTempVendorCDR_20' ) start [2025-01-23 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309404', 'tblTempVendorCDR_20' ) end [2025-01-23 02:55:18] Production.INFO: ProcessCDR(1,14309404,1,1,2) [2025-01-23 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309404', 'tblTempUsageDetail_20' ) start [2025-01-23 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309404', 'tblTempUsageDetail_20' ) end [2025-01-23 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:55:21] Production.INFO: ==6836== Releasing lock... [2025-01-23 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:56:05 [end_date_ymd] => 2025-01-23 02:56:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:56:05' and `end` < '2025-01-23 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-23 02:56:18] Production.INFO: count ==344 [2025-01-23 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:56:05 - End Time 2025-01-23 02:56:05 [2025-01-23 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309409', 'tblTempUsageDetail_20' ) start [2025-01-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309409', 'tblTempUsageDetail_20' ) end [2025-01-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309409', 'tblTempVendorCDR_20' ) start [2025-01-23 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309409', 'tblTempVendorCDR_20' ) end [2025-01-23 02:56:18] Production.INFO: ProcessCDR(1,14309409,1,1,2) [2025-01-23 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309409', 'tblTempUsageDetail_20' ) start [2025-01-23 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309409', 'tblTempUsageDetail_20' ) end [2025-01-23 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:56:22] Production.INFO: ==6922== Releasing lock... [2025-01-23 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:56:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:57:05 [end_date_ymd] => 2025-01-23 02:57:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:57:05' and `end` < '2025-01-23 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-23 02:57:18] Production.INFO: count ==344 [2025-01-23 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-22 23:57:05 - End Time 2025-01-23 02:57:05 [2025-01-23 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309414', 'tblTempUsageDetail_20' ) start [2025-01-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309414', 'tblTempUsageDetail_20' ) end [2025-01-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309414', 'tblTempVendorCDR_20' ) start [2025-01-23 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309414', 'tblTempVendorCDR_20' ) end [2025-01-23 02:57:18] Production.INFO: ProcessCDR(1,14309414,1,1,2) [2025-01-23 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309414', 'tblTempUsageDetail_20' ) start [2025-01-23 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309414', 'tblTempUsageDetail_20' ) end [2025-01-23 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:57:21] Production.INFO: ==7010== Releasing lock... [2025-01-23 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:57:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:58:05 [end_date_ymd] => 2025-01-23 02:58:05 [RateCDR] => 1 ) [2025-01-23 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-22 23:58:05' and `end` < '2025-01-23 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-23 02:58:19] Production.INFO: count ==342 [2025-01-23 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-22 23:58:05 - End Time 2025-01-23 02:58:05 [2025-01-23 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309419', 'tblTempUsageDetail_20' ) start [2025-01-23 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309419', 'tblTempUsageDetail_20' ) end [2025-01-23 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309419', 'tblTempVendorCDR_20' ) start [2025-01-23 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309419', 'tblTempVendorCDR_20' ) end [2025-01-23 02:58:19] Production.INFO: ProcessCDR(1,14309419,1,1,2) [2025-01-23 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309419', 'tblTempUsageDetail_20' ) start [2025-01-23 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309419', 'tblTempUsageDetail_20' ) end [2025-01-23 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:58:22] Production.INFO: ==7094== Releasing lock... [2025-01-23 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-22 23:59:04 [end_date_ymd] => 2025-01-23 02:59:04 [RateCDR] => 1 ) [2025-01-23 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-22 23:59:04' and `end` < '2025-01-23 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-23 02:59:17] Production.INFO: count ==342 [2025-01-23 02:59:17] Production.ERROR: pbx CDR StartTime 2025-01-22 23:59:04 - End Time 2025-01-23 02:59:04 [2025-01-23 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309424', 'tblTempUsageDetail_20' ) start [2025-01-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309424', 'tblTempUsageDetail_20' ) end [2025-01-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309424', 'tblTempVendorCDR_20' ) start [2025-01-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309424', 'tblTempVendorCDR_20' ) end [2025-01-23 02:59:17] Production.INFO: ProcessCDR(1,14309424,1,1,2) [2025-01-23 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309424', 'tblTempUsageDetail_20' ) start [2025-01-23 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309424', 'tblTempUsageDetail_20' ) end [2025-01-23 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 02:59:21] Production.INFO: ==7221== Releasing lock... [2025-01-23 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 02:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:00:06 [end_date_ymd] => 2025-01-23 03:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 00:00:06' and `end` < '2025-01-23 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-23 03:00:18] Production.INFO: count ==346 [2025-01-23 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:00:06 - End Time 2025-01-23 03:00:06 [2025-01-23 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309430', 'tblTempUsageDetail_20' ) start [2025-01-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309430', 'tblTempUsageDetail_20' ) end [2025-01-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309430', 'tblTempVendorCDR_20' ) start [2025-01-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309430', 'tblTempVendorCDR_20' ) end [2025-01-23 03:00:18] Production.INFO: ProcessCDR(1,14309430,1,1,2) [2025-01-23 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309430', 'tblTempUsageDetail_20' ) start [2025-01-23 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309430', 'tblTempUsageDetail_20' ) end [2025-01-23 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:00:22] Production.INFO: ==7311== Releasing lock... [2025-01-23 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:01:05 [end_date_ymd] => 2025-01-23 03:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:01:05' and `end` < '2025-01-23 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-23 03:01:18] Production.INFO: count ==346 [2025-01-23 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:01:05 - End Time 2025-01-23 03:01:05 [2025-01-23 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309435', 'tblTempUsageDetail_20' ) start [2025-01-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309435', 'tblTempUsageDetail_20' ) end [2025-01-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309435', 'tblTempVendorCDR_20' ) start [2025-01-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309435', 'tblTempVendorCDR_20' ) end [2025-01-23 03:01:18] Production.INFO: ProcessCDR(1,14309435,1,1,2) [2025-01-23 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309435', 'tblTempUsageDetail_20' ) start [2025-01-23 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309435', 'tblTempUsageDetail_20' ) end [2025-01-23 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:01:21] Production.INFO: ==7411== Releasing lock... [2025-01-23 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:01:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:02:06 [end_date_ymd] => 2025-01-23 03:02:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:02:06' and `end` < '2025-01-23 03: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-23 03:02:18] Production.INFO: count ==344 [2025-01-23 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:02:06 - End Time 2025-01-23 03:02:06 [2025-01-23 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309440', 'tblTempUsageDetail_20' ) start [2025-01-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309440', 'tblTempUsageDetail_20' ) end [2025-01-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309440', 'tblTempVendorCDR_20' ) start [2025-01-23 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309440', 'tblTempVendorCDR_20' ) end [2025-01-23 03:02:18] Production.INFO: ProcessCDR(1,14309440,1,1,2) [2025-01-23 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309440', 'tblTempUsageDetail_20' ) start [2025-01-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309440', 'tblTempUsageDetail_20' ) end [2025-01-23 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:02:21] Production.INFO: ==7577== Releasing lock... [2025-01-23 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:02:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:03:05 [end_date_ymd] => 2025-01-23 03:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:03:05' and `end` < '2025-01-23 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-23 03:03:19] Production.INFO: count ==344 [2025-01-23 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:03:05 - End Time 2025-01-23 03:03:05 [2025-01-23 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309445', 'tblTempUsageDetail_20' ) start [2025-01-23 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309445', 'tblTempUsageDetail_20' ) end [2025-01-23 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309445', 'tblTempVendorCDR_20' ) start [2025-01-23 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309445', 'tblTempVendorCDR_20' ) end [2025-01-23 03:03:19] Production.INFO: ProcessCDR(1,14309445,1,1,2) [2025-01-23 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309445', 'tblTempUsageDetail_20' ) start [2025-01-23 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309445', 'tblTempUsageDetail_20' ) end [2025-01-23 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:03:22] Production.INFO: ==7657== Releasing lock... [2025-01-23 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:04:05 [end_date_ymd] => 2025-01-23 03:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:04:05' and `end` < '2025-01-23 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-23 03:04:18] Production.INFO: count ==344 [2025-01-23 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:04:05 - End Time 2025-01-23 03:04:05 [2025-01-23 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309450', 'tblTempUsageDetail_20' ) start [2025-01-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309450', 'tblTempUsageDetail_20' ) end [2025-01-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309450', 'tblTempVendorCDR_20' ) start [2025-01-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309450', 'tblTempVendorCDR_20' ) end [2025-01-23 03:04:18] Production.INFO: ProcessCDR(1,14309450,1,1,2) [2025-01-23 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309450', 'tblTempUsageDetail_20' ) start [2025-01-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309450', 'tblTempUsageDetail_20' ) end [2025-01-23 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:04:21] Production.INFO: ==7745== Releasing lock... [2025-01-23 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:05:05 [end_date_ymd] => 2025-01-23 03:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:05:05' and `end` < '2025-01-23 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-23 03:05:17] Production.INFO: count ==344 [2025-01-23 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:05:05 - End Time 2025-01-23 03:05:05 [2025-01-23 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309455', 'tblTempUsageDetail_20' ) start [2025-01-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309455', 'tblTempUsageDetail_20' ) end [2025-01-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309455', 'tblTempVendorCDR_20' ) start [2025-01-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309455', 'tblTempVendorCDR_20' ) end [2025-01-23 03:05:17] Production.INFO: ProcessCDR(1,14309455,1,1,2) [2025-01-23 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309455', 'tblTempUsageDetail_20' ) start [2025-01-23 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309455', 'tblTempUsageDetail_20' ) end [2025-01-23 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:05:21] Production.INFO: ==7834== Releasing lock... [2025-01-23 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:06:06 [end_date_ymd] => 2025-01-23 03:06:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:06:06' and `end` < '2025-01-23 03: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-23 03:06:19] Production.INFO: count ==344 [2025-01-23 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:06:06 - End Time 2025-01-23 03:06:06 [2025-01-23 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309460', 'tblTempUsageDetail_20' ) start [2025-01-23 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309460', 'tblTempUsageDetail_20' ) end [2025-01-23 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309460', 'tblTempVendorCDR_20' ) start [2025-01-23 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309460', 'tblTempVendorCDR_20' ) end [2025-01-23 03:06:19] Production.INFO: ProcessCDR(1,14309460,1,1,2) [2025-01-23 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309460', 'tblTempUsageDetail_20' ) start [2025-01-23 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309460', 'tblTempUsageDetail_20' ) end [2025-01-23 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:06:22] Production.INFO: ==7993== Releasing lock... [2025-01-23 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:06:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:07:05 [end_date_ymd] => 2025-01-23 03:07:05 [RateCDR] => 1 ) [2025-01-23 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:07:05' and `end` < '2025-01-23 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:07:17] Production.INFO: count ==344 [2025-01-23 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:07:05 - End Time 2025-01-23 03:07:05 [2025-01-23 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309465', 'tblTempUsageDetail_20' ) start [2025-01-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309465', 'tblTempUsageDetail_20' ) end [2025-01-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309465', 'tblTempVendorCDR_20' ) start [2025-01-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309465', 'tblTempVendorCDR_20' ) end [2025-01-23 03:07:17] Production.INFO: ProcessCDR(1,14309465,1,1,2) [2025-01-23 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309465', 'tblTempUsageDetail_20' ) start [2025-01-23 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309465', 'tblTempUsageDetail_20' ) end [2025-01-23 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:07:20] Production.INFO: ==8081== Releasing lock... [2025-01-23 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:07:20] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:08:05 [end_date_ymd] => 2025-01-23 03:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:08:05' and `end` < '2025-01-23 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-23 03:08:19] Production.INFO: count ==344 [2025-01-23 03:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:08:05 - End Time 2025-01-23 03:08:05 [2025-01-23 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309470', 'tblTempUsageDetail_20' ) start [2025-01-23 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309470', 'tblTempUsageDetail_20' ) end [2025-01-23 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309470', 'tblTempVendorCDR_20' ) start [2025-01-23 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309470', 'tblTempVendorCDR_20' ) end [2025-01-23 03:08:19] Production.INFO: ProcessCDR(1,14309470,1,1,2) [2025-01-23 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309470', 'tblTempUsageDetail_20' ) start [2025-01-23 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309470', 'tblTempUsageDetail_20' ) end [2025-01-23 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:08:22] Production.INFO: ==8167== Releasing lock... [2025-01-23 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:08:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:09:04 [end_date_ymd] => 2025-01-23 03:09:04 [RateCDR] => 1 ) [2025-01-23 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-23 00:09:04' and `end` < '2025-01-23 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-23 03:09:18] Production.INFO: count ==344 [2025-01-23 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:09:04 - End Time 2025-01-23 03:09:04 [2025-01-23 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309475', 'tblTempUsageDetail_20' ) start [2025-01-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309475', 'tblTempUsageDetail_20' ) end [2025-01-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309475', 'tblTempVendorCDR_20' ) start [2025-01-23 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309475', 'tblTempVendorCDR_20' ) end [2025-01-23 03:09:18] Production.INFO: ProcessCDR(1,14309475,1,1,2) [2025-01-23 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309475', 'tblTempUsageDetail_20' ) start [2025-01-23 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309475', 'tblTempUsageDetail_20' ) end [2025-01-23 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:09:21] Production.INFO: ==8327== Releasing lock... [2025-01-23 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:09:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:10:06 [end_date_ymd] => 2025-01-23 03:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 00:10:06' and `end` < '2025-01-23 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-23 03:10:19] Production.INFO: count ==339 [2025-01-23 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:10:06 - End Time 2025-01-23 03:10:06 [2025-01-23 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309480', 'tblTempUsageDetail_20' ) start [2025-01-23 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309480', 'tblTempUsageDetail_20' ) end [2025-01-23 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309480', 'tblTempVendorCDR_20' ) start [2025-01-23 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309480', 'tblTempVendorCDR_20' ) end [2025-01-23 03:10:19] Production.INFO: ProcessCDR(1,14309480,1,1,2) [2025-01-23 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309480', 'tblTempUsageDetail_20' ) start [2025-01-23 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309480', 'tblTempUsageDetail_20' ) end [2025-01-23 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:10:22] Production.INFO: ==8413== Releasing lock... [2025-01-23 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:10:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:11:05 [end_date_ymd] => 2025-01-23 03:11:05 [RateCDR] => 1 ) [2025-01-23 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:11:05' and `end` < '2025-01-23 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:11:20] Production.INFO: count ==309 [2025-01-23 03:11:20] Production.ERROR: pbx CDR StartTime 2025-01-23 00:11:05 - End Time 2025-01-23 03:11:05 [2025-01-23 03:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309486', 'tblTempUsageDetail_20' ) start [2025-01-23 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309486', 'tblTempUsageDetail_20' ) end [2025-01-23 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309486', 'tblTempVendorCDR_20' ) start [2025-01-23 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309486', 'tblTempVendorCDR_20' ) end [2025-01-23 03:11:20] Production.INFO: ProcessCDR(1,14309486,1,1,2) [2025-01-23 03:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309486', 'tblTempUsageDetail_20' ) start [2025-01-23 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309486', 'tblTempUsageDetail_20' ) end [2025-01-23 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:11:23] Production.INFO: ==8499== Releasing lock... [2025-01-23 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:11:23] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:12:05 [end_date_ymd] => 2025-01-23 03:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:12:05' and `end` < '2025-01-23 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-23 03:12:18] Production.INFO: count ==309 [2025-01-23 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:12:05 - End Time 2025-01-23 03:12:05 [2025-01-23 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309491', 'tblTempUsageDetail_20' ) start [2025-01-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309491', 'tblTempUsageDetail_20' ) end [2025-01-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309491', 'tblTempVendorCDR_20' ) start [2025-01-23 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309491', 'tblTempVendorCDR_20' ) end [2025-01-23 03:12:18] Production.INFO: ProcessCDR(1,14309491,1,1,2) [2025-01-23 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309491', 'tblTempUsageDetail_20' ) start [2025-01-23 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309491', 'tblTempUsageDetail_20' ) end [2025-01-23 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:12:21] Production.INFO: ==8580== Releasing lock... [2025-01-23 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:13:05 [end_date_ymd] => 2025-01-23 03:13:05 [RateCDR] => 1 ) [2025-01-23 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:13:05' and `end` < '2025-01-23 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:13:19] Production.INFO: count ==309 [2025-01-23 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:13:05 - End Time 2025-01-23 03:13:05 [2025-01-23 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309496', 'tblTempUsageDetail_20' ) start [2025-01-23 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309496', 'tblTempUsageDetail_20' ) end [2025-01-23 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309496', 'tblTempVendorCDR_20' ) start [2025-01-23 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309496', 'tblTempVendorCDR_20' ) end [2025-01-23 03:13:19] Production.INFO: ProcessCDR(1,14309496,1,1,2) [2025-01-23 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309496', 'tblTempUsageDetail_20' ) start [2025-01-23 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309496', 'tblTempUsageDetail_20' ) end [2025-01-23 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:13:22] Production.INFO: ==8741== Releasing lock... [2025-01-23 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:14:05 [end_date_ymd] => 2025-01-23 03:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:14:05' and `end` < '2025-01-23 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-23 03:14:18] Production.INFO: count ==308 [2025-01-23 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:14:05 - End Time 2025-01-23 03:14:05 [2025-01-23 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309501', 'tblTempUsageDetail_20' ) start [2025-01-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309501', 'tblTempUsageDetail_20' ) end [2025-01-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309501', 'tblTempVendorCDR_20' ) start [2025-01-23 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309501', 'tblTempVendorCDR_20' ) end [2025-01-23 03:14:18] Production.INFO: ProcessCDR(1,14309501,1,1,2) [2025-01-23 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309501', 'tblTempUsageDetail_20' ) start [2025-01-23 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309501', 'tblTempUsageDetail_20' ) end [2025-01-23 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:14:21] Production.INFO: ==8829== Releasing lock... [2025-01-23 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:15:05 [end_date_ymd] => 2025-01-23 03:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:15:05' and `end` < '2025-01-23 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-23 03:15:18] Production.INFO: count ==308 [2025-01-23 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:15:05 - End Time 2025-01-23 03:15:05 [2025-01-23 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309506', 'tblTempUsageDetail_20' ) start [2025-01-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309506', 'tblTempUsageDetail_20' ) end [2025-01-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309506', 'tblTempVendorCDR_20' ) start [2025-01-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309506', 'tblTempVendorCDR_20' ) end [2025-01-23 03:15:18] Production.INFO: ProcessCDR(1,14309506,1,1,2) [2025-01-23 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309506', 'tblTempUsageDetail_20' ) start [2025-01-23 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309506', 'tblTempUsageDetail_20' ) end [2025-01-23 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:15:21] Production.INFO: ==8962== Releasing lock... [2025-01-23 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:16:06 [end_date_ymd] => 2025-01-23 03:16:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:16:06' and `end` < '2025-01-23 03: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-23 03:16:19] Production.INFO: count ==308 [2025-01-23 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:16:06 - End Time 2025-01-23 03:16:06 [2025-01-23 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309511', 'tblTempUsageDetail_20' ) start [2025-01-23 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309511', 'tblTempUsageDetail_20' ) end [2025-01-23 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309511', 'tblTempVendorCDR_20' ) start [2025-01-23 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309511', 'tblTempVendorCDR_20' ) end [2025-01-23 03:16:19] Production.INFO: ProcessCDR(1,14309511,1,1,2) [2025-01-23 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309511', 'tblTempUsageDetail_20' ) start [2025-01-23 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309511', 'tblTempUsageDetail_20' ) end [2025-01-23 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:16:22] Production.INFO: ==9078== Releasing lock... [2025-01-23 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:17:05 [end_date_ymd] => 2025-01-23 03:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:17:05' and `end` < '2025-01-23 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-23 03:17:18] Production.INFO: count ==307 [2025-01-23 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:17:05 - End Time 2025-01-23 03:17:05 [2025-01-23 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309516', 'tblTempUsageDetail_20' ) start [2025-01-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309516', 'tblTempUsageDetail_20' ) end [2025-01-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309516', 'tblTempVendorCDR_20' ) start [2025-01-23 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309516', 'tblTempVendorCDR_20' ) end [2025-01-23 03:17:18] Production.INFO: ProcessCDR(1,14309516,1,1,2) [2025-01-23 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309516', 'tblTempUsageDetail_20' ) start [2025-01-23 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309516', 'tblTempUsageDetail_20' ) end [2025-01-23 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:17:21] Production.INFO: ==9275== Releasing lock... [2025-01-23 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:18:05 [end_date_ymd] => 2025-01-23 03:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:18:05' and `end` < '2025-01-23 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-23 03:18:18] Production.INFO: count ==307 [2025-01-23 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:18:05 - End Time 2025-01-23 03:18:05 [2025-01-23 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309521', 'tblTempUsageDetail_20' ) start [2025-01-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309521', 'tblTempUsageDetail_20' ) end [2025-01-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309521', 'tblTempVendorCDR_20' ) start [2025-01-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309521', 'tblTempVendorCDR_20' ) end [2025-01-23 03:18:18] Production.INFO: ProcessCDR(1,14309521,1,1,2) [2025-01-23 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309521', 'tblTempUsageDetail_20' ) start [2025-01-23 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309521', 'tblTempUsageDetail_20' ) end [2025-01-23 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:18:21] Production.INFO: ==9382== Releasing lock... [2025-01-23 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:19:06 [end_date_ymd] => 2025-01-23 03:19:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:19:06' and `end` < '2025-01-23 03: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-23 03:19:18] Production.INFO: count ==307 [2025-01-23 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:19:06 - End Time 2025-01-23 03:19:06 [2025-01-23 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309526', 'tblTempUsageDetail_20' ) start [2025-01-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309526', 'tblTempUsageDetail_20' ) end [2025-01-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309526', 'tblTempVendorCDR_20' ) start [2025-01-23 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309526', 'tblTempVendorCDR_20' ) end [2025-01-23 03:19:18] Production.INFO: ProcessCDR(1,14309526,1,1,2) [2025-01-23 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309526', 'tblTempUsageDetail_20' ) start [2025-01-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309526', 'tblTempUsageDetail_20' ) end [2025-01-23 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:19:21] Production.INFO: ==9487== Releasing lock... [2025-01-23 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:20:06 [end_date_ymd] => 2025-01-23 03:20:06 [RateCDR] => 1 ) [2025-01-23 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:20:06' and `end` < '2025-01-23 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:20:18] Production.INFO: count ==306 [2025-01-23 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:20:06 - End Time 2025-01-23 03:20:06 [2025-01-23 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309532', 'tblTempUsageDetail_20' ) start [2025-01-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309532', 'tblTempUsageDetail_20' ) end [2025-01-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309532', 'tblTempVendorCDR_20' ) start [2025-01-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309532', 'tblTempVendorCDR_20' ) end [2025-01-23 03:20:18] Production.INFO: ProcessCDR(1,14309532,1,1,2) [2025-01-23 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309532', 'tblTempUsageDetail_20' ) start [2025-01-23 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309532', 'tblTempUsageDetail_20' ) end [2025-01-23 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:20:22] Production.INFO: ==9595== Releasing lock... [2025-01-23 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:21:05 [end_date_ymd] => 2025-01-23 03:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:21:05' and `end` < '2025-01-23 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-23 03:21:19] Production.INFO: count ==308 [2025-01-23 03:21:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:21:05 - End Time 2025-01-23 03:21:05 [2025-01-23 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309537', 'tblTempUsageDetail_20' ) start [2025-01-23 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309537', 'tblTempUsageDetail_20' ) end [2025-01-23 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309537', 'tblTempVendorCDR_20' ) start [2025-01-23 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309537', 'tblTempVendorCDR_20' ) end [2025-01-23 03:21:19] Production.INFO: ProcessCDR(1,14309537,1,1,2) [2025-01-23 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309537', 'tblTempUsageDetail_20' ) start [2025-01-23 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309537', 'tblTempUsageDetail_20' ) end [2025-01-23 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:21:22] Production.INFO: ==9694== Releasing lock... [2025-01-23 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:21:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:22:05 [end_date_ymd] => 2025-01-23 03:22:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:22:05' and `end` < '2025-01-23 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-23 03:22:18] Production.INFO: count ==308 [2025-01-23 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:22:05 - End Time 2025-01-23 03:22:05 [2025-01-23 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309542', 'tblTempUsageDetail_20' ) start [2025-01-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309542', 'tblTempUsageDetail_20' ) end [2025-01-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309542', 'tblTempVendorCDR_20' ) start [2025-01-23 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309542', 'tblTempVendorCDR_20' ) end [2025-01-23 03:22:18] Production.INFO: ProcessCDR(1,14309542,1,1,2) [2025-01-23 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309542', 'tblTempUsageDetail_20' ) start [2025-01-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309542', 'tblTempUsageDetail_20' ) end [2025-01-23 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:22:21] Production.INFO: ==9794== Releasing lock... [2025-01-23 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:23:05 [end_date_ymd] => 2025-01-23 03:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:23:05' and `end` < '2025-01-23 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-23 03:23:19] Production.INFO: count ==309 [2025-01-23 03:23:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:23:05 - End Time 2025-01-23 03:23:05 [2025-01-23 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309547', 'tblTempUsageDetail_20' ) start [2025-01-23 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309547', 'tblTempUsageDetail_20' ) end [2025-01-23 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309547', 'tblTempVendorCDR_20' ) start [2025-01-23 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309547', 'tblTempVendorCDR_20' ) end [2025-01-23 03:23:19] Production.INFO: ProcessCDR(1,14309547,1,1,2) [2025-01-23 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309547', 'tblTempUsageDetail_20' ) start [2025-01-23 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309547', 'tblTempUsageDetail_20' ) end [2025-01-23 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:23:22] Production.INFO: ==9895== Releasing lock... [2025-01-23 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:23:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:24:05 [end_date_ymd] => 2025-01-23 03:24:05 [RateCDR] => 1 ) [2025-01-23 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:24:05' and `end` < '2025-01-23 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:24:19] Production.INFO: count ==309 [2025-01-23 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:24:05 - End Time 2025-01-23 03:24:05 [2025-01-23 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309552', 'tblTempUsageDetail_20' ) start [2025-01-23 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309552', 'tblTempUsageDetail_20' ) end [2025-01-23 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309552', 'tblTempVendorCDR_20' ) start [2025-01-23 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309552', 'tblTempVendorCDR_20' ) end [2025-01-23 03:24:19] Production.INFO: ProcessCDR(1,14309552,1,1,2) [2025-01-23 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309552', 'tblTempUsageDetail_20' ) start [2025-01-23 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309552', 'tblTempUsageDetail_20' ) end [2025-01-23 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:24:22] Production.INFO: ==10015== Releasing lock... [2025-01-23 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:25:05 [end_date_ymd] => 2025-01-23 03:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:25:05' and `end` < '2025-01-23 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-23 03:25:18] Production.INFO: count ==309 [2025-01-23 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:25:05 - End Time 2025-01-23 03:25:05 [2025-01-23 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309557', 'tblTempUsageDetail_20' ) start [2025-01-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309557', 'tblTempUsageDetail_20' ) end [2025-01-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309557', 'tblTempVendorCDR_20' ) start [2025-01-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309557', 'tblTempVendorCDR_20' ) end [2025-01-23 03:25:18] Production.INFO: ProcessCDR(1,14309557,1,1,2) [2025-01-23 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309557', 'tblTempUsageDetail_20' ) start [2025-01-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309557', 'tblTempUsageDetail_20' ) end [2025-01-23 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:25:21] Production.INFO: ==10126== Releasing lock... [2025-01-23 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:26:05 [end_date_ymd] => 2025-01-23 03:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:26:05' and `end` < '2025-01-23 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-23 03:26:18] Production.INFO: count ==308 [2025-01-23 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:26:05 - End Time 2025-01-23 03:26:05 [2025-01-23 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309562', 'tblTempUsageDetail_20' ) start [2025-01-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309562', 'tblTempUsageDetail_20' ) end [2025-01-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309562', 'tblTempVendorCDR_20' ) start [2025-01-23 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309562', 'tblTempVendorCDR_20' ) end [2025-01-23 03:26:18] Production.INFO: ProcessCDR(1,14309562,1,1,2) [2025-01-23 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309562', 'tblTempUsageDetail_20' ) start [2025-01-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309562', 'tblTempUsageDetail_20' ) end [2025-01-23 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:26:21] Production.INFO: ==10217== Releasing lock... [2025-01-23 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:26:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:27:05 [end_date_ymd] => 2025-01-23 03:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:27:05' and `end` < '2025-01-23 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-23 03:27:18] Production.INFO: count ==308 [2025-01-23 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:27:05 - End Time 2025-01-23 03:27:05 [2025-01-23 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309567', 'tblTempUsageDetail_20' ) start [2025-01-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309567', 'tblTempUsageDetail_20' ) end [2025-01-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309567', 'tblTempVendorCDR_20' ) start [2025-01-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309567', 'tblTempVendorCDR_20' ) end [2025-01-23 03:27:18] Production.INFO: ProcessCDR(1,14309567,1,1,2) [2025-01-23 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309567', 'tblTempUsageDetail_20' ) start [2025-01-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309567', 'tblTempUsageDetail_20' ) end [2025-01-23 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:27:21] Production.INFO: ==10312== Releasing lock... [2025-01-23 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:27:21] Production.INFO: 30 MB #Memory Used# [2025-01-23 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:28:05 [end_date_ymd] => 2025-01-23 03:28:05 [RateCDR] => 1 ) [2025-01-23 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:28:05' and `end` < '2025-01-23 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:28:17] Production.INFO: count ==297 [2025-01-23 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:28:05 - End Time 2025-01-23 03:28:05 [2025-01-23 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309572', 'tblTempUsageDetail_20' ) start [2025-01-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309572', 'tblTempUsageDetail_20' ) end [2025-01-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309572', 'tblTempVendorCDR_20' ) start [2025-01-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309572', 'tblTempVendorCDR_20' ) end [2025-01-23 03:28:17] Production.INFO: ProcessCDR(1,14309572,1,1,2) [2025-01-23 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309572', 'tblTempUsageDetail_20' ) start [2025-01-23 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309572', 'tblTempUsageDetail_20' ) end [2025-01-23 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:28:20] Production.INFO: ==10411== Releasing lock... [2025-01-23 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:28:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:29:05 [end_date_ymd] => 2025-01-23 03:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:29:05' and `end` < '2025-01-23 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-23 03:29:18] Production.INFO: count ==285 [2025-01-23 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:29:05 - End Time 2025-01-23 03:29:05 [2025-01-23 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309577', 'tblTempUsageDetail_20' ) start [2025-01-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309577', 'tblTempUsageDetail_20' ) end [2025-01-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309577', 'tblTempVendorCDR_20' ) start [2025-01-23 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309577', 'tblTempVendorCDR_20' ) end [2025-01-23 03:29:18] Production.INFO: ProcessCDR(1,14309577,1,1,2) [2025-01-23 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309577', 'tblTempUsageDetail_20' ) start [2025-01-23 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309577', 'tblTempUsageDetail_20' ) end [2025-01-23 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:29:21] Production.INFO: ==10513== Releasing lock... [2025-01-23 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-23 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:30:05 [end_date_ymd] => 2025-01-23 03:30:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:30:05' and `end` < '2025-01-23 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-23 03:30:19] Production.INFO: count ==264 [2025-01-23 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:30:05 - End Time 2025-01-23 03:30:05 [2025-01-23 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309583', 'tblTempUsageDetail_20' ) start [2025-01-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309583', 'tblTempUsageDetail_20' ) end [2025-01-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309583', 'tblTempVendorCDR_20' ) start [2025-01-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309583', 'tblTempVendorCDR_20' ) end [2025-01-23 03:30:19] Production.INFO: ProcessCDR(1,14309583,1,1,2) [2025-01-23 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309583', 'tblTempUsageDetail_20' ) start [2025-01-23 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309583', 'tblTempUsageDetail_20' ) end [2025-01-23 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:30:22] Production.INFO: ==10613== Releasing lock... [2025-01-23 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-23 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:31:05 [end_date_ymd] => 2025-01-23 03:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:31:05' and `end` < '2025-01-23 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-23 03:31:18] Production.INFO: count ==249 [2025-01-23 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:31:05 - End Time 2025-01-23 03:31:05 [2025-01-23 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309588', 'tblTempUsageDetail_20' ) start [2025-01-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309588', 'tblTempUsageDetail_20' ) end [2025-01-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309588', 'tblTempVendorCDR_20' ) start [2025-01-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309588', 'tblTempVendorCDR_20' ) end [2025-01-23 03:31:18] Production.INFO: ProcessCDR(1,14309588,1,1,2) [2025-01-23 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309588', 'tblTempUsageDetail_20' ) start [2025-01-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309588', 'tblTempUsageDetail_20' ) end [2025-01-23 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:31:21] Production.INFO: ==10707== Releasing lock... [2025-01-23 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-23 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:32:06 [end_date_ymd] => 2025-01-23 03:32:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:32:06' and `end` < '2025-01-23 03: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-23 03:32:19] Production.INFO: count ==237 [2025-01-23 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:32:06 - End Time 2025-01-23 03:32:06 [2025-01-23 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309593', 'tblTempUsageDetail_20' ) start [2025-01-23 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309593', 'tblTempUsageDetail_20' ) end [2025-01-23 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309593', 'tblTempVendorCDR_20' ) start [2025-01-23 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309593', 'tblTempVendorCDR_20' ) end [2025-01-23 03:32:19] Production.INFO: ProcessCDR(1,14309593,1,1,2) [2025-01-23 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309593', 'tblTempUsageDetail_20' ) start [2025-01-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309593', 'tblTempUsageDetail_20' ) end [2025-01-23 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:32:22] Production.INFO: ==10834== Releasing lock... [2025-01-23 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-23 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:33:05 [end_date_ymd] => 2025-01-23 03:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:33:05' and `end` < '2025-01-23 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-23 03:33:18] Production.INFO: count ==227 [2025-01-23 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:33:05 - End Time 2025-01-23 03:33:05 [2025-01-23 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309598', 'tblTempUsageDetail_20' ) start [2025-01-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309598', 'tblTempUsageDetail_20' ) end [2025-01-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309598', 'tblTempVendorCDR_20' ) start [2025-01-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309598', 'tblTempVendorCDR_20' ) end [2025-01-23 03:33:18] Production.INFO: ProcessCDR(1,14309598,1,1,2) [2025-01-23 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309598', 'tblTempUsageDetail_20' ) start [2025-01-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309598', 'tblTempUsageDetail_20' ) end [2025-01-23 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:33:21] Production.INFO: ==10932== Releasing lock... [2025-01-23 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:34:06 [end_date_ymd] => 2025-01-23 03:34:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:34:06' and `end` < '2025-01-23 03: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-23 03:34:19] Production.INFO: count ==220 [2025-01-23 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:34:06 - End Time 2025-01-23 03:34:06 [2025-01-23 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309603', 'tblTempUsageDetail_20' ) start [2025-01-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309603', 'tblTempUsageDetail_20' ) end [2025-01-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309603', 'tblTempVendorCDR_20' ) start [2025-01-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309603', 'tblTempVendorCDR_20' ) end [2025-01-23 03:34:19] Production.INFO: ProcessCDR(1,14309603,1,1,2) [2025-01-23 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309603', 'tblTempUsageDetail_20' ) start [2025-01-23 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309603', 'tblTempUsageDetail_20' ) end [2025-01-23 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:34:22] Production.INFO: ==11025== Releasing lock... [2025-01-23 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:35:05 [end_date_ymd] => 2025-01-23 03:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:35:05' and `end` < '2025-01-23 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-23 03:35:17] Production.INFO: count ==220 [2025-01-23 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:35:05 - End Time 2025-01-23 03:35:05 [2025-01-23 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309608', 'tblTempUsageDetail_20' ) start [2025-01-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309608', 'tblTempUsageDetail_20' ) end [2025-01-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309608', 'tblTempVendorCDR_20' ) start [2025-01-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309608', 'tblTempVendorCDR_20' ) end [2025-01-23 03:35:17] Production.INFO: ProcessCDR(1,14309608,1,1,2) [2025-01-23 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309608', 'tblTempUsageDetail_20' ) start [2025-01-23 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309608', 'tblTempUsageDetail_20' ) end [2025-01-23 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:35:20] Production.INFO: ==11121== Releasing lock... [2025-01-23 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:36:05 [end_date_ymd] => 2025-01-23 03:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:36:05' and `end` < '2025-01-23 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-23 03:36:17] Production.INFO: count ==220 [2025-01-23 03:36:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:36:05 - End Time 2025-01-23 03:36:05 [2025-01-23 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309613', 'tblTempUsageDetail_20' ) start [2025-01-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309613', 'tblTempUsageDetail_20' ) end [2025-01-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309613', 'tblTempVendorCDR_20' ) start [2025-01-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309613', 'tblTempVendorCDR_20' ) end [2025-01-23 03:36:17] Production.INFO: ProcessCDR(1,14309613,1,1,2) [2025-01-23 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309613', 'tblTempUsageDetail_20' ) start [2025-01-23 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309613', 'tblTempUsageDetail_20' ) end [2025-01-23 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:36:21] Production.INFO: ==11213== Releasing lock... [2025-01-23 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:37:05 [end_date_ymd] => 2025-01-23 03:37:05 [RateCDR] => 1 ) [2025-01-23 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:37:05' and `end` < '2025-01-23 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:37:18] Production.INFO: count ==220 [2025-01-23 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:37:05 - End Time 2025-01-23 03:37:05 [2025-01-23 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309618', 'tblTempUsageDetail_20' ) start [2025-01-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309618', 'tblTempUsageDetail_20' ) end [2025-01-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309618', 'tblTempVendorCDR_20' ) start [2025-01-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309618', 'tblTempVendorCDR_20' ) end [2025-01-23 03:37:18] Production.INFO: ProcessCDR(1,14309618,1,1,2) [2025-01-23 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309618', 'tblTempUsageDetail_20' ) start [2025-01-23 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309618', 'tblTempUsageDetail_20' ) end [2025-01-23 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:37:21] Production.INFO: ==11300== Releasing lock... [2025-01-23 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:38:06 [end_date_ymd] => 2025-01-23 03:38:06 [RateCDR] => 1 ) [2025-01-23 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:38:06' and `end` < '2025-01-23 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:38:18] Production.INFO: count ==221 [2025-01-23 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:38:06 - End Time 2025-01-23 03:38:06 [2025-01-23 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309623', 'tblTempUsageDetail_20' ) start [2025-01-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309623', 'tblTempUsageDetail_20' ) end [2025-01-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309623', 'tblTempVendorCDR_20' ) start [2025-01-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309623', 'tblTempVendorCDR_20' ) end [2025-01-23 03:38:18] Production.INFO: ProcessCDR(1,14309623,1,1,2) [2025-01-23 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309623', 'tblTempUsageDetail_20' ) start [2025-01-23 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309623', 'tblTempUsageDetail_20' ) end [2025-01-23 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:38:22] Production.INFO: ==11409== Releasing lock... [2025-01-23 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:39:05 [end_date_ymd] => 2025-01-23 03:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:39:05' and `end` < '2025-01-23 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-23 03:39:19] Production.INFO: count ==220 [2025-01-23 03:39:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:39:05 - End Time 2025-01-23 03:39:05 [2025-01-23 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309628', 'tblTempUsageDetail_20' ) start [2025-01-23 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309628', 'tblTempUsageDetail_20' ) end [2025-01-23 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309628', 'tblTempVendorCDR_20' ) start [2025-01-23 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309628', 'tblTempVendorCDR_20' ) end [2025-01-23 03:39:19] Production.INFO: ProcessCDR(1,14309628,1,1,2) [2025-01-23 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309628', 'tblTempUsageDetail_20' ) start [2025-01-23 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309628', 'tblTempUsageDetail_20' ) end [2025-01-23 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:39:22] Production.INFO: ==11538== Releasing lock... [2025-01-23 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:40:07 [end_date_ymd] => 2025-01-23 03:40:07 [RateCDR] => 1 ) [2025-01-23 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:40:07' and `end` < '2025-01-23 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:40:19] Production.INFO: count ==214 [2025-01-23 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:40:07 - End Time 2025-01-23 03:40:07 [2025-01-23 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309634', 'tblTempUsageDetail_20' ) start [2025-01-23 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309634', 'tblTempUsageDetail_20' ) end [2025-01-23 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309634', 'tblTempVendorCDR_20' ) start [2025-01-23 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309634', 'tblTempVendorCDR_20' ) end [2025-01-23 03:40:19] Production.INFO: ProcessCDR(1,14309634,1,1,2) [2025-01-23 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309634', 'tblTempUsageDetail_20' ) start [2025-01-23 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309634', 'tblTempUsageDetail_20' ) end [2025-01-23 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:40:22] Production.INFO: ==11674== Releasing lock... [2025-01-23 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:41:05 [end_date_ymd] => 2025-01-23 03:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:41:05' and `end` < '2025-01-23 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-23 03:41:18] Production.INFO: count ==209 [2025-01-23 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:41:05 - End Time 2025-01-23 03:41:05 [2025-01-23 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309639', 'tblTempUsageDetail_20' ) start [2025-01-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309639', 'tblTempUsageDetail_20' ) end [2025-01-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309639', 'tblTempVendorCDR_20' ) start [2025-01-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309639', 'tblTempVendorCDR_20' ) end [2025-01-23 03:41:18] Production.INFO: ProcessCDR(1,14309639,1,1,2) [2025-01-23 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309639', 'tblTempUsageDetail_20' ) start [2025-01-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309639', 'tblTempUsageDetail_20' ) end [2025-01-23 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:41:21] Production.INFO: ==11802== Releasing lock... [2025-01-23 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:42:06 [end_date_ymd] => 2025-01-23 03:42:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:42:06' and `end` < '2025-01-23 03: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-23 03:42:19] Production.INFO: count ==209 [2025-01-23 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:42:06 - End Time 2025-01-23 03:42:06 [2025-01-23 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309644', 'tblTempUsageDetail_20' ) start [2025-01-23 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309644', 'tblTempUsageDetail_20' ) end [2025-01-23 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309644', 'tblTempVendorCDR_20' ) start [2025-01-23 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309644', 'tblTempVendorCDR_20' ) end [2025-01-23 03:42:19] Production.INFO: ProcessCDR(1,14309644,1,1,2) [2025-01-23 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309644', 'tblTempUsageDetail_20' ) start [2025-01-23 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309644', 'tblTempUsageDetail_20' ) end [2025-01-23 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:42:22] Production.INFO: ==11959== Releasing lock... [2025-01-23 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:43:05 [end_date_ymd] => 2025-01-23 03:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:43:05' and `end` < '2025-01-23 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-23 03:43:18] Production.INFO: count ==209 [2025-01-23 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:43:05 - End Time 2025-01-23 03:43:05 [2025-01-23 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309649', 'tblTempUsageDetail_20' ) start [2025-01-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309649', 'tblTempUsageDetail_20' ) end [2025-01-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309649', 'tblTempVendorCDR_20' ) start [2025-01-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309649', 'tblTempVendorCDR_20' ) end [2025-01-23 03:43:18] Production.INFO: ProcessCDR(1,14309649,1,1,2) [2025-01-23 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309649', 'tblTempUsageDetail_20' ) start [2025-01-23 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309649', 'tblTempUsageDetail_20' ) end [2025-01-23 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:43:21] Production.INFO: ==12125== Releasing lock... [2025-01-23 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:44:04 [end_date_ymd] => 2025-01-23 03:44:04 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:44:04' and `end` < '2025-01-23 03: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-23 03:44:18] Production.INFO: count ==209 [2025-01-23 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:44:04 - End Time 2025-01-23 03:44:04 [2025-01-23 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309654', 'tblTempUsageDetail_20' ) start [2025-01-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309654', 'tblTempUsageDetail_20' ) end [2025-01-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309654', 'tblTempVendorCDR_20' ) start [2025-01-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309654', 'tblTempVendorCDR_20' ) end [2025-01-23 03:44:18] Production.INFO: ProcessCDR(1,14309654,1,1,2) [2025-01-23 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309654', 'tblTempUsageDetail_20' ) start [2025-01-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309654', 'tblTempUsageDetail_20' ) end [2025-01-23 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:44:21] Production.INFO: ==12281== Releasing lock... [2025-01-23 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:45:05 [end_date_ymd] => 2025-01-23 03:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:45:05' and `end` < '2025-01-23 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-23 03:45:18] Production.INFO: count ==208 [2025-01-23 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:45:05 - End Time 2025-01-23 03:45:05 [2025-01-23 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309659', 'tblTempUsageDetail_20' ) start [2025-01-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309659', 'tblTempUsageDetail_20' ) end [2025-01-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309659', 'tblTempVendorCDR_20' ) start [2025-01-23 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309659', 'tblTempVendorCDR_20' ) end [2025-01-23 03:45:18] Production.INFO: ProcessCDR(1,14309659,1,1,2) [2025-01-23 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309659', 'tblTempUsageDetail_20' ) start [2025-01-23 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309659', 'tblTempUsageDetail_20' ) end [2025-01-23 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:45:21] Production.INFO: ==12445== Releasing lock... [2025-01-23 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:46:06 [end_date_ymd] => 2025-01-23 03:46:06 [RateCDR] => 1 ) [2025-01-23 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:46:06' and `end` < '2025-01-23 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:46:19] Production.INFO: count ==208 [2025-01-23 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:46:06 - End Time 2025-01-23 03:46:06 [2025-01-23 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309664', 'tblTempUsageDetail_20' ) start [2025-01-23 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309664', 'tblTempUsageDetail_20' ) end [2025-01-23 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309664', 'tblTempVendorCDR_20' ) start [2025-01-23 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309664', 'tblTempVendorCDR_20' ) end [2025-01-23 03:46:19] Production.INFO: ProcessCDR(1,14309664,1,1,2) [2025-01-23 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309664', 'tblTempUsageDetail_20' ) start [2025-01-23 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309664', 'tblTempUsageDetail_20' ) end [2025-01-23 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:46:23] Production.INFO: ==12591== Releasing lock... [2025-01-23 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:46:23] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:47:06 [end_date_ymd] => 2025-01-23 03:47:06 [RateCDR] => 1 ) [2025-01-23 03: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-23 00:47:06' and `end` < '2025-01-23 03: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-23 03:47:18] Production.INFO: count ==208 [2025-01-23 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:47:06 - End Time 2025-01-23 03:47:06 [2025-01-23 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309669', 'tblTempUsageDetail_20' ) start [2025-01-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309669', 'tblTempUsageDetail_20' ) end [2025-01-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309669', 'tblTempVendorCDR_20' ) start [2025-01-23 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309669', 'tblTempVendorCDR_20' ) end [2025-01-23 03:47:18] Production.INFO: ProcessCDR(1,14309669,1,1,2) [2025-01-23 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309669', 'tblTempUsageDetail_20' ) start [2025-01-23 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309669', 'tblTempUsageDetail_20' ) end [2025-01-23 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:47:21] Production.INFO: ==12760== Releasing lock... [2025-01-23 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:48:05 [end_date_ymd] => 2025-01-23 03:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:48:05' and `end` < '2025-01-23 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-23 03:48:18] Production.INFO: count ==208 [2025-01-23 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:48:05 - End Time 2025-01-23 03:48:05 [2025-01-23 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309674', 'tblTempUsageDetail_20' ) start [2025-01-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309674', 'tblTempUsageDetail_20' ) end [2025-01-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309674', 'tblTempVendorCDR_20' ) start [2025-01-23 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309674', 'tblTempVendorCDR_20' ) end [2025-01-23 03:48:18] Production.INFO: ProcessCDR(1,14309674,1,1,2) [2025-01-23 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309674', 'tblTempUsageDetail_20' ) start [2025-01-23 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309674', 'tblTempUsageDetail_20' ) end [2025-01-23 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:48:22] Production.INFO: ==12894== Releasing lock... [2025-01-23 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:49:05 [end_date_ymd] => 2025-01-23 03:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:49:05' and `end` < '2025-01-23 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-23 03:49:18] Production.INFO: count ==208 [2025-01-23 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:49:05 - End Time 2025-01-23 03:49:05 [2025-01-23 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309679', 'tblTempUsageDetail_20' ) start [2025-01-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309679', 'tblTempUsageDetail_20' ) end [2025-01-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309679', 'tblTempVendorCDR_20' ) start [2025-01-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309679', 'tblTempVendorCDR_20' ) end [2025-01-23 03:49:18] Production.INFO: ProcessCDR(1,14309679,1,1,2) [2025-01-23 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309679', 'tblTempUsageDetail_20' ) start [2025-01-23 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309679', 'tblTempUsageDetail_20' ) end [2025-01-23 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:49:21] Production.INFO: ==13027== Releasing lock... [2025-01-23 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:50:06 [end_date_ymd] => 2025-01-23 03:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 00:50:06' and `end` < '2025-01-23 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-23 03:50:18] Production.INFO: count ==214 [2025-01-23 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:50:06 - End Time 2025-01-23 03:50:06 [2025-01-23 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309684', 'tblTempUsageDetail_20' ) start [2025-01-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309684', 'tblTempUsageDetail_20' ) end [2025-01-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309684', 'tblTempVendorCDR_20' ) start [2025-01-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309684', 'tblTempVendorCDR_20' ) end [2025-01-23 03:50:18] Production.INFO: ProcessCDR(1,14309684,1,1,2) [2025-01-23 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309684', 'tblTempUsageDetail_20' ) start [2025-01-23 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309684', 'tblTempUsageDetail_20' ) end [2025-01-23 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:50:22] Production.INFO: ==13161== Releasing lock... [2025-01-23 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:50:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:51:05 [end_date_ymd] => 2025-01-23 03:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:51:05' and `end` < '2025-01-23 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-23 03:51:19] Production.INFO: count ==210 [2025-01-23 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:51:05 - End Time 2025-01-23 03:51:05 [2025-01-23 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309690', 'tblTempUsageDetail_20' ) start [2025-01-23 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309690', 'tblTempUsageDetail_20' ) end [2025-01-23 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309690', 'tblTempVendorCDR_20' ) start [2025-01-23 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309690', 'tblTempVendorCDR_20' ) end [2025-01-23 03:51:19] Production.INFO: ProcessCDR(1,14309690,1,1,2) [2025-01-23 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309690', 'tblTempUsageDetail_20' ) start [2025-01-23 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309690', 'tblTempUsageDetail_20' ) end [2025-01-23 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:51:22] Production.INFO: ==13298== Releasing lock... [2025-01-23 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:51:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:52:05 [end_date_ymd] => 2025-01-23 03:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:52:05' and `end` < '2025-01-23 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-23 03:52:17] Production.INFO: count ==215 [2025-01-23 03:52:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:52:05 - End Time 2025-01-23 03:52:05 [2025-01-23 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309695', 'tblTempUsageDetail_20' ) start [2025-01-23 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309695', 'tblTempUsageDetail_20' ) end [2025-01-23 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309695', 'tblTempVendorCDR_20' ) start [2025-01-23 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309695', 'tblTempVendorCDR_20' ) end [2025-01-23 03:52:17] Production.INFO: ProcessCDR(1,14309695,1,1,2) [2025-01-23 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309695', 'tblTempUsageDetail_20' ) start [2025-01-23 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309695', 'tblTempUsageDetail_20' ) end [2025-01-23 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:52:22] Production.INFO: ==13423== Releasing lock... [2025-01-23 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:52:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:53:05 [end_date_ymd] => 2025-01-23 03:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:53:05' and `end` < '2025-01-23 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-23 03:53:19] Production.INFO: count ==215 [2025-01-23 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:53:05 - End Time 2025-01-23 03:53:05 [2025-01-23 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309700', 'tblTempUsageDetail_20' ) start [2025-01-23 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309700', 'tblTempUsageDetail_20' ) end [2025-01-23 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309700', 'tblTempVendorCDR_20' ) start [2025-01-23 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309700', 'tblTempVendorCDR_20' ) end [2025-01-23 03:53:19] Production.INFO: ProcessCDR(1,14309700,1,1,2) [2025-01-23 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309700', 'tblTempUsageDetail_20' ) start [2025-01-23 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309700', 'tblTempUsageDetail_20' ) end [2025-01-23 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:53:22] Production.INFO: ==13549== Releasing lock... [2025-01-23 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:54:05 [end_date_ymd] => 2025-01-23 03:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:54:05' and `end` < '2025-01-23 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-23 03:54:18] Production.INFO: count ==215 [2025-01-23 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:54:05 - End Time 2025-01-23 03:54:05 [2025-01-23 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309705', 'tblTempUsageDetail_20' ) start [2025-01-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309705', 'tblTempUsageDetail_20' ) end [2025-01-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309705', 'tblTempVendorCDR_20' ) start [2025-01-23 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309705', 'tblTempVendorCDR_20' ) end [2025-01-23 03:54:18] Production.INFO: ProcessCDR(1,14309705,1,1,2) [2025-01-23 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309705', 'tblTempUsageDetail_20' ) start [2025-01-23 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309705', 'tblTempUsageDetail_20' ) end [2025-01-23 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:54:22] Production.INFO: ==13667== Releasing lock... [2025-01-23 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:55:06 [end_date_ymd] => 2025-01-23 03:55:06 [RateCDR] => 1 ) [2025-01-23 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-23 00:55:06' and `end` < '2025-01-23 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-23 03:55:18] Production.INFO: count ==215 [2025-01-23 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:55:06 - End Time 2025-01-23 03:55:06 [2025-01-23 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309710', 'tblTempUsageDetail_20' ) start [2025-01-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309710', 'tblTempUsageDetail_20' ) end [2025-01-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309710', 'tblTempVendorCDR_20' ) start [2025-01-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309710', 'tblTempVendorCDR_20' ) end [2025-01-23 03:55:18] Production.INFO: ProcessCDR(1,14309710,1,1,2) [2025-01-23 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309710', 'tblTempUsageDetail_20' ) start [2025-01-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309710', 'tblTempUsageDetail_20' ) end [2025-01-23 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:55:21] Production.INFO: ==13790== Releasing lock... [2025-01-23 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:56:05 [end_date_ymd] => 2025-01-23 03:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:56:05' and `end` < '2025-01-23 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-23 03:56:17] Production.INFO: count ==215 [2025-01-23 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:56:05 - End Time 2025-01-23 03:56:05 [2025-01-23 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309715', 'tblTempUsageDetail_20' ) start [2025-01-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309715', 'tblTempUsageDetail_20' ) end [2025-01-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309715', 'tblTempVendorCDR_20' ) start [2025-01-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309715', 'tblTempVendorCDR_20' ) end [2025-01-23 03:56:18] Production.INFO: ProcessCDR(1,14309715,1,1,2) [2025-01-23 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309715', 'tblTempUsageDetail_20' ) start [2025-01-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309715', 'tblTempUsageDetail_20' ) end [2025-01-23 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:56:21] Production.INFO: ==13915== Releasing lock... [2025-01-23 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:57:05 [end_date_ymd] => 2025-01-23 03:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:57:05' and `end` < '2025-01-23 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-23 03:57:19] Production.INFO: count ==215 [2025-01-23 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-23 00:57:05 - End Time 2025-01-23 03:57:05 [2025-01-23 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309716', 'tblTempUsageDetail_20' ) start [2025-01-23 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309716', 'tblTempUsageDetail_20' ) end [2025-01-23 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309716', 'tblTempVendorCDR_20' ) start [2025-01-23 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309716', 'tblTempVendorCDR_20' ) end [2025-01-23 03:57:19] Production.INFO: ProcessCDR(1,14309716,1,1,2) [2025-01-23 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309716', 'tblTempUsageDetail_20' ) start [2025-01-23 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309716', 'tblTempUsageDetail_20' ) end [2025-01-23 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:57:22] Production.INFO: ==14040== Releasing lock... [2025-01-23 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:58:05 [end_date_ymd] => 2025-01-23 03:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 00:58:05' and `end` < '2025-01-23 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-23 03:58:17] Production.INFO: count ==211 [2025-01-23 03:58:17] Production.ERROR: pbx CDR StartTime 2025-01-23 00:58:05 - End Time 2025-01-23 03:58:05 [2025-01-23 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309725', 'tblTempUsageDetail_20' ) start [2025-01-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309725', 'tblTempUsageDetail_20' ) end [2025-01-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309725', 'tblTempVendorCDR_20' ) start [2025-01-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309725', 'tblTempVendorCDR_20' ) end [2025-01-23 03:58:17] Production.INFO: ProcessCDR(1,14309725,1,1,2) [2025-01-23 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309725', 'tblTempUsageDetail_20' ) start [2025-01-23 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309725', 'tblTempUsageDetail_20' ) end [2025-01-23 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:58:20] Production.INFO: ==14139== Releasing lock... [2025-01-23 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:58:20] Production.INFO: 29 MB #Memory Used# [2025-01-23 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 00:59:06 [end_date_ymd] => 2025-01-23 03:59:06 [RateCDR] => 1 ) [2025-01-23 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 00:59:06' and `end` < '2025-01-23 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 03:59:18] Production.INFO: count ==211 [2025-01-23 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 00:59:06 - End Time 2025-01-23 03:59:06 [2025-01-23 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309730', 'tblTempUsageDetail_20' ) start [2025-01-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309730', 'tblTempUsageDetail_20' ) end [2025-01-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309730', 'tblTempVendorCDR_20' ) start [2025-01-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309730', 'tblTempVendorCDR_20' ) end [2025-01-23 03:59:18] Production.INFO: ProcessCDR(1,14309730,1,1,2) [2025-01-23 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309730', 'tblTempUsageDetail_20' ) start [2025-01-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309730', 'tblTempUsageDetail_20' ) end [2025-01-23 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 03:59:21] Production.INFO: ==14219== Releasing lock... [2025-01-23 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 03:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:00:07 [end_date_ymd] => 2025-01-23 04:00:07 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:00:07' and `end` < '2025-01-23 04: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-23 04:00:19] Production.INFO: count ==213 [2025-01-23 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:00:07 - End Time 2025-01-23 04:00:07 [2025-01-23 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309737', 'tblTempUsageDetail_20' ) start [2025-01-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309737', 'tblTempUsageDetail_20' ) end [2025-01-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309737', 'tblTempVendorCDR_20' ) start [2025-01-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309737', 'tblTempVendorCDR_20' ) end [2025-01-23 04:00:19] Production.INFO: ProcessCDR(1,14309737,1,1,2) [2025-01-23 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309737', 'tblTempUsageDetail_20' ) start [2025-01-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309737', 'tblTempUsageDetail_20' ) end [2025-01-23 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:00:22] Production.INFO: ==14306== Releasing lock... [2025-01-23 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:01:05 [end_date_ymd] => 2025-01-23 04:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:01:05' and `end` < '2025-01-23 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-23 04:01:18] Production.INFO: count ==213 [2025-01-23 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:01:05 - End Time 2025-01-23 04:01:05 [2025-01-23 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309742', 'tblTempUsageDetail_20' ) start [2025-01-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309742', 'tblTempUsageDetail_20' ) end [2025-01-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309742', 'tblTempVendorCDR_20' ) start [2025-01-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309742', 'tblTempVendorCDR_20' ) end [2025-01-23 04:01:18] Production.INFO: ProcessCDR(1,14309742,1,1,2) [2025-01-23 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309742', 'tblTempUsageDetail_20' ) start [2025-01-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309742', 'tblTempUsageDetail_20' ) end [2025-01-23 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:01:21] Production.INFO: ==14402== Releasing lock... [2025-01-23 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:02:05 [end_date_ymd] => 2025-01-23 04:02:05 [RateCDR] => 1 ) [2025-01-23 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:02:05' and `end` < '2025-01-23 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:02:17] Production.INFO: count ==209 [2025-01-23 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:02:05 - End Time 2025-01-23 04:02:05 [2025-01-23 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309747', 'tblTempUsageDetail_20' ) start [2025-01-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309747', 'tblTempUsageDetail_20' ) end [2025-01-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309747', 'tblTempVendorCDR_20' ) start [2025-01-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309747', 'tblTempVendorCDR_20' ) end [2025-01-23 04:02:17] Production.INFO: ProcessCDR(1,14309747,1,1,2) [2025-01-23 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309747', 'tblTempUsageDetail_20' ) start [2025-01-23 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309747', 'tblTempUsageDetail_20' ) end [2025-01-23 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:02:20] Production.INFO: ==14506== Releasing lock... [2025-01-23 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:02:20] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:03:05 [end_date_ymd] => 2025-01-23 04:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:03:05' and `end` < '2025-01-23 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-23 04:03:17] Production.INFO: count ==209 [2025-01-23 04:03:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:03:05 - End Time 2025-01-23 04:03:05 [2025-01-23 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309752', 'tblTempUsageDetail_20' ) start [2025-01-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309752', 'tblTempUsageDetail_20' ) end [2025-01-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309752', 'tblTempVendorCDR_20' ) start [2025-01-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309752', 'tblTempVendorCDR_20' ) end [2025-01-23 04:03:17] Production.INFO: ProcessCDR(1,14309752,1,1,2) [2025-01-23 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309752', 'tblTempUsageDetail_20' ) start [2025-01-23 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309752', 'tblTempUsageDetail_20' ) end [2025-01-23 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:03:21] Production.INFO: ==14600== Releasing lock... [2025-01-23 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:04:05 [end_date_ymd] => 2025-01-23 04:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:04:05' and `end` < '2025-01-23 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-23 04:04:18] Production.INFO: count ==209 [2025-01-23 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:04:05 - End Time 2025-01-23 04:04:05 [2025-01-23 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309757', 'tblTempUsageDetail_20' ) start [2025-01-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309757', 'tblTempUsageDetail_20' ) end [2025-01-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309757', 'tblTempVendorCDR_20' ) start [2025-01-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309757', 'tblTempVendorCDR_20' ) end [2025-01-23 04:04:18] Production.INFO: ProcessCDR(1,14309757,1,1,2) [2025-01-23 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309757', 'tblTempUsageDetail_20' ) start [2025-01-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309757', 'tblTempUsageDetail_20' ) end [2025-01-23 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:04:21] Production.INFO: ==14679== Releasing lock... [2025-01-23 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:05:05 [end_date_ymd] => 2025-01-23 04:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:05:05' and `end` < '2025-01-23 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-23 04:05:18] Production.INFO: count ==206 [2025-01-23 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:05:05 - End Time 2025-01-23 04:05:05 [2025-01-23 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309762', 'tblTempUsageDetail_20' ) start [2025-01-23 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309762', 'tblTempUsageDetail_20' ) end [2025-01-23 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309762', 'tblTempVendorCDR_20' ) start [2025-01-23 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309762', 'tblTempVendorCDR_20' ) end [2025-01-23 04:05:18] Production.INFO: ProcessCDR(1,14309762,1,1,2) [2025-01-23 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309762', 'tblTempUsageDetail_20' ) start [2025-01-23 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309762', 'tblTempUsageDetail_20' ) end [2025-01-23 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:05:21] Production.INFO: ==14755== Releasing lock... [2025-01-23 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:06:06 [end_date_ymd] => 2025-01-23 04:06:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:06:06' and `end` < '2025-01-23 04: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-23 04:06:18] Production.INFO: count ==204 [2025-01-23 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:06:06 - End Time 2025-01-23 04:06:06 [2025-01-23 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309767', 'tblTempUsageDetail_20' ) start [2025-01-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309767', 'tblTempUsageDetail_20' ) end [2025-01-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309767', 'tblTempVendorCDR_20' ) start [2025-01-23 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309767', 'tblTempVendorCDR_20' ) end [2025-01-23 04:06:18] Production.INFO: ProcessCDR(1,14309767,1,1,2) [2025-01-23 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309767', 'tblTempUsageDetail_20' ) start [2025-01-23 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309767', 'tblTempUsageDetail_20' ) end [2025-01-23 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:06:22] Production.INFO: ==14837== Releasing lock... [2025-01-23 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:07:05 [end_date_ymd] => 2025-01-23 04:07:05 [RateCDR] => 1 ) [2025-01-23 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:07:05' and `end` < '2025-01-23 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:07:18] Production.INFO: count ==201 [2025-01-23 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:07:05 - End Time 2025-01-23 04:07:05 [2025-01-23 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309772', 'tblTempUsageDetail_20' ) start [2025-01-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309772', 'tblTempUsageDetail_20' ) end [2025-01-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309772', 'tblTempVendorCDR_20' ) start [2025-01-23 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309772', 'tblTempVendorCDR_20' ) end [2025-01-23 04:07:18] Production.INFO: ProcessCDR(1,14309772,1,1,2) [2025-01-23 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309772', 'tblTempUsageDetail_20' ) start [2025-01-23 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309772', 'tblTempUsageDetail_20' ) end [2025-01-23 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:07:21] Production.INFO: ==14920== Releasing lock... [2025-01-23 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:08:05 [end_date_ymd] => 2025-01-23 04:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:08:05' and `end` < '2025-01-23 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-23 04:08:18] Production.INFO: count ==199 [2025-01-23 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:08:05 - End Time 2025-01-23 04:08:05 [2025-01-23 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309777', 'tblTempUsageDetail_20' ) start [2025-01-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309777', 'tblTempUsageDetail_20' ) end [2025-01-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309777', 'tblTempVendorCDR_20' ) start [2025-01-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309777', 'tblTempVendorCDR_20' ) end [2025-01-23 04:08:18] Production.INFO: ProcessCDR(1,14309777,1,1,2) [2025-01-23 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309777', 'tblTempUsageDetail_20' ) start [2025-01-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309777', 'tblTempUsageDetail_20' ) end [2025-01-23 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:08:21] Production.INFO: ==14998== Releasing lock... [2025-01-23 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:09:05 [end_date_ymd] => 2025-01-23 04:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:09:05' and `end` < '2025-01-23 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-23 04:09:18] Production.INFO: count ==199 [2025-01-23 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:09:05 - End Time 2025-01-23 04:09:05 [2025-01-23 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309782', 'tblTempUsageDetail_20' ) start [2025-01-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309782', 'tblTempUsageDetail_20' ) end [2025-01-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309782', 'tblTempVendorCDR_20' ) start [2025-01-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309782', 'tblTempVendorCDR_20' ) end [2025-01-23 04:09:18] Production.INFO: ProcessCDR(1,14309782,1,1,2) [2025-01-23 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309782', 'tblTempUsageDetail_20' ) start [2025-01-23 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309782', 'tblTempUsageDetail_20' ) end [2025-01-23 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:09:22] Production.INFO: ==15089== Releasing lock... [2025-01-23 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:10:07 [end_date_ymd] => 2025-01-23 04:10:07 [RateCDR] => 1 ) [2025-01-23 04:10: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-23 01:10:07' and `end` < '2025-01-23 04:10: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-23 04:10:19] Production.INFO: count ==205 [2025-01-23 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:10:07 - End Time 2025-01-23 04:10:07 [2025-01-23 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309788', 'tblTempUsageDetail_20' ) start [2025-01-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309788', 'tblTempUsageDetail_20' ) end [2025-01-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309788', 'tblTempVendorCDR_20' ) start [2025-01-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309788', 'tblTempVendorCDR_20' ) end [2025-01-23 04:10:19] Production.INFO: ProcessCDR(1,14309788,1,1,2) [2025-01-23 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309788', 'tblTempUsageDetail_20' ) start [2025-01-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309788', 'tblTempUsageDetail_20' ) end [2025-01-23 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:10:22] Production.INFO: ==15197== Releasing lock... [2025-01-23 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:11:05 [end_date_ymd] => 2025-01-23 04:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:11:05' and `end` < '2025-01-23 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-23 04:11:18] Production.INFO: count ==205 [2025-01-23 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:11:05 - End Time 2025-01-23 04:11:05 [2025-01-23 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309793', 'tblTempUsageDetail_20' ) start [2025-01-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309793', 'tblTempUsageDetail_20' ) end [2025-01-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309793', 'tblTempVendorCDR_20' ) start [2025-01-23 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309793', 'tblTempVendorCDR_20' ) end [2025-01-23 04:11:18] Production.INFO: ProcessCDR(1,14309793,1,1,2) [2025-01-23 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309793', 'tblTempUsageDetail_20' ) start [2025-01-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309793', 'tblTempUsageDetail_20' ) end [2025-01-23 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:11:21] Production.INFO: ==15301== Releasing lock... [2025-01-23 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:12:05 [end_date_ymd] => 2025-01-23 04:12:05 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:12:05' and `end` < '2025-01-23 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-23 04:12:18] Production.INFO: count ==207 [2025-01-23 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:12:05 - End Time 2025-01-23 04:12:05 [2025-01-23 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309798', 'tblTempUsageDetail_20' ) start [2025-01-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309798', 'tblTempUsageDetail_20' ) end [2025-01-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309798', 'tblTempVendorCDR_20' ) start [2025-01-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309798', 'tblTempVendorCDR_20' ) end [2025-01-23 04:12:18] Production.INFO: ProcessCDR(1,14309798,1,1,2) [2025-01-23 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309798', 'tblTempUsageDetail_20' ) start [2025-01-23 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309798', 'tblTempUsageDetail_20' ) end [2025-01-23 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:12:22] Production.INFO: ==15412== Releasing lock... [2025-01-23 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:13:05 [end_date_ymd] => 2025-01-23 04:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:13:05' and `end` < '2025-01-23 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-23 04:13:17] Production.INFO: count ==207 [2025-01-23 04:13:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:13:05 - End Time 2025-01-23 04:13:05 [2025-01-23 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309803', 'tblTempUsageDetail_20' ) start [2025-01-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309803', 'tblTempUsageDetail_20' ) end [2025-01-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309803', 'tblTempVendorCDR_20' ) start [2025-01-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309803', 'tblTempVendorCDR_20' ) end [2025-01-23 04:13:17] Production.INFO: ProcessCDR(1,14309803,1,1,2) [2025-01-23 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309803', 'tblTempUsageDetail_20' ) start [2025-01-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309803', 'tblTempUsageDetail_20' ) end [2025-01-23 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:13:21] Production.INFO: ==15520== Releasing lock... [2025-01-23 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:14:05 [end_date_ymd] => 2025-01-23 04:14:05 [RateCDR] => 1 ) [2025-01-23 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:14:05' and `end` < '2025-01-23 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:14:18] Production.INFO: count ==207 [2025-01-23 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:14:05 - End Time 2025-01-23 04:14:05 [2025-01-23 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309808', 'tblTempUsageDetail_20' ) start [2025-01-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309808', 'tblTempUsageDetail_20' ) end [2025-01-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309808', 'tblTempVendorCDR_20' ) start [2025-01-23 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309808', 'tblTempVendorCDR_20' ) end [2025-01-23 04:14:18] Production.INFO: ProcessCDR(1,14309808,1,1,2) [2025-01-23 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309808', 'tblTempUsageDetail_20' ) start [2025-01-23 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309808', 'tblTempUsageDetail_20' ) end [2025-01-23 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:14:21] Production.INFO: ==15626== Releasing lock... [2025-01-23 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:15:05 [end_date_ymd] => 2025-01-23 04:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:15:05' and `end` < '2025-01-23 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-23 04:15:18] Production.INFO: count ==207 [2025-01-23 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:15:05 - End Time 2025-01-23 04:15:05 [2025-01-23 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309813', 'tblTempUsageDetail_20' ) start [2025-01-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309813', 'tblTempUsageDetail_20' ) end [2025-01-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309813', 'tblTempVendorCDR_20' ) start [2025-01-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309813', 'tblTempVendorCDR_20' ) end [2025-01-23 04:15:18] Production.INFO: ProcessCDR(1,14309813,1,1,2) [2025-01-23 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309813', 'tblTempUsageDetail_20' ) start [2025-01-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309813', 'tblTempUsageDetail_20' ) end [2025-01-23 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:15:21] Production.INFO: ==15737== Releasing lock... [2025-01-23 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:16:05 [end_date_ymd] => 2025-01-23 04:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:16:05' and `end` < '2025-01-23 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-23 04:16:18] Production.INFO: count ==207 [2025-01-23 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:16:05 - End Time 2025-01-23 04:16:05 [2025-01-23 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309818', 'tblTempUsageDetail_20' ) start [2025-01-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309818', 'tblTempUsageDetail_20' ) end [2025-01-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309818', 'tblTempVendorCDR_20' ) start [2025-01-23 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309818', 'tblTempVendorCDR_20' ) end [2025-01-23 04:16:18] Production.INFO: ProcessCDR(1,14309818,1,1,2) [2025-01-23 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309818', 'tblTempUsageDetail_20' ) start [2025-01-23 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309818', 'tblTempUsageDetail_20' ) end [2025-01-23 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:16:21] Production.INFO: ==15849== Releasing lock... [2025-01-23 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:17:05 [end_date_ymd] => 2025-01-23 04:17:05 [RateCDR] => 1 ) [2025-01-23 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:17:05' and `end` < '2025-01-23 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:17:18] Production.INFO: count ==206 [2025-01-23 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:17:05 - End Time 2025-01-23 04:17:05 [2025-01-23 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309823', 'tblTempUsageDetail_20' ) start [2025-01-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309823', 'tblTempUsageDetail_20' ) end [2025-01-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309823', 'tblTempVendorCDR_20' ) start [2025-01-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309823', 'tblTempVendorCDR_20' ) end [2025-01-23 04:17:18] Production.INFO: ProcessCDR(1,14309823,1,1,2) [2025-01-23 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309823', 'tblTempUsageDetail_20' ) start [2025-01-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309823', 'tblTempUsageDetail_20' ) end [2025-01-23 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:17:21] Production.INFO: ==15954== Releasing lock... [2025-01-23 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:18:06 [end_date_ymd] => 2025-01-23 04:18:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:18:06' and `end` < '2025-01-23 04: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-23 04:18:19] Production.INFO: count ==206 [2025-01-23 04:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:18:06 - End Time 2025-01-23 04:18:06 [2025-01-23 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309828', 'tblTempUsageDetail_20' ) start [2025-01-23 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309828', 'tblTempUsageDetail_20' ) end [2025-01-23 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309828', 'tblTempVendorCDR_20' ) start [2025-01-23 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309828', 'tblTempVendorCDR_20' ) end [2025-01-23 04:18:19] Production.INFO: ProcessCDR(1,14309828,1,1,2) [2025-01-23 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309828', 'tblTempUsageDetail_20' ) start [2025-01-23 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309828', 'tblTempUsageDetail_20' ) end [2025-01-23 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:18:22] Production.INFO: ==16112== Releasing lock... [2025-01-23 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:19:06 [end_date_ymd] => 2025-01-23 04:19:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:19:06' and `end` < '2025-01-23 04: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-23 04:19:19] Production.INFO: count ==206 [2025-01-23 04:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:19:06 - End Time 2025-01-23 04:19:06 [2025-01-23 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309833', 'tblTempUsageDetail_20' ) start [2025-01-23 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309833', 'tblTempUsageDetail_20' ) end [2025-01-23 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309833', 'tblTempVendorCDR_20' ) start [2025-01-23 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309833', 'tblTempVendorCDR_20' ) end [2025-01-23 04:19:19] Production.INFO: ProcessCDR(1,14309833,1,1,2) [2025-01-23 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309833', 'tblTempUsageDetail_20' ) start [2025-01-23 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309833', 'tblTempUsageDetail_20' ) end [2025-01-23 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:19:22] Production.INFO: ==16217== Releasing lock... [2025-01-23 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:19:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:20:05 [end_date_ymd] => 2025-01-23 04:20:05 [RateCDR] => 1 ) [2025-01-23 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:20:05' and `end` < '2025-01-23 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:20:18] Production.INFO: count ==206 [2025-01-23 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:20:05 - End Time 2025-01-23 04:20:05 [2025-01-23 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309839', 'tblTempUsageDetail_20' ) start [2025-01-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309839', 'tblTempUsageDetail_20' ) end [2025-01-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309839', 'tblTempVendorCDR_20' ) start [2025-01-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309839', 'tblTempVendorCDR_20' ) end [2025-01-23 04:20:18] Production.INFO: ProcessCDR(1,14309839,1,1,2) [2025-01-23 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309839', 'tblTempUsageDetail_20' ) start [2025-01-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309839', 'tblTempUsageDetail_20' ) end [2025-01-23 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:20:21] Production.INFO: ==16323== Releasing lock... [2025-01-23 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:21:05 [end_date_ymd] => 2025-01-23 04:21:05 [RateCDR] => 1 ) [2025-01-23 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:21:05' and `end` < '2025-01-23 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:21:18] Production.INFO: count ==206 [2025-01-23 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:21:05 - End Time 2025-01-23 04:21:05 [2025-01-23 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309844', 'tblTempUsageDetail_20' ) start [2025-01-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309844', 'tblTempUsageDetail_20' ) end [2025-01-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309844', 'tblTempVendorCDR_20' ) start [2025-01-23 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309844', 'tblTempVendorCDR_20' ) end [2025-01-23 04:21:18] Production.INFO: ProcessCDR(1,14309844,1,1,2) [2025-01-23 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309844', 'tblTempUsageDetail_20' ) start [2025-01-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309844', 'tblTempUsageDetail_20' ) end [2025-01-23 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:21:21] Production.INFO: ==16439== Releasing lock... [2025-01-23 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:22:06 [end_date_ymd] => 2025-01-23 04:22:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:22:06' and `end` < '2025-01-23 04: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-23 04:22:19] Production.INFO: count ==206 [2025-01-23 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:22:06 - End Time 2025-01-23 04:22:06 [2025-01-23 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309849', 'tblTempUsageDetail_20' ) start [2025-01-23 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309849', 'tblTempUsageDetail_20' ) end [2025-01-23 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309849', 'tblTempVendorCDR_20' ) start [2025-01-23 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309849', 'tblTempVendorCDR_20' ) end [2025-01-23 04:22:19] Production.INFO: ProcessCDR(1,14309849,1,1,2) [2025-01-23 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309849', 'tblTempUsageDetail_20' ) start [2025-01-23 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309849', 'tblTempUsageDetail_20' ) end [2025-01-23 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:22:22] Production.INFO: ==16552== Releasing lock... [2025-01-23 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:23:05 [end_date_ymd] => 2025-01-23 04:23:05 [RateCDR] => 1 ) [2025-01-23 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:23:05' and `end` < '2025-01-23 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:23:18] Production.INFO: count ==206 [2025-01-23 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:23:05 - End Time 2025-01-23 04:23:05 [2025-01-23 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309854', 'tblTempUsageDetail_20' ) start [2025-01-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309854', 'tblTempUsageDetail_20' ) end [2025-01-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309854', 'tblTempVendorCDR_20' ) start [2025-01-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309854', 'tblTempVendorCDR_20' ) end [2025-01-23 04:23:18] Production.INFO: ProcessCDR(1,14309854,1,1,2) [2025-01-23 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309854', 'tblTempUsageDetail_20' ) start [2025-01-23 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309854', 'tblTempUsageDetail_20' ) end [2025-01-23 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:23:22] Production.INFO: ==16659== Releasing lock... [2025-01-23 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:23:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:24:06 [end_date_ymd] => 2025-01-23 04:24:06 [RateCDR] => 1 ) [2025-01-23 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-23 01:24:06' and `end` < '2025-01-23 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-23 04:24:18] Production.INFO: count ==206 [2025-01-23 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:24:06 - End Time 2025-01-23 04:24:06 [2025-01-23 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309859', 'tblTempUsageDetail_20' ) start [2025-01-23 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309859', 'tblTempUsageDetail_20' ) end [2025-01-23 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309859', 'tblTempVendorCDR_20' ) start [2025-01-23 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309859', 'tblTempVendorCDR_20' ) end [2025-01-23 04:24:18] Production.INFO: ProcessCDR(1,14309859,1,1,2) [2025-01-23 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309859', 'tblTempUsageDetail_20' ) start [2025-01-23 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309859', 'tblTempUsageDetail_20' ) end [2025-01-23 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:24:22] Production.INFO: ==16766== Releasing lock... [2025-01-23 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:24:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:25:05 [end_date_ymd] => 2025-01-23 04:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:25:05' and `end` < '2025-01-23 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-23 04:25:18] Production.INFO: count ==206 [2025-01-23 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:25:05 - End Time 2025-01-23 04:25:05 [2025-01-23 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309864', 'tblTempUsageDetail_20' ) start [2025-01-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309864', 'tblTempUsageDetail_20' ) end [2025-01-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309864', 'tblTempVendorCDR_20' ) start [2025-01-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309864', 'tblTempVendorCDR_20' ) end [2025-01-23 04:25:18] Production.INFO: ProcessCDR(1,14309864,1,1,2) [2025-01-23 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309864', 'tblTempUsageDetail_20' ) start [2025-01-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309864', 'tblTempUsageDetail_20' ) end [2025-01-23 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:25:21] Production.INFO: ==16881== Releasing lock... [2025-01-23 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:26:05 [end_date_ymd] => 2025-01-23 04:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:26:05' and `end` < '2025-01-23 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-23 04:26:17] Production.INFO: count ==206 [2025-01-23 04:26:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:26:05 - End Time 2025-01-23 04:26:05 [2025-01-23 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309869', 'tblTempUsageDetail_20' ) start [2025-01-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309869', 'tblTempUsageDetail_20' ) end [2025-01-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309869', 'tblTempVendorCDR_20' ) start [2025-01-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309869', 'tblTempVendorCDR_20' ) end [2025-01-23 04:26:17] Production.INFO: ProcessCDR(1,14309869,1,1,2) [2025-01-23 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309869', 'tblTempUsageDetail_20' ) start [2025-01-23 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309869', 'tblTempUsageDetail_20' ) end [2025-01-23 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:26:20] Production.INFO: ==16986== Releasing lock... [2025-01-23 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:26:20] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:27:05 [end_date_ymd] => 2025-01-23 04:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:27:05' and `end` < '2025-01-23 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-23 04:27:17] Production.INFO: count ==205 [2025-01-23 04:27:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:27:05 - End Time 2025-01-23 04:27:05 [2025-01-23 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309874', 'tblTempUsageDetail_20' ) start [2025-01-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309874', 'tblTempUsageDetail_20' ) end [2025-01-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309874', 'tblTempVendorCDR_20' ) start [2025-01-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309874', 'tblTempVendorCDR_20' ) end [2025-01-23 04:27:17] Production.INFO: ProcessCDR(1,14309874,1,1,2) [2025-01-23 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309874', 'tblTempUsageDetail_20' ) start [2025-01-23 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309874', 'tblTempUsageDetail_20' ) end [2025-01-23 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:27:20] Production.INFO: ==17097== Releasing lock... [2025-01-23 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:28:06 [end_date_ymd] => 2025-01-23 04:28:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:28:06' and `end` < '2025-01-23 04: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-23 04:28:19] Production.INFO: count ==205 [2025-01-23 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:28:06 - End Time 2025-01-23 04:28:06 [2025-01-23 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309879', 'tblTempUsageDetail_20' ) start [2025-01-23 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309879', 'tblTempUsageDetail_20' ) end [2025-01-23 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309879', 'tblTempVendorCDR_20' ) start [2025-01-23 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309879', 'tblTempVendorCDR_20' ) end [2025-01-23 04:28:19] Production.INFO: ProcessCDR(1,14309879,1,1,2) [2025-01-23 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309879', 'tblTempUsageDetail_20' ) start [2025-01-23 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309879', 'tblTempUsageDetail_20' ) end [2025-01-23 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:28:22] Production.INFO: ==17207== Releasing lock... [2025-01-23 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:28:22] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:29:05 [end_date_ymd] => 2025-01-23 04:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:29:05' and `end` < '2025-01-23 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-23 04:29:18] Production.INFO: count ==205 [2025-01-23 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:29:05 - End Time 2025-01-23 04:29:05 [2025-01-23 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309884', 'tblTempUsageDetail_20' ) start [2025-01-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309884', 'tblTempUsageDetail_20' ) end [2025-01-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309884', 'tblTempVendorCDR_20' ) start [2025-01-23 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309884', 'tblTempVendorCDR_20' ) end [2025-01-23 04:29:18] Production.INFO: ProcessCDR(1,14309884,1,1,2) [2025-01-23 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309884', 'tblTempUsageDetail_20' ) start [2025-01-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309884', 'tblTempUsageDetail_20' ) end [2025-01-23 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:29:21] Production.INFO: ==17295== Releasing lock... [2025-01-23 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-23 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:30:06 [end_date_ymd] => 2025-01-23 04:30:06 [RateCDR] => 1 ) [2025-01-23 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:30:06' and `end` < '2025-01-23 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:30:18] Production.INFO: count ==195 [2025-01-23 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:30:06 - End Time 2025-01-23 04:30:06 [2025-01-23 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309890', 'tblTempUsageDetail_20' ) start [2025-01-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309890', 'tblTempUsageDetail_20' ) end [2025-01-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309890', 'tblTempVendorCDR_20' ) start [2025-01-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309890', 'tblTempVendorCDR_20' ) end [2025-01-23 04:30:18] Production.INFO: ProcessCDR(1,14309890,1,1,2) [2025-01-23 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309890', 'tblTempUsageDetail_20' ) start [2025-01-23 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309890', 'tblTempUsageDetail_20' ) end [2025-01-23 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:30:22] Production.INFO: ==17372== Releasing lock... [2025-01-23 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:31:06 [end_date_ymd] => 2025-01-23 04:31:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:31:06' and `end` < '2025-01-23 04: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-23 04:31:19] Production.INFO: count ==186 [2025-01-23 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:31:06 - End Time 2025-01-23 04:31:06 [2025-01-23 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309896', 'tblTempUsageDetail_20' ) start [2025-01-23 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309896', 'tblTempUsageDetail_20' ) end [2025-01-23 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309896', 'tblTempVendorCDR_20' ) start [2025-01-23 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309896', 'tblTempVendorCDR_20' ) end [2025-01-23 04:31:19] Production.INFO: ProcessCDR(1,14309896,1,1,2) [2025-01-23 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309896', 'tblTempUsageDetail_20' ) start [2025-01-23 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309896', 'tblTempUsageDetail_20' ) end [2025-01-23 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:31:23] Production.INFO: ==17462== Releasing lock... [2025-01-23 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:32:05 [end_date_ymd] => 2025-01-23 04:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:32:05' and `end` < '2025-01-23 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-23 04:32:17] Production.INFO: count ==184 [2025-01-23 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:32:05 - End Time 2025-01-23 04:32:05 [2025-01-23 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309901', 'tblTempUsageDetail_20' ) start [2025-01-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309901', 'tblTempUsageDetail_20' ) end [2025-01-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309901', 'tblTempVendorCDR_20' ) start [2025-01-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309901', 'tblTempVendorCDR_20' ) end [2025-01-23 04:32:17] Production.INFO: ProcessCDR(1,14309901,1,1,2) [2025-01-23 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309901', 'tblTempUsageDetail_20' ) start [2025-01-23 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309901', 'tblTempUsageDetail_20' ) end [2025-01-23 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:32:21] Production.INFO: ==17592== Releasing lock... [2025-01-23 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:33:05 [end_date_ymd] => 2025-01-23 04:33:05 [RateCDR] => 1 ) [2025-01-23 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:33:05' and `end` < '2025-01-23 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:33:18] Production.INFO: count ==184 [2025-01-23 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:33:05 - End Time 2025-01-23 04:33:05 [2025-01-23 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309906', 'tblTempUsageDetail_20' ) start [2025-01-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309906', 'tblTempUsageDetail_20' ) end [2025-01-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309906', 'tblTempVendorCDR_20' ) start [2025-01-23 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309906', 'tblTempVendorCDR_20' ) end [2025-01-23 04:33:18] Production.INFO: ProcessCDR(1,14309906,1,1,2) [2025-01-23 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309906', 'tblTempUsageDetail_20' ) start [2025-01-23 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309906', 'tblTempUsageDetail_20' ) end [2025-01-23 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:33:21] Production.INFO: ==17712== Releasing lock... [2025-01-23 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:34:06 [end_date_ymd] => 2025-01-23 04:34:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:34:06' and `end` < '2025-01-23 04: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-23 04:34:19] Production.INFO: count ==184 [2025-01-23 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:34:06 - End Time 2025-01-23 04:34:06 [2025-01-23 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309911', 'tblTempUsageDetail_20' ) start [2025-01-23 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309911', 'tblTempUsageDetail_20' ) end [2025-01-23 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309911', 'tblTempVendorCDR_20' ) start [2025-01-23 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309911', 'tblTempVendorCDR_20' ) end [2025-01-23 04:34:19] Production.INFO: ProcessCDR(1,14309911,1,1,2) [2025-01-23 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309911', 'tblTempUsageDetail_20' ) start [2025-01-23 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309911', 'tblTempUsageDetail_20' ) end [2025-01-23 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:34:22] Production.INFO: ==17799== Releasing lock... [2025-01-23 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:35:05 [end_date_ymd] => 2025-01-23 04:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:35:05' and `end` < '2025-01-23 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-23 04:35:18] Production.INFO: count ==183 [2025-01-23 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:35:05 - End Time 2025-01-23 04:35:05 [2025-01-23 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309916', 'tblTempUsageDetail_20' ) start [2025-01-23 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309916', 'tblTempUsageDetail_20' ) end [2025-01-23 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309916', 'tblTempVendorCDR_20' ) start [2025-01-23 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309916', 'tblTempVendorCDR_20' ) end [2025-01-23 04:35:18] Production.INFO: ProcessCDR(1,14309916,1,1,2) [2025-01-23 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309916', 'tblTempUsageDetail_20' ) start [2025-01-23 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309916', 'tblTempUsageDetail_20' ) end [2025-01-23 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:35:21] Production.INFO: ==17882== Releasing lock... [2025-01-23 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:36:05 [end_date_ymd] => 2025-01-23 04:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:36:05' and `end` < '2025-01-23 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-23 04:36:18] Production.INFO: count ==182 [2025-01-23 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:36:05 - End Time 2025-01-23 04:36:05 [2025-01-23 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309921', 'tblTempUsageDetail_20' ) start [2025-01-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309921', 'tblTempUsageDetail_20' ) end [2025-01-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309921', 'tblTempVendorCDR_20' ) start [2025-01-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309921', 'tblTempVendorCDR_20' ) end [2025-01-23 04:36:18] Production.INFO: ProcessCDR(1,14309921,1,1,2) [2025-01-23 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309921', 'tblTempUsageDetail_20' ) start [2025-01-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309921', 'tblTempUsageDetail_20' ) end [2025-01-23 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:36:21] Production.INFO: ==17960== Releasing lock... [2025-01-23 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:37:05 [end_date_ymd] => 2025-01-23 04:37:05 [RateCDR] => 1 ) [2025-01-23 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:37:05' and `end` < '2025-01-23 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:37:18] Production.INFO: count ==182 [2025-01-23 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:37:05 - End Time 2025-01-23 04:37:05 [2025-01-23 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309926', 'tblTempUsageDetail_20' ) start [2025-01-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309926', 'tblTempUsageDetail_20' ) end [2025-01-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309926', 'tblTempVendorCDR_20' ) start [2025-01-23 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309926', 'tblTempVendorCDR_20' ) end [2025-01-23 04:37:18] Production.INFO: ProcessCDR(1,14309926,1,1,2) [2025-01-23 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309926', 'tblTempUsageDetail_20' ) start [2025-01-23 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309926', 'tblTempUsageDetail_20' ) end [2025-01-23 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:37:21] Production.INFO: ==18034== Releasing lock... [2025-01-23 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:38:06 [end_date_ymd] => 2025-01-23 04:38:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:38:06' and `end` < '2025-01-23 04: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-23 04:38:18] Production.INFO: count ==182 [2025-01-23 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:38:06 - End Time 2025-01-23 04:38:06 [2025-01-23 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309931', 'tblTempUsageDetail_20' ) start [2025-01-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309931', 'tblTempUsageDetail_20' ) end [2025-01-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309931', 'tblTempVendorCDR_20' ) start [2025-01-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309931', 'tblTempVendorCDR_20' ) end [2025-01-23 04:38:18] Production.INFO: ProcessCDR(1,14309931,1,1,2) [2025-01-23 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309931', 'tblTempUsageDetail_20' ) start [2025-01-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309931', 'tblTempUsageDetail_20' ) end [2025-01-23 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:38:21] Production.INFO: ==18108== Releasing lock... [2025-01-23 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:39:05 [end_date_ymd] => 2025-01-23 04:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:39:05' and `end` < '2025-01-23 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-23 04:39:18] Production.INFO: count ==182 [2025-01-23 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:39:05 - End Time 2025-01-23 04:39:05 [2025-01-23 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309936', 'tblTempUsageDetail_20' ) start [2025-01-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309936', 'tblTempUsageDetail_20' ) end [2025-01-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309936', 'tblTempVendorCDR_20' ) start [2025-01-23 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309936', 'tblTempVendorCDR_20' ) end [2025-01-23 04:39:18] Production.INFO: ProcessCDR(1,14309936,1,1,2) [2025-01-23 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309936', 'tblTempUsageDetail_20' ) start [2025-01-23 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309936', 'tblTempUsageDetail_20' ) end [2025-01-23 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:39:21] Production.INFO: ==18183== Releasing lock... [2025-01-23 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:40:05 [end_date_ymd] => 2025-01-23 04:40:05 [RateCDR] => 1 ) [2025-01-23 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:40:05' and `end` < '2025-01-23 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:40:18] Production.INFO: count ==184 [2025-01-23 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:40:05 - End Time 2025-01-23 04:40:05 [2025-01-23 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309942', 'tblTempUsageDetail_20' ) start [2025-01-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309942', 'tblTempUsageDetail_20' ) end [2025-01-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309942', 'tblTempVendorCDR_20' ) start [2025-01-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309942', 'tblTempVendorCDR_20' ) end [2025-01-23 04:40:18] Production.INFO: ProcessCDR(1,14309942,1,1,2) [2025-01-23 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309942', 'tblTempUsageDetail_20' ) start [2025-01-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309942', 'tblTempUsageDetail_20' ) end [2025-01-23 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:40:21] Production.INFO: ==18261== Releasing lock... [2025-01-23 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:41:05 [end_date_ymd] => 2025-01-23 04:41:05 [RateCDR] => 1 ) [2025-01-23 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:41:05' and `end` < '2025-01-23 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:41:17] Production.INFO: count ==184 [2025-01-23 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-23 01:41:05 - End Time 2025-01-23 04:41:05 [2025-01-23 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309947', 'tblTempUsageDetail_20' ) start [2025-01-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309947', 'tblTempUsageDetail_20' ) end [2025-01-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309947', 'tblTempVendorCDR_20' ) start [2025-01-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309947', 'tblTempVendorCDR_20' ) end [2025-01-23 04:41:17] Production.INFO: ProcessCDR(1,14309947,1,1,2) [2025-01-23 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309947', 'tblTempUsageDetail_20' ) start [2025-01-23 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309947', 'tblTempUsageDetail_20' ) end [2025-01-23 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:41:20] Production.INFO: ==18340== Releasing lock... [2025-01-23 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:42:04 [end_date_ymd] => 2025-01-23 04:42:04 [RateCDR] => 1 ) [2025-01-23 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:42:04' and `end` < '2025-01-23 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:42:18] Production.INFO: count ==184 [2025-01-23 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:42:04 - End Time 2025-01-23 04:42:04 [2025-01-23 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309952', 'tblTempUsageDetail_20' ) start [2025-01-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309952', 'tblTempUsageDetail_20' ) end [2025-01-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309952', 'tblTempVendorCDR_20' ) start [2025-01-23 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309952', 'tblTempVendorCDR_20' ) end [2025-01-23 04:42:18] Production.INFO: ProcessCDR(1,14309952,1,1,2) [2025-01-23 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309952', 'tblTempUsageDetail_20' ) start [2025-01-23 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309952', 'tblTempUsageDetail_20' ) end [2025-01-23 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:42:21] Production.INFO: ==18413== Releasing lock... [2025-01-23 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:43:05 [end_date_ymd] => 2025-01-23 04:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:43:05' and `end` < '2025-01-23 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-23 04:43:18] Production.INFO: count ==184 [2025-01-23 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:43:05 - End Time 2025-01-23 04:43:05 [2025-01-23 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309957', 'tblTempUsageDetail_20' ) start [2025-01-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309957', 'tblTempUsageDetail_20' ) end [2025-01-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309957', 'tblTempVendorCDR_20' ) start [2025-01-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309957', 'tblTempVendorCDR_20' ) end [2025-01-23 04:43:18] Production.INFO: ProcessCDR(1,14309957,1,1,2) [2025-01-23 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309957', 'tblTempUsageDetail_20' ) start [2025-01-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309957', 'tblTempUsageDetail_20' ) end [2025-01-23 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:43:21] Production.INFO: ==18491== Releasing lock... [2025-01-23 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:44:05 [end_date_ymd] => 2025-01-23 04:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:44:05' and `end` < '2025-01-23 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-23 04:44:19] Production.INFO: count ==184 [2025-01-23 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:44:05 - End Time 2025-01-23 04:44:05 [2025-01-23 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309962', 'tblTempUsageDetail_20' ) start [2025-01-23 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309962', 'tblTempUsageDetail_20' ) end [2025-01-23 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309962', 'tblTempVendorCDR_20' ) start [2025-01-23 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309962', 'tblTempVendorCDR_20' ) end [2025-01-23 04:44:19] Production.INFO: ProcessCDR(1,14309962,1,1,2) [2025-01-23 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309962', 'tblTempUsageDetail_20' ) start [2025-01-23 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309962', 'tblTempUsageDetail_20' ) end [2025-01-23 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:44:22] Production.INFO: ==18564== Releasing lock... [2025-01-23 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:45:06 [end_date_ymd] => 2025-01-23 04:45:06 [RateCDR] => 1 ) [2025-01-23 04: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-23 01:45:06' and `end` < '2025-01-23 04: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-23 04:45:18] Production.INFO: count ==186 [2025-01-23 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 01:45:06 - End Time 2025-01-23 04:45:06 [2025-01-23 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309967', 'tblTempUsageDetail_20' ) start [2025-01-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309967', 'tblTempUsageDetail_20' ) end [2025-01-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309967', 'tblTempVendorCDR_20' ) start [2025-01-23 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309967', 'tblTempVendorCDR_20' ) end [2025-01-23 04:45:18] Production.INFO: ProcessCDR(1,14309967,1,1,2) [2025-01-23 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309967', 'tblTempUsageDetail_20' ) start [2025-01-23 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309967', 'tblTempUsageDetail_20' ) end [2025-01-23 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:45:22] Production.INFO: ==18639== Releasing lock... [2025-01-23 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:46:06 [end_date_ymd] => 2025-01-23 04:46:06 [RateCDR] => 1 ) [2025-01-23 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:46:06' and `end` < '2025-01-23 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:47:12] Production.INFO: count ==186 [2025-01-23 04:47:12] Production.ERROR: pbx CDR StartTime 2025-01-23 01:46:06 - End Time 2025-01-23 04:46:06 [2025-01-23 04:47:12] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:47:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309972', 'tblTempUsageDetail_20' ) start [2025-01-23 04:47:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309972', 'tblTempUsageDetail_20' ) end [2025-01-23 04:47:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309972', 'tblTempVendorCDR_20' ) start [2025-01-23 04:47:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309972', 'tblTempVendorCDR_20' ) end [2025-01-23 04:47:12] Production.INFO: ProcessCDR(1,14309972,1,1,2) [2025-01-23 04:47:12] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:47:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:47:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:47:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:47:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309972', 'tblTempUsageDetail_20' ) start [2025-01-23 04:47:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309972', 'tblTempUsageDetail_20' ) end [2025-01-23 04:47:15] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:47:15] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:47:15] Production.INFO: ==18721== Releasing lock... [2025-01-23 04:47:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:47:15] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:48:06 [end_date_ymd] => 2025-01-23 04:48:06 [RateCDR] => 1 ) [2025-01-23 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:48:06' and `end` < '2025-01-23 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:48:22] Production.INFO: count ==186 [2025-01-23 04:48:22] Production.ERROR: pbx CDR StartTime 2025-01-23 01:48:06 - End Time 2025-01-23 04:48:06 [2025-01-23 04:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309981', 'tblTempUsageDetail_20' ) start [2025-01-23 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309981', 'tblTempUsageDetail_20' ) end [2025-01-23 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309981', 'tblTempVendorCDR_20' ) start [2025-01-23 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309981', 'tblTempVendorCDR_20' ) end [2025-01-23 04:48:22] Production.INFO: ProcessCDR(1,14309981,1,1,2) [2025-01-23 04:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309981', 'tblTempUsageDetail_20' ) start [2025-01-23 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309981', 'tblTempUsageDetail_20' ) end [2025-01-23 04:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:48:25] Production.INFO: ==18867== Releasing lock... [2025-01-23 04:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:48:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:49:05 [end_date_ymd] => 2025-01-23 04:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:49:05' and `end` < '2025-01-23 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-23 04:49:20] Production.INFO: count ==186 [2025-01-23 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:49:05 - End Time 2025-01-23 04:49:05 [2025-01-23 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309986', 'tblTempUsageDetail_20' ) start [2025-01-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309986', 'tblTempUsageDetail_20' ) end [2025-01-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309986', 'tblTempVendorCDR_20' ) start [2025-01-23 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309986', 'tblTempVendorCDR_20' ) end [2025-01-23 04:49:20] Production.INFO: ProcessCDR(1,14309986,1,1,2) [2025-01-23 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309986', 'tblTempUsageDetail_20' ) start [2025-01-23 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309986', 'tblTempUsageDetail_20' ) end [2025-01-23 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:49:23] Production.INFO: ==18984== Releasing lock... [2025-01-23 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:50:06 [end_date_ymd] => 2025-01-23 04:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 01:50:06' and `end` < '2025-01-23 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-23 04:50:20] Production.INFO: count ==186 [2025-01-23 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:50:06 - End Time 2025-01-23 04:50:06 [2025-01-23 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309991', 'tblTempUsageDetail_20' ) start [2025-01-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309991', 'tblTempUsageDetail_20' ) end [2025-01-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309991', 'tblTempVendorCDR_20' ) start [2025-01-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309991', 'tblTempVendorCDR_20' ) end [2025-01-23 04:50:20] Production.INFO: ProcessCDR(1,14309991,1,1,2) [2025-01-23 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309991', 'tblTempUsageDetail_20' ) start [2025-01-23 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309991', 'tblTempUsageDetail_20' ) end [2025-01-23 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:50:23] Production.INFO: ==19062== Releasing lock... [2025-01-23 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:51:05 [end_date_ymd] => 2025-01-23 04:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:51:05' and `end` < '2025-01-23 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-23 04:51:20] Production.INFO: count ==186 [2025-01-23 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:51:05 - End Time 2025-01-23 04:51:05 [2025-01-23 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309997', 'tblTempUsageDetail_20' ) start [2025-01-23 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14309997', 'tblTempUsageDetail_20' ) end [2025-01-23 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309997', 'tblTempVendorCDR_20' ) start [2025-01-23 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14309997', 'tblTempVendorCDR_20' ) end [2025-01-23 04:51:20] Production.INFO: ProcessCDR(1,14309997,1,1,2) [2025-01-23 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14309997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14309997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14309997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14309997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309997', 'tblTempUsageDetail_20' ) start [2025-01-23 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14309997', 'tblTempUsageDetail_20' ) end [2025-01-23 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:51:24] Production.INFO: ==19135== Releasing lock... [2025-01-23 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:51:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:52:05 [end_date_ymd] => 2025-01-23 04:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:52:05' and `end` < '2025-01-23 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-23 04:52:19] Production.INFO: count ==185 [2025-01-23 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:52:05 - End Time 2025-01-23 04:52:05 [2025-01-23 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310002', 'tblTempUsageDetail_20' ) start [2025-01-23 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310002', 'tblTempUsageDetail_20' ) end [2025-01-23 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310002', 'tblTempVendorCDR_20' ) start [2025-01-23 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310002', 'tblTempVendorCDR_20' ) end [2025-01-23 04:52:19] Production.INFO: ProcessCDR(1,14310002,1,1,2) [2025-01-23 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310002', 'tblTempUsageDetail_20' ) start [2025-01-23 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310002', 'tblTempUsageDetail_20' ) end [2025-01-23 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:52:22] Production.INFO: ==19215== Releasing lock... [2025-01-23 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:53:05 [end_date_ymd] => 2025-01-23 04:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:53:05' and `end` < '2025-01-23 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-23 04:53:19] Production.INFO: count ==184 [2025-01-23 04:53:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:53:05 - End Time 2025-01-23 04:53:05 [2025-01-23 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310007', 'tblTempUsageDetail_20' ) start [2025-01-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310007', 'tblTempUsageDetail_20' ) end [2025-01-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310007', 'tblTempVendorCDR_20' ) start [2025-01-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310007', 'tblTempVendorCDR_20' ) end [2025-01-23 04:53:19] Production.INFO: ProcessCDR(1,14310007,1,1,2) [2025-01-23 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310007', 'tblTempUsageDetail_20' ) start [2025-01-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310007', 'tblTempUsageDetail_20' ) end [2025-01-23 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:53:22] Production.INFO: ==19292== Releasing lock... [2025-01-23 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:54:05 [end_date_ymd] => 2025-01-23 04:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:54:05' and `end` < '2025-01-23 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-23 04:54:20] Production.INFO: count ==184 [2025-01-23 04:54:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:54:05 - End Time 2025-01-23 04:54:05 [2025-01-23 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310012', 'tblTempUsageDetail_20' ) start [2025-01-23 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310012', 'tblTempUsageDetail_20' ) end [2025-01-23 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310012', 'tblTempVendorCDR_20' ) start [2025-01-23 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310012', 'tblTempVendorCDR_20' ) end [2025-01-23 04:54:20] Production.INFO: ProcessCDR(1,14310012,1,1,2) [2025-01-23 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310012', 'tblTempUsageDetail_20' ) start [2025-01-23 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310012', 'tblTempUsageDetail_20' ) end [2025-01-23 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:54:23] Production.INFO: ==19362== Releasing lock... [2025-01-23 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:55:05 [end_date_ymd] => 2025-01-23 04:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:55:05' and `end` < '2025-01-23 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-23 04:55:19] Production.INFO: count ==184 [2025-01-23 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:55:05 - End Time 2025-01-23 04:55:05 [2025-01-23 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310017', 'tblTempUsageDetail_20' ) start [2025-01-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310017', 'tblTempUsageDetail_20' ) end [2025-01-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310017', 'tblTempVendorCDR_20' ) start [2025-01-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310017', 'tblTempVendorCDR_20' ) end [2025-01-23 04:55:19] Production.INFO: ProcessCDR(1,14310017,1,1,2) [2025-01-23 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310017', 'tblTempUsageDetail_20' ) start [2025-01-23 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310017', 'tblTempUsageDetail_20' ) end [2025-01-23 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:55:22] Production.INFO: ==19439== Releasing lock... [2025-01-23 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:56:06 [end_date_ymd] => 2025-01-23 04:56:06 [RateCDR] => 1 ) [2025-01-23 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:56:06' and `end` < '2025-01-23 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:56:20] Production.INFO: count ==184 [2025-01-23 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:56:06 - End Time 2025-01-23 04:56:06 [2025-01-23 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310022', 'tblTempUsageDetail_20' ) start [2025-01-23 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310022', 'tblTempUsageDetail_20' ) end [2025-01-23 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310022', 'tblTempVendorCDR_20' ) start [2025-01-23 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310022', 'tblTempVendorCDR_20' ) end [2025-01-23 04:56:20] Production.INFO: ProcessCDR(1,14310022,1,1,2) [2025-01-23 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310022', 'tblTempUsageDetail_20' ) start [2025-01-23 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310022', 'tblTempUsageDetail_20' ) end [2025-01-23 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:56:23] Production.INFO: ==19515== Releasing lock... [2025-01-23 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:57:05 [end_date_ymd] => 2025-01-23 04:57:05 [RateCDR] => 1 ) [2025-01-23 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 01:57:05' and `end` < '2025-01-23 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 04:57:21] Production.INFO: count ==184 [2025-01-23 04:57:21] Production.ERROR: pbx CDR StartTime 2025-01-23 01:57:05 - End Time 2025-01-23 04:57:05 [2025-01-23 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310027', 'tblTempUsageDetail_20' ) start [2025-01-23 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310027', 'tblTempUsageDetail_20' ) end [2025-01-23 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310027', 'tblTempVendorCDR_20' ) start [2025-01-23 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310027', 'tblTempVendorCDR_20' ) end [2025-01-23 04:57:21] Production.INFO: ProcessCDR(1,14310027,1,1,2) [2025-01-23 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310027', 'tblTempUsageDetail_20' ) start [2025-01-23 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310027', 'tblTempUsageDetail_20' ) end [2025-01-23 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:57:24] Production.INFO: ==19590== Releasing lock... [2025-01-23 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:57:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:58:05 [end_date_ymd] => 2025-01-23 04:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:58:05' and `end` < '2025-01-23 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-23 04:58:20] Production.INFO: count ==184 [2025-01-23 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-23 01:58:05 - End Time 2025-01-23 04:58:05 [2025-01-23 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310032', 'tblTempUsageDetail_20' ) start [2025-01-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310032', 'tblTempUsageDetail_20' ) end [2025-01-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310032', 'tblTempVendorCDR_20' ) start [2025-01-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310032', 'tblTempVendorCDR_20' ) end [2025-01-23 04:58:20] Production.INFO: ProcessCDR(1,14310032,1,1,2) [2025-01-23 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310032', 'tblTempUsageDetail_20' ) start [2025-01-23 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310032', 'tblTempUsageDetail_20' ) end [2025-01-23 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:58:23] Production.INFO: ==19664== Releasing lock... [2025-01-23 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 01:59:05 [end_date_ymd] => 2025-01-23 04:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 01:59:05' and `end` < '2025-01-23 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-23 04:59:19] Production.INFO: count ==184 [2025-01-23 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-23 01:59:05 - End Time 2025-01-23 04:59:05 [2025-01-23 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310037', 'tblTempUsageDetail_20' ) start [2025-01-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310037', 'tblTempUsageDetail_20' ) end [2025-01-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310037', 'tblTempVendorCDR_20' ) start [2025-01-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310037', 'tblTempVendorCDR_20' ) end [2025-01-23 04:59:19] Production.INFO: ProcessCDR(1,14310037,1,1,2) [2025-01-23 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310037', 'tblTempUsageDetail_20' ) start [2025-01-23 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310037', 'tblTempUsageDetail_20' ) end [2025-01-23 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 04:59:22] Production.INFO: ==19736== Releasing lock... [2025-01-23 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 04:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:00:06 [end_date_ymd] => 2025-01-23 05:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 02:00:06' and `end` < '2025-01-23 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-23 05:00:21] Production.INFO: count ==178 [2025-01-23 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-23 02:00:06 - End Time 2025-01-23 05:00:06 [2025-01-23 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310043', 'tblTempUsageDetail_20' ) start [2025-01-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310043', 'tblTempUsageDetail_20' ) end [2025-01-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310043', 'tblTempVendorCDR_20' ) start [2025-01-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310043', 'tblTempVendorCDR_20' ) end [2025-01-23 05:00:21] Production.INFO: ProcessCDR(1,14310043,1,1,2) [2025-01-23 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310043', 'tblTempUsageDetail_20' ) start [2025-01-23 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310043', 'tblTempUsageDetail_20' ) end [2025-01-23 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:00:24] Production.INFO: ==19814== Releasing lock... [2025-01-23 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:01:05 [end_date_ymd] => 2025-01-23 05:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:01:05' and `end` < '2025-01-23 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-23 05:01:18] Production.INFO: count ==174 [2025-01-23 05:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:01:05 - End Time 2025-01-23 05:01:05 [2025-01-23 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310048', 'tblTempUsageDetail_20' ) start [2025-01-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310048', 'tblTempUsageDetail_20' ) end [2025-01-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310048', 'tblTempVendorCDR_20' ) start [2025-01-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310048', 'tblTempVendorCDR_20' ) end [2025-01-23 05:01:18] Production.INFO: ProcessCDR(1,14310048,1,1,2) [2025-01-23 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310048', 'tblTempUsageDetail_20' ) start [2025-01-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310048', 'tblTempUsageDetail_20' ) end [2025-01-23 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:01:21] Production.INFO: ==19901== Releasing lock... [2025-01-23 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:02:06 [end_date_ymd] => 2025-01-23 05:02:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:02:06' and `end` < '2025-01-23 05: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-23 05:02:21] Production.INFO: count ==174 [2025-01-23 05:02:21] Production.ERROR: pbx CDR StartTime 2025-01-23 02:02:06 - End Time 2025-01-23 05:02:06 [2025-01-23 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310053', 'tblTempUsageDetail_20' ) start [2025-01-23 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310053', 'tblTempUsageDetail_20' ) end [2025-01-23 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310053', 'tblTempVendorCDR_20' ) start [2025-01-23 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310053', 'tblTempVendorCDR_20' ) end [2025-01-23 05:02:21] Production.INFO: ProcessCDR(1,14310053,1,1,2) [2025-01-23 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310053', 'tblTempUsageDetail_20' ) start [2025-01-23 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310053', 'tblTempUsageDetail_20' ) end [2025-01-23 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:02:24] Production.INFO: ==19975== Releasing lock... [2025-01-23 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:02:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:03:05 [end_date_ymd] => 2025-01-23 05:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:03:05' and `end` < '2025-01-23 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-23 05:03:20] Production.INFO: count ==174 [2025-01-23 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-23 02:03:05 - End Time 2025-01-23 05:03:05 [2025-01-23 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310058', 'tblTempUsageDetail_20' ) start [2025-01-23 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310058', 'tblTempUsageDetail_20' ) end [2025-01-23 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310058', 'tblTempVendorCDR_20' ) start [2025-01-23 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310058', 'tblTempVendorCDR_20' ) end [2025-01-23 05:03:20] Production.INFO: ProcessCDR(1,14310058,1,1,2) [2025-01-23 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310058', 'tblTempUsageDetail_20' ) start [2025-01-23 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310058', 'tblTempUsageDetail_20' ) end [2025-01-23 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:03:23] Production.INFO: ==20045== Releasing lock... [2025-01-23 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:03:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:04:05 [end_date_ymd] => 2025-01-23 05:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:04:05' and `end` < '2025-01-23 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-23 05:04:18] Production.INFO: count ==174 [2025-01-23 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:04:05 - End Time 2025-01-23 05:04:05 [2025-01-23 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310063', 'tblTempUsageDetail_20' ) start [2025-01-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310063', 'tblTempUsageDetail_20' ) end [2025-01-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310063', 'tblTempVendorCDR_20' ) start [2025-01-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310063', 'tblTempVendorCDR_20' ) end [2025-01-23 05:04:18] Production.INFO: ProcessCDR(1,14310063,1,1,2) [2025-01-23 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310063', 'tblTempUsageDetail_20' ) start [2025-01-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310063', 'tblTempUsageDetail_20' ) end [2025-01-23 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:04:21] Production.INFO: ==20153== Releasing lock... [2025-01-23 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:05:05 [end_date_ymd] => 2025-01-23 05:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:05:05' and `end` < '2025-01-23 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-23 05:05:19] Production.INFO: count ==174 [2025-01-23 05:05:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:05:05 - End Time 2025-01-23 05:05:05 [2025-01-23 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310068', 'tblTempUsageDetail_20' ) start [2025-01-23 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310068', 'tblTempUsageDetail_20' ) end [2025-01-23 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310068', 'tblTempVendorCDR_20' ) start [2025-01-23 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310068', 'tblTempVendorCDR_20' ) end [2025-01-23 05:05:19] Production.INFO: ProcessCDR(1,14310068,1,1,2) [2025-01-23 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310068', 'tblTempUsageDetail_20' ) start [2025-01-23 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310068', 'tblTempUsageDetail_20' ) end [2025-01-23 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:05:22] Production.INFO: ==20226== Releasing lock... [2025-01-23 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:06:05 [end_date_ymd] => 2025-01-23 05:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:06:05' and `end` < '2025-01-23 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-23 05:06:19] Production.INFO: count ==174 [2025-01-23 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:06:05 - End Time 2025-01-23 05:06:05 [2025-01-23 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310073', 'tblTempUsageDetail_20' ) start [2025-01-23 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310073', 'tblTempUsageDetail_20' ) end [2025-01-23 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310073', 'tblTempVendorCDR_20' ) start [2025-01-23 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310073', 'tblTempVendorCDR_20' ) end [2025-01-23 05:06:19] Production.INFO: ProcessCDR(1,14310073,1,1,2) [2025-01-23 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310073', 'tblTempUsageDetail_20' ) start [2025-01-23 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310073', 'tblTempUsageDetail_20' ) end [2025-01-23 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:06:22] Production.INFO: ==20301== Releasing lock... [2025-01-23 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:07:06 [end_date_ymd] => 2025-01-23 05:07:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:07:06' and `end` < '2025-01-23 05: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-23 05:07:19] Production.INFO: count ==174 [2025-01-23 05:07:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:07:06 - End Time 2025-01-23 05:07:06 [2025-01-23 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310078', 'tblTempUsageDetail_20' ) start [2025-01-23 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310078', 'tblTempUsageDetail_20' ) end [2025-01-23 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310078', 'tblTempVendorCDR_20' ) start [2025-01-23 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310078', 'tblTempVendorCDR_20' ) end [2025-01-23 05:07:19] Production.INFO: ProcessCDR(1,14310078,1,1,2) [2025-01-23 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310078', 'tblTempUsageDetail_20' ) start [2025-01-23 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310078', 'tblTempUsageDetail_20' ) end [2025-01-23 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:07:22] Production.INFO: ==20372== Releasing lock... [2025-01-23 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:08:06 [end_date_ymd] => 2025-01-23 05:08:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:08:06' and `end` < '2025-01-23 05: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-23 05:08:19] Production.INFO: count ==174 [2025-01-23 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:08:06 - End Time 2025-01-23 05:08:06 [2025-01-23 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310083', 'tblTempUsageDetail_20' ) start [2025-01-23 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310083', 'tblTempUsageDetail_20' ) end [2025-01-23 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310083', 'tblTempVendorCDR_20' ) start [2025-01-23 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310083', 'tblTempVendorCDR_20' ) end [2025-01-23 05:08:19] Production.INFO: ProcessCDR(1,14310083,1,1,2) [2025-01-23 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310083', 'tblTempUsageDetail_20' ) start [2025-01-23 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310083', 'tblTempUsageDetail_20' ) end [2025-01-23 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:08:22] Production.INFO: ==20443== Releasing lock... [2025-01-23 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:09:05 [end_date_ymd] => 2025-01-23 05:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:09:05' and `end` < '2025-01-23 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-23 05:09:18] Production.INFO: count ==174 [2025-01-23 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:09:05 - End Time 2025-01-23 05:09:05 [2025-01-23 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310088', 'tblTempUsageDetail_20' ) start [2025-01-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310088', 'tblTempUsageDetail_20' ) end [2025-01-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310088', 'tblTempVendorCDR_20' ) start [2025-01-23 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310088', 'tblTempVendorCDR_20' ) end [2025-01-23 05:09:18] Production.INFO: ProcessCDR(1,14310088,1,1,2) [2025-01-23 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310088', 'tblTempUsageDetail_20' ) start [2025-01-23 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310088', 'tblTempUsageDetail_20' ) end [2025-01-23 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:09:21] Production.INFO: ==20515== Releasing lock... [2025-01-23 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:10:06 [end_date_ymd] => 2025-01-23 05:10:06 [RateCDR] => 1 ) [2025-01-23 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:10:06' and `end` < '2025-01-23 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:10:19] Production.INFO: count ==164 [2025-01-23 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:10:06 - End Time 2025-01-23 05:10:06 [2025-01-23 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310094', 'tblTempUsageDetail_20' ) start [2025-01-23 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310094', 'tblTempUsageDetail_20' ) end [2025-01-23 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310094', 'tblTempVendorCDR_20' ) start [2025-01-23 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310094', 'tblTempVendorCDR_20' ) end [2025-01-23 05:10:19] Production.INFO: ProcessCDR(1,14310094,1,1,2) [2025-01-23 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310094', 'tblTempUsageDetail_20' ) start [2025-01-23 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310094', 'tblTempUsageDetail_20' ) end [2025-01-23 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:10:22] Production.INFO: ==20591== Releasing lock... [2025-01-23 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:11:05 [end_date_ymd] => 2025-01-23 05:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:11:05' and `end` < '2025-01-23 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-23 05:11:18] Production.INFO: count ==164 [2025-01-23 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:11:05 - End Time 2025-01-23 05:11:05 [2025-01-23 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310099', 'tblTempUsageDetail_20' ) start [2025-01-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310099', 'tblTempUsageDetail_20' ) end [2025-01-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310099', 'tblTempVendorCDR_20' ) start [2025-01-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310099', 'tblTempVendorCDR_20' ) end [2025-01-23 05:11:18] Production.INFO: ProcessCDR(1,14310099,1,1,2) [2025-01-23 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310099', 'tblTempUsageDetail_20' ) start [2025-01-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310099', 'tblTempUsageDetail_20' ) end [2025-01-23 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:11:21] Production.INFO: ==20664== Releasing lock... [2025-01-23 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:12:05 [end_date_ymd] => 2025-01-23 05:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:12:05' and `end` < '2025-01-23 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-23 05:12:19] Production.INFO: count ==163 [2025-01-23 05:12:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:12:05 - End Time 2025-01-23 05:12:05 [2025-01-23 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310104', 'tblTempUsageDetail_20' ) start [2025-01-23 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310104', 'tblTempUsageDetail_20' ) end [2025-01-23 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310104', 'tblTempVendorCDR_20' ) start [2025-01-23 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310104', 'tblTempVendorCDR_20' ) end [2025-01-23 05:12:19] Production.INFO: ProcessCDR(1,14310104,1,1,2) [2025-01-23 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310104', 'tblTempUsageDetail_20' ) start [2025-01-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310104', 'tblTempUsageDetail_20' ) end [2025-01-23 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:12:22] Production.INFO: ==20738== Releasing lock... [2025-01-23 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:13:05 [end_date_ymd] => 2025-01-23 05:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:13:05' and `end` < '2025-01-23 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-23 05:13:17] Production.INFO: count ==163 [2025-01-23 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:13:05 - End Time 2025-01-23 05:13:05 [2025-01-23 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310109', 'tblTempUsageDetail_20' ) start [2025-01-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310109', 'tblTempUsageDetail_20' ) end [2025-01-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310109', 'tblTempVendorCDR_20' ) start [2025-01-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310109', 'tblTempVendorCDR_20' ) end [2025-01-23 05:13:17] Production.INFO: ProcessCDR(1,14310109,1,1,2) [2025-01-23 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310109', 'tblTempUsageDetail_20' ) start [2025-01-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310109', 'tblTempUsageDetail_20' ) end [2025-01-23 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:13:21] Production.INFO: ==20812== Releasing lock... [2025-01-23 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:14:05 [end_date_ymd] => 2025-01-23 05:14:05 [RateCDR] => 1 ) [2025-01-23 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:14:05' and `end` < '2025-01-23 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:14:19] Production.INFO: count ==163 [2025-01-23 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:14:05 - End Time 2025-01-23 05:14:05 [2025-01-23 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310114', 'tblTempUsageDetail_20' ) start [2025-01-23 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310114', 'tblTempUsageDetail_20' ) end [2025-01-23 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310114', 'tblTempVendorCDR_20' ) start [2025-01-23 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310114', 'tblTempVendorCDR_20' ) end [2025-01-23 05:14:19] Production.INFO: ProcessCDR(1,14310114,1,1,2) [2025-01-23 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310114', 'tblTempUsageDetail_20' ) start [2025-01-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310114', 'tblTempUsageDetail_20' ) end [2025-01-23 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:14:22] Production.INFO: ==20884== Releasing lock... [2025-01-23 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:15:05 [end_date_ymd] => 2025-01-23 05:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:15:05' and `end` < '2025-01-23 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-23 05:15:18] Production.INFO: count ==163 [2025-01-23 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:15:05 - End Time 2025-01-23 05:15:05 [2025-01-23 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310119', 'tblTempUsageDetail_20' ) start [2025-01-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310119', 'tblTempUsageDetail_20' ) end [2025-01-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310119', 'tblTempVendorCDR_20' ) start [2025-01-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310119', 'tblTempVendorCDR_20' ) end [2025-01-23 05:15:18] Production.INFO: ProcessCDR(1,14310119,1,1,2) [2025-01-23 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310119', 'tblTempUsageDetail_20' ) start [2025-01-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310119', 'tblTempUsageDetail_20' ) end [2025-01-23 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:15:21] Production.INFO: ==20955== Releasing lock... [2025-01-23 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:16:05 [end_date_ymd] => 2025-01-23 05:16:05 [RateCDR] => 1 ) [2025-01-23 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:16:05' and `end` < '2025-01-23 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:16:18] Production.INFO: count ==163 [2025-01-23 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:16:05 - End Time 2025-01-23 05:16:05 [2025-01-23 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310124', 'tblTempUsageDetail_20' ) start [2025-01-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310124', 'tblTempUsageDetail_20' ) end [2025-01-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310124', 'tblTempVendorCDR_20' ) start [2025-01-23 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310124', 'tblTempVendorCDR_20' ) end [2025-01-23 05:16:18] Production.INFO: ProcessCDR(1,14310124,1,1,2) [2025-01-23 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310124', 'tblTempUsageDetail_20' ) start [2025-01-23 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310124', 'tblTempUsageDetail_20' ) end [2025-01-23 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:16:21] Production.INFO: ==21029== Releasing lock... [2025-01-23 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:17:05 [end_date_ymd] => 2025-01-23 05:17:05 [RateCDR] => 1 ) [2025-01-23 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:17:05' and `end` < '2025-01-23 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:17:18] Production.INFO: count ==163 [2025-01-23 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:17:05 - End Time 2025-01-23 05:17:05 [2025-01-23 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310129', 'tblTempUsageDetail_20' ) start [2025-01-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310129', 'tblTempUsageDetail_20' ) end [2025-01-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310129', 'tblTempVendorCDR_20' ) start [2025-01-23 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310129', 'tblTempVendorCDR_20' ) end [2025-01-23 05:17:18] Production.INFO: ProcessCDR(1,14310129,1,1,2) [2025-01-23 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310129', 'tblTempUsageDetail_20' ) start [2025-01-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310129', 'tblTempUsageDetail_20' ) end [2025-01-23 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:17:21] Production.INFO: ==21102== Releasing lock... [2025-01-23 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:18:06 [end_date_ymd] => 2025-01-23 05:18:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:18:06' and `end` < '2025-01-23 05: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-23 05:18:19] Production.INFO: count ==163 [2025-01-23 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:18:06 - End Time 2025-01-23 05:18:06 [2025-01-23 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310134', 'tblTempUsageDetail_20' ) start [2025-01-23 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310134', 'tblTempUsageDetail_20' ) end [2025-01-23 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310134', 'tblTempVendorCDR_20' ) start [2025-01-23 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310134', 'tblTempVendorCDR_20' ) end [2025-01-23 05:18:19] Production.INFO: ProcessCDR(1,14310134,1,1,2) [2025-01-23 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310134', 'tblTempUsageDetail_20' ) start [2025-01-23 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310134', 'tblTempUsageDetail_20' ) end [2025-01-23 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:18:22] Production.INFO: ==21174== Releasing lock... [2025-01-23 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:19:05 [end_date_ymd] => 2025-01-23 05:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:19:05' and `end` < '2025-01-23 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-23 05:19:17] Production.INFO: count ==163 [2025-01-23 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:19:05 - End Time 2025-01-23 05:19:05 [2025-01-23 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310139', 'tblTempUsageDetail_20' ) start [2025-01-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310139', 'tblTempUsageDetail_20' ) end [2025-01-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310139', 'tblTempVendorCDR_20' ) start [2025-01-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310139', 'tblTempVendorCDR_20' ) end [2025-01-23 05:19:17] Production.INFO: ProcessCDR(1,14310139,1,1,2) [2025-01-23 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310139', 'tblTempUsageDetail_20' ) start [2025-01-23 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310139', 'tblTempUsageDetail_20' ) end [2025-01-23 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:19:21] Production.INFO: ==21248== Releasing lock... [2025-01-23 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:20:06 [end_date_ymd] => 2025-01-23 05:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 02:20:06' and `end` < '2025-01-23 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-23 05:20:19] Production.INFO: count ==161 [2025-01-23 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:20:06 - End Time 2025-01-23 05:20:06 [2025-01-23 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310145', 'tblTempUsageDetail_20' ) start [2025-01-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310145', 'tblTempUsageDetail_20' ) end [2025-01-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310145', 'tblTempVendorCDR_20' ) start [2025-01-23 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310145', 'tblTempVendorCDR_20' ) end [2025-01-23 05:20:19] Production.INFO: ProcessCDR(1,14310145,1,1,2) [2025-01-23 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310145', 'tblTempUsageDetail_20' ) start [2025-01-23 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310145', 'tblTempUsageDetail_20' ) end [2025-01-23 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:20:23] Production.INFO: ==21366== Releasing lock... [2025-01-23 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:21:05 [end_date_ymd] => 2025-01-23 05:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:21:05' and `end` < '2025-01-23 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-23 05:21:19] Production.INFO: count ==161 [2025-01-23 05:21:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:21:05 - End Time 2025-01-23 05:21:05 [2025-01-23 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310150', 'tblTempUsageDetail_20' ) start [2025-01-23 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310150', 'tblTempUsageDetail_20' ) end [2025-01-23 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310150', 'tblTempVendorCDR_20' ) start [2025-01-23 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310150', 'tblTempVendorCDR_20' ) end [2025-01-23 05:21:19] Production.INFO: ProcessCDR(1,14310150,1,1,2) [2025-01-23 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310150', 'tblTempUsageDetail_20' ) start [2025-01-23 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310150', 'tblTempUsageDetail_20' ) end [2025-01-23 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:21:22] Production.INFO: ==21439== Releasing lock... [2025-01-23 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:22:06 [end_date_ymd] => 2025-01-23 05:22:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:22:06' and `end` < '2025-01-23 05: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-23 05:22:18] Production.INFO: count ==161 [2025-01-23 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:22:06 - End Time 2025-01-23 05:22:06 [2025-01-23 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310155', 'tblTempUsageDetail_20' ) start [2025-01-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310155', 'tblTempUsageDetail_20' ) end [2025-01-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310155', 'tblTempVendorCDR_20' ) start [2025-01-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310155', 'tblTempVendorCDR_20' ) end [2025-01-23 05:22:18] Production.INFO: ProcessCDR(1,14310155,1,1,2) [2025-01-23 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310155', 'tblTempUsageDetail_20' ) start [2025-01-23 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310155', 'tblTempUsageDetail_20' ) end [2025-01-23 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:22:22] Production.INFO: ==21510== Releasing lock... [2025-01-23 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:23:05 [end_date_ymd] => 2025-01-23 05:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:23:05' and `end` < '2025-01-23 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-23 05:23:18] Production.INFO: count ==161 [2025-01-23 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:23:05 - End Time 2025-01-23 05:23:05 [2025-01-23 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310160', 'tblTempUsageDetail_20' ) start [2025-01-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310160', 'tblTempUsageDetail_20' ) end [2025-01-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310160', 'tblTempVendorCDR_20' ) start [2025-01-23 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310160', 'tblTempVendorCDR_20' ) end [2025-01-23 05:23:18] Production.INFO: ProcessCDR(1,14310160,1,1,2) [2025-01-23 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310160', 'tblTempUsageDetail_20' ) start [2025-01-23 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310160', 'tblTempUsageDetail_20' ) end [2025-01-23 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:23:21] Production.INFO: ==21583== Releasing lock... [2025-01-23 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:24:05 [end_date_ymd] => 2025-01-23 05:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:24:05' and `end` < '2025-01-23 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-23 05:24:18] Production.INFO: count ==161 [2025-01-23 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:24:05 - End Time 2025-01-23 05:24:05 [2025-01-23 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310165', 'tblTempUsageDetail_20' ) start [2025-01-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310165', 'tblTempUsageDetail_20' ) end [2025-01-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310165', 'tblTempVendorCDR_20' ) start [2025-01-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310165', 'tblTempVendorCDR_20' ) end [2025-01-23 05:24:18] Production.INFO: ProcessCDR(1,14310165,1,1,2) [2025-01-23 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310165', 'tblTempUsageDetail_20' ) start [2025-01-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310165', 'tblTempUsageDetail_20' ) end [2025-01-23 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:24:21] Production.INFO: ==21654== Releasing lock... [2025-01-23 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:25:05 [end_date_ymd] => 2025-01-23 05:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:25:05' and `end` < '2025-01-23 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-23 05:25:17] Production.INFO: count ==161 [2025-01-23 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:25:05 - End Time 2025-01-23 05:25:05 [2025-01-23 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310170', 'tblTempUsageDetail_20' ) start [2025-01-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310170', 'tblTempUsageDetail_20' ) end [2025-01-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310170', 'tblTempVendorCDR_20' ) start [2025-01-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310170', 'tblTempVendorCDR_20' ) end [2025-01-23 05:25:17] Production.INFO: ProcessCDR(1,14310170,1,1,2) [2025-01-23 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310170', 'tblTempUsageDetail_20' ) start [2025-01-23 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310170', 'tblTempUsageDetail_20' ) end [2025-01-23 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:25:21] Production.INFO: ==21730== Releasing lock... [2025-01-23 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:26:06 [end_date_ymd] => 2025-01-23 05:26:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:26:06' and `end` < '2025-01-23 05: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-23 05:26:19] Production.INFO: count ==161 [2025-01-23 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:26:06 - End Time 2025-01-23 05:26:06 [2025-01-23 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310175', 'tblTempUsageDetail_20' ) start [2025-01-23 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310175', 'tblTempUsageDetail_20' ) end [2025-01-23 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310175', 'tblTempVendorCDR_20' ) start [2025-01-23 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310175', 'tblTempVendorCDR_20' ) end [2025-01-23 05:26:19] Production.INFO: ProcessCDR(1,14310175,1,1,2) [2025-01-23 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310175', 'tblTempUsageDetail_20' ) start [2025-01-23 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310175', 'tblTempUsageDetail_20' ) end [2025-01-23 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:26:22] Production.INFO: ==21805== Releasing lock... [2025-01-23 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:27:06 [end_date_ymd] => 2025-01-23 05:27:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:27:06' and `end` < '2025-01-23 05: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-23 05:27:18] Production.INFO: count ==161 [2025-01-23 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:27:06 - End Time 2025-01-23 05:27:06 [2025-01-23 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310180', 'tblTempUsageDetail_20' ) start [2025-01-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310180', 'tblTempUsageDetail_20' ) end [2025-01-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310180', 'tblTempVendorCDR_20' ) start [2025-01-23 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310180', 'tblTempVendorCDR_20' ) end [2025-01-23 05:27:18] Production.INFO: ProcessCDR(1,14310180,1,1,2) [2025-01-23 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310180', 'tblTempUsageDetail_20' ) start [2025-01-23 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310180', 'tblTempUsageDetail_20' ) end [2025-01-23 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:27:21] Production.INFO: ==21878== Releasing lock... [2025-01-23 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:28:06 [end_date_ymd] => 2025-01-23 05:28:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:28:06' and `end` < '2025-01-23 05: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-23 05:28:18] Production.INFO: count ==161 [2025-01-23 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:28:06 - End Time 2025-01-23 05:28:06 [2025-01-23 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310185', 'tblTempUsageDetail_20' ) start [2025-01-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310185', 'tblTempUsageDetail_20' ) end [2025-01-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310185', 'tblTempVendorCDR_20' ) start [2025-01-23 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310185', 'tblTempVendorCDR_20' ) end [2025-01-23 05:28:18] Production.INFO: ProcessCDR(1,14310185,1,1,2) [2025-01-23 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310185', 'tblTempUsageDetail_20' ) start [2025-01-23 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310185', 'tblTempUsageDetail_20' ) end [2025-01-23 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:28:21] Production.INFO: ==21953== Releasing lock... [2025-01-23 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:29:05 [end_date_ymd] => 2025-01-23 05:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:29:05' and `end` < '2025-01-23 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-23 05:29:18] Production.INFO: count ==161 [2025-01-23 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:29:05 - End Time 2025-01-23 05:29:05 [2025-01-23 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310190', 'tblTempUsageDetail_20' ) start [2025-01-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310190', 'tblTempUsageDetail_20' ) end [2025-01-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310190', 'tblTempVendorCDR_20' ) start [2025-01-23 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310190', 'tblTempVendorCDR_20' ) end [2025-01-23 05:29:18] Production.INFO: ProcessCDR(1,14310190,1,1,2) [2025-01-23 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310190', 'tblTempUsageDetail_20' ) start [2025-01-23 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310190', 'tblTempUsageDetail_20' ) end [2025-01-23 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:29:22] Production.INFO: ==22026== Releasing lock... [2025-01-23 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:30:06 [end_date_ymd] => 2025-01-23 05:30:06 [RateCDR] => 1 ) [2025-01-23 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:30:06' and `end` < '2025-01-23 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:30:19] Production.INFO: count ==156 [2025-01-23 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:30:06 - End Time 2025-01-23 05:30:06 [2025-01-23 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310196', 'tblTempUsageDetail_20' ) start [2025-01-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310196', 'tblTempUsageDetail_20' ) end [2025-01-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310196', 'tblTempVendorCDR_20' ) start [2025-01-23 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310196', 'tblTempVendorCDR_20' ) end [2025-01-23 05:30:19] Production.INFO: ProcessCDR(1,14310196,1,1,2) [2025-01-23 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310196', 'tblTempUsageDetail_20' ) start [2025-01-23 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310196', 'tblTempUsageDetail_20' ) end [2025-01-23 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:30:22] Production.INFO: ==22106== Releasing lock... [2025-01-23 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:31:05 [end_date_ymd] => 2025-01-23 05:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:31:05' and `end` < '2025-01-23 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-23 05:31:18] Production.INFO: count ==156 [2025-01-23 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:31:05 - End Time 2025-01-23 05:31:05 [2025-01-23 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310201', 'tblTempUsageDetail_20' ) start [2025-01-23 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310201', 'tblTempUsageDetail_20' ) end [2025-01-23 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310201', 'tblTempVendorCDR_20' ) start [2025-01-23 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310201', 'tblTempVendorCDR_20' ) end [2025-01-23 05:31:18] Production.INFO: ProcessCDR(1,14310201,1,1,2) [2025-01-23 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310201', 'tblTempUsageDetail_20' ) start [2025-01-23 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310201', 'tblTempUsageDetail_20' ) end [2025-01-23 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:31:21] Production.INFO: ==22185== Releasing lock... [2025-01-23 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:32:05 [end_date_ymd] => 2025-01-23 05:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:32:05' and `end` < '2025-01-23 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-23 05:32:18] Production.INFO: count ==156 [2025-01-23 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:32:05 - End Time 2025-01-23 05:32:05 [2025-01-23 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310206', 'tblTempUsageDetail_20' ) start [2025-01-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310206', 'tblTempUsageDetail_20' ) end [2025-01-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310206', 'tblTempVendorCDR_20' ) start [2025-01-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310206', 'tblTempVendorCDR_20' ) end [2025-01-23 05:32:18] Production.INFO: ProcessCDR(1,14310206,1,1,2) [2025-01-23 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310206', 'tblTempUsageDetail_20' ) start [2025-01-23 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310206', 'tblTempUsageDetail_20' ) end [2025-01-23 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:32:21] Production.INFO: ==22269== Releasing lock... [2025-01-23 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:33:05 [end_date_ymd] => 2025-01-23 05:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:33:05' and `end` < '2025-01-23 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-23 05:33:18] Production.INFO: count ==156 [2025-01-23 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:33:05 - End Time 2025-01-23 05:33:05 [2025-01-23 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310211', 'tblTempUsageDetail_20' ) start [2025-01-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310211', 'tblTempUsageDetail_20' ) end [2025-01-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310211', 'tblTempVendorCDR_20' ) start [2025-01-23 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310211', 'tblTempVendorCDR_20' ) end [2025-01-23 05:33:18] Production.INFO: ProcessCDR(1,14310211,1,1,2) [2025-01-23 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310211', 'tblTempUsageDetail_20' ) start [2025-01-23 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310211', 'tblTempUsageDetail_20' ) end [2025-01-23 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:33:21] Production.INFO: ==22340== Releasing lock... [2025-01-23 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:34:06 [end_date_ymd] => 2025-01-23 05:34:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:34:06' and `end` < '2025-01-23 05: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-23 05:34:19] Production.INFO: count ==156 [2025-01-23 05:34:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:34:06 - End Time 2025-01-23 05:34:06 [2025-01-23 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310216', 'tblTempUsageDetail_20' ) start [2025-01-23 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310216', 'tblTempUsageDetail_20' ) end [2025-01-23 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310216', 'tblTempVendorCDR_20' ) start [2025-01-23 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310216', 'tblTempVendorCDR_20' ) end [2025-01-23 05:34:19] Production.INFO: ProcessCDR(1,14310216,1,1,2) [2025-01-23 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310216', 'tblTempUsageDetail_20' ) start [2025-01-23 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310216', 'tblTempUsageDetail_20' ) end [2025-01-23 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:34:22] Production.INFO: ==22413== Releasing lock... [2025-01-23 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:35:05 [end_date_ymd] => 2025-01-23 05:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:35:05' and `end` < '2025-01-23 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-23 05:35:17] Production.INFO: count ==156 [2025-01-23 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:35:05 - End Time 2025-01-23 05:35:05 [2025-01-23 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310221', 'tblTempUsageDetail_20' ) start [2025-01-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310221', 'tblTempUsageDetail_20' ) end [2025-01-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310221', 'tblTempVendorCDR_20' ) start [2025-01-23 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310221', 'tblTempVendorCDR_20' ) end [2025-01-23 05:35:17] Production.INFO: ProcessCDR(1,14310221,1,1,2) [2025-01-23 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310221', 'tblTempUsageDetail_20' ) start [2025-01-23 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310221', 'tblTempUsageDetail_20' ) end [2025-01-23 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:35:21] Production.INFO: ==22542== Releasing lock... [2025-01-23 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:36:05 [end_date_ymd] => 2025-01-23 05:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:36:05' and `end` < '2025-01-23 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-23 05:36:18] Production.INFO: count ==156 [2025-01-23 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:36:05 - End Time 2025-01-23 05:36:05 [2025-01-23 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310226', 'tblTempUsageDetail_20' ) start [2025-01-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310226', 'tblTempUsageDetail_20' ) end [2025-01-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310226', 'tblTempVendorCDR_20' ) start [2025-01-23 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310226', 'tblTempVendorCDR_20' ) end [2025-01-23 05:36:18] Production.INFO: ProcessCDR(1,14310226,1,1,2) [2025-01-23 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310226', 'tblTempUsageDetail_20' ) start [2025-01-23 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310226', 'tblTempUsageDetail_20' ) end [2025-01-23 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:36:21] Production.INFO: ==22619== Releasing lock... [2025-01-23 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:37:04 [end_date_ymd] => 2025-01-23 05:37:04 [RateCDR] => 1 ) [2025-01-23 05:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:37:04' and `end` < '2025-01-23 05:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:37:17] Production.INFO: count ==156 [2025-01-23 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:37:04 - End Time 2025-01-23 05:37:04 [2025-01-23 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310231', 'tblTempUsageDetail_20' ) start [2025-01-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310231', 'tblTempUsageDetail_20' ) end [2025-01-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310231', 'tblTempVendorCDR_20' ) start [2025-01-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310231', 'tblTempVendorCDR_20' ) end [2025-01-23 05:37:17] Production.INFO: ProcessCDR(1,14310231,1,1,2) [2025-01-23 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310231', 'tblTempUsageDetail_20' ) start [2025-01-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310231', 'tblTempUsageDetail_20' ) end [2025-01-23 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:37:20] Production.INFO: ==22689== Releasing lock... [2025-01-23 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:38:05 [end_date_ymd] => 2025-01-23 05:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:38:05' and `end` < '2025-01-23 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-23 05:38:18] Production.INFO: count ==156 [2025-01-23 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:38:05 - End Time 2025-01-23 05:38:05 [2025-01-23 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310236', 'tblTempUsageDetail_20' ) start [2025-01-23 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310236', 'tblTempUsageDetail_20' ) end [2025-01-23 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310236', 'tblTempVendorCDR_20' ) start [2025-01-23 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310236', 'tblTempVendorCDR_20' ) end [2025-01-23 05:38:18] Production.INFO: ProcessCDR(1,14310236,1,1,2) [2025-01-23 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310236', 'tblTempUsageDetail_20' ) start [2025-01-23 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310236', 'tblTempUsageDetail_20' ) end [2025-01-23 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:38:21] Production.INFO: ==22781== Releasing lock... [2025-01-23 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:39:05 [end_date_ymd] => 2025-01-23 05:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:39:05' and `end` < '2025-01-23 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-23 05:39:18] Production.INFO: count ==156 [2025-01-23 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:39:05 - End Time 2025-01-23 05:39:05 [2025-01-23 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310241', 'tblTempUsageDetail_20' ) start [2025-01-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310241', 'tblTempUsageDetail_20' ) end [2025-01-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310241', 'tblTempVendorCDR_20' ) start [2025-01-23 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310241', 'tblTempVendorCDR_20' ) end [2025-01-23 05:39:18] Production.INFO: ProcessCDR(1,14310241,1,1,2) [2025-01-23 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310241', 'tblTempUsageDetail_20' ) start [2025-01-23 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310241', 'tblTempUsageDetail_20' ) end [2025-01-23 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:39:21] Production.INFO: ==22856== Releasing lock... [2025-01-23 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:40:06 [end_date_ymd] => 2025-01-23 05:40:06 [RateCDR] => 1 ) [2025-01-23 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:40:06' and `end` < '2025-01-23 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:40:19] Production.INFO: count ==153 [2025-01-23 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:40:06 - End Time 2025-01-23 05:40:06 [2025-01-23 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310247', 'tblTempUsageDetail_20' ) start [2025-01-23 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310247', 'tblTempUsageDetail_20' ) end [2025-01-23 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310247', 'tblTempVendorCDR_20' ) start [2025-01-23 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310247', 'tblTempVendorCDR_20' ) end [2025-01-23 05:40:19] Production.INFO: ProcessCDR(1,14310247,1,1,2) [2025-01-23 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310247', 'tblTempUsageDetail_20' ) start [2025-01-23 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310247', 'tblTempUsageDetail_20' ) end [2025-01-23 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:40:22] Production.INFO: ==22937== Releasing lock... [2025-01-23 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:41:05 [end_date_ymd] => 2025-01-23 05:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:41:05' and `end` < '2025-01-23 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-23 05:41:18] Production.INFO: count ==153 [2025-01-23 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:41:05 - End Time 2025-01-23 05:41:05 [2025-01-23 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310252', 'tblTempUsageDetail_20' ) start [2025-01-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310252', 'tblTempUsageDetail_20' ) end [2025-01-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310252', 'tblTempVendorCDR_20' ) start [2025-01-23 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310252', 'tblTempVendorCDR_20' ) end [2025-01-23 05:41:18] Production.INFO: ProcessCDR(1,14310252,1,1,2) [2025-01-23 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310252', 'tblTempUsageDetail_20' ) start [2025-01-23 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310252', 'tblTempUsageDetail_20' ) end [2025-01-23 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:41:21] Production.INFO: ==23024== Releasing lock... [2025-01-23 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:42:05 [end_date_ymd] => 2025-01-23 05:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:42:05' and `end` < '2025-01-23 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-23 05:42:19] Production.INFO: count ==153 [2025-01-23 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:42:05 - End Time 2025-01-23 05:42:05 [2025-01-23 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310257', 'tblTempUsageDetail_20' ) start [2025-01-23 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310257', 'tblTempUsageDetail_20' ) end [2025-01-23 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310257', 'tblTempVendorCDR_20' ) start [2025-01-23 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310257', 'tblTempVendorCDR_20' ) end [2025-01-23 05:42:19] Production.INFO: ProcessCDR(1,14310257,1,1,2) [2025-01-23 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310257', 'tblTempUsageDetail_20' ) start [2025-01-23 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310257', 'tblTempUsageDetail_20' ) end [2025-01-23 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:42:22] Production.INFO: ==23110== Releasing lock... [2025-01-23 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:43:05 [end_date_ymd] => 2025-01-23 05:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:43:05' and `end` < '2025-01-23 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-23 05:43:17] Production.INFO: count ==153 [2025-01-23 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:43:05 - End Time 2025-01-23 05:43:05 [2025-01-23 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310262', 'tblTempUsageDetail_20' ) start [2025-01-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310262', 'tblTempUsageDetail_20' ) end [2025-01-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310262', 'tblTempVendorCDR_20' ) start [2025-01-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310262', 'tblTempVendorCDR_20' ) end [2025-01-23 05:43:17] Production.INFO: ProcessCDR(1,14310262,1,1,2) [2025-01-23 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310262', 'tblTempUsageDetail_20' ) start [2025-01-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310262', 'tblTempUsageDetail_20' ) end [2025-01-23 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:43:21] Production.INFO: ==23190== Releasing lock... [2025-01-23 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:44:06 [end_date_ymd] => 2025-01-23 05:44:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:44:06' and `end` < '2025-01-23 05: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-23 05:44:18] Production.INFO: count ==153 [2025-01-23 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:44:06 - End Time 2025-01-23 05:44:06 [2025-01-23 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310267', 'tblTempUsageDetail_20' ) start [2025-01-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310267', 'tblTempUsageDetail_20' ) end [2025-01-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310267', 'tblTempVendorCDR_20' ) start [2025-01-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310267', 'tblTempVendorCDR_20' ) end [2025-01-23 05:44:18] Production.INFO: ProcessCDR(1,14310267,1,1,2) [2025-01-23 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310267', 'tblTempUsageDetail_20' ) start [2025-01-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310267', 'tblTempUsageDetail_20' ) end [2025-01-23 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:44:21] Production.INFO: ==23274== Releasing lock... [2025-01-23 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:45:05 [end_date_ymd] => 2025-01-23 05:45:05 [RateCDR] => 1 ) [2025-01-23 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:45:05' and `end` < '2025-01-23 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:45:17] Production.INFO: count ==153 [2025-01-23 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:45:05 - End Time 2025-01-23 05:45:05 [2025-01-23 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310272', 'tblTempUsageDetail_20' ) start [2025-01-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310272', 'tblTempUsageDetail_20' ) end [2025-01-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310272', 'tblTempVendorCDR_20' ) start [2025-01-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310272', 'tblTempVendorCDR_20' ) end [2025-01-23 05:45:17] Production.INFO: ProcessCDR(1,14310272,1,1,2) [2025-01-23 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310272', 'tblTempUsageDetail_20' ) start [2025-01-23 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310272', 'tblTempUsageDetail_20' ) end [2025-01-23 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:45:21] Production.INFO: ==23359== Releasing lock... [2025-01-23 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:46:05 [end_date_ymd] => 2025-01-23 05:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:46:05' and `end` < '2025-01-23 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-23 05:46:18] Production.INFO: count ==153 [2025-01-23 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:46:05 - End Time 2025-01-23 05:46:05 [2025-01-23 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310277', 'tblTempUsageDetail_20' ) start [2025-01-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310277', 'tblTempUsageDetail_20' ) end [2025-01-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310277', 'tblTempVendorCDR_20' ) start [2025-01-23 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310277', 'tblTempVendorCDR_20' ) end [2025-01-23 05:46:18] Production.INFO: ProcessCDR(1,14310277,1,1,2) [2025-01-23 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310277', 'tblTempUsageDetail_20' ) start [2025-01-23 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310277', 'tblTempUsageDetail_20' ) end [2025-01-23 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:46:21] Production.INFO: ==23440== Releasing lock... [2025-01-23 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:47:05 [end_date_ymd] => 2025-01-23 05:47:05 [RateCDR] => 1 ) [2025-01-23 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:47:05' and `end` < '2025-01-23 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:47:17] Production.INFO: count ==153 [2025-01-23 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:47:05 - End Time 2025-01-23 05:47:05 [2025-01-23 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310282', 'tblTempUsageDetail_20' ) start [2025-01-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310282', 'tblTempUsageDetail_20' ) end [2025-01-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310282', 'tblTempVendorCDR_20' ) start [2025-01-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310282', 'tblTempVendorCDR_20' ) end [2025-01-23 05:47:17] Production.INFO: ProcessCDR(1,14310282,1,1,2) [2025-01-23 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310282', 'tblTempUsageDetail_20' ) start [2025-01-23 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310282', 'tblTempUsageDetail_20' ) end [2025-01-23 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:47:21] Production.INFO: ==23530== Releasing lock... [2025-01-23 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:48:05 [end_date_ymd] => 2025-01-23 05:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:48:05' and `end` < '2025-01-23 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-23 05:48:18] Production.INFO: count ==153 [2025-01-23 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:48:05 - End Time 2025-01-23 05:48:05 [2025-01-23 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310287', 'tblTempUsageDetail_20' ) start [2025-01-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310287', 'tblTempUsageDetail_20' ) end [2025-01-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310287', 'tblTempVendorCDR_20' ) start [2025-01-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310287', 'tblTempVendorCDR_20' ) end [2025-01-23 05:48:18] Production.INFO: ProcessCDR(1,14310287,1,1,2) [2025-01-23 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310287', 'tblTempUsageDetail_20' ) start [2025-01-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310287', 'tblTempUsageDetail_20' ) end [2025-01-23 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:48:21] Production.INFO: ==23631== Releasing lock... [2025-01-23 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:49:05 [end_date_ymd] => 2025-01-23 05:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:49:05' and `end` < '2025-01-23 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-23 05:49:17] Production.INFO: count ==153 [2025-01-23 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:49:05 - End Time 2025-01-23 05:49:05 [2025-01-23 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310292', 'tblTempUsageDetail_20' ) start [2025-01-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310292', 'tblTempUsageDetail_20' ) end [2025-01-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310292', 'tblTempVendorCDR_20' ) start [2025-01-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310292', 'tblTempVendorCDR_20' ) end [2025-01-23 05:49:18] Production.INFO: ProcessCDR(1,14310292,1,1,2) [2025-01-23 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310292', 'tblTempUsageDetail_20' ) start [2025-01-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310292', 'tblTempUsageDetail_20' ) end [2025-01-23 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:49:21] Production.INFO: ==23715== Releasing lock... [2025-01-23 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:50:06 [end_date_ymd] => 2025-01-23 05:50:06 [RateCDR] => 1 ) [2025-01-23 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:50:06' and `end` < '2025-01-23 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:50:19] Production.INFO: count ==153 [2025-01-23 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 02:50:06 - End Time 2025-01-23 05:50:06 [2025-01-23 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310298', 'tblTempUsageDetail_20' ) start [2025-01-23 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310298', 'tblTempUsageDetail_20' ) end [2025-01-23 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310298', 'tblTempVendorCDR_20' ) start [2025-01-23 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310298', 'tblTempVendorCDR_20' ) end [2025-01-23 05:50:19] Production.INFO: ProcessCDR(1,14310298,1,1,2) [2025-01-23 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310298', 'tblTempUsageDetail_20' ) start [2025-01-23 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310298', 'tblTempUsageDetail_20' ) end [2025-01-23 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:50:22] Production.INFO: ==23806== Releasing lock... [2025-01-23 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:51:04 [end_date_ymd] => 2025-01-23 05:51:04 [RateCDR] => 1 ) [2025-01-23 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:51:04' and `end` < '2025-01-23 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:51:17] Production.INFO: count ==153 [2025-01-23 05:51:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:51:04 - End Time 2025-01-23 05:51:04 [2025-01-23 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310303', 'tblTempUsageDetail_20' ) start [2025-01-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310303', 'tblTempUsageDetail_20' ) end [2025-01-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310303', 'tblTempVendorCDR_20' ) start [2025-01-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310303', 'tblTempVendorCDR_20' ) end [2025-01-23 05:51:17] Production.INFO: ProcessCDR(1,14310303,1,1,2) [2025-01-23 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310303', 'tblTempUsageDetail_20' ) start [2025-01-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310303', 'tblTempUsageDetail_20' ) end [2025-01-23 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:51:21] Production.INFO: ==23928== Releasing lock... [2025-01-23 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:52:05 [end_date_ymd] => 2025-01-23 05:52:05 [RateCDR] => 1 ) [2025-01-23 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:52:05' and `end` < '2025-01-23 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:52:18] Production.INFO: count ==153 [2025-01-23 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:52:05 - End Time 2025-01-23 05:52:05 [2025-01-23 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310308', 'tblTempUsageDetail_20' ) start [2025-01-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310308', 'tblTempUsageDetail_20' ) end [2025-01-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310308', 'tblTempVendorCDR_20' ) start [2025-01-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310308', 'tblTempVendorCDR_20' ) end [2025-01-23 05:52:18] Production.INFO: ProcessCDR(1,14310308,1,1,2) [2025-01-23 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310308', 'tblTempUsageDetail_20' ) start [2025-01-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310308', 'tblTempUsageDetail_20' ) end [2025-01-23 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:52:21] Production.INFO: ==24012== Releasing lock... [2025-01-23 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:53:04 [end_date_ymd] => 2025-01-23 05:53:04 [RateCDR] => 1 ) [2025-01-23 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:53:04' and `end` < '2025-01-23 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 05:53:16] Production.INFO: count ==153 [2025-01-23 05:53:16] Production.ERROR: pbx CDR StartTime 2025-01-23 02:53:04 - End Time 2025-01-23 05:53:04 [2025-01-23 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310313', 'tblTempUsageDetail_20' ) start [2025-01-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310313', 'tblTempUsageDetail_20' ) end [2025-01-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310313', 'tblTempVendorCDR_20' ) start [2025-01-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310313', 'tblTempVendorCDR_20' ) end [2025-01-23 05:53:17] Production.INFO: ProcessCDR(1,14310313,1,1,2) [2025-01-23 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310313', 'tblTempUsageDetail_20' ) start [2025-01-23 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310313', 'tblTempUsageDetail_20' ) end [2025-01-23 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:53:20] Production.INFO: ==24097== Releasing lock... [2025-01-23 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:54:06 [end_date_ymd] => 2025-01-23 05:54:06 [RateCDR] => 1 ) [2025-01-23 05: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-23 02:54:06' and `end` < '2025-01-23 05: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-23 05:54:18] Production.INFO: count ==155 [2025-01-23 05:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:54:06 - End Time 2025-01-23 05:54:06 [2025-01-23 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310318', 'tblTempUsageDetail_20' ) start [2025-01-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310318', 'tblTempUsageDetail_20' ) end [2025-01-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310318', 'tblTempVendorCDR_20' ) start [2025-01-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310318', 'tblTempVendorCDR_20' ) end [2025-01-23 05:54:18] Production.INFO: ProcessCDR(1,14310318,1,1,2) [2025-01-23 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310318', 'tblTempUsageDetail_20' ) start [2025-01-23 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310318', 'tblTempUsageDetail_20' ) end [2025-01-23 05:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:54:23] Production.INFO: ==24176== Releasing lock... [2025-01-23 05:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:55:05 [end_date_ymd] => 2025-01-23 05:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:55:05' and `end` < '2025-01-23 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-23 05:55:17] Production.INFO: count ==155 [2025-01-23 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:55:05 - End Time 2025-01-23 05:55:05 [2025-01-23 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310323', 'tblTempUsageDetail_20' ) start [2025-01-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310323', 'tblTempUsageDetail_20' ) end [2025-01-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310323', 'tblTempVendorCDR_20' ) start [2025-01-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310323', 'tblTempVendorCDR_20' ) end [2025-01-23 05:55:17] Production.INFO: ProcessCDR(1,14310323,1,1,2) [2025-01-23 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310323', 'tblTempUsageDetail_20' ) start [2025-01-23 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310323', 'tblTempUsageDetail_20' ) end [2025-01-23 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:55:20] Production.INFO: ==24258== Releasing lock... [2025-01-23 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:56:05 [end_date_ymd] => 2025-01-23 05:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:56:05' and `end` < '2025-01-23 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-23 05:56:18] Production.INFO: count ==155 [2025-01-23 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:56:05 - End Time 2025-01-23 05:56:05 [2025-01-23 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310328', 'tblTempUsageDetail_20' ) start [2025-01-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310328', 'tblTempUsageDetail_20' ) end [2025-01-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310328', 'tblTempVendorCDR_20' ) start [2025-01-23 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310328', 'tblTempVendorCDR_20' ) end [2025-01-23 05:56:18] Production.INFO: ProcessCDR(1,14310328,1,1,2) [2025-01-23 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310328', 'tblTempUsageDetail_20' ) start [2025-01-23 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310328', 'tblTempUsageDetail_20' ) end [2025-01-23 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:56:22] Production.INFO: ==24339== Releasing lock... [2025-01-23 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:57:04 [end_date_ymd] => 2025-01-23 05:57:04 [RateCDR] => 1 ) [2025-01-23 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 02:57:04' and `end` < '2025-01-23 05: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-23 05:57:17] Production.INFO: count ==155 [2025-01-23 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:57:04 - End Time 2025-01-23 05:57:04 [2025-01-23 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310330', 'tblTempUsageDetail_20' ) start [2025-01-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310330', 'tblTempUsageDetail_20' ) end [2025-01-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310330', 'tblTempVendorCDR_20' ) start [2025-01-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310330', 'tblTempVendorCDR_20' ) end [2025-01-23 05:57:17] Production.INFO: ProcessCDR(1,14310330,1,1,2) [2025-01-23 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310330', 'tblTempUsageDetail_20' ) start [2025-01-23 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310330', 'tblTempUsageDetail_20' ) end [2025-01-23 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:57:20] Production.INFO: ==24420== Releasing lock... [2025-01-23 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:58:05 [end_date_ymd] => 2025-01-23 05:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 02:58:05' and `end` < '2025-01-23 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-23 05:58:18] Production.INFO: count ==155 [2025-01-23 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 02:58:05 - End Time 2025-01-23 05:58:05 [2025-01-23 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310338', 'tblTempUsageDetail_20' ) start [2025-01-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310338', 'tblTempUsageDetail_20' ) end [2025-01-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310338', 'tblTempVendorCDR_20' ) start [2025-01-23 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310338', 'tblTempVendorCDR_20' ) end [2025-01-23 05:58:18] Production.INFO: ProcessCDR(1,14310338,1,1,2) [2025-01-23 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310338', 'tblTempUsageDetail_20' ) start [2025-01-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310338', 'tblTempUsageDetail_20' ) end [2025-01-23 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:58:21] Production.INFO: ==24503== Releasing lock... [2025-01-23 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 02:59:04 [end_date_ymd] => 2025-01-23 05:59:04 [RateCDR] => 1 ) [2025-01-23 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-23 02:59:04' and `end` < '2025-01-23 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-23 05:59:17] Production.INFO: count ==155 [2025-01-23 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-23 02:59:04 - End Time 2025-01-23 05:59:04 [2025-01-23 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310343', 'tblTempUsageDetail_20' ) start [2025-01-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310343', 'tblTempUsageDetail_20' ) end [2025-01-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310343', 'tblTempVendorCDR_20' ) start [2025-01-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310343', 'tblTempVendorCDR_20' ) end [2025-01-23 05:59:17] Production.INFO: ProcessCDR(1,14310343,1,1,2) [2025-01-23 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310343', 'tblTempUsageDetail_20' ) start [2025-01-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310343', 'tblTempUsageDetail_20' ) end [2025-01-23 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 05:59:20] Production.INFO: ==24575== Releasing lock... [2025-01-23 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 05:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:00:06 [end_date_ymd] => 2025-01-23 06:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 03:00:06' and `end` < '2025-01-23 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-23 06:00:19] Production.INFO: count ==157 [2025-01-23 06:00:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:00:06 - End Time 2025-01-23 06:00:06 [2025-01-23 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310347', 'tblTempUsageDetail_20' ) start [2025-01-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310347', 'tblTempUsageDetail_20' ) end [2025-01-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310347', 'tblTempVendorCDR_20' ) start [2025-01-23 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310347', 'tblTempVendorCDR_20' ) end [2025-01-23 06:00:19] Production.INFO: ProcessCDR(1,14310347,1,1,2) [2025-01-23 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310347', 'tblTempUsageDetail_20' ) start [2025-01-23 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310347', 'tblTempUsageDetail_20' ) end [2025-01-23 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:00:22] Production.INFO: ==24664== Releasing lock... [2025-01-23 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:01:05 [end_date_ymd] => 2025-01-23 06:01:05 [RateCDR] => 1 ) [2025-01-23 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:01:05' and `end` < '2025-01-23 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:01:18] Production.INFO: count ==157 [2025-01-23 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:01:05 - End Time 2025-01-23 06:01:05 [2025-01-23 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310354', 'tblTempUsageDetail_20' ) start [2025-01-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310354', 'tblTempUsageDetail_20' ) end [2025-01-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310354', 'tblTempVendorCDR_20' ) start [2025-01-23 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310354', 'tblTempVendorCDR_20' ) end [2025-01-23 06:01:18] Production.INFO: ProcessCDR(1,14310354,1,1,2) [2025-01-23 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310354', 'tblTempUsageDetail_20' ) start [2025-01-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310354', 'tblTempUsageDetail_20' ) end [2025-01-23 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:01:21] Production.INFO: ==24754== Releasing lock... [2025-01-23 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:02:05 [end_date_ymd] => 2025-01-23 06:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:02:05' and `end` < '2025-01-23 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-23 06:02:18] Production.INFO: count ==157 [2025-01-23 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:02:05 - End Time 2025-01-23 06:02:05 [2025-01-23 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310359', 'tblTempUsageDetail_20' ) start [2025-01-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310359', 'tblTempUsageDetail_20' ) end [2025-01-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310359', 'tblTempVendorCDR_20' ) start [2025-01-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310359', 'tblTempVendorCDR_20' ) end [2025-01-23 06:02:18] Production.INFO: ProcessCDR(1,14310359,1,1,2) [2025-01-23 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310359', 'tblTempUsageDetail_20' ) start [2025-01-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310359', 'tblTempUsageDetail_20' ) end [2025-01-23 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:02:21] Production.INFO: ==24839== Releasing lock... [2025-01-23 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:03:05 [end_date_ymd] => 2025-01-23 06:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:03:05' and `end` < '2025-01-23 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-23 06:03:18] Production.INFO: count ==157 [2025-01-23 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:03:05 - End Time 2025-01-23 06:03:05 [2025-01-23 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310364', 'tblTempUsageDetail_20' ) start [2025-01-23 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310364', 'tblTempUsageDetail_20' ) end [2025-01-23 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310364', 'tblTempVendorCDR_20' ) start [2025-01-23 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310364', 'tblTempVendorCDR_20' ) end [2025-01-23 06:03:18] Production.INFO: ProcessCDR(1,14310364,1,1,2) [2025-01-23 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310364', 'tblTempUsageDetail_20' ) start [2025-01-23 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310364', 'tblTempUsageDetail_20' ) end [2025-01-23 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:03:21] Production.INFO: ==24925== Releasing lock... [2025-01-23 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:04:06 [end_date_ymd] => 2025-01-23 06:04:06 [RateCDR] => 1 ) [2025-01-23 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:04:06' and `end` < '2025-01-23 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:04:18] Production.INFO: count ==157 [2025-01-23 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:04:06 - End Time 2025-01-23 06:04:06 [2025-01-23 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310369', 'tblTempUsageDetail_20' ) start [2025-01-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310369', 'tblTempUsageDetail_20' ) end [2025-01-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310369', 'tblTempVendorCDR_20' ) start [2025-01-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310369', 'tblTempVendorCDR_20' ) end [2025-01-23 06:04:18] Production.INFO: ProcessCDR(1,14310369,1,1,2) [2025-01-23 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310369', 'tblTempUsageDetail_20' ) start [2025-01-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310369', 'tblTempUsageDetail_20' ) end [2025-01-23 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:04:21] Production.INFO: ==25005== Releasing lock... [2025-01-23 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:05:05 [end_date_ymd] => 2025-01-23 06:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:05:05' and `end` < '2025-01-23 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-23 06:05:17] Production.INFO: count ==157 [2025-01-23 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:05:05 - End Time 2025-01-23 06:05:05 [2025-01-23 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310374', 'tblTempUsageDetail_20' ) start [2025-01-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310374', 'tblTempUsageDetail_20' ) end [2025-01-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310374', 'tblTempVendorCDR_20' ) start [2025-01-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310374', 'tblTempVendorCDR_20' ) end [2025-01-23 06:05:17] Production.INFO: ProcessCDR(1,14310374,1,1,2) [2025-01-23 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310374', 'tblTempUsageDetail_20' ) start [2025-01-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310374', 'tblTempUsageDetail_20' ) end [2025-01-23 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:05:20] Production.INFO: ==25076== Releasing lock... [2025-01-23 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:06:06 [end_date_ymd] => 2025-01-23 06:06:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:06:06' and `end` < '2025-01-23 06: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-23 06:06:19] Production.INFO: count ==157 [2025-01-23 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:06:06 - End Time 2025-01-23 06:06:06 [2025-01-23 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310379', 'tblTempUsageDetail_20' ) start [2025-01-23 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310379', 'tblTempUsageDetail_20' ) end [2025-01-23 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310379', 'tblTempVendorCDR_20' ) start [2025-01-23 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310379', 'tblTempVendorCDR_20' ) end [2025-01-23 06:06:19] Production.INFO: ProcessCDR(1,14310379,1,1,2) [2025-01-23 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310379', 'tblTempUsageDetail_20' ) start [2025-01-23 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310379', 'tblTempUsageDetail_20' ) end [2025-01-23 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:06:22] Production.INFO: ==25199== Releasing lock... [2025-01-23 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:07:05 [end_date_ymd] => 2025-01-23 06:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:07:05' and `end` < '2025-01-23 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-23 06:07:18] Production.INFO: count ==157 [2025-01-23 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:07:05 - End Time 2025-01-23 06:07:05 [2025-01-23 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310384', 'tblTempUsageDetail_20' ) start [2025-01-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310384', 'tblTempUsageDetail_20' ) end [2025-01-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310384', 'tblTempVendorCDR_20' ) start [2025-01-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310384', 'tblTempVendorCDR_20' ) end [2025-01-23 06:07:18] Production.INFO: ProcessCDR(1,14310384,1,1,2) [2025-01-23 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310384', 'tblTempUsageDetail_20' ) start [2025-01-23 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310384', 'tblTempUsageDetail_20' ) end [2025-01-23 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:07:21] Production.INFO: ==25281== Releasing lock... [2025-01-23 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:08:05 [end_date_ymd] => 2025-01-23 06:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:08:05' and `end` < '2025-01-23 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-23 06:08:18] Production.INFO: count ==157 [2025-01-23 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:08:05 - End Time 2025-01-23 06:08:05 [2025-01-23 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310389', 'tblTempUsageDetail_20' ) start [2025-01-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310389', 'tblTempUsageDetail_20' ) end [2025-01-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310389', 'tblTempVendorCDR_20' ) start [2025-01-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310389', 'tblTempVendorCDR_20' ) end [2025-01-23 06:08:18] Production.INFO: ProcessCDR(1,14310389,1,1,2) [2025-01-23 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310389', 'tblTempUsageDetail_20' ) start [2025-01-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310389', 'tblTempUsageDetail_20' ) end [2025-01-23 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:08:21] Production.INFO: ==25359== Releasing lock... [2025-01-23 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:09:05 [end_date_ymd] => 2025-01-23 06:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:09:05' and `end` < '2025-01-23 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-23 06:09:18] Production.INFO: count ==157 [2025-01-23 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:09:05 - End Time 2025-01-23 06:09:05 [2025-01-23 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310394', 'tblTempUsageDetail_20' ) start [2025-01-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310394', 'tblTempUsageDetail_20' ) end [2025-01-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310394', 'tblTempVendorCDR_20' ) start [2025-01-23 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310394', 'tblTempVendorCDR_20' ) end [2025-01-23 06:09:18] Production.INFO: ProcessCDR(1,14310394,1,1,2) [2025-01-23 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310394', 'tblTempUsageDetail_20' ) start [2025-01-23 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310394', 'tblTempUsageDetail_20' ) end [2025-01-23 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:09:21] Production.INFO: ==25441== Releasing lock... [2025-01-23 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:10:06 [end_date_ymd] => 2025-01-23 06:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 03:10:06' and `end` < '2025-01-23 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-23 06:10:19] Production.INFO: count ==147 [2025-01-23 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:10:06 - End Time 2025-01-23 06:10:06 [2025-01-23 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310400', 'tblTempUsageDetail_20' ) start [2025-01-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310400', 'tblTempUsageDetail_20' ) end [2025-01-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310400', 'tblTempVendorCDR_20' ) start [2025-01-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310400', 'tblTempVendorCDR_20' ) end [2025-01-23 06:10:19] Production.INFO: ProcessCDR(1,14310400,1,1,2) [2025-01-23 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310400', 'tblTempUsageDetail_20' ) start [2025-01-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310400', 'tblTempUsageDetail_20' ) end [2025-01-23 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:10:22] Production.INFO: ==25519== Releasing lock... [2025-01-23 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:11:05 [end_date_ymd] => 2025-01-23 06:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:11:05' and `end` < '2025-01-23 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-23 06:11:18] Production.INFO: count ==147 [2025-01-23 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:11:05 - End Time 2025-01-23 06:11:05 [2025-01-23 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310405', 'tblTempUsageDetail_20' ) start [2025-01-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310405', 'tblTempUsageDetail_20' ) end [2025-01-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310405', 'tblTempVendorCDR_20' ) start [2025-01-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310405', 'tblTempVendorCDR_20' ) end [2025-01-23 06:11:18] Production.INFO: ProcessCDR(1,14310405,1,1,2) [2025-01-23 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310405', 'tblTempUsageDetail_20' ) start [2025-01-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310405', 'tblTempUsageDetail_20' ) end [2025-01-23 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:11:21] Production.INFO: ==25602== Releasing lock... [2025-01-23 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:12:06 [end_date_ymd] => 2025-01-23 06:12:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:12:06' and `end` < '2025-01-23 06: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-23 06:12:18] Production.INFO: count ==147 [2025-01-23 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:12:06 - End Time 2025-01-23 06:12:06 [2025-01-23 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310410', 'tblTempUsageDetail_20' ) start [2025-01-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310410', 'tblTempUsageDetail_20' ) end [2025-01-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310410', 'tblTempVendorCDR_20' ) start [2025-01-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310410', 'tblTempVendorCDR_20' ) end [2025-01-23 06:12:18] Production.INFO: ProcessCDR(1,14310410,1,1,2) [2025-01-23 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310410', 'tblTempUsageDetail_20' ) start [2025-01-23 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310410', 'tblTempUsageDetail_20' ) end [2025-01-23 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:12:22] Production.INFO: ==25683== Releasing lock... [2025-01-23 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:13:05 [end_date_ymd] => 2025-01-23 06:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:13:05' and `end` < '2025-01-23 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-23 06:13:18] Production.INFO: count ==147 [2025-01-23 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:13:05 - End Time 2025-01-23 06:13:05 [2025-01-23 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310415', 'tblTempUsageDetail_20' ) start [2025-01-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310415', 'tblTempUsageDetail_20' ) end [2025-01-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310415', 'tblTempVendorCDR_20' ) start [2025-01-23 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310415', 'tblTempVendorCDR_20' ) end [2025-01-23 06:13:18] Production.INFO: ProcessCDR(1,14310415,1,1,2) [2025-01-23 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310415', 'tblTempUsageDetail_20' ) start [2025-01-23 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310415', 'tblTempUsageDetail_20' ) end [2025-01-23 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:13:21] Production.INFO: ==25771== Releasing lock... [2025-01-23 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:14:05 [end_date_ymd] => 2025-01-23 06:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:14:05' and `end` < '2025-01-23 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-23 06:14:18] Production.INFO: count ==147 [2025-01-23 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:14:05 - End Time 2025-01-23 06:14:05 [2025-01-23 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310420', 'tblTempUsageDetail_20' ) start [2025-01-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310420', 'tblTempUsageDetail_20' ) end [2025-01-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310420', 'tblTempVendorCDR_20' ) start [2025-01-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310420', 'tblTempVendorCDR_20' ) end [2025-01-23 06:14:18] Production.INFO: ProcessCDR(1,14310420,1,1,2) [2025-01-23 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310420', 'tblTempUsageDetail_20' ) start [2025-01-23 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310420', 'tblTempUsageDetail_20' ) end [2025-01-23 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:14:21] Production.INFO: ==25849== Releasing lock... [2025-01-23 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:15:05 [end_date_ymd] => 2025-01-23 06:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:15:05' and `end` < '2025-01-23 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-23 06:15:18] Production.INFO: count ==147 [2025-01-23 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:15:05 - End Time 2025-01-23 06:15:05 [2025-01-23 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310425', 'tblTempUsageDetail_20' ) start [2025-01-23 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310425', 'tblTempUsageDetail_20' ) end [2025-01-23 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310425', 'tblTempVendorCDR_20' ) start [2025-01-23 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310425', 'tblTempVendorCDR_20' ) end [2025-01-23 06:15:18] Production.INFO: ProcessCDR(1,14310425,1,1,2) [2025-01-23 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310425', 'tblTempUsageDetail_20' ) start [2025-01-23 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310425', 'tblTempUsageDetail_20' ) end [2025-01-23 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:15:21] Production.INFO: ==25926== Releasing lock... [2025-01-23 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:16:06 [end_date_ymd] => 2025-01-23 06:16:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:16:06' and `end` < '2025-01-23 06: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-23 06:16:18] Production.INFO: count ==147 [2025-01-23 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:16:06 - End Time 2025-01-23 06:16:06 [2025-01-23 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310430', 'tblTempUsageDetail_20' ) start [2025-01-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310430', 'tblTempUsageDetail_20' ) end [2025-01-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310430', 'tblTempVendorCDR_20' ) start [2025-01-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310430', 'tblTempVendorCDR_20' ) end [2025-01-23 06:16:18] Production.INFO: ProcessCDR(1,14310430,1,1,2) [2025-01-23 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310430', 'tblTempUsageDetail_20' ) start [2025-01-23 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310430', 'tblTempUsageDetail_20' ) end [2025-01-23 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:16:21] Production.INFO: ==25996== Releasing lock... [2025-01-23 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:17:05 [end_date_ymd] => 2025-01-23 06:17:05 [RateCDR] => 1 ) [2025-01-23 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:17:05' and `end` < '2025-01-23 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:17:18] Production.INFO: count ==147 [2025-01-23 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:17:05 - End Time 2025-01-23 06:17:05 [2025-01-23 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310435', 'tblTempUsageDetail_20' ) start [2025-01-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310435', 'tblTempUsageDetail_20' ) end [2025-01-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310435', 'tblTempVendorCDR_20' ) start [2025-01-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310435', 'tblTempVendorCDR_20' ) end [2025-01-23 06:17:18] Production.INFO: ProcessCDR(1,14310435,1,1,2) [2025-01-23 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310435', 'tblTempUsageDetail_20' ) start [2025-01-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310435', 'tblTempUsageDetail_20' ) end [2025-01-23 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:17:21] Production.INFO: ==26067== Releasing lock... [2025-01-23 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:18:06 [end_date_ymd] => 2025-01-23 06:18:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:18:06' and `end` < '2025-01-23 06: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-23 06:18:19] Production.INFO: count ==147 [2025-01-23 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:18:06 - End Time 2025-01-23 06:18:06 [2025-01-23 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310440', 'tblTempUsageDetail_20' ) start [2025-01-23 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310440', 'tblTempUsageDetail_20' ) end [2025-01-23 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310440', 'tblTempVendorCDR_20' ) start [2025-01-23 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310440', 'tblTempVendorCDR_20' ) end [2025-01-23 06:18:19] Production.INFO: ProcessCDR(1,14310440,1,1,2) [2025-01-23 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310440', 'tblTempUsageDetail_20' ) start [2025-01-23 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310440', 'tblTempUsageDetail_20' ) end [2025-01-23 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:18:22] Production.INFO: ==26141== Releasing lock... [2025-01-23 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:19:05 [end_date_ymd] => 2025-01-23 06:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:19:05' and `end` < '2025-01-23 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-23 06:19:19] Production.INFO: count ==147 [2025-01-23 06:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:19:05 - End Time 2025-01-23 06:19:05 [2025-01-23 06:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310445', 'tblTempUsageDetail_20' ) start [2025-01-23 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310445', 'tblTempUsageDetail_20' ) end [2025-01-23 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310445', 'tblTempVendorCDR_20' ) start [2025-01-23 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310445', 'tblTempVendorCDR_20' ) end [2025-01-23 06:19:19] Production.INFO: ProcessCDR(1,14310445,1,1,2) [2025-01-23 06:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310445', 'tblTempUsageDetail_20' ) start [2025-01-23 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310445', 'tblTempUsageDetail_20' ) end [2025-01-23 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:19:22] Production.INFO: ==26215== Releasing lock... [2025-01-23 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:20:05 [end_date_ymd] => 2025-01-23 06:20:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:20:05' and `end` < '2025-01-23 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-23 06:20:17] Production.INFO: count ==136 [2025-01-23 06:20:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:20:05 - End Time 2025-01-23 06:20:05 [2025-01-23 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310451', 'tblTempUsageDetail_20' ) start [2025-01-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310451', 'tblTempUsageDetail_20' ) end [2025-01-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310451', 'tblTempVendorCDR_20' ) start [2025-01-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310451', 'tblTempVendorCDR_20' ) end [2025-01-23 06:20:17] Production.INFO: ProcessCDR(1,14310451,1,1,2) [2025-01-23 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310451', 'tblTempUsageDetail_20' ) start [2025-01-23 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310451', 'tblTempUsageDetail_20' ) end [2025-01-23 06:20:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:20:21] Production.INFO: ==26288== Releasing lock... [2025-01-23 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:21:05 [end_date_ymd] => 2025-01-23 06:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:21:05' and `end` < '2025-01-23 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-23 06:21:18] Production.INFO: count ==126 [2025-01-23 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:21:05 - End Time 2025-01-23 06:21:05 [2025-01-23 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310456', 'tblTempUsageDetail_20' ) start [2025-01-23 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310456', 'tblTempUsageDetail_20' ) end [2025-01-23 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310456', 'tblTempVendorCDR_20' ) start [2025-01-23 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310456', 'tblTempVendorCDR_20' ) end [2025-01-23 06:21:18] Production.INFO: ProcessCDR(1,14310456,1,1,2) [2025-01-23 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310456', 'tblTempUsageDetail_20' ) start [2025-01-23 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310456', 'tblTempUsageDetail_20' ) end [2025-01-23 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:21:21] Production.INFO: ==26402== Releasing lock... [2025-01-23 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:22:06 [end_date_ymd] => 2025-01-23 06:22:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:22:06' and `end` < '2025-01-23 06: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-23 06:22:19] Production.INFO: count ==126 [2025-01-23 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:22:06 - End Time 2025-01-23 06:22:06 [2025-01-23 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310461', 'tblTempUsageDetail_20' ) start [2025-01-23 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310461', 'tblTempUsageDetail_20' ) end [2025-01-23 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310461', 'tblTempVendorCDR_20' ) start [2025-01-23 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310461', 'tblTempVendorCDR_20' ) end [2025-01-23 06:22:19] Production.INFO: ProcessCDR(1,14310461,1,1,2) [2025-01-23 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310461', 'tblTempUsageDetail_20' ) start [2025-01-23 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310461', 'tblTempUsageDetail_20' ) end [2025-01-23 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:22:22] Production.INFO: ==26474== Releasing lock... [2025-01-23 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:23:05 [end_date_ymd] => 2025-01-23 06:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:23:05' and `end` < '2025-01-23 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-23 06:23:18] Production.INFO: count ==125 [2025-01-23 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:23:05 - End Time 2025-01-23 06:23:05 [2025-01-23 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310466', 'tblTempUsageDetail_20' ) start [2025-01-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310466', 'tblTempUsageDetail_20' ) end [2025-01-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310466', 'tblTempVendorCDR_20' ) start [2025-01-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310466', 'tblTempVendorCDR_20' ) end [2025-01-23 06:23:18] Production.INFO: ProcessCDR(1,14310466,1,1,2) [2025-01-23 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310466', 'tblTempUsageDetail_20' ) start [2025-01-23 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310466', 'tblTempUsageDetail_20' ) end [2025-01-23 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:23:21] Production.INFO: ==26547== Releasing lock... [2025-01-23 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:24:05 [end_date_ymd] => 2025-01-23 06:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:24:05' and `end` < '2025-01-23 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-23 06:24:18] Production.INFO: count ==125 [2025-01-23 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:24:05 - End Time 2025-01-23 06:24:05 [2025-01-23 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310471', 'tblTempUsageDetail_20' ) start [2025-01-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310471', 'tblTempUsageDetail_20' ) end [2025-01-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310471', 'tblTempVendorCDR_20' ) start [2025-01-23 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310471', 'tblTempVendorCDR_20' ) end [2025-01-23 06:24:18] Production.INFO: ProcessCDR(1,14310471,1,1,2) [2025-01-23 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310471', 'tblTempUsageDetail_20' ) start [2025-01-23 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310471', 'tblTempUsageDetail_20' ) end [2025-01-23 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:24:21] Production.INFO: ==26618== Releasing lock... [2025-01-23 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:25:05 [end_date_ymd] => 2025-01-23 06:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:25:05' and `end` < '2025-01-23 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-23 06:25:18] Production.INFO: count ==125 [2025-01-23 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:25:05 - End Time 2025-01-23 06:25:05 [2025-01-23 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310476', 'tblTempUsageDetail_20' ) start [2025-01-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310476', 'tblTempUsageDetail_20' ) end [2025-01-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310476', 'tblTempVendorCDR_20' ) start [2025-01-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310476', 'tblTempVendorCDR_20' ) end [2025-01-23 06:25:18] Production.INFO: ProcessCDR(1,14310476,1,1,2) [2025-01-23 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310476', 'tblTempUsageDetail_20' ) start [2025-01-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310476', 'tblTempUsageDetail_20' ) end [2025-01-23 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:25:21] Production.INFO: ==26693== Releasing lock... [2025-01-23 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:26:05 [end_date_ymd] => 2025-01-23 06:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:26:05' and `end` < '2025-01-23 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-23 06:26:18] Production.INFO: count ==125 [2025-01-23 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:26:05 - End Time 2025-01-23 06:26:05 [2025-01-23 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310481', 'tblTempUsageDetail_20' ) start [2025-01-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310481', 'tblTempUsageDetail_20' ) end [2025-01-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310481', 'tblTempVendorCDR_20' ) start [2025-01-23 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310481', 'tblTempVendorCDR_20' ) end [2025-01-23 06:26:18] Production.INFO: ProcessCDR(1,14310481,1,1,2) [2025-01-23 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310481', 'tblTempUsageDetail_20' ) start [2025-01-23 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310481', 'tblTempUsageDetail_20' ) end [2025-01-23 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:26:21] Production.INFO: ==26761== Releasing lock... [2025-01-23 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:27:05 [end_date_ymd] => 2025-01-23 06:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:27:05' and `end` < '2025-01-23 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-23 06:27:18] Production.INFO: count ==125 [2025-01-23 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:27:05 - End Time 2025-01-23 06:27:05 [2025-01-23 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310486', 'tblTempUsageDetail_20' ) start [2025-01-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310486', 'tblTempUsageDetail_20' ) end [2025-01-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310486', 'tblTempVendorCDR_20' ) start [2025-01-23 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310486', 'tblTempVendorCDR_20' ) end [2025-01-23 06:27:18] Production.INFO: ProcessCDR(1,14310486,1,1,2) [2025-01-23 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310486', 'tblTempUsageDetail_20' ) start [2025-01-23 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310486', 'tblTempUsageDetail_20' ) end [2025-01-23 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:27:21] Production.INFO: ==26839== Releasing lock... [2025-01-23 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:28:05 [end_date_ymd] => 2025-01-23 06:28:05 [RateCDR] => 1 ) [2025-01-23 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:28:05' and `end` < '2025-01-23 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:28:18] Production.INFO: count ==125 [2025-01-23 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:28:05 - End Time 2025-01-23 06:28:05 [2025-01-23 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310491', 'tblTempUsageDetail_20' ) start [2025-01-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310491', 'tblTempUsageDetail_20' ) end [2025-01-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310491', 'tblTempVendorCDR_20' ) start [2025-01-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310491', 'tblTempVendorCDR_20' ) end [2025-01-23 06:28:18] Production.INFO: ProcessCDR(1,14310491,1,1,2) [2025-01-23 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310491', 'tblTempUsageDetail_20' ) start [2025-01-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310491', 'tblTempUsageDetail_20' ) end [2025-01-23 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:28:21] Production.INFO: ==26910== Releasing lock... [2025-01-23 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:29:05 [end_date_ymd] => 2025-01-23 06:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:29:05' and `end` < '2025-01-23 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-23 06:29:18] Production.INFO: count ==125 [2025-01-23 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:29:05 - End Time 2025-01-23 06:29:05 [2025-01-23 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310496', 'tblTempUsageDetail_20' ) start [2025-01-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310496', 'tblTempUsageDetail_20' ) end [2025-01-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310496', 'tblTempVendorCDR_20' ) start [2025-01-23 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310496', 'tblTempVendorCDR_20' ) end [2025-01-23 06:29:18] Production.INFO: ProcessCDR(1,14310496,1,1,2) [2025-01-23 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310496', 'tblTempUsageDetail_20' ) start [2025-01-23 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310496', 'tblTempUsageDetail_20' ) end [2025-01-23 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:29:21] Production.INFO: ==26983== Releasing lock... [2025-01-23 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:30:06 [end_date_ymd] => 2025-01-23 06:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 03:30:06' and `end` < '2025-01-23 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-23 06:30:19] Production.INFO: count ==125 [2025-01-23 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:30:06 - End Time 2025-01-23 06:30:06 [2025-01-23 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310502', 'tblTempUsageDetail_20' ) start [2025-01-23 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310502', 'tblTempUsageDetail_20' ) end [2025-01-23 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310502', 'tblTempVendorCDR_20' ) start [2025-01-23 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310502', 'tblTempVendorCDR_20' ) end [2025-01-23 06:30:19] Production.INFO: ProcessCDR(1,14310502,1,1,2) [2025-01-23 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310502', 'tblTempUsageDetail_20' ) start [2025-01-23 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310502', 'tblTempUsageDetail_20' ) end [2025-01-23 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:30:22] Production.INFO: ==27058== Releasing lock... [2025-01-23 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:31:05 [end_date_ymd] => 2025-01-23 06:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:31:05' and `end` < '2025-01-23 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-23 06:31:18] Production.INFO: count ==126 [2025-01-23 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:31:05 - End Time 2025-01-23 06:31:05 [2025-01-23 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310507', 'tblTempUsageDetail_20' ) start [2025-01-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310507', 'tblTempUsageDetail_20' ) end [2025-01-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310507', 'tblTempVendorCDR_20' ) start [2025-01-23 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310507', 'tblTempVendorCDR_20' ) end [2025-01-23 06:31:18] Production.INFO: ProcessCDR(1,14310507,1,1,2) [2025-01-23 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310507', 'tblTempUsageDetail_20' ) start [2025-01-23 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310507', 'tblTempUsageDetail_20' ) end [2025-01-23 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:31:21] Production.INFO: ==27130== Releasing lock... [2025-01-23 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:32:05 [end_date_ymd] => 2025-01-23 06:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:32:05' and `end` < '2025-01-23 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-23 06:32:18] Production.INFO: count ==126 [2025-01-23 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:32:05 - End Time 2025-01-23 06:32:05 [2025-01-23 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310512', 'tblTempUsageDetail_20' ) start [2025-01-23 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310512', 'tblTempUsageDetail_20' ) end [2025-01-23 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310512', 'tblTempVendorCDR_20' ) start [2025-01-23 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310512', 'tblTempVendorCDR_20' ) end [2025-01-23 06:32:18] Production.INFO: ProcessCDR(1,14310512,1,1,2) [2025-01-23 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310512', 'tblTempUsageDetail_20' ) start [2025-01-23 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310512', 'tblTempUsageDetail_20' ) end [2025-01-23 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:32:21] Production.INFO: ==27203== Releasing lock... [2025-01-23 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:33:06 [end_date_ymd] => 2025-01-23 06:33:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:33:06' and `end` < '2025-01-23 06: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-23 06:33:19] Production.INFO: count ==126 [2025-01-23 06:33:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:33:06 - End Time 2025-01-23 06:33:06 [2025-01-23 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310517', 'tblTempUsageDetail_20' ) start [2025-01-23 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310517', 'tblTempUsageDetail_20' ) end [2025-01-23 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310517', 'tblTempVendorCDR_20' ) start [2025-01-23 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310517', 'tblTempVendorCDR_20' ) end [2025-01-23 06:33:19] Production.INFO: ProcessCDR(1,14310517,1,1,2) [2025-01-23 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310517', 'tblTempUsageDetail_20' ) start [2025-01-23 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310517', 'tblTempUsageDetail_20' ) end [2025-01-23 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:33:22] Production.INFO: ==27278== Releasing lock... [2025-01-23 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:34:05 [end_date_ymd] => 2025-01-23 06:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:34:05' and `end` < '2025-01-23 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-23 06:34:17] Production.INFO: count ==126 [2025-01-23 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:34:05 - End Time 2025-01-23 06:34:05 [2025-01-23 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310522', 'tblTempUsageDetail_20' ) start [2025-01-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310522', 'tblTempUsageDetail_20' ) end [2025-01-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310522', 'tblTempVendorCDR_20' ) start [2025-01-23 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310522', 'tblTempVendorCDR_20' ) end [2025-01-23 06:34:18] Production.INFO: ProcessCDR(1,14310522,1,1,2) [2025-01-23 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310522', 'tblTempUsageDetail_20' ) start [2025-01-23 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310522', 'tblTempUsageDetail_20' ) end [2025-01-23 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:34:21] Production.INFO: ==27350== Releasing lock... [2025-01-23 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:35:05 [end_date_ymd] => 2025-01-23 06:35:05 [RateCDR] => 1 ) [2025-01-23 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:35:05' and `end` < '2025-01-23 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:35:18] Production.INFO: count ==126 [2025-01-23 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:35:05 - End Time 2025-01-23 06:35:05 [2025-01-23 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310527', 'tblTempUsageDetail_20' ) start [2025-01-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310527', 'tblTempUsageDetail_20' ) end [2025-01-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310527', 'tblTempVendorCDR_20' ) start [2025-01-23 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310527', 'tblTempVendorCDR_20' ) end [2025-01-23 06:35:18] Production.INFO: ProcessCDR(1,14310527,1,1,2) [2025-01-23 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310527', 'tblTempUsageDetail_20' ) start [2025-01-23 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310527', 'tblTempUsageDetail_20' ) end [2025-01-23 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:35:21] Production.INFO: ==27421== Releasing lock... [2025-01-23 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:36:05 [end_date_ymd] => 2025-01-23 06:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:36:05' and `end` < '2025-01-23 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-23 06:36:18] Production.INFO: count ==126 [2025-01-23 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:36:05 - End Time 2025-01-23 06:36:05 [2025-01-23 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310532', 'tblTempUsageDetail_20' ) start [2025-01-23 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310532', 'tblTempUsageDetail_20' ) end [2025-01-23 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310532', 'tblTempVendorCDR_20' ) start [2025-01-23 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310532', 'tblTempVendorCDR_20' ) end [2025-01-23 06:36:18] Production.INFO: ProcessCDR(1,14310532,1,1,2) [2025-01-23 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310532', 'tblTempUsageDetail_20' ) start [2025-01-23 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310532', 'tblTempUsageDetail_20' ) end [2025-01-23 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:36:21] Production.INFO: ==27491== Releasing lock... [2025-01-23 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:37:06 [end_date_ymd] => 2025-01-23 06:37:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:37:06' and `end` < '2025-01-23 06: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-23 06:37:18] Production.INFO: count ==126 [2025-01-23 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:37:06 - End Time 2025-01-23 06:37:06 [2025-01-23 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310537', 'tblTempUsageDetail_20' ) start [2025-01-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310537', 'tblTempUsageDetail_20' ) end [2025-01-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310537', 'tblTempVendorCDR_20' ) start [2025-01-23 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310537', 'tblTempVendorCDR_20' ) end [2025-01-23 06:37:18] Production.INFO: ProcessCDR(1,14310537,1,1,2) [2025-01-23 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310537', 'tblTempUsageDetail_20' ) start [2025-01-23 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310537', 'tblTempUsageDetail_20' ) end [2025-01-23 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:37:21] Production.INFO: ==27601== Releasing lock... [2025-01-23 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:38:05 [end_date_ymd] => 2025-01-23 06:38:05 [RateCDR] => 1 ) [2025-01-23 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:38:05' and `end` < '2025-01-23 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:38:18] Production.INFO: count ==125 [2025-01-23 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:38:05 - End Time 2025-01-23 06:38:05 [2025-01-23 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310542', 'tblTempUsageDetail_20' ) start [2025-01-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310542', 'tblTempUsageDetail_20' ) end [2025-01-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310542', 'tblTempVendorCDR_20' ) start [2025-01-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310542', 'tblTempVendorCDR_20' ) end [2025-01-23 06:38:18] Production.INFO: ProcessCDR(1,14310542,1,1,2) [2025-01-23 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310542', 'tblTempUsageDetail_20' ) start [2025-01-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310542', 'tblTempUsageDetail_20' ) end [2025-01-23 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:38:21] Production.INFO: ==27671== Releasing lock... [2025-01-23 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:39:05 [end_date_ymd] => 2025-01-23 06:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:39:05' and `end` < '2025-01-23 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-23 06:39:18] Production.INFO: count ==125 [2025-01-23 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:39:05 - End Time 2025-01-23 06:39:05 [2025-01-23 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310545', 'tblTempUsageDetail_20' ) start [2025-01-23 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310545', 'tblTempUsageDetail_20' ) end [2025-01-23 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310545', 'tblTempVendorCDR_20' ) start [2025-01-23 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310545', 'tblTempVendorCDR_20' ) end [2025-01-23 06:39:18] Production.INFO: ProcessCDR(1,14310545,1,1,2) [2025-01-23 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310545', 'tblTempUsageDetail_20' ) start [2025-01-23 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310545', 'tblTempUsageDetail_20' ) end [2025-01-23 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:39:21] Production.INFO: ==27742== Releasing lock... [2025-01-23 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:40:06 [end_date_ymd] => 2025-01-23 06:40:06 [RateCDR] => 1 ) [2025-01-23 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:40:06' and `end` < '2025-01-23 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:40:18] Production.INFO: count ==125 [2025-01-23 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:40:06 - End Time 2025-01-23 06:40:06 [2025-01-23 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310553', 'tblTempUsageDetail_20' ) start [2025-01-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310553', 'tblTempUsageDetail_20' ) end [2025-01-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310553', 'tblTempVendorCDR_20' ) start [2025-01-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310553', 'tblTempVendorCDR_20' ) end [2025-01-23 06:40:18] Production.INFO: ProcessCDR(1,14310553,1,1,2) [2025-01-23 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310553', 'tblTempUsageDetail_20' ) start [2025-01-23 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310553', 'tblTempUsageDetail_20' ) end [2025-01-23 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:40:21] Production.INFO: ==27815== Releasing lock... [2025-01-23 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:41:05 [end_date_ymd] => 2025-01-23 06:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:41:05' and `end` < '2025-01-23 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-23 06:41:18] Production.INFO: count ==125 [2025-01-23 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:41:05 - End Time 2025-01-23 06:41:05 [2025-01-23 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310558', 'tblTempUsageDetail_20' ) start [2025-01-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310558', 'tblTempUsageDetail_20' ) end [2025-01-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310558', 'tblTempVendorCDR_20' ) start [2025-01-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310558', 'tblTempVendorCDR_20' ) end [2025-01-23 06:41:18] Production.INFO: ProcessCDR(1,14310558,1,1,2) [2025-01-23 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310558', 'tblTempUsageDetail_20' ) start [2025-01-23 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310558', 'tblTempUsageDetail_20' ) end [2025-01-23 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:41:21] Production.INFO: ==27888== Releasing lock... [2025-01-23 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:42:05 [end_date_ymd] => 2025-01-23 06:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:42:05' and `end` < '2025-01-23 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-23 06:42:18] Production.INFO: count ==125 [2025-01-23 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:42:05 - End Time 2025-01-23 06:42:05 [2025-01-23 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310563', 'tblTempUsageDetail_20' ) start [2025-01-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310563', 'tblTempUsageDetail_20' ) end [2025-01-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310563', 'tblTempVendorCDR_20' ) start [2025-01-23 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310563', 'tblTempVendorCDR_20' ) end [2025-01-23 06:42:18] Production.INFO: ProcessCDR(1,14310563,1,1,2) [2025-01-23 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310563', 'tblTempUsageDetail_20' ) start [2025-01-23 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310563', 'tblTempUsageDetail_20' ) end [2025-01-23 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:42:21] Production.INFO: ==27962== Releasing lock... [2025-01-23 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:43:05 [end_date_ymd] => 2025-01-23 06:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:43:05' and `end` < '2025-01-23 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-23 06:43:18] Production.INFO: count ==125 [2025-01-23 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:43:05 - End Time 2025-01-23 06:43:05 [2025-01-23 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310568', 'tblTempUsageDetail_20' ) start [2025-01-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310568', 'tblTempUsageDetail_20' ) end [2025-01-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310568', 'tblTempVendorCDR_20' ) start [2025-01-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310568', 'tblTempVendorCDR_20' ) end [2025-01-23 06:43:18] Production.INFO: ProcessCDR(1,14310568,1,1,2) [2025-01-23 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310568', 'tblTempUsageDetail_20' ) start [2025-01-23 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310568', 'tblTempUsageDetail_20' ) end [2025-01-23 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:43:21] Production.INFO: ==28033== Releasing lock... [2025-01-23 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:44:05 [end_date_ymd] => 2025-01-23 06:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:44:05' and `end` < '2025-01-23 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-23 06:44:17] Production.INFO: count ==125 [2025-01-23 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:44:05 - End Time 2025-01-23 06:44:05 [2025-01-23 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310573', 'tblTempUsageDetail_20' ) start [2025-01-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310573', 'tblTempUsageDetail_20' ) end [2025-01-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310573', 'tblTempVendorCDR_20' ) start [2025-01-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310573', 'tblTempVendorCDR_20' ) end [2025-01-23 06:44:17] Production.INFO: ProcessCDR(1,14310573,1,1,2) [2025-01-23 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310573', 'tblTempUsageDetail_20' ) start [2025-01-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310573', 'tblTempUsageDetail_20' ) end [2025-01-23 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:44:20] Production.INFO: ==28104== Releasing lock... [2025-01-23 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:45:05 [end_date_ymd] => 2025-01-23 06:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:45:05' and `end` < '2025-01-23 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-23 06:45:18] Production.INFO: count ==125 [2025-01-23 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:45:05 - End Time 2025-01-23 06:45:05 [2025-01-23 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310578', 'tblTempUsageDetail_20' ) start [2025-01-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310578', 'tblTempUsageDetail_20' ) end [2025-01-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310578', 'tblTempVendorCDR_20' ) start [2025-01-23 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310578', 'tblTempVendorCDR_20' ) end [2025-01-23 06:45:18] Production.INFO: ProcessCDR(1,14310578,1,1,2) [2025-01-23 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310578', 'tblTempUsageDetail_20' ) start [2025-01-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310578', 'tblTempUsageDetail_20' ) end [2025-01-23 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:45:21] Production.INFO: ==28174== Releasing lock... [2025-01-23 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:46:05 [end_date_ymd] => 2025-01-23 06:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:46:05' and `end` < '2025-01-23 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-23 06:46:17] Production.INFO: count ==125 [2025-01-23 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:46:05 - End Time 2025-01-23 06:46:05 [2025-01-23 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310583', 'tblTempUsageDetail_20' ) start [2025-01-23 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310583', 'tblTempUsageDetail_20' ) end [2025-01-23 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310583', 'tblTempVendorCDR_20' ) start [2025-01-23 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310583', 'tblTempVendorCDR_20' ) end [2025-01-23 06:46:17] Production.INFO: ProcessCDR(1,14310583,1,1,2) [2025-01-23 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310583', 'tblTempUsageDetail_20' ) start [2025-01-23 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310583', 'tblTempUsageDetail_20' ) end [2025-01-23 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:46:20] Production.INFO: ==28243== Releasing lock... [2025-01-23 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:47:05 [end_date_ymd] => 2025-01-23 06:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:47:05' and `end` < '2025-01-23 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-23 06:47:18] Production.INFO: count ==125 [2025-01-23 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:47:05 - End Time 2025-01-23 06:47:05 [2025-01-23 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310588', 'tblTempUsageDetail_20' ) start [2025-01-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310588', 'tblTempUsageDetail_20' ) end [2025-01-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310588', 'tblTempVendorCDR_20' ) start [2025-01-23 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310588', 'tblTempVendorCDR_20' ) end [2025-01-23 06:47:18] Production.INFO: ProcessCDR(1,14310588,1,1,2) [2025-01-23 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310588', 'tblTempUsageDetail_20' ) start [2025-01-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310588', 'tblTempUsageDetail_20' ) end [2025-01-23 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:47:21] Production.INFO: ==28314== Releasing lock... [2025-01-23 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:48:04 [end_date_ymd] => 2025-01-23 06:48:04 [RateCDR] => 1 ) [2025-01-23 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:48:04' and `end` < '2025-01-23 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:48:17] Production.INFO: count ==125 [2025-01-23 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:48:04 - End Time 2025-01-23 06:48:04 [2025-01-23 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310592', 'tblTempUsageDetail_20' ) start [2025-01-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310592', 'tblTempUsageDetail_20' ) end [2025-01-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310592', 'tblTempVendorCDR_20' ) start [2025-01-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310592', 'tblTempVendorCDR_20' ) end [2025-01-23 06:48:17] Production.INFO: ProcessCDR(1,14310592,1,1,2) [2025-01-23 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310592', 'tblTempUsageDetail_20' ) start [2025-01-23 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310592', 'tblTempUsageDetail_20' ) end [2025-01-23 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:48:21] Production.INFO: ==28387== Releasing lock... [2025-01-23 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:49:05 [end_date_ymd] => 2025-01-23 06:49:05 [RateCDR] => 1 ) [2025-01-23 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:49:05' and `end` < '2025-01-23 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:49:18] Production.INFO: count ==125 [2025-01-23 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:49:05 - End Time 2025-01-23 06:49:05 [2025-01-23 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310598', 'tblTempUsageDetail_20' ) start [2025-01-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310598', 'tblTempUsageDetail_20' ) end [2025-01-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310598', 'tblTempVendorCDR_20' ) start [2025-01-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310598', 'tblTempVendorCDR_20' ) end [2025-01-23 06:49:18] Production.INFO: ProcessCDR(1,14310598,1,1,2) [2025-01-23 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310598', 'tblTempUsageDetail_20' ) start [2025-01-23 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310598', 'tblTempUsageDetail_20' ) end [2025-01-23 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:49:21] Production.INFO: ==28462== Releasing lock... [2025-01-23 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:50:06 [end_date_ymd] => 2025-01-23 06:50:06 [RateCDR] => 1 ) [2025-01-23 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:50:06' and `end` < '2025-01-23 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:50:19] Production.INFO: count ==115 [2025-01-23 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:50:06 - End Time 2025-01-23 06:50:06 [2025-01-23 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310603', 'tblTempUsageDetail_20' ) start [2025-01-23 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310603', 'tblTempUsageDetail_20' ) end [2025-01-23 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310603', 'tblTempVendorCDR_20' ) start [2025-01-23 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310603', 'tblTempVendorCDR_20' ) end [2025-01-23 06:50:19] Production.INFO: ProcessCDR(1,14310603,1,1,2) [2025-01-23 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310603', 'tblTempUsageDetail_20' ) start [2025-01-23 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310603', 'tblTempUsageDetail_20' ) end [2025-01-23 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:50:22] Production.INFO: ==28535== Releasing lock... [2025-01-23 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:51:06 [end_date_ymd] => 2025-01-23 06:51:06 [RateCDR] => 1 ) [2025-01-23 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-23 03:51:06' and `end` < '2025-01-23 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-23 06:51:19] Production.INFO: count ==114 [2025-01-23 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:51:06 - End Time 2025-01-23 06:51:06 [2025-01-23 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310609', 'tblTempUsageDetail_20' ) start [2025-01-23 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310609', 'tblTempUsageDetail_20' ) end [2025-01-23 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310609', 'tblTempVendorCDR_20' ) start [2025-01-23 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310609', 'tblTempVendorCDR_20' ) end [2025-01-23 06:51:19] Production.INFO: ProcessCDR(1,14310609,1,1,2) [2025-01-23 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310609', 'tblTempUsageDetail_20' ) start [2025-01-23 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310609', 'tblTempUsageDetail_20' ) end [2025-01-23 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:51:22] Production.INFO: ==28608== Releasing lock... [2025-01-23 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:52:06 [end_date_ymd] => 2025-01-23 06:52:06 [RateCDR] => 1 ) [2025-01-23 06: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-23 03:52:06' and `end` < '2025-01-23 06: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-23 06:52:18] Production.INFO: count ==110 [2025-01-23 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:52:06 - End Time 2025-01-23 06:52:06 [2025-01-23 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310614', 'tblTempUsageDetail_20' ) start [2025-01-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310614', 'tblTempUsageDetail_20' ) end [2025-01-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310614', 'tblTempVendorCDR_20' ) start [2025-01-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310614', 'tblTempVendorCDR_20' ) end [2025-01-23 06:52:18] Production.INFO: ProcessCDR(1,14310614,1,1,2) [2025-01-23 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310614', 'tblTempUsageDetail_20' ) start [2025-01-23 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310614', 'tblTempUsageDetail_20' ) end [2025-01-23 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:52:21] Production.INFO: ==28719== Releasing lock... [2025-01-23 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:53:05 [end_date_ymd] => 2025-01-23 06:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:53:05' and `end` < '2025-01-23 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-23 06:53:18] Production.INFO: count ==110 [2025-01-23 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:53:05 - End Time 2025-01-23 06:53:05 [2025-01-23 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310619', 'tblTempUsageDetail_20' ) start [2025-01-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310619', 'tblTempUsageDetail_20' ) end [2025-01-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310619', 'tblTempVendorCDR_20' ) start [2025-01-23 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310619', 'tblTempVendorCDR_20' ) end [2025-01-23 06:53:18] Production.INFO: ProcessCDR(1,14310619,1,1,2) [2025-01-23 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310619', 'tblTempUsageDetail_20' ) start [2025-01-23 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310619', 'tblTempUsageDetail_20' ) end [2025-01-23 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:53:21] Production.INFO: ==28799== Releasing lock... [2025-01-23 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:54:05 [end_date_ymd] => 2025-01-23 06:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:54:05' and `end` < '2025-01-23 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-23 06:54:19] Production.INFO: count ==110 [2025-01-23 06:54:19] Production.ERROR: pbx CDR StartTime 2025-01-23 03:54:05 - End Time 2025-01-23 06:54:05 [2025-01-23 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310624', 'tblTempUsageDetail_20' ) start [2025-01-23 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310624', 'tblTempUsageDetail_20' ) end [2025-01-23 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310624', 'tblTempVendorCDR_20' ) start [2025-01-23 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310624', 'tblTempVendorCDR_20' ) end [2025-01-23 06:54:19] Production.INFO: ProcessCDR(1,14310624,1,1,2) [2025-01-23 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310624', 'tblTempUsageDetail_20' ) start [2025-01-23 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310624', 'tblTempUsageDetail_20' ) end [2025-01-23 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:54:22] Production.INFO: ==28897== Releasing lock... [2025-01-23 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:55:05 [end_date_ymd] => 2025-01-23 06:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:55:05' and `end` < '2025-01-23 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-23 06:55:18] Production.INFO: count ==110 [2025-01-23 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:55:05 - End Time 2025-01-23 06:55:05 [2025-01-23 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310629', 'tblTempUsageDetail_20' ) start [2025-01-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310629', 'tblTempUsageDetail_20' ) end [2025-01-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310629', 'tblTempVendorCDR_20' ) start [2025-01-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310629', 'tblTempVendorCDR_20' ) end [2025-01-23 06:55:18] Production.INFO: ProcessCDR(1,14310629,1,1,2) [2025-01-23 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310629', 'tblTempUsageDetail_20' ) start [2025-01-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310629', 'tblTempUsageDetail_20' ) end [2025-01-23 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:55:21] Production.INFO: ==28999== Releasing lock... [2025-01-23 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:56:04 [end_date_ymd] => 2025-01-23 06:56:04 [RateCDR] => 1 ) [2025-01-23 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-23 03:56:04' and `end` < '2025-01-23 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-23 06:56:17] Production.INFO: count ==110 [2025-01-23 06:56:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:56:04 - End Time 2025-01-23 06:56:04 [2025-01-23 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310634', 'tblTempUsageDetail_20' ) start [2025-01-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310634', 'tblTempUsageDetail_20' ) end [2025-01-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310634', 'tblTempVendorCDR_20' ) start [2025-01-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310634', 'tblTempVendorCDR_20' ) end [2025-01-23 06:56:17] Production.INFO: ProcessCDR(1,14310634,1,1,2) [2025-01-23 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310634', 'tblTempUsageDetail_20' ) start [2025-01-23 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310634', 'tblTempUsageDetail_20' ) end [2025-01-23 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:56:20] Production.INFO: ==29102== Releasing lock... [2025-01-23 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:57:05 [end_date_ymd] => 2025-01-23 06:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:57:05' and `end` < '2025-01-23 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-23 06:57:18] Production.INFO: count ==110 [2025-01-23 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:57:05 - End Time 2025-01-23 06:57:05 [2025-01-23 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310639', 'tblTempUsageDetail_20' ) start [2025-01-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310639', 'tblTempUsageDetail_20' ) end [2025-01-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310639', 'tblTempVendorCDR_20' ) start [2025-01-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310639', 'tblTempVendorCDR_20' ) end [2025-01-23 06:57:18] Production.INFO: ProcessCDR(1,14310639,1,1,2) [2025-01-23 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310639', 'tblTempUsageDetail_20' ) start [2025-01-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310639', 'tblTempUsageDetail_20' ) end [2025-01-23 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:57:21] Production.INFO: ==29205== Releasing lock... [2025-01-23 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:58:05 [end_date_ymd] => 2025-01-23 06:58:05 [RateCDR] => 1 ) [2025-01-23 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 03:58:05' and `end` < '2025-01-23 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 06:58:18] Production.INFO: count ==110 [2025-01-23 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 03:58:05 - End Time 2025-01-23 06:58:05 [2025-01-23 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310644', 'tblTempUsageDetail_20' ) start [2025-01-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310644', 'tblTempUsageDetail_20' ) end [2025-01-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310644', 'tblTempVendorCDR_20' ) start [2025-01-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310644', 'tblTempVendorCDR_20' ) end [2025-01-23 06:58:18] Production.INFO: ProcessCDR(1,14310644,1,1,2) [2025-01-23 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310644', 'tblTempUsageDetail_20' ) start [2025-01-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310644', 'tblTempUsageDetail_20' ) end [2025-01-23 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:58:21] Production.INFO: ==29308== Releasing lock... [2025-01-23 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 03:59:05 [end_date_ymd] => 2025-01-23 06:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 03:59:05' and `end` < '2025-01-23 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-23 06:59:17] Production.INFO: count ==110 [2025-01-23 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-23 03:59:05 - End Time 2025-01-23 06:59:05 [2025-01-23 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310649', 'tblTempUsageDetail_20' ) start [2025-01-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310649', 'tblTempUsageDetail_20' ) end [2025-01-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310649', 'tblTempVendorCDR_20' ) start [2025-01-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310649', 'tblTempVendorCDR_20' ) end [2025-01-23 06:59:17] Production.INFO: ProcessCDR(1,14310649,1,1,2) [2025-01-23 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310649', 'tblTempUsageDetail_20' ) start [2025-01-23 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310649', 'tblTempUsageDetail_20' ) end [2025-01-23 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 06:59:20] Production.INFO: ==29409== Releasing lock... [2025-01-23 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 06:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:00:06 [end_date_ymd] => 2025-01-23 07:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 04:00:06' and `end` < '2025-01-23 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-23 07:00:18] Production.INFO: count ==106 [2025-01-23 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:00:06 - End Time 2025-01-23 07:00:06 [2025-01-23 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310654', 'tblTempUsageDetail_20' ) start [2025-01-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310654', 'tblTempUsageDetail_20' ) end [2025-01-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310654', 'tblTempVendorCDR_20' ) start [2025-01-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310654', 'tblTempVendorCDR_20' ) end [2025-01-23 07:00:18] Production.INFO: ProcessCDR(1,14310654,1,1,2) [2025-01-23 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310654', 'tblTempUsageDetail_20' ) start [2025-01-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310654', 'tblTempUsageDetail_20' ) end [2025-01-23 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:00:21] Production.INFO: ==29518== Releasing lock... [2025-01-23 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:01:05 [end_date_ymd] => 2025-01-23 07:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:01:05' and `end` < '2025-01-23 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-23 07:01:22] Production.INFO: count ==106 [2025-01-23 07:01:22] Production.ERROR: pbx CDR StartTime 2025-01-23 04:01:05 - End Time 2025-01-23 07:01:05 [2025-01-23 07:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310660', 'tblTempUsageDetail_20' ) start [2025-01-23 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310660', 'tblTempUsageDetail_20' ) end [2025-01-23 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310660', 'tblTempVendorCDR_20' ) start [2025-01-23 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310660', 'tblTempVendorCDR_20' ) end [2025-01-23 07:01:22] Production.INFO: ProcessCDR(1,14310660,1,1,2) [2025-01-23 07:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310660', 'tblTempUsageDetail_20' ) start [2025-01-23 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310660', 'tblTempUsageDetail_20' ) end [2025-01-23 07:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:01:25] Production.INFO: ==29717== Releasing lock... [2025-01-23 07:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:01:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:02:06 [end_date_ymd] => 2025-01-23 07:02:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:02:06' and `end` < '2025-01-23 07: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-23 07:02:20] Production.INFO: count ==106 [2025-01-23 07:02:20] Production.ERROR: pbx CDR StartTime 2025-01-23 04:02:06 - End Time 2025-01-23 07:02:06 [2025-01-23 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310665', 'tblTempUsageDetail_20' ) start [2025-01-23 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310665', 'tblTempUsageDetail_20' ) end [2025-01-23 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310665', 'tblTempVendorCDR_20' ) start [2025-01-23 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310665', 'tblTempVendorCDR_20' ) end [2025-01-23 07:02:20] Production.INFO: ProcessCDR(1,14310665,1,1,2) [2025-01-23 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310665', 'tblTempUsageDetail_20' ) start [2025-01-23 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310665', 'tblTempUsageDetail_20' ) end [2025-01-23 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:02:23] Production.INFO: ==29822== Releasing lock... [2025-01-23 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:03:05 [end_date_ymd] => 2025-01-23 07:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:03:05' and `end` < '2025-01-23 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-23 07:03:19] Production.INFO: count ==106 [2025-01-23 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:03:05 - End Time 2025-01-23 07:03:05 [2025-01-23 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310670', 'tblTempUsageDetail_20' ) start [2025-01-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310670', 'tblTempUsageDetail_20' ) end [2025-01-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310670', 'tblTempVendorCDR_20' ) start [2025-01-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310670', 'tblTempVendorCDR_20' ) end [2025-01-23 07:03:19] Production.INFO: ProcessCDR(1,14310670,1,1,2) [2025-01-23 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310670', 'tblTempUsageDetail_20' ) start [2025-01-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310670', 'tblTempUsageDetail_20' ) end [2025-01-23 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:03:22] Production.INFO: ==29936== Releasing lock... [2025-01-23 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:04:06 [end_date_ymd] => 2025-01-23 07:04:06 [RateCDR] => 1 ) [2025-01-23 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:04:06' and `end` < '2025-01-23 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:04:21] Production.INFO: count ==106 [2025-01-23 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-23 04:04:06 - End Time 2025-01-23 07:04:06 [2025-01-23 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310675', 'tblTempUsageDetail_20' ) start [2025-01-23 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310675', 'tblTempUsageDetail_20' ) end [2025-01-23 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310675', 'tblTempVendorCDR_20' ) start [2025-01-23 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310675', 'tblTempVendorCDR_20' ) end [2025-01-23 07:04:21] Production.INFO: ProcessCDR(1,14310675,1,1,2) [2025-01-23 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310675', 'tblTempUsageDetail_20' ) start [2025-01-23 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310675', 'tblTempUsageDetail_20' ) end [2025-01-23 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:04:24] Production.INFO: ==30049== Releasing lock... [2025-01-23 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:04:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:05:05 [end_date_ymd] => 2025-01-23 07:05:05 [RateCDR] => 1 ) [2025-01-23 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:05:05' and `end` < '2025-01-23 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:05:21] Production.INFO: count ==106 [2025-01-23 07:05:21] Production.ERROR: pbx CDR StartTime 2025-01-23 04:05:05 - End Time 2025-01-23 07:05:05 [2025-01-23 07:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310680', 'tblTempUsageDetail_20' ) start [2025-01-23 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310680', 'tblTempUsageDetail_20' ) end [2025-01-23 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310680', 'tblTempVendorCDR_20' ) start [2025-01-23 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310680', 'tblTempVendorCDR_20' ) end [2025-01-23 07:05:21] Production.INFO: ProcessCDR(1,14310680,1,1,2) [2025-01-23 07:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310680', 'tblTempUsageDetail_20' ) start [2025-01-23 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310680', 'tblTempUsageDetail_20' ) end [2025-01-23 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:05:24] Production.INFO: ==30235== Releasing lock... [2025-01-23 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:05:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:06:05 [end_date_ymd] => 2025-01-23 07:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:06:05' and `end` < '2025-01-23 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-23 07:06:19] Production.INFO: count ==106 [2025-01-23 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:06:05 - End Time 2025-01-23 07:06:05 [2025-01-23 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310685', 'tblTempUsageDetail_20' ) start [2025-01-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310685', 'tblTempUsageDetail_20' ) end [2025-01-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310685', 'tblTempVendorCDR_20' ) start [2025-01-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310685', 'tblTempVendorCDR_20' ) end [2025-01-23 07:06:19] Production.INFO: ProcessCDR(1,14310685,1,1,2) [2025-01-23 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310685', 'tblTempUsageDetail_20' ) start [2025-01-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310685', 'tblTempUsageDetail_20' ) end [2025-01-23 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:06:22] Production.INFO: ==30337== Releasing lock... [2025-01-23 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:07:05 [end_date_ymd] => 2025-01-23 07:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:07:05' and `end` < '2025-01-23 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-23 07:07:20] Production.INFO: count ==106 [2025-01-23 07:07:20] Production.ERROR: pbx CDR StartTime 2025-01-23 04:07:05 - End Time 2025-01-23 07:07:05 [2025-01-23 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310690', 'tblTempUsageDetail_20' ) start [2025-01-23 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310690', 'tblTempUsageDetail_20' ) end [2025-01-23 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310690', 'tblTempVendorCDR_20' ) start [2025-01-23 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310690', 'tblTempVendorCDR_20' ) end [2025-01-23 07:07:20] Production.INFO: ProcessCDR(1,14310690,1,1,2) [2025-01-23 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310690', 'tblTempUsageDetail_20' ) start [2025-01-23 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310690', 'tblTempUsageDetail_20' ) end [2025-01-23 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:07:23] Production.INFO: ==30442== Releasing lock... [2025-01-23 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:07:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:08:05 [end_date_ymd] => 2025-01-23 07:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:08:05' and `end` < '2025-01-23 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-23 07:08:19] Production.INFO: count ==106 [2025-01-23 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:08:05 - End Time 2025-01-23 07:08:05 [2025-01-23 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310695', 'tblTempUsageDetail_20' ) start [2025-01-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310695', 'tblTempUsageDetail_20' ) end [2025-01-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310695', 'tblTempVendorCDR_20' ) start [2025-01-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310695', 'tblTempVendorCDR_20' ) end [2025-01-23 07:08:19] Production.INFO: ProcessCDR(1,14310695,1,1,2) [2025-01-23 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310695', 'tblTempUsageDetail_20' ) start [2025-01-23 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310695', 'tblTempUsageDetail_20' ) end [2025-01-23 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:08:22] Production.INFO: ==30670== Releasing lock... [2025-01-23 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:09:05 [end_date_ymd] => 2025-01-23 07:09:05 [RateCDR] => 1 ) [2025-01-23 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:09:05' and `end` < '2025-01-23 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:09:19] Production.INFO: count ==106 [2025-01-23 07:09:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:09:05 - End Time 2025-01-23 07:09:05 [2025-01-23 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310700', 'tblTempUsageDetail_20' ) start [2025-01-23 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310700', 'tblTempUsageDetail_20' ) end [2025-01-23 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310700', 'tblTempVendorCDR_20' ) start [2025-01-23 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310700', 'tblTempVendorCDR_20' ) end [2025-01-23 07:09:19] Production.INFO: ProcessCDR(1,14310700,1,1,2) [2025-01-23 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310700', 'tblTempUsageDetail_20' ) start [2025-01-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310700', 'tblTempUsageDetail_20' ) end [2025-01-23 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:09:22] Production.INFO: ==30784== Releasing lock... [2025-01-23 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:10:06 [end_date_ymd] => 2025-01-23 07:10:06 [RateCDR] => 1 ) [2025-01-23 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:10:06' and `end` < '2025-01-23 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:10:20] Production.INFO: count ==96 [2025-01-23 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-23 04:10:06 - End Time 2025-01-23 07:10:06 [2025-01-23 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310705', 'tblTempUsageDetail_20' ) start [2025-01-23 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310705', 'tblTempUsageDetail_20' ) end [2025-01-23 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310705', 'tblTempVendorCDR_20' ) start [2025-01-23 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310705', 'tblTempVendorCDR_20' ) end [2025-01-23 07:10:20] Production.INFO: ProcessCDR(1,14310705,1,1,2) [2025-01-23 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310705', 'tblTempUsageDetail_20' ) start [2025-01-23 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310705', 'tblTempUsageDetail_20' ) end [2025-01-23 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:10:23] Production.INFO: ==30898== Releasing lock... [2025-01-23 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:10:23] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:11:05 [end_date_ymd] => 2025-01-23 07:11:05 [RateCDR] => 1 ) [2025-01-23 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:11:05' and `end` < '2025-01-23 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:11:19] Production.INFO: count ==95 [2025-01-23 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:11:05 - End Time 2025-01-23 07:11:05 [2025-01-23 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310711', 'tblTempUsageDetail_20' ) start [2025-01-23 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310711', 'tblTempUsageDetail_20' ) end [2025-01-23 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310711', 'tblTempVendorCDR_20' ) start [2025-01-23 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310711', 'tblTempVendorCDR_20' ) end [2025-01-23 07:11:19] Production.INFO: ProcessCDR(1,14310711,1,1,2) [2025-01-23 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310711', 'tblTempUsageDetail_20' ) start [2025-01-23 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310711', 'tblTempUsageDetail_20' ) end [2025-01-23 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:11:22] Production.INFO: ==31014== Releasing lock... [2025-01-23 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:12:06 [end_date_ymd] => 2025-01-23 07:12:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:12:06' and `end` < '2025-01-23 07: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-23 07:12:19] Production.INFO: count ==94 [2025-01-23 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:12:06 - End Time 2025-01-23 07:12:06 [2025-01-23 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310716', 'tblTempUsageDetail_20' ) start [2025-01-23 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310716', 'tblTempUsageDetail_20' ) end [2025-01-23 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310716', 'tblTempVendorCDR_20' ) start [2025-01-23 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310716', 'tblTempVendorCDR_20' ) end [2025-01-23 07:12:19] Production.INFO: ProcessCDR(1,14310716,1,1,2) [2025-01-23 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310716', 'tblTempUsageDetail_20' ) start [2025-01-23 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310716', 'tblTempUsageDetail_20' ) end [2025-01-23 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:12:22] Production.INFO: ==31202== Releasing lock... [2025-01-23 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:13:05 [end_date_ymd] => 2025-01-23 07:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:13:05' and `end` < '2025-01-23 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-23 07:13:19] Production.INFO: count ==94 [2025-01-23 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:13:05 - End Time 2025-01-23 07:13:05 [2025-01-23 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310721', 'tblTempUsageDetail_20' ) start [2025-01-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310721', 'tblTempUsageDetail_20' ) end [2025-01-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310721', 'tblTempVendorCDR_20' ) start [2025-01-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310721', 'tblTempVendorCDR_20' ) end [2025-01-23 07:13:19] Production.INFO: ProcessCDR(1,14310721,1,1,2) [2025-01-23 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310721', 'tblTempUsageDetail_20' ) start [2025-01-23 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310721', 'tblTempUsageDetail_20' ) end [2025-01-23 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:13:22] Production.INFO: ==31317== Releasing lock... [2025-01-23 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:14:06 [end_date_ymd] => 2025-01-23 07:14:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:14:06' and `end` < '2025-01-23 07: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-23 07:14:19] Production.INFO: count ==94 [2025-01-23 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:14:06 - End Time 2025-01-23 07:14:06 [2025-01-23 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310726', 'tblTempUsageDetail_20' ) start [2025-01-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310726', 'tblTempUsageDetail_20' ) end [2025-01-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310726', 'tblTempVendorCDR_20' ) start [2025-01-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310726', 'tblTempVendorCDR_20' ) end [2025-01-23 07:14:19] Production.INFO: ProcessCDR(1,14310726,1,1,2) [2025-01-23 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310726', 'tblTempUsageDetail_20' ) start [2025-01-23 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310726', 'tblTempUsageDetail_20' ) end [2025-01-23 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:14:22] Production.INFO: ==31428== Releasing lock... [2025-01-23 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:15:05 [end_date_ymd] => 2025-01-23 07:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:15:05' and `end` < '2025-01-23 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-23 07:15:18] Production.INFO: count ==94 [2025-01-23 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:15:05 - End Time 2025-01-23 07:15:05 [2025-01-23 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310731', 'tblTempUsageDetail_20' ) start [2025-01-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310731', 'tblTempUsageDetail_20' ) end [2025-01-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310731', 'tblTempVendorCDR_20' ) start [2025-01-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310731', 'tblTempVendorCDR_20' ) end [2025-01-23 07:15:18] Production.INFO: ProcessCDR(1,14310731,1,1,2) [2025-01-23 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310731', 'tblTempUsageDetail_20' ) start [2025-01-23 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310731', 'tblTempUsageDetail_20' ) end [2025-01-23 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:15:21] Production.INFO: ==31623== Releasing lock... [2025-01-23 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:16:05 [end_date_ymd] => 2025-01-23 07:16:05 [RateCDR] => 1 ) [2025-01-23 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:16:05' and `end` < '2025-01-23 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:16:19] Production.INFO: count ==94 [2025-01-23 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:16:05 - End Time 2025-01-23 07:16:05 [2025-01-23 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310736', 'tblTempUsageDetail_20' ) start [2025-01-23 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310736', 'tblTempUsageDetail_20' ) end [2025-01-23 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310736', 'tblTempVendorCDR_20' ) start [2025-01-23 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310736', 'tblTempVendorCDR_20' ) end [2025-01-23 07:16:19] Production.INFO: ProcessCDR(1,14310736,1,1,2) [2025-01-23 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310736', 'tblTempUsageDetail_20' ) start [2025-01-23 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310736', 'tblTempUsageDetail_20' ) end [2025-01-23 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:16:22] Production.INFO: ==31738== Releasing lock... [2025-01-23 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:17:05 [end_date_ymd] => 2025-01-23 07:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:17:05' and `end` < '2025-01-23 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-23 07:17:21] Production.INFO: count ==94 [2025-01-23 07:17:21] Production.ERROR: pbx CDR StartTime 2025-01-23 04:17:05 - End Time 2025-01-23 07:17:05 [2025-01-23 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310741', 'tblTempUsageDetail_20' ) start [2025-01-23 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310741', 'tblTempUsageDetail_20' ) end [2025-01-23 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310741', 'tblTempVendorCDR_20' ) start [2025-01-23 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310741', 'tblTempVendorCDR_20' ) end [2025-01-23 07:17:21] Production.INFO: ProcessCDR(1,14310741,1,1,2) [2025-01-23 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310741', 'tblTempUsageDetail_20' ) start [2025-01-23 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310741', 'tblTempUsageDetail_20' ) end [2025-01-23 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:17:24] Production.INFO: ==31852== Releasing lock... [2025-01-23 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:17:24] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:18:05 [end_date_ymd] => 2025-01-23 07:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:18:05' and `end` < '2025-01-23 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-23 07:18:19] Production.INFO: count ==94 [2025-01-23 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:18:05 - End Time 2025-01-23 07:18:05 [2025-01-23 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310746', 'tblTempUsageDetail_20' ) start [2025-01-23 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310746', 'tblTempUsageDetail_20' ) end [2025-01-23 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310746', 'tblTempVendorCDR_20' ) start [2025-01-23 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310746', 'tblTempVendorCDR_20' ) end [2025-01-23 07:18:19] Production.INFO: ProcessCDR(1,14310746,1,1,2) [2025-01-23 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310746', 'tblTempUsageDetail_20' ) start [2025-01-23 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310746', 'tblTempUsageDetail_20' ) end [2025-01-23 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:18:22] Production.INFO: ==31966== Releasing lock... [2025-01-23 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:19:05 [end_date_ymd] => 2025-01-23 07:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:19:05' and `end` < '2025-01-23 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-23 07:19:18] Production.INFO: count ==94 [2025-01-23 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:19:05 - End Time 2025-01-23 07:19:05 [2025-01-23 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310751', 'tblTempUsageDetail_20' ) start [2025-01-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310751', 'tblTempUsageDetail_20' ) end [2025-01-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310751', 'tblTempVendorCDR_20' ) start [2025-01-23 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310751', 'tblTempVendorCDR_20' ) end [2025-01-23 07:19:18] Production.INFO: ProcessCDR(1,14310751,1,1,2) [2025-01-23 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310751', 'tblTempUsageDetail_20' ) start [2025-01-23 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310751', 'tblTempUsageDetail_20' ) end [2025-01-23 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:19:21] Production.INFO: ==32052== Releasing lock... [2025-01-23 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:20:06 [end_date_ymd] => 2025-01-23 07:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 04:20:06' and `end` < '2025-01-23 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-23 07:20:19] Production.INFO: count ==94 [2025-01-23 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:20:06 - End Time 2025-01-23 07:20:06 [2025-01-23 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310757', 'tblTempUsageDetail_20' ) start [2025-01-23 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310757', 'tblTempUsageDetail_20' ) end [2025-01-23 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310757', 'tblTempVendorCDR_20' ) start [2025-01-23 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310757', 'tblTempVendorCDR_20' ) end [2025-01-23 07:20:19] Production.INFO: ProcessCDR(1,14310757,1,1,2) [2025-01-23 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310757', 'tblTempUsageDetail_20' ) start [2025-01-23 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310757', 'tblTempUsageDetail_20' ) end [2025-01-23 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:20:22] Production.INFO: ==32136== Releasing lock... [2025-01-23 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:21:05 [end_date_ymd] => 2025-01-23 07:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:21:05' and `end` < '2025-01-23 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-23 07:21:20] Production.INFO: count ==94 [2025-01-23 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-23 04:21:05 - End Time 2025-01-23 07:21:05 [2025-01-23 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310762', 'tblTempUsageDetail_20' ) start [2025-01-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310762', 'tblTempUsageDetail_20' ) end [2025-01-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310762', 'tblTempVendorCDR_20' ) start [2025-01-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310762', 'tblTempVendorCDR_20' ) end [2025-01-23 07:21:20] Production.INFO: ProcessCDR(1,14310762,1,1,2) [2025-01-23 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310762', 'tblTempUsageDetail_20' ) start [2025-01-23 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310762', 'tblTempUsageDetail_20' ) end [2025-01-23 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:21:23] Production.INFO: ==32218== Releasing lock... [2025-01-23 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:21:23] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:22:05 [end_date_ymd] => 2025-01-23 07:22:05 [RateCDR] => 1 ) [2025-01-23 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:22:05' and `end` < '2025-01-23 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:22:18] Production.INFO: count ==94 [2025-01-23 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:22:05 - End Time 2025-01-23 07:22:05 [2025-01-23 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310767', 'tblTempUsageDetail_20' ) start [2025-01-23 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310767', 'tblTempUsageDetail_20' ) end [2025-01-23 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310767', 'tblTempVendorCDR_20' ) start [2025-01-23 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310767', 'tblTempVendorCDR_20' ) end [2025-01-23 07:22:18] Production.INFO: ProcessCDR(1,14310767,1,1,2) [2025-01-23 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310767', 'tblTempUsageDetail_20' ) start [2025-01-23 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310767', 'tblTempUsageDetail_20' ) end [2025-01-23 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:22:21] Production.INFO: ==32299== Releasing lock... [2025-01-23 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:23:05 [end_date_ymd] => 2025-01-23 07:23:05 [RateCDR] => 1 ) [2025-01-23 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:23:05' and `end` < '2025-01-23 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-23 07:23:18] Production.INFO: count ==94 [2025-01-23 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:23:05 - End Time 2025-01-23 07:23:05 [2025-01-23 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310772', 'tblTempUsageDetail_20' ) start [2025-01-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310772', 'tblTempUsageDetail_20' ) end [2025-01-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310772', 'tblTempVendorCDR_20' ) start [2025-01-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310772', 'tblTempVendorCDR_20' ) end [2025-01-23 07:23:18] Production.INFO: ProcessCDR(1,14310772,1,1,2) [2025-01-23 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310772', 'tblTempUsageDetail_20' ) start [2025-01-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310772', 'tblTempUsageDetail_20' ) end [2025-01-23 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:23:21] Production.INFO: ==32416== Releasing lock... [2025-01-23 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:24:05 [end_date_ymd] => 2025-01-23 07:24:05 [RateCDR] => 1 ) [2025-01-23 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:24:05' and `end` < '2025-01-23 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:24:18] Production.INFO: count ==94 [2025-01-23 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:24:05 - End Time 2025-01-23 07:24:05 [2025-01-23 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310777', 'tblTempUsageDetail_20' ) start [2025-01-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310777', 'tblTempUsageDetail_20' ) end [2025-01-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310777', 'tblTempVendorCDR_20' ) start [2025-01-23 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310777', 'tblTempVendorCDR_20' ) end [2025-01-23 07:24:18] Production.INFO: ProcessCDR(1,14310777,1,1,2) [2025-01-23 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310777', 'tblTempUsageDetail_20' ) start [2025-01-23 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310777', 'tblTempUsageDetail_20' ) end [2025-01-23 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:24:21] Production.INFO: ==32492== Releasing lock... [2025-01-23 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:25:05 [end_date_ymd] => 2025-01-23 07:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:25:05' and `end` < '2025-01-23 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-23 07:25:17] Production.INFO: count ==94 [2025-01-23 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:25:05 - End Time 2025-01-23 07:25:05 [2025-01-23 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310782', 'tblTempUsageDetail_20' ) start [2025-01-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310782', 'tblTempUsageDetail_20' ) end [2025-01-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310782', 'tblTempVendorCDR_20' ) start [2025-01-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310782', 'tblTempVendorCDR_20' ) end [2025-01-23 07:25:17] Production.INFO: ProcessCDR(1,14310782,1,1,2) [2025-01-23 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310782', 'tblTempUsageDetail_20' ) start [2025-01-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310782', 'tblTempUsageDetail_20' ) end [2025-01-23 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:25:20] Production.INFO: ==32572== Releasing lock... [2025-01-23 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:26:06 [end_date_ymd] => 2025-01-23 07:26:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:26:06' and `end` < '2025-01-23 07: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-23 07:26:18] Production.INFO: count ==94 [2025-01-23 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:26:06 - End Time 2025-01-23 07:26:06 [2025-01-23 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310787', 'tblTempUsageDetail_20' ) start [2025-01-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310787', 'tblTempUsageDetail_20' ) end [2025-01-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310787', 'tblTempVendorCDR_20' ) start [2025-01-23 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310787', 'tblTempVendorCDR_20' ) end [2025-01-23 07:26:18] Production.INFO: ProcessCDR(1,14310787,1,1,2) [2025-01-23 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310787', 'tblTempUsageDetail_20' ) start [2025-01-23 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310787', 'tblTempUsageDetail_20' ) end [2025-01-23 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:26:21] Production.INFO: ==32652== Releasing lock... [2025-01-23 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:27:05 [end_date_ymd] => 2025-01-23 07:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:27:05' and `end` < '2025-01-23 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-23 07:27:18] Production.INFO: count ==94 [2025-01-23 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:27:05 - End Time 2025-01-23 07:27:05 [2025-01-23 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310792', 'tblTempUsageDetail_20' ) start [2025-01-23 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310792', 'tblTempUsageDetail_20' ) end [2025-01-23 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310792', 'tblTempVendorCDR_20' ) start [2025-01-23 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310792', 'tblTempVendorCDR_20' ) end [2025-01-23 07:27:18] Production.INFO: ProcessCDR(1,14310792,1,1,2) [2025-01-23 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310792', 'tblTempUsageDetail_20' ) start [2025-01-23 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310792', 'tblTempUsageDetail_20' ) end [2025-01-23 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:27:21] Production.INFO: ==32724== Releasing lock... [2025-01-23 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:28:06 [end_date_ymd] => 2025-01-23 07:28:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:28:06' and `end` < '2025-01-23 07: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-23 07:28:18] Production.INFO: count ==94 [2025-01-23 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:28:06 - End Time 2025-01-23 07:28:06 [2025-01-23 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310797', 'tblTempUsageDetail_20' ) start [2025-01-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310797', 'tblTempUsageDetail_20' ) end [2025-01-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310797', 'tblTempVendorCDR_20' ) start [2025-01-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310797', 'tblTempVendorCDR_20' ) end [2025-01-23 07:28:18] Production.INFO: ProcessCDR(1,14310797,1,1,2) [2025-01-23 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310797', 'tblTempUsageDetail_20' ) start [2025-01-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310797', 'tblTempUsageDetail_20' ) end [2025-01-23 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:28:21] Production.INFO: ==357== Releasing lock... [2025-01-23 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:29:05 [end_date_ymd] => 2025-01-23 07:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:29:05' and `end` < '2025-01-23 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-23 07:29:18] Production.INFO: count ==94 [2025-01-23 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:29:05 - End Time 2025-01-23 07:29:05 [2025-01-23 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310802', 'tblTempUsageDetail_20' ) start [2025-01-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310802', 'tblTempUsageDetail_20' ) end [2025-01-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310802', 'tblTempVendorCDR_20' ) start [2025-01-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310802', 'tblTempVendorCDR_20' ) end [2025-01-23 07:29:18] Production.INFO: ProcessCDR(1,14310802,1,1,2) [2025-01-23 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310802', 'tblTempUsageDetail_20' ) start [2025-01-23 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310802', 'tblTempUsageDetail_20' ) end [2025-01-23 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:29:21] Production.INFO: ==435== Releasing lock... [2025-01-23 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-23 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:30:07 [end_date_ymd] => 2025-01-23 07:30:07 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:30:07' and `end` < '2025-01-23 07: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-23 07:30:19] Production.INFO: count ==106 [2025-01-23 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:30:07 - End Time 2025-01-23 07:30:07 [2025-01-23 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310808', 'tblTempUsageDetail_20' ) start [2025-01-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310808', 'tblTempUsageDetail_20' ) end [2025-01-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310808', 'tblTempVendorCDR_20' ) start [2025-01-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310808', 'tblTempVendorCDR_20' ) end [2025-01-23 07:30:19] Production.INFO: ProcessCDR(1,14310808,1,1,2) [2025-01-23 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310808', 'tblTempUsageDetail_20' ) start [2025-01-23 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310808', 'tblTempUsageDetail_20' ) end [2025-01-23 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:30:24] Production.INFO: ==523== Releasing lock... [2025-01-23 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:30:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:31:05 [end_date_ymd] => 2025-01-23 07:31:05 [RateCDR] => 1 ) [2025-01-23 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:31:05' and `end` < '2025-01-23 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:31:17] Production.INFO: count ==108 [2025-01-23 07:31:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:31:05 - End Time 2025-01-23 07:31:05 [2025-01-23 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310813', 'tblTempUsageDetail_20' ) start [2025-01-23 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310813', 'tblTempUsageDetail_20' ) end [2025-01-23 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310813', 'tblTempVendorCDR_20' ) start [2025-01-23 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310813', 'tblTempVendorCDR_20' ) end [2025-01-23 07:31:17] Production.INFO: ProcessCDR(1,14310813,1,1,2) [2025-01-23 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310813', 'tblTempUsageDetail_20' ) start [2025-01-23 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310813', 'tblTempUsageDetail_20' ) end [2025-01-23 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:31:21] Production.INFO: ==609== Releasing lock... [2025-01-23 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:32:05 [end_date_ymd] => 2025-01-23 07:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:32:05' and `end` < '2025-01-23 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-23 07:32:18] Production.INFO: count ==109 [2025-01-23 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:32:05 - End Time 2025-01-23 07:32:05 [2025-01-23 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310818', 'tblTempUsageDetail_20' ) start [2025-01-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310818', 'tblTempUsageDetail_20' ) end [2025-01-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310818', 'tblTempVendorCDR_20' ) start [2025-01-23 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310818', 'tblTempVendorCDR_20' ) end [2025-01-23 07:32:18] Production.INFO: ProcessCDR(1,14310818,1,1,2) [2025-01-23 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310818', 'tblTempUsageDetail_20' ) start [2025-01-23 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310818', 'tblTempUsageDetail_20' ) end [2025-01-23 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:32:21] Production.INFO: ==717== Releasing lock... [2025-01-23 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:33:05 [end_date_ymd] => 2025-01-23 07:33:05 [RateCDR] => 1 ) [2025-01-23 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:33:05' and `end` < '2025-01-23 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:33:19] Production.INFO: count ==111 [2025-01-23 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:33:05 - End Time 2025-01-23 07:33:05 [2025-01-23 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310823', 'tblTempUsageDetail_20' ) start [2025-01-23 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310823', 'tblTempUsageDetail_20' ) end [2025-01-23 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310823', 'tblTempVendorCDR_20' ) start [2025-01-23 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310823', 'tblTempVendorCDR_20' ) end [2025-01-23 07:33:19] Production.INFO: ProcessCDR(1,14310823,1,1,2) [2025-01-23 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310823', 'tblTempUsageDetail_20' ) start [2025-01-23 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310823', 'tblTempUsageDetail_20' ) end [2025-01-23 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:33:23] Production.INFO: ==797== Releasing lock... [2025-01-23 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:34:05 [end_date_ymd] => 2025-01-23 07:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:34:05' and `end` < '2025-01-23 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-23 07:34:18] Production.INFO: count ==111 [2025-01-23 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:34:05 - End Time 2025-01-23 07:34:05 [2025-01-23 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310828', 'tblTempUsageDetail_20' ) start [2025-01-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310828', 'tblTempUsageDetail_20' ) end [2025-01-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310828', 'tblTempVendorCDR_20' ) start [2025-01-23 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310828', 'tblTempVendorCDR_20' ) end [2025-01-23 07:34:18] Production.INFO: ProcessCDR(1,14310828,1,1,2) [2025-01-23 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310828', 'tblTempUsageDetail_20' ) start [2025-01-23 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310828', 'tblTempUsageDetail_20' ) end [2025-01-23 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:34:22] Production.INFO: ==902== Releasing lock... [2025-01-23 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:35:05 [end_date_ymd] => 2025-01-23 07:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:35:05' and `end` < '2025-01-23 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-23 07:35:17] Production.INFO: count ==111 [2025-01-23 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:35:05 - End Time 2025-01-23 07:35:05 [2025-01-23 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310833', 'tblTempUsageDetail_20' ) start [2025-01-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310833', 'tblTempUsageDetail_20' ) end [2025-01-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310833', 'tblTempVendorCDR_20' ) start [2025-01-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310833', 'tblTempVendorCDR_20' ) end [2025-01-23 07:35:17] Production.INFO: ProcessCDR(1,14310833,1,1,2) [2025-01-23 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310833', 'tblTempUsageDetail_20' ) start [2025-01-23 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310833', 'tblTempUsageDetail_20' ) end [2025-01-23 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:35:20] Production.INFO: ==988== Releasing lock... [2025-01-23 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:36:06 [end_date_ymd] => 2025-01-23 07:36:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:36:06' and `end` < '2025-01-23 07: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-23 07:36:18] Production.INFO: count ==111 [2025-01-23 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:36:06 - End Time 2025-01-23 07:36:06 [2025-01-23 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310838', 'tblTempUsageDetail_20' ) start [2025-01-23 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310838', 'tblTempUsageDetail_20' ) end [2025-01-23 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310838', 'tblTempVendorCDR_20' ) start [2025-01-23 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310838', 'tblTempVendorCDR_20' ) end [2025-01-23 07:36:18] Production.INFO: ProcessCDR(1,14310838,1,1,2) [2025-01-23 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310838', 'tblTempUsageDetail_20' ) start [2025-01-23 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310838', 'tblTempUsageDetail_20' ) end [2025-01-23 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:36:21] Production.INFO: ==1065== Releasing lock... [2025-01-23 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:37:05 [end_date_ymd] => 2025-01-23 07:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:37:05' and `end` < '2025-01-23 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-23 07:37:18] Production.INFO: count ==111 [2025-01-23 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:37:05 - End Time 2025-01-23 07:37:05 [2025-01-23 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310843', 'tblTempUsageDetail_20' ) start [2025-01-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310843', 'tblTempUsageDetail_20' ) end [2025-01-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310843', 'tblTempVendorCDR_20' ) start [2025-01-23 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310843', 'tblTempVendorCDR_20' ) end [2025-01-23 07:37:18] Production.INFO: ProcessCDR(1,14310843,1,1,2) [2025-01-23 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310843', 'tblTempUsageDetail_20' ) start [2025-01-23 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310843', 'tblTempUsageDetail_20' ) end [2025-01-23 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:37:21] Production.INFO: ==1146== Releasing lock... [2025-01-23 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:38:05 [end_date_ymd] => 2025-01-23 07:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:38:05' and `end` < '2025-01-23 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-23 07:38:18] Production.INFO: count ==112 [2025-01-23 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:38:05 - End Time 2025-01-23 07:38:05 [2025-01-23 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310848', 'tblTempUsageDetail_20' ) start [2025-01-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310848', 'tblTempUsageDetail_20' ) end [2025-01-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310848', 'tblTempVendorCDR_20' ) start [2025-01-23 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310848', 'tblTempVendorCDR_20' ) end [2025-01-23 07:38:18] Production.INFO: ProcessCDR(1,14310848,1,1,2) [2025-01-23 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310848', 'tblTempUsageDetail_20' ) start [2025-01-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310848', 'tblTempUsageDetail_20' ) end [2025-01-23 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:38:21] Production.INFO: ==1230== Releasing lock... [2025-01-23 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:39:05 [end_date_ymd] => 2025-01-23 07:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:39:05' and `end` < '2025-01-23 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-23 07:39:18] Production.INFO: count ==112 [2025-01-23 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:39:05 - End Time 2025-01-23 07:39:05 [2025-01-23 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310853', 'tblTempUsageDetail_20' ) start [2025-01-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310853', 'tblTempUsageDetail_20' ) end [2025-01-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310853', 'tblTempVendorCDR_20' ) start [2025-01-23 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310853', 'tblTempVendorCDR_20' ) end [2025-01-23 07:39:18] Production.INFO: ProcessCDR(1,14310853,1,1,2) [2025-01-23 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310853', 'tblTempUsageDetail_20' ) start [2025-01-23 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310853', 'tblTempUsageDetail_20' ) end [2025-01-23 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:39:21] Production.INFO: ==1363== Releasing lock... [2025-01-23 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:40:05 [end_date_ymd] => 2025-01-23 07:40:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:40:05' and `end` < '2025-01-23 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-23 07:40:18] Production.INFO: count ==108 [2025-01-23 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:40:05 - End Time 2025-01-23 07:40:05 [2025-01-23 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310859', 'tblTempUsageDetail_20' ) start [2025-01-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310859', 'tblTempUsageDetail_20' ) end [2025-01-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310859', 'tblTempVendorCDR_20' ) start [2025-01-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310859', 'tblTempVendorCDR_20' ) end [2025-01-23 07:40:18] Production.INFO: ProcessCDR(1,14310859,1,1,2) [2025-01-23 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310859', 'tblTempUsageDetail_20' ) start [2025-01-23 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310859', 'tblTempUsageDetail_20' ) end [2025-01-23 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:40:21] Production.INFO: ==1448== Releasing lock... [2025-01-23 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:41:06 [end_date_ymd] => 2025-01-23 07:41:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:41:06' and `end` < '2025-01-23 07: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-23 07:41:19] Production.INFO: count ==108 [2025-01-23 07:41:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:41:06 - End Time 2025-01-23 07:41:06 [2025-01-23 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310864', 'tblTempUsageDetail_20' ) start [2025-01-23 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310864', 'tblTempUsageDetail_20' ) end [2025-01-23 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310864', 'tblTempVendorCDR_20' ) start [2025-01-23 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310864', 'tblTempVendorCDR_20' ) end [2025-01-23 07:41:19] Production.INFO: ProcessCDR(1,14310864,1,1,2) [2025-01-23 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310864', 'tblTempUsageDetail_20' ) start [2025-01-23 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310864', 'tblTempUsageDetail_20' ) end [2025-01-23 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:41:22] Production.INFO: ==1563== Releasing lock... [2025-01-23 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:42:05 [end_date_ymd] => 2025-01-23 07:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:42:05' and `end` < '2025-01-23 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-23 07:42:18] Production.INFO: count ==108 [2025-01-23 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:42:05 - End Time 2025-01-23 07:42:05 [2025-01-23 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310869', 'tblTempUsageDetail_20' ) start [2025-01-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310869', 'tblTempUsageDetail_20' ) end [2025-01-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310869', 'tblTempVendorCDR_20' ) start [2025-01-23 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310869', 'tblTempVendorCDR_20' ) end [2025-01-23 07:42:18] Production.INFO: ProcessCDR(1,14310869,1,1,2) [2025-01-23 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310869', 'tblTempUsageDetail_20' ) start [2025-01-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310869', 'tblTempUsageDetail_20' ) end [2025-01-23 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:42:21] Production.INFO: ==1648== Releasing lock... [2025-01-23 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:43:05 [end_date_ymd] => 2025-01-23 07:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:43:05' and `end` < '2025-01-23 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-23 07:43:18] Production.INFO: count ==108 [2025-01-23 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:43:05 - End Time 2025-01-23 07:43:05 [2025-01-23 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310874', 'tblTempUsageDetail_20' ) start [2025-01-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310874', 'tblTempUsageDetail_20' ) end [2025-01-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310874', 'tblTempVendorCDR_20' ) start [2025-01-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310874', 'tblTempVendorCDR_20' ) end [2025-01-23 07:43:18] Production.INFO: ProcessCDR(1,14310874,1,1,2) [2025-01-23 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310874', 'tblTempUsageDetail_20' ) start [2025-01-23 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310874', 'tblTempUsageDetail_20' ) end [2025-01-23 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:43:21] Production.INFO: ==1730== Releasing lock... [2025-01-23 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:44:05 [end_date_ymd] => 2025-01-23 07:44:05 [RateCDR] => 1 ) [2025-01-23 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 04:44:05' and `end` < '2025-01-23 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 07:44:17] Production.INFO: count ==108 [2025-01-23 07:44:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:44:05 - End Time 2025-01-23 07:44:05 [2025-01-23 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310879', 'tblTempUsageDetail_20' ) start [2025-01-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310879', 'tblTempUsageDetail_20' ) end [2025-01-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310879', 'tblTempVendorCDR_20' ) start [2025-01-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310879', 'tblTempVendorCDR_20' ) end [2025-01-23 07:44:17] Production.INFO: ProcessCDR(1,14310879,1,1,2) [2025-01-23 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310879', 'tblTempUsageDetail_20' ) start [2025-01-23 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310879', 'tblTempUsageDetail_20' ) end [2025-01-23 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:44:20] Production.INFO: ==1813== Releasing lock... [2025-01-23 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:45:05 [end_date_ymd] => 2025-01-23 07:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:45:05' and `end` < '2025-01-23 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-23 07:45:17] Production.INFO: count ==106 [2025-01-23 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:45:05 - End Time 2025-01-23 07:45:05 [2025-01-23 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310884', 'tblTempUsageDetail_20' ) start [2025-01-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310884', 'tblTempUsageDetail_20' ) end [2025-01-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310884', 'tblTempVendorCDR_20' ) start [2025-01-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310884', 'tblTempVendorCDR_20' ) end [2025-01-23 07:45:17] Production.INFO: ProcessCDR(1,14310884,1,1,2) [2025-01-23 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310884', 'tblTempUsageDetail_20' ) start [2025-01-23 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310884', 'tblTempUsageDetail_20' ) end [2025-01-23 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:45:21] Production.INFO: ==1903== Releasing lock... [2025-01-23 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:46:05 [end_date_ymd] => 2025-01-23 07:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:46:05' and `end` < '2025-01-23 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-23 07:46:20] Production.INFO: count ==106 [2025-01-23 07:46:20] Production.ERROR: pbx CDR StartTime 2025-01-23 04:46:05 - End Time 2025-01-23 07:46:05 [2025-01-23 07:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310889', 'tblTempUsageDetail_20' ) start [2025-01-23 07:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310889', 'tblTempUsageDetail_20' ) end [2025-01-23 07:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310889', 'tblTempVendorCDR_20' ) start [2025-01-23 07:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310889', 'tblTempVendorCDR_20' ) end [2025-01-23 07:46:21] Production.INFO: ProcessCDR(1,14310889,1,1,2) [2025-01-23 07:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310889', 'tblTempUsageDetail_20' ) start [2025-01-23 07:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310889', 'tblTempUsageDetail_20' ) end [2025-01-23 07:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:46:24] Production.INFO: ==1979== Releasing lock... [2025-01-23 07:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:46:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:47:05 [end_date_ymd] => 2025-01-23 07:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:47:05' and `end` < '2025-01-23 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-23 07:47:18] Production.INFO: count ==106 [2025-01-23 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:47:05 - End Time 2025-01-23 07:47:05 [2025-01-23 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310894', 'tblTempUsageDetail_20' ) start [2025-01-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310894', 'tblTempUsageDetail_20' ) end [2025-01-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310894', 'tblTempVendorCDR_20' ) start [2025-01-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310894', 'tblTempVendorCDR_20' ) end [2025-01-23 07:47:18] Production.INFO: ProcessCDR(1,14310894,1,1,2) [2025-01-23 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310894', 'tblTempUsageDetail_20' ) start [2025-01-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310894', 'tblTempUsageDetail_20' ) end [2025-01-23 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:47:21] Production.INFO: ==2058== Releasing lock... [2025-01-23 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:48:05 [end_date_ymd] => 2025-01-23 07:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:48:05' and `end` < '2025-01-23 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-23 07:48:18] Production.INFO: count ==106 [2025-01-23 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:48:05 - End Time 2025-01-23 07:48:05 [2025-01-23 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310899', 'tblTempUsageDetail_20' ) start [2025-01-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310899', 'tblTempUsageDetail_20' ) end [2025-01-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310899', 'tblTempVendorCDR_20' ) start [2025-01-23 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310899', 'tblTempVendorCDR_20' ) end [2025-01-23 07:48:18] Production.INFO: ProcessCDR(1,14310899,1,1,2) [2025-01-23 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310899', 'tblTempUsageDetail_20' ) start [2025-01-23 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310899', 'tblTempUsageDetail_20' ) end [2025-01-23 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:48:21] Production.INFO: ==2136== Releasing lock... [2025-01-23 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:49:04 [end_date_ymd] => 2025-01-23 07:49:04 [RateCDR] => 1 ) [2025-01-23 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-23 04:49:04' and `end` < '2025-01-23 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-23 07:49:17] Production.INFO: count ==106 [2025-01-23 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:49:04 - End Time 2025-01-23 07:49:04 [2025-01-23 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310904', 'tblTempUsageDetail_20' ) start [2025-01-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310904', 'tblTempUsageDetail_20' ) end [2025-01-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310904', 'tblTempVendorCDR_20' ) start [2025-01-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310904', 'tblTempVendorCDR_20' ) end [2025-01-23 07:49:17] Production.INFO: ProcessCDR(1,14310904,1,1,2) [2025-01-23 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310904', 'tblTempUsageDetail_20' ) start [2025-01-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310904', 'tblTempUsageDetail_20' ) end [2025-01-23 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:49:20] Production.INFO: ==2214== Releasing lock... [2025-01-23 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:50:06 [end_date_ymd] => 2025-01-23 07:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 04:50:06' and `end` < '2025-01-23 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-23 07:50:19] Production.INFO: count ==114 [2025-01-23 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:50:06 - End Time 2025-01-23 07:50:06 [2025-01-23 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310910', 'tblTempUsageDetail_20' ) start [2025-01-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310910', 'tblTempUsageDetail_20' ) end [2025-01-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310910', 'tblTempVendorCDR_20' ) start [2025-01-23 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310910', 'tblTempVendorCDR_20' ) end [2025-01-23 07:50:19] Production.INFO: ProcessCDR(1,14310910,1,1,2) [2025-01-23 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310910', 'tblTempUsageDetail_20' ) start [2025-01-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310910', 'tblTempUsageDetail_20' ) end [2025-01-23 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:50:22] Production.INFO: ==2300== Releasing lock... [2025-01-23 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:51:05 [end_date_ymd] => 2025-01-23 07:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:51:05' and `end` < '2025-01-23 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-23 07:51:18] Production.INFO: count ==114 [2025-01-23 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:51:05 - End Time 2025-01-23 07:51:05 [2025-01-23 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310915', 'tblTempUsageDetail_20' ) start [2025-01-23 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310915', 'tblTempUsageDetail_20' ) end [2025-01-23 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310915', 'tblTempVendorCDR_20' ) start [2025-01-23 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310915', 'tblTempVendorCDR_20' ) end [2025-01-23 07:51:18] Production.INFO: ProcessCDR(1,14310915,1,1,2) [2025-01-23 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310915', 'tblTempUsageDetail_20' ) start [2025-01-23 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310915', 'tblTempUsageDetail_20' ) end [2025-01-23 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:51:21] Production.INFO: ==2379== Releasing lock... [2025-01-23 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:52:05 [end_date_ymd] => 2025-01-23 07:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:52:05' and `end` < '2025-01-23 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-23 07:52:19] Production.INFO: count ==122 [2025-01-23 07:52:19] Production.ERROR: pbx CDR StartTime 2025-01-23 04:52:05 - End Time 2025-01-23 07:52:05 [2025-01-23 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310920', 'tblTempUsageDetail_20' ) start [2025-01-23 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310920', 'tblTempUsageDetail_20' ) end [2025-01-23 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310920', 'tblTempVendorCDR_20' ) start [2025-01-23 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310920', 'tblTempVendorCDR_20' ) end [2025-01-23 07:52:19] Production.INFO: ProcessCDR(1,14310920,1,1,2) [2025-01-23 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310920', 'tblTempUsageDetail_20' ) start [2025-01-23 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310920', 'tblTempUsageDetail_20' ) end [2025-01-23 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:52:22] Production.INFO: ==2455== Releasing lock... [2025-01-23 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:53:05 [end_date_ymd] => 2025-01-23 07:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:53:05' and `end` < '2025-01-23 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-23 07:53:18] Production.INFO: count ==122 [2025-01-23 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:53:05 - End Time 2025-01-23 07:53:05 [2025-01-23 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310925', 'tblTempUsageDetail_20' ) start [2025-01-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310925', 'tblTempUsageDetail_20' ) end [2025-01-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310925', 'tblTempVendorCDR_20' ) start [2025-01-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310925', 'tblTempVendorCDR_20' ) end [2025-01-23 07:53:18] Production.INFO: ProcessCDR(1,14310925,1,1,2) [2025-01-23 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310925', 'tblTempUsageDetail_20' ) start [2025-01-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310925', 'tblTempUsageDetail_20' ) end [2025-01-23 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:53:21] Production.INFO: ==2529== Releasing lock... [2025-01-23 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:54:05 [end_date_ymd] => 2025-01-23 07:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:54:05' and `end` < '2025-01-23 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-23 07:54:18] Production.INFO: count ==122 [2025-01-23 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:54:05 - End Time 2025-01-23 07:54:05 [2025-01-23 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310930', 'tblTempUsageDetail_20' ) start [2025-01-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310930', 'tblTempUsageDetail_20' ) end [2025-01-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310930', 'tblTempVendorCDR_20' ) start [2025-01-23 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310930', 'tblTempVendorCDR_20' ) end [2025-01-23 07:54:18] Production.INFO: ProcessCDR(1,14310930,1,1,2) [2025-01-23 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310930', 'tblTempUsageDetail_20' ) start [2025-01-23 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310930', 'tblTempUsageDetail_20' ) end [2025-01-23 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:54:21] Production.INFO: ==2643== Releasing lock... [2025-01-23 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-23 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:55:05 [end_date_ymd] => 2025-01-23 07:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:55:05' and `end` < '2025-01-23 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-23 07:55:17] Production.INFO: count ==126 [2025-01-23 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:55:05 - End Time 2025-01-23 07:55:05 [2025-01-23 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310935', 'tblTempUsageDetail_20' ) start [2025-01-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310935', 'tblTempUsageDetail_20' ) end [2025-01-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310935', 'tblTempVendorCDR_20' ) start [2025-01-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310935', 'tblTempVendorCDR_20' ) end [2025-01-23 07:55:17] Production.INFO: ProcessCDR(1,14310935,1,1,2) [2025-01-23 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310935', 'tblTempUsageDetail_20' ) start [2025-01-23 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310935', 'tblTempUsageDetail_20' ) end [2025-01-23 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:55:22] Production.INFO: ==2720== Releasing lock... [2025-01-23 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:56:06 [end_date_ymd] => 2025-01-23 07:56:06 [RateCDR] => 1 ) [2025-01-23 07: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-23 04:56:06' and `end` < '2025-01-23 07: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-23 07:56:18] Production.INFO: count ==126 [2025-01-23 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:56:06 - End Time 2025-01-23 07:56:06 [2025-01-23 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310940', 'tblTempUsageDetail_20' ) start [2025-01-23 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310940', 'tblTempUsageDetail_20' ) end [2025-01-23 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310940', 'tblTempVendorCDR_20' ) start [2025-01-23 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310940', 'tblTempVendorCDR_20' ) end [2025-01-23 07:56:18] Production.INFO: ProcessCDR(1,14310940,1,1,2) [2025-01-23 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310940', 'tblTempUsageDetail_20' ) start [2025-01-23 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310940', 'tblTempUsageDetail_20' ) end [2025-01-23 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:56:21] Production.INFO: ==2792== Releasing lock... [2025-01-23 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:57:05 [end_date_ymd] => 2025-01-23 07:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:57:05' and `end` < '2025-01-23 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-23 07:57:17] Production.INFO: count ==127 [2025-01-23 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-23 04:57:05 - End Time 2025-01-23 07:57:05 [2025-01-23 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310945', 'tblTempUsageDetail_20' ) start [2025-01-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310945', 'tblTempUsageDetail_20' ) end [2025-01-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310945', 'tblTempVendorCDR_20' ) start [2025-01-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310945', 'tblTempVendorCDR_20' ) end [2025-01-23 07:57:17] Production.INFO: ProcessCDR(1,14310945,1,1,2) [2025-01-23 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310945', 'tblTempUsageDetail_20' ) start [2025-01-23 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310945', 'tblTempUsageDetail_20' ) end [2025-01-23 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:57:20] Production.INFO: ==2868== Releasing lock... [2025-01-23 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:58:05 [end_date_ymd] => 2025-01-23 07:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:58:05' and `end` < '2025-01-23 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-23 07:58:18] Production.INFO: count ==127 [2025-01-23 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:58:05 - End Time 2025-01-23 07:58:05 [2025-01-23 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310950', 'tblTempUsageDetail_20' ) start [2025-01-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310950', 'tblTempUsageDetail_20' ) end [2025-01-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310950', 'tblTempVendorCDR_20' ) start [2025-01-23 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310950', 'tblTempVendorCDR_20' ) end [2025-01-23 07:58:18] Production.INFO: ProcessCDR(1,14310950,1,1,2) [2025-01-23 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310950', 'tblTempUsageDetail_20' ) start [2025-01-23 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310950', 'tblTempUsageDetail_20' ) end [2025-01-23 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:58:21] Production.INFO: ==2943== Releasing lock... [2025-01-23 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 04:59:05 [end_date_ymd] => 2025-01-23 07:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 04:59:05' and `end` < '2025-01-23 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-23 07:59:18] Production.INFO: count ==127 [2025-01-23 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 04:59:05 - End Time 2025-01-23 07:59:05 [2025-01-23 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310955', 'tblTempUsageDetail_20' ) start [2025-01-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310955', 'tblTempUsageDetail_20' ) end [2025-01-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310955', 'tblTempVendorCDR_20' ) start [2025-01-23 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310955', 'tblTempVendorCDR_20' ) end [2025-01-23 07:59:18] Production.INFO: ProcessCDR(1,14310955,1,1,2) [2025-01-23 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310955', 'tblTempUsageDetail_20' ) start [2025-01-23 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310955', 'tblTempUsageDetail_20' ) end [2025-01-23 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 07:59:21] Production.INFO: ==3018== Releasing lock... [2025-01-23 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:00:07 [end_date_ymd] => 2025-01-23 08:00:07 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:00:07' and `end` < '2025-01-23 08: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-23 08:00:19] Production.INFO: count ==133 [2025-01-23 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:00:07 - End Time 2025-01-23 08:00:07 [2025-01-23 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310961', 'tblTempUsageDetail_20' ) start [2025-01-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310961', 'tblTempUsageDetail_20' ) end [2025-01-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310961', 'tblTempVendorCDR_20' ) start [2025-01-23 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310961', 'tblTempVendorCDR_20' ) end [2025-01-23 08:00:19] Production.INFO: ProcessCDR(1,14310961,1,1,2) [2025-01-23 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310961', 'tblTempUsageDetail_20' ) start [2025-01-23 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310961', 'tblTempUsageDetail_20' ) end [2025-01-23 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:00:22] Production.INFO: ==3098== Releasing lock... [2025-01-23 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:01:05 [end_date_ymd] => 2025-01-23 08:01:05 [RateCDR] => 1 ) [2025-01-23 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:01:05' and `end` < '2025-01-23 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:01:18] Production.INFO: count ==133 [2025-01-23 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:01:05 - End Time 2025-01-23 08:01:05 [2025-01-23 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310966', 'tblTempUsageDetail_20' ) start [2025-01-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310966', 'tblTempUsageDetail_20' ) end [2025-01-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310966', 'tblTempVendorCDR_20' ) start [2025-01-23 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310966', 'tblTempVendorCDR_20' ) end [2025-01-23 08:01:18] Production.INFO: ProcessCDR(1,14310966,1,1,2) [2025-01-23 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310966', 'tblTempUsageDetail_20' ) start [2025-01-23 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310966', 'tblTempUsageDetail_20' ) end [2025-01-23 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:01:21] Production.INFO: ==3187== Releasing lock... [2025-01-23 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:02:05 [end_date_ymd] => 2025-01-23 08:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:02:05' and `end` < '2025-01-23 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-23 08:02:18] Production.INFO: count ==138 [2025-01-23 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:02:05 - End Time 2025-01-23 08:02:05 [2025-01-23 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310971', 'tblTempUsageDetail_20' ) start [2025-01-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310971', 'tblTempUsageDetail_20' ) end [2025-01-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310971', 'tblTempVendorCDR_20' ) start [2025-01-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310971', 'tblTempVendorCDR_20' ) end [2025-01-23 08:02:18] Production.INFO: ProcessCDR(1,14310971,1,1,2) [2025-01-23 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310971', 'tblTempUsageDetail_20' ) start [2025-01-23 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310971', 'tblTempUsageDetail_20' ) end [2025-01-23 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:02:21] Production.INFO: ==3263== Releasing lock... [2025-01-23 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:03:05 [end_date_ymd] => 2025-01-23 08:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:03:05' and `end` < '2025-01-23 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-23 08:03:18] Production.INFO: count ==138 [2025-01-23 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:03:05 - End Time 2025-01-23 08:03:05 [2025-01-23 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310976', 'tblTempUsageDetail_20' ) start [2025-01-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310976', 'tblTempUsageDetail_20' ) end [2025-01-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310976', 'tblTempVendorCDR_20' ) start [2025-01-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310976', 'tblTempVendorCDR_20' ) end [2025-01-23 08:03:18] Production.INFO: ProcessCDR(1,14310976,1,1,2) [2025-01-23 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310976', 'tblTempUsageDetail_20' ) start [2025-01-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310976', 'tblTempUsageDetail_20' ) end [2025-01-23 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:03:21] Production.INFO: ==3333== Releasing lock... [2025-01-23 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-23 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:04:06 [end_date_ymd] => 2025-01-23 08:04:06 [RateCDR] => 1 ) [2025-01-23 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:04:06' and `end` < '2025-01-23 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:04:20] Production.INFO: count ==153 [2025-01-23 08:04:20] Production.ERROR: pbx CDR StartTime 2025-01-23 05:04:06 - End Time 2025-01-23 08:04:06 [2025-01-23 08:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310981', 'tblTempUsageDetail_20' ) start [2025-01-23 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310981', 'tblTempUsageDetail_20' ) end [2025-01-23 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310981', 'tblTempVendorCDR_20' ) start [2025-01-23 08:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310981', 'tblTempVendorCDR_20' ) end [2025-01-23 08:04:20] Production.INFO: ProcessCDR(1,14310981,1,1,2) [2025-01-23 08:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310981', 'tblTempUsageDetail_20' ) start [2025-01-23 08:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310981', 'tblTempUsageDetail_20' ) end [2025-01-23 08:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:04:25] Production.INFO: ==3408== Releasing lock... [2025-01-23 08:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:04:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:05:05 [end_date_ymd] => 2025-01-23 08:05:05 [RateCDR] => 1 ) [2025-01-23 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:05:05' and `end` < '2025-01-23 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:05:18] Production.INFO: count ==155 [2025-01-23 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:05:05 - End Time 2025-01-23 08:05:05 [2025-01-23 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310986', 'tblTempUsageDetail_20' ) start [2025-01-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310986', 'tblTempUsageDetail_20' ) end [2025-01-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310986', 'tblTempVendorCDR_20' ) start [2025-01-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310986', 'tblTempVendorCDR_20' ) end [2025-01-23 08:05:18] Production.INFO: ProcessCDR(1,14310986,1,1,2) [2025-01-23 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310986', 'tblTempUsageDetail_20' ) start [2025-01-23 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310986', 'tblTempUsageDetail_20' ) end [2025-01-23 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:05:22] Production.INFO: ==3486== Releasing lock... [2025-01-23 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-23 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:06:06 [end_date_ymd] => 2025-01-23 08:06:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:06:06' and `end` < '2025-01-23 08: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-23 08:06:18] Production.INFO: count ==161 [2025-01-23 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:06:06 - End Time 2025-01-23 08:06:06 [2025-01-23 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310991', 'tblTempUsageDetail_20' ) start [2025-01-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310991', 'tblTempUsageDetail_20' ) end [2025-01-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310991', 'tblTempVendorCDR_20' ) start [2025-01-23 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310991', 'tblTempVendorCDR_20' ) end [2025-01-23 08:06:18] Production.INFO: ProcessCDR(1,14310991,1,1,2) [2025-01-23 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310991', 'tblTempUsageDetail_20' ) start [2025-01-23 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310991', 'tblTempUsageDetail_20' ) end [2025-01-23 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:06:23] Production.INFO: ==3561== Releasing lock... [2025-01-23 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:06:23] Production.INFO: 29 MB #Memory Used# [2025-01-23 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:07:05 [end_date_ymd] => 2025-01-23 08:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:07:05' and `end` < '2025-01-23 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-23 08:07:18] Production.INFO: count ==173 [2025-01-23 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:07:05 - End Time 2025-01-23 08:07:05 [2025-01-23 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310996', 'tblTempUsageDetail_20' ) start [2025-01-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14310996', 'tblTempUsageDetail_20' ) end [2025-01-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310996', 'tblTempVendorCDR_20' ) start [2025-01-23 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14310996', 'tblTempVendorCDR_20' ) end [2025-01-23 08:07:18] Production.INFO: ProcessCDR(1,14310996,1,1,2) [2025-01-23 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14310996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14310996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14310996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14310996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310996', 'tblTempUsageDetail_20' ) start [2025-01-23 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14310996', 'tblTempUsageDetail_20' ) end [2025-01-23 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:07:21] Production.INFO: ==3636== Releasing lock... [2025-01-23 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-23 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:08:05 [end_date_ymd] => 2025-01-23 08:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:08:05' and `end` < '2025-01-23 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-23 08:08:18] Production.INFO: count ==186 [2025-01-23 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:08:05 - End Time 2025-01-23 08:08:05 [2025-01-23 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311001', 'tblTempUsageDetail_20' ) start [2025-01-23 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311001', 'tblTempUsageDetail_20' ) end [2025-01-23 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311001', 'tblTempVendorCDR_20' ) start [2025-01-23 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311001', 'tblTempVendorCDR_20' ) end [2025-01-23 08:08:18] Production.INFO: ProcessCDR(1,14311001,1,1,2) [2025-01-23 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311001', 'tblTempUsageDetail_20' ) start [2025-01-23 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311001', 'tblTempUsageDetail_20' ) end [2025-01-23 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:08:23] Production.INFO: ==3711== Releasing lock... [2025-01-23 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-23 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:09:05 [end_date_ymd] => 2025-01-23 08:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:09:05' and `end` < '2025-01-23 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-23 08:09:18] Production.INFO: count ==196 [2025-01-23 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:09:05 - End Time 2025-01-23 08:09:05 [2025-01-23 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311006', 'tblTempUsageDetail_20' ) start [2025-01-23 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311006', 'tblTempUsageDetail_20' ) end [2025-01-23 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311006', 'tblTempVendorCDR_20' ) start [2025-01-23 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311006', 'tblTempVendorCDR_20' ) end [2025-01-23 08:09:18] Production.INFO: ProcessCDR(1,14311006,1,1,2) [2025-01-23 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311006', 'tblTempUsageDetail_20' ) start [2025-01-23 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311006', 'tblTempUsageDetail_20' ) end [2025-01-23 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:09:21] Production.INFO: ==3783== Releasing lock... [2025-01-23 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-23 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:10:06 [end_date_ymd] => 2025-01-23 08:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 05:10:06' and `end` < '2025-01-23 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-23 08:10:18] Production.INFO: count ==221 [2025-01-23 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:10:06 - End Time 2025-01-23 08:10:06 [2025-01-23 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311011', 'tblTempUsageDetail_20' ) start [2025-01-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311011', 'tblTempUsageDetail_20' ) end [2025-01-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311011', 'tblTempVendorCDR_20' ) start [2025-01-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311011', 'tblTempVendorCDR_20' ) end [2025-01-23 08:10:18] Production.INFO: ProcessCDR(1,14311011,1,1,2) [2025-01-23 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311011', 'tblTempUsageDetail_20' ) start [2025-01-23 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311011', 'tblTempUsageDetail_20' ) end [2025-01-23 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:10:23] Production.INFO: ==3897== Releasing lock... [2025-01-23 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:11:05 [end_date_ymd] => 2025-01-23 08:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:11:05' and `end` < '2025-01-23 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-23 08:11:17] Production.INFO: count ==251 [2025-01-23 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:11:05 - End Time 2025-01-23 08:11:05 [2025-01-23 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311016', 'tblTempUsageDetail_20' ) start [2025-01-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311016', 'tblTempUsageDetail_20' ) end [2025-01-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311016', 'tblTempVendorCDR_20' ) start [2025-01-23 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311016', 'tblTempVendorCDR_20' ) end [2025-01-23 08:11:18] Production.INFO: ProcessCDR(1,14311016,1,1,2) [2025-01-23 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311016', 'tblTempUsageDetail_20' ) start [2025-01-23 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311016', 'tblTempUsageDetail_20' ) end [2025-01-23 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:11:22] Production.INFO: ==3973== Releasing lock... [2025-01-23 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:12:06 [end_date_ymd] => 2025-01-23 08:12:06 [RateCDR] => 1 ) [2025-01-23 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:12:06' and `end` < '2025-01-23 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:12:18] Production.INFO: count ==251 [2025-01-23 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:12:06 - End Time 2025-01-23 08:12:06 [2025-01-23 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311022', 'tblTempUsageDetail_20' ) start [2025-01-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311022', 'tblTempUsageDetail_20' ) end [2025-01-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311022', 'tblTempVendorCDR_20' ) start [2025-01-23 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311022', 'tblTempVendorCDR_20' ) end [2025-01-23 08:12:18] Production.INFO: ProcessCDR(1,14311022,1,1,2) [2025-01-23 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311022', 'tblTempUsageDetail_20' ) start [2025-01-23 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311022', 'tblTempUsageDetail_20' ) end [2025-01-23 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:12:21] Production.INFO: ==4049== Releasing lock... [2025-01-23 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:13:05 [end_date_ymd] => 2025-01-23 08:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:13:05' and `end` < '2025-01-23 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-23 08:13:18] Production.INFO: count ==256 [2025-01-23 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:13:05 - End Time 2025-01-23 08:13:05 [2025-01-23 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311027', 'tblTempUsageDetail_20' ) start [2025-01-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311027', 'tblTempUsageDetail_20' ) end [2025-01-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311027', 'tblTempVendorCDR_20' ) start [2025-01-23 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311027', 'tblTempVendorCDR_20' ) end [2025-01-23 08:13:18] Production.INFO: ProcessCDR(1,14311027,1,1,2) [2025-01-23 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311027', 'tblTempUsageDetail_20' ) start [2025-01-23 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311027', 'tblTempUsageDetail_20' ) end [2025-01-23 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:13:22] Production.INFO: ==4122== Releasing lock... [2025-01-23 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-23 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:14:05 [end_date_ymd] => 2025-01-23 08:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:14:05' and `end` < '2025-01-23 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-23 08:14:18] Production.INFO: count ==262 [2025-01-23 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:14:05 - End Time 2025-01-23 08:14:05 [2025-01-23 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311032', 'tblTempUsageDetail_20' ) start [2025-01-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311032', 'tblTempUsageDetail_20' ) end [2025-01-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311032', 'tblTempVendorCDR_20' ) start [2025-01-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311032', 'tblTempVendorCDR_20' ) end [2025-01-23 08:14:18] Production.INFO: ProcessCDR(1,14311032,1,1,2) [2025-01-23 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311032', 'tblTempUsageDetail_20' ) start [2025-01-23 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311032', 'tblTempUsageDetail_20' ) end [2025-01-23 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:14:23] Production.INFO: ==4199== Releasing lock... [2025-01-23 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:14:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:15:05 [end_date_ymd] => 2025-01-23 08:15:05 [RateCDR] => 1 ) [2025-01-23 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:15:05' and `end` < '2025-01-23 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:15:17] Production.INFO: count ==263 [2025-01-23 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:15:05 - End Time 2025-01-23 08:15:05 [2025-01-23 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311037', 'tblTempUsageDetail_20' ) start [2025-01-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311037', 'tblTempUsageDetail_20' ) end [2025-01-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311037', 'tblTempVendorCDR_20' ) start [2025-01-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311037', 'tblTempVendorCDR_20' ) end [2025-01-23 08:15:17] Production.INFO: ProcessCDR(1,14311037,1,1,2) [2025-01-23 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311037', 'tblTempUsageDetail_20' ) start [2025-01-23 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311037', 'tblTempUsageDetail_20' ) end [2025-01-23 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:15:21] Production.INFO: ==4271== Releasing lock... [2025-01-23 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-23 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:16:06 [end_date_ymd] => 2025-01-23 08:16:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:16:06' and `end` < '2025-01-23 08: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-23 08:16:18] Production.INFO: count ==265 [2025-01-23 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:16:06 - End Time 2025-01-23 08:16:06 [2025-01-23 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311042', 'tblTempUsageDetail_20' ) start [2025-01-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311042', 'tblTempUsageDetail_20' ) end [2025-01-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311042', 'tblTempVendorCDR_20' ) start [2025-01-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311042', 'tblTempVendorCDR_20' ) end [2025-01-23 08:16:18] Production.INFO: ProcessCDR(1,14311042,1,1,2) [2025-01-23 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311042', 'tblTempUsageDetail_20' ) start [2025-01-23 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311042', 'tblTempUsageDetail_20' ) end [2025-01-23 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:16:23] Production.INFO: ==4342== Releasing lock... [2025-01-23 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:16:23] Production.INFO: 30 MB #Memory Used# [2025-01-23 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:17:05 [end_date_ymd] => 2025-01-23 08:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:17:05' and `end` < '2025-01-23 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-23 08:17:18] Production.INFO: count ==282 [2025-01-23 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:17:05 - End Time 2025-01-23 08:17:05 [2025-01-23 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311047', 'tblTempUsageDetail_20' ) start [2025-01-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311047', 'tblTempUsageDetail_20' ) end [2025-01-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311047', 'tblTempVendorCDR_20' ) start [2025-01-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311047', 'tblTempVendorCDR_20' ) end [2025-01-23 08:17:18] Production.INFO: ProcessCDR(1,14311047,1,1,2) [2025-01-23 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311047', 'tblTempUsageDetail_20' ) start [2025-01-23 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311047', 'tblTempUsageDetail_20' ) end [2025-01-23 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:17:21] Production.INFO: ==4415== Releasing lock... [2025-01-23 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:18:05 [end_date_ymd] => 2025-01-23 08:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:18:05' and `end` < '2025-01-23 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-23 08:18:18] Production.INFO: count ==297 [2025-01-23 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:18:05 - End Time 2025-01-23 08:18:05 [2025-01-23 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311052', 'tblTempUsageDetail_20' ) start [2025-01-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311052', 'tblTempUsageDetail_20' ) end [2025-01-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311052', 'tblTempVendorCDR_20' ) start [2025-01-23 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311052', 'tblTempVendorCDR_20' ) end [2025-01-23 08:18:18] Production.INFO: ProcessCDR(1,14311052,1,1,2) [2025-01-23 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311052', 'tblTempUsageDetail_20' ) start [2025-01-23 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311052', 'tblTempUsageDetail_20' ) end [2025-01-23 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:18:22] Production.INFO: ==4500== Releasing lock... [2025-01-23 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-23 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:19:05 [end_date_ymd] => 2025-01-23 08:19:05 [RateCDR] => 1 ) [2025-01-23 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:19:05' and `end` < '2025-01-23 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:19:17] Production.INFO: count ==307 [2025-01-23 08:19:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:19:05 - End Time 2025-01-23 08:19:05 [2025-01-23 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311057', 'tblTempUsageDetail_20' ) start [2025-01-23 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311057', 'tblTempUsageDetail_20' ) end [2025-01-23 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311057', 'tblTempVendorCDR_20' ) start [2025-01-23 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311057', 'tblTempVendorCDR_20' ) end [2025-01-23 08:19:17] Production.INFO: ProcessCDR(1,14311057,1,1,2) [2025-01-23 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311057', 'tblTempUsageDetail_20' ) start [2025-01-23 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311057', 'tblTempUsageDetail_20' ) end [2025-01-23 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:19:22] Production.INFO: ==4578== Releasing lock... [2025-01-23 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:20:06 [end_date_ymd] => 2025-01-23 08:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 05:20:06' and `end` < '2025-01-23 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-23 08:20:18] Production.INFO: count ==320 [2025-01-23 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:20:06 - End Time 2025-01-23 08:20:06 [2025-01-23 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311063', 'tblTempUsageDetail_20' ) start [2025-01-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311063', 'tblTempUsageDetail_20' ) end [2025-01-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311063', 'tblTempVendorCDR_20' ) start [2025-01-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311063', 'tblTempVendorCDR_20' ) end [2025-01-23 08:20:18] Production.INFO: ProcessCDR(1,14311063,1,1,2) [2025-01-23 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311063', 'tblTempUsageDetail_20' ) start [2025-01-23 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311063', 'tblTempUsageDetail_20' ) end [2025-01-23 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:20:21] Production.INFO: ==4659== Releasing lock... [2025-01-23 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-23 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:21:05 [end_date_ymd] => 2025-01-23 08:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:21:05' and `end` < '2025-01-23 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-23 08:21:17] Production.INFO: count ==338 [2025-01-23 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:21:05 - End Time 2025-01-23 08:21:05 [2025-01-23 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311068', 'tblTempUsageDetail_20' ) start [2025-01-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311068', 'tblTempUsageDetail_20' ) end [2025-01-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311068', 'tblTempVendorCDR_20' ) start [2025-01-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311068', 'tblTempVendorCDR_20' ) end [2025-01-23 08:21:17] Production.INFO: ProcessCDR(1,14311068,1,1,2) [2025-01-23 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311068', 'tblTempUsageDetail_20' ) start [2025-01-23 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311068', 'tblTempUsageDetail_20' ) end [2025-01-23 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:21:22] Production.INFO: ==4734== Releasing lock... [2025-01-23 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:22:06 [end_date_ymd] => 2025-01-23 08:22:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:22:06' and `end` < '2025-01-23 08: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-23 08:22:18] Production.INFO: count ==346 [2025-01-23 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:22:06 - End Time 2025-01-23 08:22:06 [2025-01-23 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311073', 'tblTempUsageDetail_20' ) start [2025-01-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311073', 'tblTempUsageDetail_20' ) end [2025-01-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311073', 'tblTempVendorCDR_20' ) start [2025-01-23 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311073', 'tblTempVendorCDR_20' ) end [2025-01-23 08:22:18] Production.INFO: ProcessCDR(1,14311073,1,1,2) [2025-01-23 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311073', 'tblTempUsageDetail_20' ) start [2025-01-23 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311073', 'tblTempUsageDetail_20' ) end [2025-01-23 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:22:21] Production.INFO: ==4804== Releasing lock... [2025-01-23 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:22:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:23:05 [end_date_ymd] => 2025-01-23 08:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:23:05' and `end` < '2025-01-23 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-23 08:23:20] Production.INFO: count ==347 [2025-01-23 08:23:20] Production.ERROR: pbx CDR StartTime 2025-01-23 05:23:05 - End Time 2025-01-23 08:23:05 [2025-01-23 08:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311078', 'tblTempUsageDetail_20' ) start [2025-01-23 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311078', 'tblTempUsageDetail_20' ) end [2025-01-23 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311078', 'tblTempVendorCDR_20' ) start [2025-01-23 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311078', 'tblTempVendorCDR_20' ) end [2025-01-23 08:23:20] Production.INFO: ProcessCDR(1,14311078,1,1,2) [2025-01-23 08:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311078', 'tblTempUsageDetail_20' ) start [2025-01-23 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311078', 'tblTempUsageDetail_20' ) end [2025-01-23 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:23:23] Production.INFO: ==4878== Releasing lock... [2025-01-23 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:23:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-23 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:24:05 [end_date_ymd] => 2025-01-23 08:24:05 [RateCDR] => 1 ) [2025-01-23 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:24:05' and `end` < '2025-01-23 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:24:18] Production.INFO: count ==352 [2025-01-23 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:24:05 - End Time 2025-01-23 08:24:05 [2025-01-23 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311083', 'tblTempUsageDetail_20' ) start [2025-01-23 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311083', 'tblTempUsageDetail_20' ) end [2025-01-23 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311083', 'tblTempVendorCDR_20' ) start [2025-01-23 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311083', 'tblTempVendorCDR_20' ) end [2025-01-23 08:24:18] Production.INFO: ProcessCDR(1,14311083,1,1,2) [2025-01-23 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311083', 'tblTempUsageDetail_20' ) start [2025-01-23 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311083', 'tblTempUsageDetail_20' ) end [2025-01-23 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:24:23] Production.INFO: ==4947== Releasing lock... [2025-01-23 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:25:05 [end_date_ymd] => 2025-01-23 08:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:25:05' and `end` < '2025-01-23 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-23 08:25:17] Production.INFO: count ==356 [2025-01-23 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:25:05 - End Time 2025-01-23 08:25:05 [2025-01-23 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311088', 'tblTempUsageDetail_20' ) start [2025-01-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311088', 'tblTempUsageDetail_20' ) end [2025-01-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311088', 'tblTempVendorCDR_20' ) start [2025-01-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311088', 'tblTempVendorCDR_20' ) end [2025-01-23 08:25:17] Production.INFO: ProcessCDR(1,14311088,1,1,2) [2025-01-23 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311088', 'tblTempUsageDetail_20' ) start [2025-01-23 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311088', 'tblTempUsageDetail_20' ) end [2025-01-23 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:25:22] Production.INFO: ==5057== Releasing lock... [2025-01-23 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:25:22] Production.INFO: 31 MB #Memory Used# [2025-01-23 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:26:05 [end_date_ymd] => 2025-01-23 08:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:26:05' and `end` < '2025-01-23 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-23 08:26:18] Production.INFO: count ==359 [2025-01-23 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:26:05 - End Time 2025-01-23 08:26:05 [2025-01-23 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311093', 'tblTempUsageDetail_20' ) start [2025-01-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311093', 'tblTempUsageDetail_20' ) end [2025-01-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311093', 'tblTempVendorCDR_20' ) start [2025-01-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311093', 'tblTempVendorCDR_20' ) end [2025-01-23 08:26:18] Production.INFO: ProcessCDR(1,14311093,1,1,2) [2025-01-23 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311093', 'tblTempUsageDetail_20' ) start [2025-01-23 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311093', 'tblTempUsageDetail_20' ) end [2025-01-23 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:26:21] Production.INFO: ==5129== Releasing lock... [2025-01-23 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:26:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:27:05 [end_date_ymd] => 2025-01-23 08:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:27:05' and `end` < '2025-01-23 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-23 08:27:17] Production.INFO: count ==360 [2025-01-23 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:27:05 - End Time 2025-01-23 08:27:05 [2025-01-23 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311098', 'tblTempUsageDetail_20' ) start [2025-01-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311098', 'tblTempUsageDetail_20' ) end [2025-01-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311098', 'tblTempVendorCDR_20' ) start [2025-01-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311098', 'tblTempVendorCDR_20' ) end [2025-01-23 08:27:17] Production.INFO: ProcessCDR(1,14311098,1,1,2) [2025-01-23 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311098', 'tblTempUsageDetail_20' ) start [2025-01-23 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311098', 'tblTempUsageDetail_20' ) end [2025-01-23 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:27:21] Production.INFO: ==5199== Releasing lock... [2025-01-23 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:27:21] Production.INFO: 31 MB #Memory Used# [2025-01-23 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:28:06 [end_date_ymd] => 2025-01-23 08:28:06 [RateCDR] => 1 ) [2025-01-23 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-23 05:28:06' and `end` < '2025-01-23 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-23 08:28:18] Production.INFO: count ==364 [2025-01-23 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:28:06 - End Time 2025-01-23 08:28:06 [2025-01-23 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311103', 'tblTempUsageDetail_20' ) start [2025-01-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311103', 'tblTempUsageDetail_20' ) end [2025-01-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311103', 'tblTempVendorCDR_20' ) start [2025-01-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311103', 'tblTempVendorCDR_20' ) end [2025-01-23 08:28:18] Production.INFO: ProcessCDR(1,14311103,1,1,2) [2025-01-23 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311103', 'tblTempUsageDetail_20' ) start [2025-01-23 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311103', 'tblTempUsageDetail_20' ) end [2025-01-23 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:28:21] Production.INFO: ==5272== Releasing lock... [2025-01-23 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:29:05 [end_date_ymd] => 2025-01-23 08:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:29:05' and `end` < '2025-01-23 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-23 08:29:18] Production.INFO: count ==366 [2025-01-23 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:29:05 - End Time 2025-01-23 08:29:05 [2025-01-23 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311108', 'tblTempUsageDetail_20' ) start [2025-01-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311108', 'tblTempUsageDetail_20' ) end [2025-01-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311108', 'tblTempVendorCDR_20' ) start [2025-01-23 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311108', 'tblTempVendorCDR_20' ) end [2025-01-23 08:29:18] Production.INFO: ProcessCDR(1,14311108,1,1,2) [2025-01-23 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311108', 'tblTempUsageDetail_20' ) start [2025-01-23 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311108', 'tblTempUsageDetail_20' ) end [2025-01-23 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:29:23] Production.INFO: ==5343== Releasing lock... [2025-01-23 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:29:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:30:07 [end_date_ymd] => 2025-01-23 08:30:07 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:30:07' and `end` < '2025-01-23 08: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-23 08:30:19] Production.INFO: count ==385 [2025-01-23 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:30:07 - End Time 2025-01-23 08:30:07 [2025-01-23 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311114', 'tblTempUsageDetail_20' ) start [2025-01-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311114', 'tblTempUsageDetail_20' ) end [2025-01-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311114', 'tblTempVendorCDR_20' ) start [2025-01-23 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311114', 'tblTempVendorCDR_20' ) end [2025-01-23 08:30:19] Production.INFO: ProcessCDR(1,14311114,1,1,2) [2025-01-23 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311114', 'tblTempUsageDetail_20' ) start [2025-01-23 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311114', 'tblTempUsageDetail_20' ) end [2025-01-23 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:30:24] Production.INFO: ==5416== Releasing lock... [2025-01-23 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:30:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:31:05 [end_date_ymd] => 2025-01-23 08:31:05 [RateCDR] => 1 ) [2025-01-23 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:31:05' and `end` < '2025-01-23 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:31:18] Production.INFO: count ==409 [2025-01-23 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:31:05 - End Time 2025-01-23 08:31:05 [2025-01-23 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311119', 'tblTempUsageDetail_20' ) start [2025-01-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311119', 'tblTempUsageDetail_20' ) end [2025-01-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311119', 'tblTempVendorCDR_20' ) start [2025-01-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311119', 'tblTempVendorCDR_20' ) end [2025-01-23 08:31:18] Production.INFO: ProcessCDR(1,14311119,1,1,2) [2025-01-23 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311119', 'tblTempUsageDetail_20' ) start [2025-01-23 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311119', 'tblTempUsageDetail_20' ) end [2025-01-23 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:31:21] Production.INFO: ==5489== Releasing lock... [2025-01-23 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:32:04 [end_date_ymd] => 2025-01-23 08:32:04 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:32:04' and `end` < '2025-01-23 08: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-23 08:32:17] Production.INFO: count ==417 [2025-01-23 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:32:04 - End Time 2025-01-23 08:32:04 [2025-01-23 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311124', 'tblTempUsageDetail_20' ) start [2025-01-23 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311124', 'tblTempUsageDetail_20' ) end [2025-01-23 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311124', 'tblTempVendorCDR_20' ) start [2025-01-23 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311124', 'tblTempVendorCDR_20' ) end [2025-01-23 08:32:17] Production.INFO: ProcessCDR(1,14311124,1,1,2) [2025-01-23 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311124', 'tblTempUsageDetail_20' ) start [2025-01-23 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311124', 'tblTempUsageDetail_20' ) end [2025-01-23 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:32:20] Production.INFO: ==5558== Releasing lock... [2025-01-23 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:32:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-23 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:33:06 [end_date_ymd] => 2025-01-23 08:33:06 [RateCDR] => 1 ) [2025-01-23 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-23 05:33:06' and `end` < '2025-01-23 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-23 08:33:18] Production.INFO: count ==420 [2025-01-23 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:33:06 - End Time 2025-01-23 08:33:06 [2025-01-23 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311129', 'tblTempUsageDetail_20' ) start [2025-01-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311129', 'tblTempUsageDetail_20' ) end [2025-01-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311129', 'tblTempVendorCDR_20' ) start [2025-01-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311129', 'tblTempVendorCDR_20' ) end [2025-01-23 08:33:18] Production.INFO: ProcessCDR(1,14311129,1,1,2) [2025-01-23 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311129', 'tblTempUsageDetail_20' ) start [2025-01-23 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311129', 'tblTempUsageDetail_20' ) end [2025-01-23 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:33:23] Production.INFO: ==5630== Releasing lock... [2025-01-23 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:33:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-23 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:34:04 [end_date_ymd] => 2025-01-23 08:34:04 [RateCDR] => 1 ) [2025-01-23 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-23 05:34:04' and `end` < '2025-01-23 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:34:17] Production.INFO: count ==421 [2025-01-23 08:34:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:34:04 - End Time 2025-01-23 08:34:04 [2025-01-23 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311134', 'tblTempUsageDetail_20' ) start [2025-01-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311134', 'tblTempUsageDetail_20' ) end [2025-01-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311134', 'tblTempVendorCDR_20' ) start [2025-01-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311134', 'tblTempVendorCDR_20' ) end [2025-01-23 08:34:17] Production.INFO: ProcessCDR(1,14311134,1,1,2) [2025-01-23 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311134', 'tblTempUsageDetail_20' ) start [2025-01-23 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311134', 'tblTempUsageDetail_20' ) end [2025-01-23 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:34:20] Production.INFO: ==5701== Releasing lock... [2025-01-23 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:34:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-23 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:35:05 [end_date_ymd] => 2025-01-23 08:35:05 [RateCDR] => 1 ) [2025-01-23 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:35:05' and `end` < '2025-01-23 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:35:18] Production.INFO: count ==421 [2025-01-23 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:35:05 - End Time 2025-01-23 08:35:05 [2025-01-23 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311139', 'tblTempUsageDetail_20' ) start [2025-01-23 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311139', 'tblTempUsageDetail_20' ) end [2025-01-23 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311139', 'tblTempVendorCDR_20' ) start [2025-01-23 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311139', 'tblTempVendorCDR_20' ) end [2025-01-23 08:35:18] Production.INFO: ProcessCDR(1,14311139,1,1,2) [2025-01-23 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311139', 'tblTempUsageDetail_20' ) start [2025-01-23 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311139', 'tblTempUsageDetail_20' ) end [2025-01-23 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:35:21] Production.INFO: ==5772== Releasing lock... [2025-01-23 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-23 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:36:05 [end_date_ymd] => 2025-01-23 08:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:36:05' and `end` < '2025-01-23 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-23 08:36:18] Production.INFO: count ==423 [2025-01-23 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:36:05 - End Time 2025-01-23 08:36:05 [2025-01-23 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311144', 'tblTempUsageDetail_20' ) start [2025-01-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311144', 'tblTempUsageDetail_20' ) end [2025-01-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311144', 'tblTempVendorCDR_20' ) start [2025-01-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311144', 'tblTempVendorCDR_20' ) end [2025-01-23 08:36:18] Production.INFO: ProcessCDR(1,14311144,1,1,2) [2025-01-23 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311144', 'tblTempUsageDetail_20' ) start [2025-01-23 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311144', 'tblTempUsageDetail_20' ) end [2025-01-23 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:36:23] Production.INFO: ==5845== Releasing lock... [2025-01-23 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-23 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:37:05 [end_date_ymd] => 2025-01-23 08:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:37:05' and `end` < '2025-01-23 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-23 08:37:18] Production.INFO: count ==425 [2025-01-23 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:37:05 - End Time 2025-01-23 08:37:05 [2025-01-23 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311149', 'tblTempUsageDetail_20' ) start [2025-01-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311149', 'tblTempUsageDetail_20' ) end [2025-01-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311149', 'tblTempVendorCDR_20' ) start [2025-01-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311149', 'tblTempVendorCDR_20' ) end [2025-01-23 08:37:18] Production.INFO: ProcessCDR(1,14311149,1,1,2) [2025-01-23 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311149', 'tblTempUsageDetail_20' ) start [2025-01-23 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311149', 'tblTempUsageDetail_20' ) end [2025-01-23 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:37:23] Production.INFO: ==5917== Releasing lock... [2025-01-23 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:37:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:38:06 [end_date_ymd] => 2025-01-23 08:38:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:38:06' and `end` < '2025-01-23 08: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-23 08:38:18] Production.INFO: count ==427 [2025-01-23 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:38:06 - End Time 2025-01-23 08:38:06 [2025-01-23 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311154', 'tblTempUsageDetail_20' ) start [2025-01-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311154', 'tblTempUsageDetail_20' ) end [2025-01-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311154', 'tblTempVendorCDR_20' ) start [2025-01-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311154', 'tblTempVendorCDR_20' ) end [2025-01-23 08:38:18] Production.INFO: ProcessCDR(1,14311154,1,1,2) [2025-01-23 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311154', 'tblTempUsageDetail_20' ) start [2025-01-23 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311154', 'tblTempUsageDetail_20' ) end [2025-01-23 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:38:23] Production.INFO: ==5989== Releasing lock... [2025-01-23 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:38:23] Production.INFO: 31 MB #Memory Used# [2025-01-23 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:39:05 [end_date_ymd] => 2025-01-23 08:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:39:05' and `end` < '2025-01-23 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-23 08:39:17] Production.INFO: count ==443 [2025-01-23 08:39:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:39:05 - End Time 2025-01-23 08:39:05 [2025-01-23 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311159', 'tblTempUsageDetail_20' ) start [2025-01-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311159', 'tblTempUsageDetail_20' ) end [2025-01-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311159', 'tblTempVendorCDR_20' ) start [2025-01-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311159', 'tblTempVendorCDR_20' ) end [2025-01-23 08:39:17] Production.INFO: ProcessCDR(1,14311159,1,1,2) [2025-01-23 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311159', 'tblTempUsageDetail_20' ) start [2025-01-23 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311159', 'tblTempUsageDetail_20' ) end [2025-01-23 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:39:22] Production.INFO: ==6059== Releasing lock... [2025-01-23 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-23 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:40:05 [end_date_ymd] => 2025-01-23 08:40:05 [RateCDR] => 1 ) [2025-01-23 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:40:05' and `end` < '2025-01-23 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:40:18] Production.INFO: count ==480 [2025-01-23 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:40:05 - End Time 2025-01-23 08:40:05 [2025-01-23 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311164', 'tblTempUsageDetail_20' ) start [2025-01-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311164', 'tblTempUsageDetail_20' ) end [2025-01-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311164', 'tblTempVendorCDR_20' ) start [2025-01-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311164', 'tblTempVendorCDR_20' ) end [2025-01-23 08:40:18] Production.INFO: ProcessCDR(1,14311164,1,1,2) [2025-01-23 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311164', 'tblTempUsageDetail_20' ) start [2025-01-23 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311164', 'tblTempUsageDetail_20' ) end [2025-01-23 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:40:21] Production.INFO: ==6171== Releasing lock... [2025-01-23 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:40:21] Production.INFO: 32 MB #Memory Used# [2025-01-23 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:41:05 [end_date_ymd] => 2025-01-23 08:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:41:05' and `end` < '2025-01-23 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-23 08:41:18] Production.INFO: count ==536 [2025-01-23 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:41:05 - End Time 2025-01-23 08:41:05 [2025-01-23 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311170', 'tblTempUsageDetail_20' ) start [2025-01-23 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311170', 'tblTempUsageDetail_20' ) end [2025-01-23 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311170', 'tblTempVendorCDR_20' ) start [2025-01-23 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311170', 'tblTempVendorCDR_20' ) end [2025-01-23 08:41:19] Production.INFO: ProcessCDR(1,14311170,1,1,2) [2025-01-23 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311170', 'tblTempUsageDetail_20' ) start [2025-01-23 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311170', 'tblTempUsageDetail_20' ) end [2025-01-23 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:41:24] Production.INFO: ==6244== Releasing lock... [2025-01-23 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:41:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-23 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:42:06 [end_date_ymd] => 2025-01-23 08:42:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:42:06' and `end` < '2025-01-23 08: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-23 08:42:18] Production.INFO: count ==541 [2025-01-23 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:42:06 - End Time 2025-01-23 08:42:06 [2025-01-23 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311175', 'tblTempUsageDetail_20' ) start [2025-01-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311175', 'tblTempUsageDetail_20' ) end [2025-01-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311175', 'tblTempVendorCDR_20' ) start [2025-01-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311175', 'tblTempVendorCDR_20' ) end [2025-01-23 08:42:18] Production.INFO: ProcessCDR(1,14311175,1,1,2) [2025-01-23 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311175', 'tblTempUsageDetail_20' ) start [2025-01-23 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311175', 'tblTempUsageDetail_20' ) end [2025-01-23 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:42:23] Production.INFO: ==6315== Releasing lock... [2025-01-23 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:42:23] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:43:05 [end_date_ymd] => 2025-01-23 08:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:43:05' and `end` < '2025-01-23 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-23 08:43:18] Production.INFO: count ==541 [2025-01-23 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:43:05 - End Time 2025-01-23 08:43:05 [2025-01-23 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311180', 'tblTempUsageDetail_20' ) start [2025-01-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311180', 'tblTempUsageDetail_20' ) end [2025-01-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311180', 'tblTempVendorCDR_20' ) start [2025-01-23 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311180', 'tblTempVendorCDR_20' ) end [2025-01-23 08:43:18] Production.INFO: ProcessCDR(1,14311180,1,1,2) [2025-01-23 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311180', 'tblTempUsageDetail_20' ) start [2025-01-23 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311180', 'tblTempUsageDetail_20' ) end [2025-01-23 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:43:21] Production.INFO: ==6385== Releasing lock... [2025-01-23 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:43:21] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:44:05 [end_date_ymd] => 2025-01-23 08:44:05 [RateCDR] => 1 ) [2025-01-23 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:44:05' and `end` < '2025-01-23 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-23 08:44:18] Production.INFO: count ==541 [2025-01-23 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:44:05 - End Time 2025-01-23 08:44:05 [2025-01-23 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311185', 'tblTempUsageDetail_20' ) start [2025-01-23 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311185', 'tblTempUsageDetail_20' ) end [2025-01-23 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311185', 'tblTempVendorCDR_20' ) start [2025-01-23 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311185', 'tblTempVendorCDR_20' ) end [2025-01-23 08:44:18] Production.INFO: ProcessCDR(1,14311185,1,1,2) [2025-01-23 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311185', 'tblTempUsageDetail_20' ) start [2025-01-23 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311185', 'tblTempUsageDetail_20' ) end [2025-01-23 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:44:21] Production.INFO: ==6456== Releasing lock... [2025-01-23 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:44:21] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:45:05 [end_date_ymd] => 2025-01-23 08:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:45:05' and `end` < '2025-01-23 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-23 08:45:17] Production.INFO: count ==542 [2025-01-23 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:45:05 - End Time 2025-01-23 08:45:05 [2025-01-23 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311190', 'tblTempUsageDetail_20' ) start [2025-01-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311190', 'tblTempUsageDetail_20' ) end [2025-01-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311190', 'tblTempVendorCDR_20' ) start [2025-01-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311190', 'tblTempVendorCDR_20' ) end [2025-01-23 08:45:18] Production.INFO: ProcessCDR(1,14311190,1,1,2) [2025-01-23 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311190', 'tblTempUsageDetail_20' ) start [2025-01-23 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311190', 'tblTempUsageDetail_20' ) end [2025-01-23 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:45:21] Production.INFO: ==6526== Releasing lock... [2025-01-23 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:46:06 [end_date_ymd] => 2025-01-23 08:46:06 [RateCDR] => 1 ) [2025-01-23 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:46:06' and `end` < '2025-01-23 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:46:19] Production.INFO: count ==547 [2025-01-23 08:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:46:06 - End Time 2025-01-23 08:46:06 [2025-01-23 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311195', 'tblTempUsageDetail_20' ) start [2025-01-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311195', 'tblTempUsageDetail_20' ) end [2025-01-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311195', 'tblTempVendorCDR_20' ) start [2025-01-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311195', 'tblTempVendorCDR_20' ) end [2025-01-23 08:46:19] Production.INFO: ProcessCDR(1,14311195,1,1,2) [2025-01-23 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311195', 'tblTempUsageDetail_20' ) start [2025-01-23 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311195', 'tblTempUsageDetail_20' ) end [2025-01-23 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:46:22] Production.INFO: ==6598== Releasing lock... [2025-01-23 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-23 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:47:05 [end_date_ymd] => 2025-01-23 08:47:05 [RateCDR] => 1 ) [2025-01-23 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:47:05' and `end` < '2025-01-23 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:47:19] Production.INFO: count ==549 [2025-01-23 08:47:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:47:05 - End Time 2025-01-23 08:47:05 [2025-01-23 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311200', 'tblTempUsageDetail_20' ) start [2025-01-23 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311200', 'tblTempUsageDetail_20' ) end [2025-01-23 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311200', 'tblTempVendorCDR_20' ) start [2025-01-23 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311200', 'tblTempVendorCDR_20' ) end [2025-01-23 08:47:19] Production.INFO: ProcessCDR(1,14311200,1,1,2) [2025-01-23 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311200', 'tblTempUsageDetail_20' ) start [2025-01-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311200', 'tblTempUsageDetail_20' ) end [2025-01-23 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:47:22] Production.INFO: ==6667== Releasing lock... [2025-01-23 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-23 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:48:06 [end_date_ymd] => 2025-01-23 08:48:06 [RateCDR] => 1 ) [2025-01-23 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:48:06' and `end` < '2025-01-23 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:48:19] Production.INFO: count ==556 [2025-01-23 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:48:06 - End Time 2025-01-23 08:48:06 [2025-01-23 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311205', 'tblTempUsageDetail_20' ) start [2025-01-23 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311205', 'tblTempUsageDetail_20' ) end [2025-01-23 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311205', 'tblTempVendorCDR_20' ) start [2025-01-23 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311205', 'tblTempVendorCDR_20' ) end [2025-01-23 08:48:19] Production.INFO: ProcessCDR(1,14311205,1,1,2) [2025-01-23 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311205', 'tblTempUsageDetail_20' ) start [2025-01-23 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311205', 'tblTempUsageDetail_20' ) end [2025-01-23 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:48:24] Production.INFO: ==6738== Releasing lock... [2025-01-23 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:48:24] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:49:05 [end_date_ymd] => 2025-01-23 08:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:49:05' and `end` < '2025-01-23 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-23 08:49:18] Production.INFO: count ==584 [2025-01-23 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:49:05 - End Time 2025-01-23 08:49:05 [2025-01-23 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311210', 'tblTempUsageDetail_20' ) start [2025-01-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311210', 'tblTempUsageDetail_20' ) end [2025-01-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311210', 'tblTempVendorCDR_20' ) start [2025-01-23 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311210', 'tblTempVendorCDR_20' ) end [2025-01-23 08:49:18] Production.INFO: ProcessCDR(1,14311210,1,1,2) [2025-01-23 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311210', 'tblTempUsageDetail_20' ) start [2025-01-23 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311210', 'tblTempUsageDetail_20' ) end [2025-01-23 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:49:22] Production.INFO: ==6809== Releasing lock... [2025-01-23 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-23 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:50:06 [end_date_ymd] => 2025-01-23 08:50:06 [RateCDR] => 1 ) [2025-01-23 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:50:06' and `end` < '2025-01-23 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:50:19] Production.INFO: count ==600 [2025-01-23 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:50:06 - End Time 2025-01-23 08:50:06 [2025-01-23 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311215', 'tblTempUsageDetail_20' ) start [2025-01-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311215', 'tblTempUsageDetail_20' ) end [2025-01-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311215', 'tblTempVendorCDR_20' ) start [2025-01-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311215', 'tblTempVendorCDR_20' ) end [2025-01-23 08:50:19] Production.INFO: ProcessCDR(1,14311215,1,1,2) [2025-01-23 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311215', 'tblTempUsageDetail_20' ) start [2025-01-23 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311215', 'tblTempUsageDetail_20' ) end [2025-01-23 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:50:24] Production.INFO: ==6882== Releasing lock... [2025-01-23 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:50:24] Production.INFO: 33 MB #Memory Used# [2025-01-23 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:51:05 [end_date_ymd] => 2025-01-23 08:51:05 [RateCDR] => 1 ) [2025-01-23 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:51:05' and `end` < '2025-01-23 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:51:17] Production.INFO: count ==630 [2025-01-23 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:51:05 - End Time 2025-01-23 08:51:05 [2025-01-23 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311221', 'tblTempUsageDetail_20' ) start [2025-01-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311221', 'tblTempUsageDetail_20' ) end [2025-01-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311221', 'tblTempVendorCDR_20' ) start [2025-01-23 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311221', 'tblTempVendorCDR_20' ) end [2025-01-23 08:51:18] Production.INFO: ProcessCDR(1,14311221,1,1,2) [2025-01-23 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311221', 'tblTempUsageDetail_20' ) start [2025-01-23 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311221', 'tblTempUsageDetail_20' ) end [2025-01-23 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:51:22] Production.INFO: ==6960== Releasing lock... [2025-01-23 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:52:06 [end_date_ymd] => 2025-01-23 08:52:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:52:06' and `end` < '2025-01-23 08: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-23 08:52:18] Production.INFO: count ==646 [2025-01-23 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:52:06 - End Time 2025-01-23 08:52:06 [2025-01-23 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311226', 'tblTempUsageDetail_20' ) start [2025-01-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311226', 'tblTempUsageDetail_20' ) end [2025-01-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311226', 'tblTempVendorCDR_20' ) start [2025-01-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311226', 'tblTempVendorCDR_20' ) end [2025-01-23 08:52:18] Production.INFO: ProcessCDR(1,14311226,1,1,2) [2025-01-23 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311226', 'tblTempUsageDetail_20' ) start [2025-01-23 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311226', 'tblTempUsageDetail_20' ) end [2025-01-23 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:52:22] Production.INFO: ==7033== Releasing lock... [2025-01-23 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:53:05 [end_date_ymd] => 2025-01-23 08:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:53:05' and `end` < '2025-01-23 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-23 08:53:18] Production.INFO: count ==647 [2025-01-23 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:53:05 - End Time 2025-01-23 08:53:05 [2025-01-23 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311231', 'tblTempUsageDetail_20' ) start [2025-01-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311231', 'tblTempUsageDetail_20' ) end [2025-01-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311231', 'tblTempVendorCDR_20' ) start [2025-01-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311231', 'tblTempVendorCDR_20' ) end [2025-01-23 08:53:18] Production.INFO: ProcessCDR(1,14311231,1,1,2) [2025-01-23 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311231', 'tblTempUsageDetail_20' ) start [2025-01-23 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311231', 'tblTempUsageDetail_20' ) end [2025-01-23 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:53:21] Production.INFO: ==7103== Releasing lock... [2025-01-23 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:54:05 [end_date_ymd] => 2025-01-23 08:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:54:05' and `end` < '2025-01-23 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-23 08:54:18] Production.INFO: count ==653 [2025-01-23 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:54:05 - End Time 2025-01-23 08:54:05 [2025-01-23 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311236', 'tblTempUsageDetail_20' ) start [2025-01-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311236', 'tblTempUsageDetail_20' ) end [2025-01-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311236', 'tblTempVendorCDR_20' ) start [2025-01-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311236', 'tblTempVendorCDR_20' ) end [2025-01-23 08:54:18] Production.INFO: ProcessCDR(1,14311236,1,1,2) [2025-01-23 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311236', 'tblTempUsageDetail_20' ) start [2025-01-23 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311236', 'tblTempUsageDetail_20' ) end [2025-01-23 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:54:22] Production.INFO: ==7177== Releasing lock... [2025-01-23 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-23 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:55:05 [end_date_ymd] => 2025-01-23 08:55:05 [RateCDR] => 1 ) [2025-01-23 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:55:05' and `end` < '2025-01-23 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:55:17] Production.INFO: count ==655 [2025-01-23 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:55:05 - End Time 2025-01-23 08:55:05 [2025-01-23 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311241', 'tblTempUsageDetail_20' ) start [2025-01-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311241', 'tblTempUsageDetail_20' ) end [2025-01-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311241', 'tblTempVendorCDR_20' ) start [2025-01-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311241', 'tblTempVendorCDR_20' ) end [2025-01-23 08:55:17] Production.INFO: ProcessCDR(1,14311241,1,1,2) [2025-01-23 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311241', 'tblTempUsageDetail_20' ) start [2025-01-23 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311241', 'tblTempUsageDetail_20' ) end [2025-01-23 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:55:21] Production.INFO: ==7249== Releasing lock... [2025-01-23 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:56:06 [end_date_ymd] => 2025-01-23 08:56:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:56:06' and `end` < '2025-01-23 08: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-23 08:56:19] Production.INFO: count ==655 [2025-01-23 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:56:06 - End Time 2025-01-23 08:56:06 [2025-01-23 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311246', 'tblTempUsageDetail_20' ) start [2025-01-23 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311246', 'tblTempUsageDetail_20' ) end [2025-01-23 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311246', 'tblTempVendorCDR_20' ) start [2025-01-23 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311246', 'tblTempVendorCDR_20' ) end [2025-01-23 08:56:19] Production.INFO: ProcessCDR(1,14311246,1,1,2) [2025-01-23 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311246', 'tblTempUsageDetail_20' ) start [2025-01-23 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311246', 'tblTempUsageDetail_20' ) end [2025-01-23 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:56:22] Production.INFO: ==7363== Releasing lock... [2025-01-23 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-23 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:57:05 [end_date_ymd] => 2025-01-23 08:57:05 [RateCDR] => 1 ) [2025-01-23 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 05:57:05' and `end` < '2025-01-23 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 08:57:18] Production.INFO: count ==656 [2025-01-23 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 05:57:05 - End Time 2025-01-23 08:57:05 [2025-01-23 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311251', 'tblTempUsageDetail_20' ) start [2025-01-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311251', 'tblTempUsageDetail_20' ) end [2025-01-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311251', 'tblTempVendorCDR_20' ) start [2025-01-23 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311251', 'tblTempVendorCDR_20' ) end [2025-01-23 08:57:18] Production.INFO: ProcessCDR(1,14311251,1,1,2) [2025-01-23 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311251', 'tblTempUsageDetail_20' ) start [2025-01-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311251', 'tblTempUsageDetail_20' ) end [2025-01-23 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:57:22] Production.INFO: ==7434== Releasing lock... [2025-01-23 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-23 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:58:06 [end_date_ymd] => 2025-01-23 08:58:06 [RateCDR] => 1 ) [2025-01-23 08: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-23 05:58:06' and `end` < '2025-01-23 08: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-23 08:58:18] Production.INFO: count ==658 [2025-01-23 08:58:19] Production.ERROR: pbx CDR StartTime 2025-01-23 05:58:06 - End Time 2025-01-23 08:58:06 [2025-01-23 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311256', 'tblTempUsageDetail_20' ) start [2025-01-23 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311256', 'tblTempUsageDetail_20' ) end [2025-01-23 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311256', 'tblTempVendorCDR_20' ) start [2025-01-23 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311256', 'tblTempVendorCDR_20' ) end [2025-01-23 08:58:19] Production.INFO: ProcessCDR(1,14311256,1,1,2) [2025-01-23 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311256', 'tblTempUsageDetail_20' ) start [2025-01-23 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311256', 'tblTempUsageDetail_20' ) end [2025-01-23 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:58:22] Production.INFO: ==7505== Releasing lock... [2025-01-23 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 05:59:05 [end_date_ymd] => 2025-01-23 08:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 05:59:05' and `end` < '2025-01-23 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-23 08:59:17] Production.INFO: count ==658 [2025-01-23 08:59:17] Production.ERROR: pbx CDR StartTime 2025-01-23 05:59:05 - End Time 2025-01-23 08:59:05 [2025-01-23 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311261', 'tblTempUsageDetail_20' ) start [2025-01-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311261', 'tblTempUsageDetail_20' ) end [2025-01-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311261', 'tblTempVendorCDR_20' ) start [2025-01-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311261', 'tblTempVendorCDR_20' ) end [2025-01-23 08:59:17] Production.INFO: ProcessCDR(1,14311261,1,1,2) [2025-01-23 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311261', 'tblTempUsageDetail_20' ) start [2025-01-23 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311261', 'tblTempUsageDetail_20' ) end [2025-01-23 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 08:59:21] Production.INFO: ==7583== Releasing lock... [2025-01-23 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 08:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:00:05 [end_date_ymd] => 2025-01-23 09:00:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:00:05' and `end` < '2025-01-23 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-23 09:00:18] Production.INFO: count ==676 [2025-01-23 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:00:05 - End Time 2025-01-23 09:00:05 [2025-01-23 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311267', 'tblTempUsageDetail_20' ) start [2025-01-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311267', 'tblTempUsageDetail_20' ) end [2025-01-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311267', 'tblTempVendorCDR_20' ) start [2025-01-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311267', 'tblTempVendorCDR_20' ) end [2025-01-23 09:00:18] Production.INFO: ProcessCDR(1,14311267,1,1,2) [2025-01-23 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311267', 'tblTempUsageDetail_20' ) start [2025-01-23 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311267', 'tblTempUsageDetail_20' ) end [2025-01-23 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:00:23] Production.INFO: ==7663== Releasing lock... [2025-01-23 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:00:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-23 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:01:05 [end_date_ymd] => 2025-01-23 09:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:01:05' and `end` < '2025-01-23 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-23 09:01:18] Production.INFO: count ==725 [2025-01-23 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:01:05 - End Time 2025-01-23 09:01:05 [2025-01-23 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311272', 'tblTempUsageDetail_20' ) start [2025-01-23 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311272', 'tblTempUsageDetail_20' ) end [2025-01-23 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311272', 'tblTempVendorCDR_20' ) start [2025-01-23 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311272', 'tblTempVendorCDR_20' ) end [2025-01-23 09:01:18] Production.INFO: ProcessCDR(1,14311272,1,1,2) [2025-01-23 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311272', 'tblTempUsageDetail_20' ) start [2025-01-23 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311272', 'tblTempUsageDetail_20' ) end [2025-01-23 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:01:23] Production.INFO: ==7749== Releasing lock... [2025-01-23 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-23 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:02:06 [end_date_ymd] => 2025-01-23 09:02:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:02:06' and `end` < '2025-01-23 09: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-23 09:02:18] Production.INFO: count ==727 [2025-01-23 09:02:19] Production.ERROR: pbx CDR StartTime 2025-01-23 06:02:06 - End Time 2025-01-23 09:02:06 [2025-01-23 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311277', 'tblTempUsageDetail_20' ) start [2025-01-23 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311277', 'tblTempUsageDetail_20' ) end [2025-01-23 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311277', 'tblTempVendorCDR_20' ) start [2025-01-23 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311277', 'tblTempVendorCDR_20' ) end [2025-01-23 09:02:19] Production.INFO: ProcessCDR(1,14311277,1,1,2) [2025-01-23 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311277', 'tblTempUsageDetail_20' ) start [2025-01-23 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311277', 'tblTempUsageDetail_20' ) end [2025-01-23 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:02:22] Production.INFO: ==7827== Releasing lock... [2025-01-23 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:03:06 [end_date_ymd] => 2025-01-23 09:03:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:03:06' and `end` < '2025-01-23 09: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-23 09:03:18] Production.INFO: count ==731 [2025-01-23 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:03:06 - End Time 2025-01-23 09:03:06 [2025-01-23 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311282', 'tblTempUsageDetail_20' ) start [2025-01-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311282', 'tblTempUsageDetail_20' ) end [2025-01-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311282', 'tblTempVendorCDR_20' ) start [2025-01-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311282', 'tblTempVendorCDR_20' ) end [2025-01-23 09:03:18] Production.INFO: ProcessCDR(1,14311282,1,1,2) [2025-01-23 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311282', 'tblTempUsageDetail_20' ) start [2025-01-23 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311282', 'tblTempUsageDetail_20' ) end [2025-01-23 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:03:23] Production.INFO: ==7905== Releasing lock... [2025-01-23 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-23 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:04:05 [end_date_ymd] => 2025-01-23 09:04:05 [RateCDR] => 1 ) [2025-01-23 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:04:05' and `end` < '2025-01-23 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:04:18] Production.INFO: count ==736 [2025-01-23 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:04:05 - End Time 2025-01-23 09:04:05 [2025-01-23 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311287', 'tblTempUsageDetail_20' ) start [2025-01-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311287', 'tblTempUsageDetail_20' ) end [2025-01-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311287', 'tblTempVendorCDR_20' ) start [2025-01-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311287', 'tblTempVendorCDR_20' ) end [2025-01-23 09:04:18] Production.INFO: ProcessCDR(1,14311287,1,1,2) [2025-01-23 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311287', 'tblTempUsageDetail_20' ) start [2025-01-23 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311287', 'tblTempUsageDetail_20' ) end [2025-01-23 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:04:22] Production.INFO: ==7981== Releasing lock... [2025-01-23 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:04:22] Production.INFO: 34 MB #Memory Used# [2025-01-23 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:05:06 [end_date_ymd] => 2025-01-23 09:05:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:05:06' and `end` < '2025-01-23 09: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-23 09:05:19] Production.INFO: count ==742 [2025-01-23 09:05:20] Production.ERROR: pbx CDR StartTime 2025-01-23 06:05:06 - End Time 2025-01-23 09:05:06 [2025-01-23 09:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311292', 'tblTempUsageDetail_20' ) start [2025-01-23 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311292', 'tblTempUsageDetail_20' ) end [2025-01-23 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311292', 'tblTempVendorCDR_20' ) start [2025-01-23 09:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311292', 'tblTempVendorCDR_20' ) end [2025-01-23 09:05:20] Production.INFO: ProcessCDR(1,14311292,1,1,2) [2025-01-23 09:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311292', 'tblTempUsageDetail_20' ) start [2025-01-23 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311292', 'tblTempUsageDetail_20' ) end [2025-01-23 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:05:24] Production.INFO: ==8060== Releasing lock... [2025-01-23 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:05:24] Production.INFO: 34 MB #Memory Used# [2025-01-23 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:06:05 [end_date_ymd] => 2025-01-23 09:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:06:05' and `end` < '2025-01-23 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-23 09:06:18] Production.INFO: count ==747 [2025-01-23 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:06:05 - End Time 2025-01-23 09:06:05 [2025-01-23 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311297', 'tblTempUsageDetail_20' ) start [2025-01-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311297', 'tblTempUsageDetail_20' ) end [2025-01-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311297', 'tblTempVendorCDR_20' ) start [2025-01-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311297', 'tblTempVendorCDR_20' ) end [2025-01-23 09:06:18] Production.INFO: ProcessCDR(1,14311297,1,1,2) [2025-01-23 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311297', 'tblTempUsageDetail_20' ) start [2025-01-23 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311297', 'tblTempUsageDetail_20' ) end [2025-01-23 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:06:23] Production.INFO: ==8136== Releasing lock... [2025-01-23 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-23 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:07:06 [end_date_ymd] => 2025-01-23 09:07:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:07:06' and `end` < '2025-01-23 09: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-23 09:07:19] Production.INFO: count ==747 [2025-01-23 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-23 06:07:06 - End Time 2025-01-23 09:07:06 [2025-01-23 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311302', 'tblTempUsageDetail_20' ) start [2025-01-23 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311302', 'tblTempUsageDetail_20' ) end [2025-01-23 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311302', 'tblTempVendorCDR_20' ) start [2025-01-23 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311302', 'tblTempVendorCDR_20' ) end [2025-01-23 09:07:19] Production.INFO: ProcessCDR(1,14311302,1,1,2) [2025-01-23 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311302', 'tblTempUsageDetail_20' ) start [2025-01-23 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311302', 'tblTempUsageDetail_20' ) end [2025-01-23 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:07:22] Production.INFO: ==8217== Releasing lock... [2025-01-23 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-23 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:08:06 [end_date_ymd] => 2025-01-23 09:08:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:08:06' and `end` < '2025-01-23 09: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-23 09:08:18] Production.INFO: count ==752 [2025-01-23 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:08:06 - End Time 2025-01-23 09:08:06 [2025-01-23 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311307', 'tblTempUsageDetail_20' ) start [2025-01-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311307', 'tblTempUsageDetail_20' ) end [2025-01-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311307', 'tblTempVendorCDR_20' ) start [2025-01-23 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311307', 'tblTempVendorCDR_20' ) end [2025-01-23 09:08:18] Production.INFO: ProcessCDR(1,14311307,1,1,2) [2025-01-23 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311307', 'tblTempUsageDetail_20' ) start [2025-01-23 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311307', 'tblTempUsageDetail_20' ) end [2025-01-23 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:08:23] Production.INFO: ==8290== Releasing lock... [2025-01-23 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:08:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-23 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:09:05 [end_date_ymd] => 2025-01-23 09:09:05 [RateCDR] => 1 ) [2025-01-23 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:09:05' and `end` < '2025-01-23 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:09:22] Production.INFO: count ==759 [2025-01-23 09:09:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:09:05 - End Time 2025-01-23 09:09:05 [2025-01-23 09:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311312', 'tblTempUsageDetail_20' ) start [2025-01-23 09:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311312', 'tblTempUsageDetail_20' ) end [2025-01-23 09:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311312', 'tblTempVendorCDR_20' ) start [2025-01-23 09:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311312', 'tblTempVendorCDR_20' ) end [2025-01-23 09:09:22] Production.INFO: ProcessCDR(1,14311312,1,1,2) [2025-01-23 09:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311312', 'tblTempUsageDetail_20' ) start [2025-01-23 09:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311312', 'tblTempUsageDetail_20' ) end [2025-01-23 09:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:09:27] Production.INFO: ==8373== Releasing lock... [2025-01-23 09:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:09:27] Production.INFO: 34 MB #Memory Used# [2025-01-23 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:10:06 [end_date_ymd] => 2025-01-23 09:10:06 [RateCDR] => 1 ) [2025-01-23 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:10:06' and `end` < '2025-01-23 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:10:22] Production.INFO: count ==773 [2025-01-23 09:10:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:10:06 - End Time 2025-01-23 09:10:06 [2025-01-23 09:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311317', 'tblTempUsageDetail_20' ) start [2025-01-23 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311317', 'tblTempUsageDetail_20' ) end [2025-01-23 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311317', 'tblTempVendorCDR_20' ) start [2025-01-23 09:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311317', 'tblTempVendorCDR_20' ) end [2025-01-23 09:10:22] Production.INFO: ProcessCDR(1,14311317,1,1,2) [2025-01-23 09:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311317', 'tblTempUsageDetail_20' ) start [2025-01-23 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311317', 'tblTempUsageDetail_20' ) end [2025-01-23 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:10:25] Production.INFO: ==8451== Releasing lock... [2025-01-23 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:10:25] Production.INFO: 34 MB #Memory Used# [2025-01-23 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:11:05 [end_date_ymd] => 2025-01-23 09:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:11:05' and `end` < '2025-01-23 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-23 09:11:18] Production.INFO: count ==840 [2025-01-23 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:11:05 - End Time 2025-01-23 09:11:05 [2025-01-23 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311323', 'tblTempUsageDetail_20' ) start [2025-01-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311323', 'tblTempUsageDetail_20' ) end [2025-01-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311323', 'tblTempVendorCDR_20' ) start [2025-01-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311323', 'tblTempVendorCDR_20' ) end [2025-01-23 09:11:18] Production.INFO: ProcessCDR(1,14311323,1,1,2) [2025-01-23 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311323', 'tblTempUsageDetail_20' ) start [2025-01-23 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311323', 'tblTempUsageDetail_20' ) end [2025-01-23 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:11:23] Production.INFO: ==8575== Releasing lock... [2025-01-23 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:11:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-23 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:12:06 [end_date_ymd] => 2025-01-23 09:12:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:12:06' and `end` < '2025-01-23 09: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-23 09:12:19] Production.INFO: count ==851 [2025-01-23 09:12:20] Production.ERROR: pbx CDR StartTime 2025-01-23 06:12:06 - End Time 2025-01-23 09:12:06 [2025-01-23 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311328', 'tblTempUsageDetail_20' ) start [2025-01-23 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311328', 'tblTempUsageDetail_20' ) end [2025-01-23 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311328', 'tblTempVendorCDR_20' ) start [2025-01-23 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311328', 'tblTempVendorCDR_20' ) end [2025-01-23 09:12:20] Production.INFO: ProcessCDR(1,14311328,1,1,2) [2025-01-23 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311328', 'tblTempUsageDetail_20' ) start [2025-01-23 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311328', 'tblTempUsageDetail_20' ) end [2025-01-23 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:12:25] Production.INFO: ==8650== Releasing lock... [2025-01-23 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:12:25] Production.INFO: 34.75 MB #Memory Used# [2025-01-23 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:13:05 [end_date_ymd] => 2025-01-23 09:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:13:05' and `end` < '2025-01-23 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-23 09:13:18] Production.INFO: count ==860 [2025-01-23 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:13:05 - End Time 2025-01-23 09:13:05 [2025-01-23 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311333', 'tblTempUsageDetail_20' ) start [2025-01-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311333', 'tblTempUsageDetail_20' ) end [2025-01-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311333', 'tblTempVendorCDR_20' ) start [2025-01-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311333', 'tblTempVendorCDR_20' ) end [2025-01-23 09:13:18] Production.INFO: ProcessCDR(1,14311333,1,1,2) [2025-01-23 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311333', 'tblTempUsageDetail_20' ) start [2025-01-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311333', 'tblTempUsageDetail_20' ) end [2025-01-23 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:13:23] Production.INFO: ==8729== Releasing lock... [2025-01-23 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-23 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:14:05 [end_date_ymd] => 2025-01-23 09:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:14:05' and `end` < '2025-01-23 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-23 09:14:18] Production.INFO: count ==882 [2025-01-23 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:14:05 - End Time 2025-01-23 09:14:05 [2025-01-23 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311338', 'tblTempUsageDetail_20' ) start [2025-01-23 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311338', 'tblTempUsageDetail_20' ) end [2025-01-23 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311338', 'tblTempVendorCDR_20' ) start [2025-01-23 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311338', 'tblTempVendorCDR_20' ) end [2025-01-23 09:14:18] Production.INFO: ProcessCDR(1,14311338,1,1,2) [2025-01-23 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311338', 'tblTempUsageDetail_20' ) start [2025-01-23 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311338', 'tblTempUsageDetail_20' ) end [2025-01-23 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:14:23] Production.INFO: ==8807== Releasing lock... [2025-01-23 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:14:23] Production.INFO: 35 MB #Memory Used# [2025-01-23 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:15:05 [end_date_ymd] => 2025-01-23 09:15:05 [RateCDR] => 1 ) [2025-01-23 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:15:05' and `end` < '2025-01-23 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:15:17] Production.INFO: count ==896 [2025-01-23 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:15:05 - End Time 2025-01-23 09:15:05 [2025-01-23 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311343', 'tblTempUsageDetail_20' ) start [2025-01-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311343', 'tblTempUsageDetail_20' ) end [2025-01-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311343', 'tblTempVendorCDR_20' ) start [2025-01-23 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311343', 'tblTempVendorCDR_20' ) end [2025-01-23 09:15:18] Production.INFO: ProcessCDR(1,14311343,1,1,2) [2025-01-23 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311343', 'tblTempUsageDetail_20' ) start [2025-01-23 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311343', 'tblTempUsageDetail_20' ) end [2025-01-23 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:15:23] Production.INFO: ==8885== Releasing lock... [2025-01-23 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-23 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:16:05 [end_date_ymd] => 2025-01-23 09:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:16:05' and `end` < '2025-01-23 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-23 09:16:18] Production.INFO: count ==906 [2025-01-23 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:16:05 - End Time 2025-01-23 09:16:05 [2025-01-23 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311348', 'tblTempUsageDetail_20' ) start [2025-01-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311348', 'tblTempUsageDetail_20' ) end [2025-01-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311348', 'tblTempVendorCDR_20' ) start [2025-01-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311348', 'tblTempVendorCDR_20' ) end [2025-01-23 09:16:18] Production.INFO: ProcessCDR(1,14311348,1,1,2) [2025-01-23 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311348', 'tblTempUsageDetail_20' ) start [2025-01-23 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311348', 'tblTempUsageDetail_20' ) end [2025-01-23 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:16:23] Production.INFO: ==8970== Releasing lock... [2025-01-23 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:16:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-23 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:17:05 [end_date_ymd] => 2025-01-23 09:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:17:05' and `end` < '2025-01-23 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-23 09:17:22] Production.INFO: count ==915 [2025-01-23 09:17:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:17:05 - End Time 2025-01-23 09:17:05 [2025-01-23 09:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311353', 'tblTempUsageDetail_20' ) start [2025-01-23 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311353', 'tblTempUsageDetail_20' ) end [2025-01-23 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311353', 'tblTempVendorCDR_20' ) start [2025-01-23 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311353', 'tblTempVendorCDR_20' ) end [2025-01-23 09:17:23] Production.INFO: ProcessCDR(1,14311353,1,1,2) [2025-01-23 09:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311353', 'tblTempUsageDetail_20' ) start [2025-01-23 09:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311353', 'tblTempUsageDetail_20' ) end [2025-01-23 09:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:17:27] Production.INFO: ==9045== Releasing lock... [2025-01-23 09:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:17:27] Production.INFO: 35 MB #Memory Used# [2025-01-23 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:18:06 [end_date_ymd] => 2025-01-23 09:18:06 [RateCDR] => 1 ) [2025-01-23 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:18:06' and `end` < '2025-01-23 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:18:19] Production.INFO: count ==919 [2025-01-23 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 06:18:06 - End Time 2025-01-23 09:18:06 [2025-01-23 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311358', 'tblTempUsageDetail_20' ) start [2025-01-23 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311358', 'tblTempUsageDetail_20' ) end [2025-01-23 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311358', 'tblTempVendorCDR_20' ) start [2025-01-23 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311358', 'tblTempVendorCDR_20' ) end [2025-01-23 09:18:19] Production.INFO: ProcessCDR(1,14311358,1,1,2) [2025-01-23 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311358', 'tblTempUsageDetail_20' ) start [2025-01-23 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311358', 'tblTempUsageDetail_20' ) end [2025-01-23 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:18:24] Production.INFO: ==9126== Releasing lock... [2025-01-23 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:18:24] Production.INFO: 35 MB #Memory Used# [2025-01-23 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:19:05 [end_date_ymd] => 2025-01-23 09:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:19:05' and `end` < '2025-01-23 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-23 09:19:29] Production.INFO: count ==934 [2025-01-23 09:19:29] Production.ERROR: pbx CDR StartTime 2025-01-23 06:19:05 - End Time 2025-01-23 09:19:05 [2025-01-23 09:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311363', 'tblTempUsageDetail_20' ) start [2025-01-23 09:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311363', 'tblTempUsageDetail_20' ) end [2025-01-23 09:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311363', 'tblTempVendorCDR_20' ) start [2025-01-23 09:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311363', 'tblTempVendorCDR_20' ) end [2025-01-23 09:19:29] Production.INFO: ProcessCDR(1,14311363,1,1,2) [2025-01-23 09:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311363', 'tblTempUsageDetail_20' ) start [2025-01-23 09:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311363', 'tblTempUsageDetail_20' ) end [2025-01-23 09:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:19:34] Production.INFO: ==9205== Releasing lock... [2025-01-23 09:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:19:34] Production.INFO: 35.25 MB #Memory Used# [2025-01-23 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:20:06 [end_date_ymd] => 2025-01-23 09:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 06:20:06' and `end` < '2025-01-23 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-23 09:20:27] Production.INFO: count ==956 [2025-01-23 09:20:27] Production.ERROR: pbx CDR StartTime 2025-01-23 06:20:06 - End Time 2025-01-23 09:20:06 [2025-01-23 09:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311369', 'tblTempUsageDetail_20' ) start [2025-01-23 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311369', 'tblTempUsageDetail_20' ) end [2025-01-23 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311369', 'tblTempVendorCDR_20' ) start [2025-01-23 09:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311369', 'tblTempVendorCDR_20' ) end [2025-01-23 09:20:27] Production.INFO: ProcessCDR(1,14311369,1,1,2) [2025-01-23 09:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311369', 'tblTempUsageDetail_20' ) start [2025-01-23 09:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311369', 'tblTempUsageDetail_20' ) end [2025-01-23 09:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:20:32] Production.INFO: ==9286== Releasing lock... [2025-01-23 09:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:20:32] Production.INFO: 36 MB #Memory Used# [2025-01-23 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:21:05 [end_date_ymd] => 2025-01-23 09:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:21:05' and `end` < '2025-01-23 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-23 09:21:21] Production.INFO: count ==1037 [2025-01-23 09:21:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:21:05 - End Time 2025-01-23 09:21:05 [2025-01-23 09:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311374', 'tblTempUsageDetail_20' ) start [2025-01-23 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311374', 'tblTempUsageDetail_20' ) end [2025-01-23 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311374', 'tblTempVendorCDR_20' ) start [2025-01-23 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311374', 'tblTempVendorCDR_20' ) end [2025-01-23 09:21:22] Production.INFO: ProcessCDR(1,14311374,1,1,2) [2025-01-23 09:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311374', 'tblTempUsageDetail_20' ) start [2025-01-23 09:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311374', 'tblTempUsageDetail_20' ) end [2025-01-23 09:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:21:27] Production.INFO: ==9371== Releasing lock... [2025-01-23 09:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:21:27] Production.INFO: 36.25 MB #Memory Used# [2025-01-23 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:22:06 [end_date_ymd] => 2025-01-23 09:22:06 [RateCDR] => 1 ) [2025-01-23 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-23 06:22:06' and `end` < '2025-01-23 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-23 09:22:21] Production.INFO: count ==1044 [2025-01-23 09:22:21] Production.ERROR: pbx CDR StartTime 2025-01-23 06:22:06 - End Time 2025-01-23 09:22:06 [2025-01-23 09:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311379', 'tblTempUsageDetail_20' ) start [2025-01-23 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311379', 'tblTempUsageDetail_20' ) end [2025-01-23 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311379', 'tblTempVendorCDR_20' ) start [2025-01-23 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311379', 'tblTempVendorCDR_20' ) end [2025-01-23 09:22:21] Production.INFO: ProcessCDR(1,14311379,1,1,2) [2025-01-23 09:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311379', 'tblTempUsageDetail_20' ) start [2025-01-23 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311379', 'tblTempUsageDetail_20' ) end [2025-01-23 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:22:26] Production.INFO: ==9456== Releasing lock... [2025-01-23 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:22:26] Production.INFO: 36.5 MB #Memory Used# [2025-01-23 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:23:05 [end_date_ymd] => 2025-01-23 09:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:23:05' and `end` < '2025-01-23 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-23 09:23:18] Production.INFO: count ==1051 [2025-01-23 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:23:05 - End Time 2025-01-23 09:23:05 [2025-01-23 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311384', 'tblTempUsageDetail_20' ) start [2025-01-23 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311384', 'tblTempUsageDetail_20' ) end [2025-01-23 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311384', 'tblTempVendorCDR_20' ) start [2025-01-23 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311384', 'tblTempVendorCDR_20' ) end [2025-01-23 09:23:18] Production.INFO: ProcessCDR(1,14311384,1,1,2) [2025-01-23 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311384', 'tblTempUsageDetail_20' ) start [2025-01-23 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311384', 'tblTempUsageDetail_20' ) end [2025-01-23 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:23:23] Production.INFO: ==9536== Releasing lock... [2025-01-23 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:23:23] Production.INFO: 36 MB #Memory Used# [2025-01-23 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:24:06 [end_date_ymd] => 2025-01-23 09:24:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:24:06' and `end` < '2025-01-23 09: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-23 09:24:25] Production.INFO: count ==1076 [2025-01-23 09:24:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:24:06 - End Time 2025-01-23 09:24:06 [2025-01-23 09:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311389', 'tblTempUsageDetail_20' ) start [2025-01-23 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311389', 'tblTempUsageDetail_20' ) end [2025-01-23 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311389', 'tblTempVendorCDR_20' ) start [2025-01-23 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311389', 'tblTempVendorCDR_20' ) end [2025-01-23 09:24:25] Production.INFO: ProcessCDR(1,14311389,1,1,2) [2025-01-23 09:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311389', 'tblTempUsageDetail_20' ) start [2025-01-23 09:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311389', 'tblTempUsageDetail_20' ) end [2025-01-23 09:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:24:31] Production.INFO: ==9614== Releasing lock... [2025-01-23 09:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:24:31] Production.INFO: 37 MB #Memory Used# [2025-01-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:25:05 [end_date_ymd] => 2025-01-23 09:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:25:05' and `end` < '2025-01-23 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-23 09:25:25] Production.INFO: count ==1094 [2025-01-23 09:25:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:25:05 - End Time 2025-01-23 09:25:05 [2025-01-23 09:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311394', 'tblTempUsageDetail_20' ) start [2025-01-23 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311394', 'tblTempUsageDetail_20' ) end [2025-01-23 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311394', 'tblTempVendorCDR_20' ) start [2025-01-23 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311394', 'tblTempVendorCDR_20' ) end [2025-01-23 09:25:25] Production.INFO: ProcessCDR(1,14311394,1,1,2) [2025-01-23 09:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311394', 'tblTempUsageDetail_20' ) start [2025-01-23 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311394', 'tblTempUsageDetail_20' ) end [2025-01-23 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:25:31] Production.INFO: ==9695== Releasing lock... [2025-01-23 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:25:31] Production.INFO: 36.75 MB #Memory Used# [2025-01-23 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:26:05 [end_date_ymd] => 2025-01-23 09:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:26:05' and `end` < '2025-01-23 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-23 09:26:28] Production.INFO: count ==1108 [2025-01-23 09:26:28] Production.ERROR: pbx CDR StartTime 2025-01-23 06:26:05 - End Time 2025-01-23 09:26:05 [2025-01-23 09:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311399', 'tblTempUsageDetail_20' ) start [2025-01-23 09:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311399', 'tblTempUsageDetail_20' ) end [2025-01-23 09:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311399', 'tblTempVendorCDR_20' ) start [2025-01-23 09:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311399', 'tblTempVendorCDR_20' ) end [2025-01-23 09:26:28] Production.INFO: ProcessCDR(1,14311399,1,1,2) [2025-01-23 09:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311399', 'tblTempUsageDetail_20' ) start [2025-01-23 09:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311399', 'tblTempUsageDetail_20' ) end [2025-01-23 09:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:26:33] Production.INFO: ==9778== Releasing lock... [2025-01-23 09:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:26:33] Production.INFO: 36.5 MB #Memory Used# [2025-01-23 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:27:05 [end_date_ymd] => 2025-01-23 09:27:05 [RateCDR] => 1 ) [2025-01-23 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:27:05' and `end` < '2025-01-23 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:27:22] Production.INFO: count ==1128 [2025-01-23 09:27:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:27:05 - End Time 2025-01-23 09:27:05 [2025-01-23 09:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311404', 'tblTempUsageDetail_20' ) start [2025-01-23 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311404', 'tblTempUsageDetail_20' ) end [2025-01-23 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311404', 'tblTempVendorCDR_20' ) start [2025-01-23 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311404', 'tblTempVendorCDR_20' ) end [2025-01-23 09:27:22] Production.INFO: ProcessCDR(1,14311404,1,1,2) [2025-01-23 09:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311404', 'tblTempUsageDetail_20' ) start [2025-01-23 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311404', 'tblTempUsageDetail_20' ) end [2025-01-23 09:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:27:27] Production.INFO: ==9901== Releasing lock... [2025-01-23 09:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:27:27] Production.INFO: 36.25 MB #Memory Used# [2025-01-23 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:28:05 [end_date_ymd] => 2025-01-23 09:28:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:28:05' and `end` < '2025-01-23 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-23 09:28:25] Production.INFO: count ==1139 [2025-01-23 09:28:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:28:05 - End Time 2025-01-23 09:28:05 [2025-01-23 09:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311409', 'tblTempUsageDetail_20' ) start [2025-01-23 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311409', 'tblTempUsageDetail_20' ) end [2025-01-23 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311409', 'tblTempVendorCDR_20' ) start [2025-01-23 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311409', 'tblTempVendorCDR_20' ) end [2025-01-23 09:28:25] Production.INFO: ProcessCDR(1,14311409,1,1,2) [2025-01-23 09:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311409', 'tblTempUsageDetail_20' ) start [2025-01-23 09:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311409', 'tblTempUsageDetail_20' ) end [2025-01-23 09:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:28:31] Production.INFO: ==9979== Releasing lock... [2025-01-23 09:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:28:31] Production.INFO: 36.75 MB #Memory Used# [2025-01-23 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:29:05 [end_date_ymd] => 2025-01-23 09:29:05 [RateCDR] => 1 ) [2025-01-23 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:29:05' and `end` < '2025-01-23 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:29:22] Production.INFO: count ==1147 [2025-01-23 09:29:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:29:05 - End Time 2025-01-23 09:29:05 [2025-01-23 09:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311414', 'tblTempUsageDetail_20' ) start [2025-01-23 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311414', 'tblTempUsageDetail_20' ) end [2025-01-23 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311414', 'tblTempVendorCDR_20' ) start [2025-01-23 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311414', 'tblTempVendorCDR_20' ) end [2025-01-23 09:29:22] Production.INFO: ProcessCDR(1,14311414,1,1,2) [2025-01-23 09:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311414', 'tblTempUsageDetail_20' ) start [2025-01-23 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311414', 'tblTempUsageDetail_20' ) end [2025-01-23 09:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:29:27] Production.INFO: ==10064== Releasing lock... [2025-01-23 09:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:29:27] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:30:06 [end_date_ymd] => 2025-01-23 09:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 06:30:06' and `end` < '2025-01-23 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-23 09:30:25] Production.INFO: count ==1168 [2025-01-23 09:30:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:30:06 - End Time 2025-01-23 09:30:06 [2025-01-23 09:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311420', 'tblTempUsageDetail_20' ) start [2025-01-23 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311420', 'tblTempUsageDetail_20' ) end [2025-01-23 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311420', 'tblTempVendorCDR_20' ) start [2025-01-23 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311420', 'tblTempVendorCDR_20' ) end [2025-01-23 09:30:25] Production.INFO: ProcessCDR(1,14311420,1,1,2) [2025-01-23 09:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311420', 'tblTempUsageDetail_20' ) start [2025-01-23 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311420', 'tblTempUsageDetail_20' ) end [2025-01-23 09:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:30:30] Production.INFO: ==10152== Releasing lock... [2025-01-23 09:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:30:30] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:31:06 [end_date_ymd] => 2025-01-23 09:31:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:31:06' and `end` < '2025-01-23 09: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-23 09:31:23] Production.INFO: count ==1309 [2025-01-23 09:31:23] Production.ERROR: pbx CDR StartTime 2025-01-23 06:31:06 - End Time 2025-01-23 09:31:06 [2025-01-23 09:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311425', 'tblTempUsageDetail_20' ) start [2025-01-23 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311425', 'tblTempUsageDetail_20' ) end [2025-01-23 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311425', 'tblTempVendorCDR_20' ) start [2025-01-23 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311425', 'tblTempVendorCDR_20' ) end [2025-01-23 09:31:23] Production.INFO: ProcessCDR(1,14311425,1,1,2) [2025-01-23 09:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311425', 'tblTempUsageDetail_20' ) start [2025-01-23 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311425', 'tblTempUsageDetail_20' ) end [2025-01-23 09:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:31:27] Production.INFO: ==10235== Releasing lock... [2025-01-23 09:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:31:27] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:32:05 [end_date_ymd] => 2025-01-23 09:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:32:05' and `end` < '2025-01-23 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-23 09:32:21] Production.INFO: count ==1320 [2025-01-23 09:32:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:32:05 - End Time 2025-01-23 09:32:05 [2025-01-23 09:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311430', 'tblTempUsageDetail_20' ) start [2025-01-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311430', 'tblTempUsageDetail_20' ) end [2025-01-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311430', 'tblTempVendorCDR_20' ) start [2025-01-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311430', 'tblTempVendorCDR_20' ) end [2025-01-23 09:32:22] Production.INFO: ProcessCDR(1,14311430,1,1,2) [2025-01-23 09:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311430', 'tblTempUsageDetail_20' ) start [2025-01-23 09:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311430', 'tblTempUsageDetail_20' ) end [2025-01-23 09:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:32:27] Production.INFO: ==10317== Releasing lock... [2025-01-23 09:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:32:27] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:33:05 [end_date_ymd] => 2025-01-23 09:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:33:05' and `end` < '2025-01-23 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-23 09:33:28] Production.INFO: count ==1348 [2025-01-23 09:33:28] Production.ERROR: pbx CDR StartTime 2025-01-23 06:33:05 - End Time 2025-01-23 09:33:05 [2025-01-23 09:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311435', 'tblTempUsageDetail_20' ) start [2025-01-23 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311435', 'tblTempUsageDetail_20' ) end [2025-01-23 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311435', 'tblTempVendorCDR_20' ) start [2025-01-23 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311435', 'tblTempVendorCDR_20' ) end [2025-01-23 09:33:28] Production.INFO: ProcessCDR(1,14311435,1,1,2) [2025-01-23 09:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311435', 'tblTempUsageDetail_20' ) start [2025-01-23 09:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311435', 'tblTempUsageDetail_20' ) end [2025-01-23 09:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:33:33] Production.INFO: ==10400== Releasing lock... [2025-01-23 09:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:33:33] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:34:05 [end_date_ymd] => 2025-01-23 09:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:34:05' and `end` < '2025-01-23 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-23 09:34:25] Production.INFO: count ==1355 [2025-01-23 09:34:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:34:05 - End Time 2025-01-23 09:34:05 [2025-01-23 09:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311440', 'tblTempUsageDetail_20' ) start [2025-01-23 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311440', 'tblTempUsageDetail_20' ) end [2025-01-23 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311440', 'tblTempVendorCDR_20' ) start [2025-01-23 09:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311440', 'tblTempVendorCDR_20' ) end [2025-01-23 09:34:25] Production.INFO: ProcessCDR(1,14311440,1,1,2) [2025-01-23 09:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311440', 'tblTempUsageDetail_20' ) start [2025-01-23 09:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311440', 'tblTempUsageDetail_20' ) end [2025-01-23 09:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:34:31] Production.INFO: ==10487== Releasing lock... [2025-01-23 09:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:34:31] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:35:05 [end_date_ymd] => 2025-01-23 09:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:35:05' and `end` < '2025-01-23 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-23 09:35:31] Production.INFO: count ==1371 [2025-01-23 09:35:31] Production.ERROR: pbx CDR StartTime 2025-01-23 06:35:05 - End Time 2025-01-23 09:35:05 [2025-01-23 09:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311445', 'tblTempUsageDetail_20' ) start [2025-01-23 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311445', 'tblTempUsageDetail_20' ) end [2025-01-23 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311445', 'tblTempVendorCDR_20' ) start [2025-01-23 09:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311445', 'tblTempVendorCDR_20' ) end [2025-01-23 09:35:31] Production.INFO: ProcessCDR(1,14311445,1,1,2) [2025-01-23 09:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311445', 'tblTempUsageDetail_20' ) start [2025-01-23 09:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311445', 'tblTempUsageDetail_20' ) end [2025-01-23 09:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:35:36] Production.INFO: ==10573== Releasing lock... [2025-01-23 09:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:35:36] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:36:05 [end_date_ymd] => 2025-01-23 09:36:05 [RateCDR] => 1 ) [2025-01-23 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:36:05' and `end` < '2025-01-23 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:36:21] Production.INFO: count ==1384 [2025-01-23 09:36:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:36:05 - End Time 2025-01-23 09:36:05 [2025-01-23 09:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311450', 'tblTempUsageDetail_20' ) start [2025-01-23 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311450', 'tblTempUsageDetail_20' ) end [2025-01-23 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311450', 'tblTempVendorCDR_20' ) start [2025-01-23 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311450', 'tblTempVendorCDR_20' ) end [2025-01-23 09:36:22] Production.INFO: ProcessCDR(1,14311450,1,1,2) [2025-01-23 09:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311450', 'tblTempUsageDetail_20' ) start [2025-01-23 09:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311450', 'tblTempUsageDetail_20' ) end [2025-01-23 09:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:36:27] Production.INFO: ==10652== Releasing lock... [2025-01-23 09:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:36:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:37:05 [end_date_ymd] => 2025-01-23 09:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:37:05' and `end` < '2025-01-23 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-23 09:37:20] Production.INFO: count ==1416 [2025-01-23 09:37:20] Production.ERROR: pbx CDR StartTime 2025-01-23 06:37:05 - End Time 2025-01-23 09:37:05 [2025-01-23 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311455', 'tblTempUsageDetail_20' ) start [2025-01-23 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311455', 'tblTempUsageDetail_20' ) end [2025-01-23 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311455', 'tblTempVendorCDR_20' ) start [2025-01-23 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311455', 'tblTempVendorCDR_20' ) end [2025-01-23 09:37:21] Production.INFO: ProcessCDR(1,14311455,1,1,2) [2025-01-23 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311455', 'tblTempUsageDetail_20' ) start [2025-01-23 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311455', 'tblTempUsageDetail_20' ) end [2025-01-23 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:37:25] Production.INFO: ==10739== Releasing lock... [2025-01-23 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:37:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:38:05 [end_date_ymd] => 2025-01-23 09:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:38:05' and `end` < '2025-01-23 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-23 09:38:23] Production.INFO: count ==1432 [2025-01-23 09:38:24] Production.ERROR: pbx CDR StartTime 2025-01-23 06:38:05 - End Time 2025-01-23 09:38:05 [2025-01-23 09:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311460', 'tblTempUsageDetail_20' ) start [2025-01-23 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311460', 'tblTempUsageDetail_20' ) end [2025-01-23 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311460', 'tblTempVendorCDR_20' ) start [2025-01-23 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311460', 'tblTempVendorCDR_20' ) end [2025-01-23 09:38:24] Production.INFO: ProcessCDR(1,14311460,1,1,2) [2025-01-23 09:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311460', 'tblTempUsageDetail_20' ) start [2025-01-23 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311460', 'tblTempUsageDetail_20' ) end [2025-01-23 09:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:38:27] Production.INFO: ==10817== Releasing lock... [2025-01-23 09:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:38:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:39:06 [end_date_ymd] => 2025-01-23 09:39:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:39:06' and `end` < '2025-01-23 09: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-23 09:39:21] Production.INFO: count ==1450 [2025-01-23 09:39:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:39:06 - End Time 2025-01-23 09:39:06 [2025-01-23 09:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311465', 'tblTempUsageDetail_20' ) start [2025-01-23 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311465', 'tblTempUsageDetail_20' ) end [2025-01-23 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311465', 'tblTempVendorCDR_20' ) start [2025-01-23 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311465', 'tblTempVendorCDR_20' ) end [2025-01-23 09:39:22] Production.INFO: ProcessCDR(1,14311465,1,1,2) [2025-01-23 09:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311465', 'tblTempUsageDetail_20' ) start [2025-01-23 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311465', 'tblTempUsageDetail_20' ) end [2025-01-23 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:39:27] Production.INFO: ==10902== Releasing lock... [2025-01-23 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:39:27] Production.INFO: 39 MB #Memory Used# [2025-01-23 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:40:07 [end_date_ymd] => 2025-01-23 09:40:07 [RateCDR] => 1 ) [2025-01-23 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:40:07' and `end` < '2025-01-23 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:40:25] Production.INFO: count ==1476 [2025-01-23 09:40:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:40:07 - End Time 2025-01-23 09:40:07 [2025-01-23 09:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311471', 'tblTempUsageDetail_20' ) start [2025-01-23 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311471', 'tblTempUsageDetail_20' ) end [2025-01-23 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311471', 'tblTempVendorCDR_20' ) start [2025-01-23 09:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311471', 'tblTempVendorCDR_20' ) end [2025-01-23 09:40:25] Production.INFO: ProcessCDR(1,14311471,1,1,2) [2025-01-23 09:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311471', 'tblTempUsageDetail_20' ) start [2025-01-23 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311471', 'tblTempUsageDetail_20' ) end [2025-01-23 09:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:40:30] Production.INFO: ==10985== Releasing lock... [2025-01-23 09:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:40:30] Production.INFO: 39.75 MB #Memory Used# [2025-01-23 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:41:05 [end_date_ymd] => 2025-01-23 09:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:41:05' and `end` < '2025-01-23 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-23 09:41:31] Production.INFO: count ==1596 [2025-01-23 09:41:32] Production.ERROR: pbx CDR StartTime 2025-01-23 06:41:05 - End Time 2025-01-23 09:41:05 [2025-01-23 09:41:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311476', 'tblTempUsageDetail_20' ) start [2025-01-23 09:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311476', 'tblTempUsageDetail_20' ) end [2025-01-23 09:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311476', 'tblTempVendorCDR_20' ) start [2025-01-23 09:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311476', 'tblTempVendorCDR_20' ) end [2025-01-23 09:41:32] Production.INFO: ProcessCDR(1,14311476,1,1,2) [2025-01-23 09:41:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311476', 'tblTempUsageDetail_20' ) start [2025-01-23 09:41:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311476', 'tblTempUsageDetail_20' ) end [2025-01-23 09:41:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:41:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:41:37] Production.INFO: ==11069== Releasing lock... [2025-01-23 09:41:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:41:37] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:42:05 [end_date_ymd] => 2025-01-23 09:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:42:05' and `end` < '2025-01-23 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-23 09:42:22] Production.INFO: count ==1607 [2025-01-23 09:42:23] Production.ERROR: pbx CDR StartTime 2025-01-23 06:42:05 - End Time 2025-01-23 09:42:05 [2025-01-23 09:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311481', 'tblTempUsageDetail_20' ) start [2025-01-23 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311481', 'tblTempUsageDetail_20' ) end [2025-01-23 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311481', 'tblTempVendorCDR_20' ) start [2025-01-23 09:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311481', 'tblTempVendorCDR_20' ) end [2025-01-23 09:42:23] Production.INFO: ProcessCDR(1,14311481,1,1,2) [2025-01-23 09:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311481', 'tblTempUsageDetail_20' ) start [2025-01-23 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311481', 'tblTempUsageDetail_20' ) end [2025-01-23 09:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:42:28] Production.INFO: ==11189== Releasing lock... [2025-01-23 09:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:42:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:43:05 [end_date_ymd] => 2025-01-23 09:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:43:05' and `end` < '2025-01-23 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-23 09:43:24] Production.INFO: count ==1619 [2025-01-23 09:43:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:43:05 - End Time 2025-01-23 09:43:05 [2025-01-23 09:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311486', 'tblTempUsageDetail_20' ) start [2025-01-23 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311486', 'tblTempUsageDetail_20' ) end [2025-01-23 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311486', 'tblTempVendorCDR_20' ) start [2025-01-23 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311486', 'tblTempVendorCDR_20' ) end [2025-01-23 09:43:25] Production.INFO: ProcessCDR(1,14311486,1,1,2) [2025-01-23 09:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311486', 'tblTempUsageDetail_20' ) start [2025-01-23 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311486', 'tblTempUsageDetail_20' ) end [2025-01-23 09:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:43:30] Production.INFO: ==11272== Releasing lock... [2025-01-23 09:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:43:30] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:44:05 [end_date_ymd] => 2025-01-23 09:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:44:05' and `end` < '2025-01-23 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-23 09:44:23] Production.INFO: count ==1630 [2025-01-23 09:44:23] Production.ERROR: pbx CDR StartTime 2025-01-23 06:44:05 - End Time 2025-01-23 09:44:05 [2025-01-23 09:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311491', 'tblTempUsageDetail_20' ) start [2025-01-23 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311491', 'tblTempUsageDetail_20' ) end [2025-01-23 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311491', 'tblTempVendorCDR_20' ) start [2025-01-23 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311491', 'tblTempVendorCDR_20' ) end [2025-01-23 09:44:23] Production.INFO: ProcessCDR(1,14311491,1,1,2) [2025-01-23 09:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311491', 'tblTempUsageDetail_20' ) start [2025-01-23 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311491', 'tblTempUsageDetail_20' ) end [2025-01-23 09:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:44:28] Production.INFO: ==11353== Releasing lock... [2025-01-23 09:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:44:28] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:45:05 [end_date_ymd] => 2025-01-23 09:45:05 [RateCDR] => 1 ) [2025-01-23 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:45:05' and `end` < '2025-01-23 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:45:25] Production.INFO: count ==1645 [2025-01-23 09:45:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:45:05 - End Time 2025-01-23 09:45:05 [2025-01-23 09:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311496', 'tblTempUsageDetail_20' ) start [2025-01-23 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311496', 'tblTempUsageDetail_20' ) end [2025-01-23 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311496', 'tblTempVendorCDR_20' ) start [2025-01-23 09:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311496', 'tblTempVendorCDR_20' ) end [2025-01-23 09:45:25] Production.INFO: ProcessCDR(1,14311496,1,1,2) [2025-01-23 09:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311496', 'tblTempUsageDetail_20' ) start [2025-01-23 09:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311496', 'tblTempUsageDetail_20' ) end [2025-01-23 09:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:45:30] Production.INFO: ==11435== Releasing lock... [2025-01-23 09:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:45:30] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:46:05 [end_date_ymd] => 2025-01-23 09:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:46:05' and `end` < '2025-01-23 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-23 09:46:18] Production.INFO: count ==1656 [2025-01-23 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:46:05 - End Time 2025-01-23 09:46:05 [2025-01-23 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311501', 'tblTempUsageDetail_20' ) start [2025-01-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311501', 'tblTempUsageDetail_20' ) end [2025-01-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311501', 'tblTempVendorCDR_20' ) start [2025-01-23 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311501', 'tblTempVendorCDR_20' ) end [2025-01-23 09:46:19] Production.INFO: ProcessCDR(1,14311501,1,1,2) [2025-01-23 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311501', 'tblTempUsageDetail_20' ) start [2025-01-23 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311501', 'tblTempUsageDetail_20' ) end [2025-01-23 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:46:23] Production.INFO: ==11513== Releasing lock... [2025-01-23 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:47:05 [end_date_ymd] => 2025-01-23 09:47:05 [RateCDR] => 1 ) [2025-01-23 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:47:05' and `end` < '2025-01-23 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:47:18] Production.INFO: count ==1666 [2025-01-23 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-23 06:47:05 - End Time 2025-01-23 09:47:05 [2025-01-23 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311506', 'tblTempUsageDetail_20' ) start [2025-01-23 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311506', 'tblTempUsageDetail_20' ) end [2025-01-23 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311506', 'tblTempVendorCDR_20' ) start [2025-01-23 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311506', 'tblTempVendorCDR_20' ) end [2025-01-23 09:47:19] Production.INFO: ProcessCDR(1,14311506,1,1,2) [2025-01-23 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311506', 'tblTempUsageDetail_20' ) start [2025-01-23 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311506', 'tblTempUsageDetail_20' ) end [2025-01-23 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:47:24] Production.INFO: ==11592== Releasing lock... [2025-01-23 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:48:05 [end_date_ymd] => 2025-01-23 09:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:48:05' and `end` < '2025-01-23 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-23 09:48:18] Production.INFO: count ==1671 [2025-01-23 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 06:48:05 - End Time 2025-01-23 09:48:05 [2025-01-23 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311511', 'tblTempUsageDetail_20' ) start [2025-01-23 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311511', 'tblTempUsageDetail_20' ) end [2025-01-23 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311511', 'tblTempVendorCDR_20' ) start [2025-01-23 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311511', 'tblTempVendorCDR_20' ) end [2025-01-23 09:48:18] Production.INFO: ProcessCDR(1,14311511,1,1,2) [2025-01-23 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311511', 'tblTempUsageDetail_20' ) start [2025-01-23 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311511', 'tblTempUsageDetail_20' ) end [2025-01-23 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:48:23] Production.INFO: ==11671== Releasing lock... [2025-01-23 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:48:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:49:05 [end_date_ymd] => 2025-01-23 09:49:05 [RateCDR] => 1 ) [2025-01-23 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:49:05' and `end` < '2025-01-23 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:49:22] Production.INFO: count ==1678 [2025-01-23 09:49:22] Production.ERROR: pbx CDR StartTime 2025-01-23 06:49:05 - End Time 2025-01-23 09:49:05 [2025-01-23 09:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311516', 'tblTempUsageDetail_20' ) start [2025-01-23 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311516', 'tblTempUsageDetail_20' ) end [2025-01-23 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311516', 'tblTempVendorCDR_20' ) start [2025-01-23 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311516', 'tblTempVendorCDR_20' ) end [2025-01-23 09:49:22] Production.INFO: ProcessCDR(1,14311516,1,1,2) [2025-01-23 09:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311516', 'tblTempUsageDetail_20' ) start [2025-01-23 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311516', 'tblTempUsageDetail_20' ) end [2025-01-23 09:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:49:27] Production.INFO: ==11747== Releasing lock... [2025-01-23 09:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:49:27] Production.INFO: 41 MB #Memory Used# [2025-01-23 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:50:07 [end_date_ymd] => 2025-01-23 09:50:07 [RateCDR] => 1 ) [2025-01-23 09:50: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-23 06:50:07' and `end` < '2025-01-23 09:50: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-23 09:50:23] Production.INFO: count ==1702 [2025-01-23 09:50:23] Production.ERROR: pbx CDR StartTime 2025-01-23 06:50:07 - End Time 2025-01-23 09:50:07 [2025-01-23 09:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311522', 'tblTempUsageDetail_20' ) start [2025-01-23 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311522', 'tblTempUsageDetail_20' ) end [2025-01-23 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311522', 'tblTempVendorCDR_20' ) start [2025-01-23 09:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311522', 'tblTempVendorCDR_20' ) end [2025-01-23 09:50:23] Production.INFO: ProcessCDR(1,14311522,1,1,2) [2025-01-23 09:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311522', 'tblTempUsageDetail_20' ) start [2025-01-23 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311522', 'tblTempUsageDetail_20' ) end [2025-01-23 09:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:50:28] Production.INFO: ==11832== Releasing lock... [2025-01-23 09:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:50:28] Production.INFO: 40.75 MB #Memory Used# [2025-01-23 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:51:05 [end_date_ymd] => 2025-01-23 09:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:51:05' and `end` < '2025-01-23 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-23 09:51:29] Production.INFO: count ==1788 [2025-01-23 09:51:29] Production.ERROR: pbx CDR StartTime 2025-01-23 06:51:05 - End Time 2025-01-23 09:51:05 [2025-01-23 09:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311527', 'tblTempUsageDetail_20' ) start [2025-01-23 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311527', 'tblTempUsageDetail_20' ) end [2025-01-23 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311527', 'tblTempVendorCDR_20' ) start [2025-01-23 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311527', 'tblTempVendorCDR_20' ) end [2025-01-23 09:51:29] Production.INFO: ProcessCDR(1,14311527,1,1,2) [2025-01-23 09:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311527', 'tblTempUsageDetail_20' ) start [2025-01-23 09:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311527', 'tblTempUsageDetail_20' ) end [2025-01-23 09:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:51:34] Production.INFO: ==11914== Releasing lock... [2025-01-23 09:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:51:34] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:52:06 [end_date_ymd] => 2025-01-23 09:52:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:52:06' and `end` < '2025-01-23 09: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-23 09:52:24] Production.INFO: count ==1823 [2025-01-23 09:52:24] Production.ERROR: pbx CDR StartTime 2025-01-23 06:52:06 - End Time 2025-01-23 09:52:06 [2025-01-23 09:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311532', 'tblTempUsageDetail_20' ) start [2025-01-23 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311532', 'tblTempUsageDetail_20' ) end [2025-01-23 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311532', 'tblTempVendorCDR_20' ) start [2025-01-23 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311532', 'tblTempVendorCDR_20' ) end [2025-01-23 09:52:24] Production.INFO: ProcessCDR(1,14311532,1,1,2) [2025-01-23 09:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311532', 'tblTempUsageDetail_20' ) start [2025-01-23 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311532', 'tblTempUsageDetail_20' ) end [2025-01-23 09:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:52:30] Production.INFO: ==12000== Releasing lock... [2025-01-23 09:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:52:30] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:53:06 [end_date_ymd] => 2025-01-23 09:53:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:53:06' and `end` < '2025-01-23 09: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-23 09:53:30] Production.INFO: count ==1835 [2025-01-23 09:53:31] Production.ERROR: pbx CDR StartTime 2025-01-23 06:53:06 - End Time 2025-01-23 09:53:06 [2025-01-23 09:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311537', 'tblTempUsageDetail_20' ) start [2025-01-23 09:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311537', 'tblTempUsageDetail_20' ) end [2025-01-23 09:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311537', 'tblTempVendorCDR_20' ) start [2025-01-23 09:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311537', 'tblTempVendorCDR_20' ) end [2025-01-23 09:53:31] Production.INFO: ProcessCDR(1,14311537,1,1,2) [2025-01-23 09:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:53:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:53:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:53:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311537', 'tblTempUsageDetail_20' ) start [2025-01-23 09:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311537', 'tblTempUsageDetail_20' ) end [2025-01-23 09:53:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:53:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:53:36] Production.INFO: ==12095== Releasing lock... [2025-01-23 09:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:53:36] Production.INFO: 41.75 MB #Memory Used# [2025-01-23 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:54:05 [end_date_ymd] => 2025-01-23 09:54:05 [RateCDR] => 1 ) [2025-01-23 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:54:05' and `end` < '2025-01-23 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:54:26] Production.INFO: count ==1859 [2025-01-23 09:54:27] Production.ERROR: pbx CDR StartTime 2025-01-23 06:54:05 - End Time 2025-01-23 09:54:05 [2025-01-23 09:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311542', 'tblTempUsageDetail_20' ) start [2025-01-23 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311542', 'tblTempUsageDetail_20' ) end [2025-01-23 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311542', 'tblTempVendorCDR_20' ) start [2025-01-23 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311542', 'tblTempVendorCDR_20' ) end [2025-01-23 09:54:27] Production.INFO: ProcessCDR(1,14311542,1,1,2) [2025-01-23 09:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311542', 'tblTempUsageDetail_20' ) start [2025-01-23 09:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311542', 'tblTempUsageDetail_20' ) end [2025-01-23 09:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:54:32] Production.INFO: ==12189== Releasing lock... [2025-01-23 09:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:54:32] Production.INFO: 42 MB #Memory Used# [2025-01-23 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:55:05 [end_date_ymd] => 2025-01-23 09:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:55:05' and `end` < '2025-01-23 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-23 09:55:26] Production.INFO: count ==1866 [2025-01-23 09:55:27] Production.ERROR: pbx CDR StartTime 2025-01-23 06:55:05 - End Time 2025-01-23 09:55:05 [2025-01-23 09:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311547', 'tblTempUsageDetail_20' ) start [2025-01-23 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311547', 'tblTempUsageDetail_20' ) end [2025-01-23 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311547', 'tblTempVendorCDR_20' ) start [2025-01-23 09:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311547', 'tblTempVendorCDR_20' ) end [2025-01-23 09:55:27] Production.INFO: ProcessCDR(1,14311547,1,1,2) [2025-01-23 09:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311547', 'tblTempUsageDetail_20' ) start [2025-01-23 09:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311547', 'tblTempUsageDetail_20' ) end [2025-01-23 09:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:55:32] Production.INFO: ==12274== Releasing lock... [2025-01-23 09:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:55:32] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:56:06 [end_date_ymd] => 2025-01-23 09:56:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:56:06' and `end` < '2025-01-23 09: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-23 09:56:30] Production.INFO: count ==1873 [2025-01-23 09:56:30] Production.ERROR: pbx CDR StartTime 2025-01-23 06:56:06 - End Time 2025-01-23 09:56:06 [2025-01-23 09:56:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311552', 'tblTempUsageDetail_20' ) start [2025-01-23 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311552', 'tblTempUsageDetail_20' ) end [2025-01-23 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311552', 'tblTempVendorCDR_20' ) start [2025-01-23 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311552', 'tblTempVendorCDR_20' ) end [2025-01-23 09:56:31] Production.INFO: ProcessCDR(1,14311552,1,1,2) [2025-01-23 09:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:56:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:56:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311552', 'tblTempUsageDetail_20' ) start [2025-01-23 09:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311552', 'tblTempUsageDetail_20' ) end [2025-01-23 09:56:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:56:36] Production.INFO: ==12355== Releasing lock... [2025-01-23 09:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:56:36] Production.INFO: 42 MB #Memory Used# [2025-01-23 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:57:06 [end_date_ymd] => 2025-01-23 09:57:06 [RateCDR] => 1 ) [2025-01-23 09: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-23 06:57:06' and `end` < '2025-01-23 09: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-23 09:57:25] Production.INFO: count ==1875 [2025-01-23 09:57:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:57:06 - End Time 2025-01-23 09:57:06 [2025-01-23 09:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311557', 'tblTempUsageDetail_20' ) start [2025-01-23 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311557', 'tblTempUsageDetail_20' ) end [2025-01-23 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311557', 'tblTempVendorCDR_20' ) start [2025-01-23 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311557', 'tblTempVendorCDR_20' ) end [2025-01-23 09:57:25] Production.INFO: ProcessCDR(1,14311557,1,1,2) [2025-01-23 09:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311557', 'tblTempUsageDetail_20' ) start [2025-01-23 09:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311557', 'tblTempUsageDetail_20' ) end [2025-01-23 09:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:57:29] Production.INFO: ==12433== Releasing lock... [2025-01-23 09:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:57:29] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:58:05 [end_date_ymd] => 2025-01-23 09:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 06:58:05' and `end` < '2025-01-23 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-23 09:58:24] Production.INFO: count ==1891 [2025-01-23 09:58:24] Production.ERROR: pbx CDR StartTime 2025-01-23 06:58:05 - End Time 2025-01-23 09:58:05 [2025-01-23 09:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311562', 'tblTempUsageDetail_20' ) start [2025-01-23 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311562', 'tblTempUsageDetail_20' ) end [2025-01-23 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311562', 'tblTempVendorCDR_20' ) start [2025-01-23 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311562', 'tblTempVendorCDR_20' ) end [2025-01-23 09:58:24] Production.INFO: ProcessCDR(1,14311562,1,1,2) [2025-01-23 09:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311562', 'tblTempUsageDetail_20' ) start [2025-01-23 09:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311562', 'tblTempUsageDetail_20' ) end [2025-01-23 09:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:58:30] Production.INFO: ==12552== Releasing lock... [2025-01-23 09:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:58:30] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 06:59:06 [end_date_ymd] => 2025-01-23 09:59:06 [RateCDR] => 1 ) [2025-01-23 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 06:59:06' and `end` < '2025-01-23 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 09:59:25] Production.INFO: count ==1904 [2025-01-23 09:59:25] Production.ERROR: pbx CDR StartTime 2025-01-23 06:59:06 - End Time 2025-01-23 09:59:06 [2025-01-23 09:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311567', 'tblTempUsageDetail_20' ) start [2025-01-23 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311567', 'tblTempUsageDetail_20' ) end [2025-01-23 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311567', 'tblTempVendorCDR_20' ) start [2025-01-23 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311567', 'tblTempVendorCDR_20' ) end [2025-01-23 09:59:25] Production.INFO: ProcessCDR(1,14311567,1,1,2) [2025-01-23 09:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 09:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 09:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311567', 'tblTempUsageDetail_20' ) start [2025-01-23 09:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311567', 'tblTempUsageDetail_20' ) end [2025-01-23 09:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 09:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 09:59:30] Production.INFO: ==12633== Releasing lock... [2025-01-23 09:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 09:59:30] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:00:07 [end_date_ymd] => 2025-01-23 10:00:07 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:00:07' and `end` < '2025-01-23 10: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-23 10:00:27] Production.INFO: count ==1927 [2025-01-23 10:00:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:00:07 - End Time 2025-01-23 10:00:07 [2025-01-23 10:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311573', 'tblTempUsageDetail_20' ) start [2025-01-23 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311573', 'tblTempUsageDetail_20' ) end [2025-01-23 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311573', 'tblTempVendorCDR_20' ) start [2025-01-23 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311573', 'tblTempVendorCDR_20' ) end [2025-01-23 10:00:28] Production.INFO: ProcessCDR(1,14311573,1,1,2) [2025-01-23 10:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311573', 'tblTempUsageDetail_20' ) start [2025-01-23 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311573', 'tblTempUsageDetail_20' ) end [2025-01-23 10:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:00:33] Production.INFO: ==12714== Releasing lock... [2025-01-23 10:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:00:33] Production.INFO: 42.5 MB #Memory Used# [2025-01-23 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:01:06 [end_date_ymd] => 2025-01-23 10:01:06 [RateCDR] => 1 ) [2025-01-23 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:01:06' and `end` < '2025-01-23 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:01:20] Production.INFO: count ==2022 [2025-01-23 10:01:21] Production.ERROR: pbx CDR StartTime 2025-01-23 07:01:06 - End Time 2025-01-23 10:01:06 [2025-01-23 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311578', 'tblTempUsageDetail_20' ) start [2025-01-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311578', 'tblTempUsageDetail_20' ) end [2025-01-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311578', 'tblTempVendorCDR_20' ) start [2025-01-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311578', 'tblTempVendorCDR_20' ) end [2025-01-23 10:01:21] Production.INFO: ProcessCDR(1,14311578,1,1,2) [2025-01-23 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311578', 'tblTempUsageDetail_20' ) start [2025-01-23 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311578', 'tblTempUsageDetail_20' ) end [2025-01-23 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:01:26] Production.INFO: ==12813== Releasing lock... [2025-01-23 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:01:26] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:02:05 [end_date_ymd] => 2025-01-23 10:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:02:05' and `end` < '2025-01-23 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-23 10:02:18] Production.INFO: count ==2033 [2025-01-23 10:02:19] Production.ERROR: pbx CDR StartTime 2025-01-23 07:02:05 - End Time 2025-01-23 10:02:05 [2025-01-23 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311583', 'tblTempUsageDetail_20' ) start [2025-01-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311583', 'tblTempUsageDetail_20' ) end [2025-01-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311583', 'tblTempVendorCDR_20' ) start [2025-01-23 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311583', 'tblTempVendorCDR_20' ) end [2025-01-23 10:02:19] Production.INFO: ProcessCDR(1,14311583,1,1,2) [2025-01-23 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311583', 'tblTempUsageDetail_20' ) start [2025-01-23 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311583', 'tblTempUsageDetail_20' ) end [2025-01-23 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:02:24] Production.INFO: ==12895== Releasing lock... [2025-01-23 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:02:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:03:05 [end_date_ymd] => 2025-01-23 10:03:05 [RateCDR] => 1 ) [2025-01-23 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:03:05' and `end` < '2025-01-23 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:03:19] Production.INFO: count ==2051 [2025-01-23 10:03:20] Production.ERROR: pbx CDR StartTime 2025-01-23 07:03:05 - End Time 2025-01-23 10:03:05 [2025-01-23 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311588', 'tblTempUsageDetail_20' ) start [2025-01-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311588', 'tblTempUsageDetail_20' ) end [2025-01-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311588', 'tblTempVendorCDR_20' ) start [2025-01-23 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311588', 'tblTempVendorCDR_20' ) end [2025-01-23 10:03:20] Production.INFO: ProcessCDR(1,14311588,1,1,2) [2025-01-23 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311588', 'tblTempUsageDetail_20' ) start [2025-01-23 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311588', 'tblTempUsageDetail_20' ) end [2025-01-23 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:03:25] Production.INFO: ==12976== Releasing lock... [2025-01-23 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:03:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:04:05 [end_date_ymd] => 2025-01-23 10:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:04:05' and `end` < '2025-01-23 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-23 10:04:26] Production.INFO: count ==2068 [2025-01-23 10:04:27] Production.ERROR: pbx CDR StartTime 2025-01-23 07:04:05 - End Time 2025-01-23 10:04:05 [2025-01-23 10:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311593', 'tblTempUsageDetail_20' ) start [2025-01-23 10:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311593', 'tblTempUsageDetail_20' ) end [2025-01-23 10:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311593', 'tblTempVendorCDR_20' ) start [2025-01-23 10:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311593', 'tblTempVendorCDR_20' ) end [2025-01-23 10:04:27] Production.INFO: ProcessCDR(1,14311593,1,1,2) [2025-01-23 10:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311593', 'tblTempUsageDetail_20' ) start [2025-01-23 10:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311593', 'tblTempUsageDetail_20' ) end [2025-01-23 10:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:04:32] Production.INFO: ==13054== Releasing lock... [2025-01-23 10:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:04:32] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:05:06 [end_date_ymd] => 2025-01-23 10:05:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:05:06' and `end` < '2025-01-23 10: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-23 10:05:35] Production.INFO: count ==2083 [2025-01-23 10:05:36] Production.ERROR: pbx CDR StartTime 2025-01-23 07:05:06 - End Time 2025-01-23 10:05:06 [2025-01-23 10:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311598', 'tblTempUsageDetail_20' ) start [2025-01-23 10:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311598', 'tblTempUsageDetail_20' ) end [2025-01-23 10:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311598', 'tblTempVendorCDR_20' ) start [2025-01-23 10:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311598', 'tblTempVendorCDR_20' ) end [2025-01-23 10:05:36] Production.INFO: ProcessCDR(1,14311598,1,1,2) [2025-01-23 10:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311598', 'tblTempUsageDetail_20' ) start [2025-01-23 10:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311598', 'tblTempUsageDetail_20' ) end [2025-01-23 10:05:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:05:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:05:41] Production.INFO: ==13136== Releasing lock... [2025-01-23 10:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:05:41] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:06:05 [end_date_ymd] => 2025-01-23 10:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:06:05' and `end` < '2025-01-23 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-23 10:06:25] Production.INFO: count ==2106 [2025-01-23 10:06:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:06:05 - End Time 2025-01-23 10:06:05 [2025-01-23 10:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311603', 'tblTempUsageDetail_20' ) start [2025-01-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311603', 'tblTempUsageDetail_20' ) end [2025-01-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311603', 'tblTempVendorCDR_20' ) start [2025-01-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311603', 'tblTempVendorCDR_20' ) end [2025-01-23 10:06:26] Production.INFO: ProcessCDR(1,14311603,1,1,2) [2025-01-23 10:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311603', 'tblTempUsageDetail_20' ) start [2025-01-23 10:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311603', 'tblTempUsageDetail_20' ) end [2025-01-23 10:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:06:31] Production.INFO: ==13212== Releasing lock... [2025-01-23 10:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:06:31] Production.INFO: 44 MB #Memory Used# [2025-01-23 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:07:06 [end_date_ymd] => 2025-01-23 10:07:06 [RateCDR] => 1 ) [2025-01-23 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-23 07:07:06' and `end` < '2025-01-23 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-23 10:07:24] Production.INFO: count ==2127 [2025-01-23 10:07:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:07:06 - End Time 2025-01-23 10:07:06 [2025-01-23 10:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311608', 'tblTempUsageDetail_20' ) start [2025-01-23 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311608', 'tblTempUsageDetail_20' ) end [2025-01-23 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311608', 'tblTempVendorCDR_20' ) start [2025-01-23 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311608', 'tblTempVendorCDR_20' ) end [2025-01-23 10:07:24] Production.INFO: ProcessCDR(1,14311608,1,1,2) [2025-01-23 10:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311608', 'tblTempUsageDetail_20' ) start [2025-01-23 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311608', 'tblTempUsageDetail_20' ) end [2025-01-23 10:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:07:30] Production.INFO: ==13294== Releasing lock... [2025-01-23 10:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:07:30] Production.INFO: 44 MB #Memory Used# [2025-01-23 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:08:05 [end_date_ymd] => 2025-01-23 10:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:08:05' and `end` < '2025-01-23 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-23 10:08:32] Production.INFO: count ==2152 [2025-01-23 10:08:33] Production.ERROR: pbx CDR StartTime 2025-01-23 07:08:05 - End Time 2025-01-23 10:08:05 [2025-01-23 10:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311613', 'tblTempUsageDetail_20' ) start [2025-01-23 10:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311613', 'tblTempUsageDetail_20' ) end [2025-01-23 10:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311613', 'tblTempVendorCDR_20' ) start [2025-01-23 10:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311613', 'tblTempVendorCDR_20' ) end [2025-01-23 10:08:33] Production.INFO: ProcessCDR(1,14311613,1,1,2) [2025-01-23 10:08:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:08:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:08:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:08:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311613', 'tblTempUsageDetail_20' ) start [2025-01-23 10:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311613', 'tblTempUsageDetail_20' ) end [2025-01-23 10:08:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:08:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:08:38] Production.INFO: ==13376== Releasing lock... [2025-01-23 10:08:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:08:38] Production.INFO: 44.25 MB #Memory Used# [2025-01-23 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:09:06 [end_date_ymd] => 2025-01-23 10:09:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:09:06' and `end` < '2025-01-23 10: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-23 10:09:25] Production.INFO: count ==2162 [2025-01-23 10:09:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:09:06 - End Time 2025-01-23 10:09:06 [2025-01-23 10:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311618', 'tblTempUsageDetail_20' ) start [2025-01-23 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311618', 'tblTempUsageDetail_20' ) end [2025-01-23 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311618', 'tblTempVendorCDR_20' ) start [2025-01-23 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311618', 'tblTempVendorCDR_20' ) end [2025-01-23 10:09:25] Production.INFO: ProcessCDR(1,14311618,1,1,2) [2025-01-23 10:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311618', 'tblTempUsageDetail_20' ) start [2025-01-23 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311618', 'tblTempUsageDetail_20' ) end [2025-01-23 10:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:09:30] Production.INFO: ==13461== Releasing lock... [2025-01-23 10:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:09:30] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:10:05 [end_date_ymd] => 2025-01-23 10:10:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:10:05' and `end` < '2025-01-23 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-23 10:10:25] Production.INFO: count ==2179 [2025-01-23 10:10:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:10:05 - End Time 2025-01-23 10:10:05 [2025-01-23 10:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311621', 'tblTempUsageDetail_20' ) start [2025-01-23 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311621', 'tblTempUsageDetail_20' ) end [2025-01-23 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311621', 'tblTempVendorCDR_20' ) start [2025-01-23 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311621', 'tblTempVendorCDR_20' ) end [2025-01-23 10:10:26] Production.INFO: ProcessCDR(1,14311621,1,1,2) [2025-01-23 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311621', 'tblTempUsageDetail_20' ) start [2025-01-23 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311621', 'tblTempUsageDetail_20' ) end [2025-01-23 10:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:10:31] Production.INFO: ==13542== Releasing lock... [2025-01-23 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:10:31] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:11:06 [end_date_ymd] => 2025-01-23 10:11:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:11:06' and `end` < '2025-01-23 10: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-23 10:11:27] Production.INFO: count ==2315 [2025-01-23 10:11:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:11:06 - End Time 2025-01-23 10:11:06 [2025-01-23 10:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311629', 'tblTempUsageDetail_20' ) start [2025-01-23 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311629', 'tblTempUsageDetail_20' ) end [2025-01-23 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311629', 'tblTempVendorCDR_20' ) start [2025-01-23 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311629', 'tblTempVendorCDR_20' ) end [2025-01-23 10:11:28] Production.INFO: ProcessCDR(1,14311629,1,1,2) [2025-01-23 10:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311629', 'tblTempUsageDetail_20' ) start [2025-01-23 10:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311629', 'tblTempUsageDetail_20' ) end [2025-01-23 10:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:11:33] Production.INFO: ==13630== Releasing lock... [2025-01-23 10:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:11:33] Production.INFO: 45.5 MB #Memory Used# [2025-01-23 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:12:05 [end_date_ymd] => 2025-01-23 10:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:12:05' and `end` < '2025-01-23 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-23 10:12:22] Production.INFO: count ==2330 [2025-01-23 10:12:22] Production.ERROR: pbx CDR StartTime 2025-01-23 07:12:05 - End Time 2025-01-23 10:12:05 [2025-01-23 10:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311634', 'tblTempUsageDetail_20' ) start [2025-01-23 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311634', 'tblTempUsageDetail_20' ) end [2025-01-23 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311634', 'tblTempVendorCDR_20' ) start [2025-01-23 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311634', 'tblTempVendorCDR_20' ) end [2025-01-23 10:12:22] Production.INFO: ProcessCDR(1,14311634,1,1,2) [2025-01-23 10:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311634', 'tblTempUsageDetail_20' ) start [2025-01-23 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311634', 'tblTempUsageDetail_20' ) end [2025-01-23 10:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:12:27] Production.INFO: ==13709== Releasing lock... [2025-01-23 10:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:12:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-23 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:13:05 [end_date_ymd] => 2025-01-23 10:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:13:05' and `end` < '2025-01-23 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-23 10:13:18] Production.INFO: count ==2346 [2025-01-23 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 07:13:05 - End Time 2025-01-23 10:13:05 [2025-01-23 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311639', 'tblTempUsageDetail_20' ) start [2025-01-23 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311639', 'tblTempUsageDetail_20' ) end [2025-01-23 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311639', 'tblTempVendorCDR_20' ) start [2025-01-23 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311639', 'tblTempVendorCDR_20' ) end [2025-01-23 10:13:19] Production.INFO: ProcessCDR(1,14311639,1,1,2) [2025-01-23 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311639', 'tblTempUsageDetail_20' ) start [2025-01-23 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311639', 'tblTempUsageDetail_20' ) end [2025-01-23 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:13:24] Production.INFO: ==13832== Releasing lock... [2025-01-23 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:13:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-23 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:14:06 [end_date_ymd] => 2025-01-23 10:14:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:14:06' and `end` < '2025-01-23 10: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-23 10:14:22] Production.INFO: count ==2370 [2025-01-23 10:14:23] Production.ERROR: pbx CDR StartTime 2025-01-23 07:14:06 - End Time 2025-01-23 10:14:06 [2025-01-23 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311644', 'tblTempUsageDetail_20' ) start [2025-01-23 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311644', 'tblTempUsageDetail_20' ) end [2025-01-23 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311644', 'tblTempVendorCDR_20' ) start [2025-01-23 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311644', 'tblTempVendorCDR_20' ) end [2025-01-23 10:14:23] Production.INFO: ProcessCDR(1,14311644,1,1,2) [2025-01-23 10:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311644', 'tblTempUsageDetail_20' ) start [2025-01-23 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311644', 'tblTempUsageDetail_20' ) end [2025-01-23 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:14:28] Production.INFO: ==13930== Releasing lock... [2025-01-23 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:14:28] Production.INFO: 46 MB #Memory Used# [2025-01-23 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:15:06 [end_date_ymd] => 2025-01-23 10:15:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:15:06' and `end` < '2025-01-23 10: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-23 10:15:24] Production.INFO: count ==2378 [2025-01-23 10:15:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:15:06 - End Time 2025-01-23 10:15:06 [2025-01-23 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311649', 'tblTempUsageDetail_20' ) start [2025-01-23 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311649', 'tblTempUsageDetail_20' ) end [2025-01-23 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311649', 'tblTempVendorCDR_20' ) start [2025-01-23 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311649', 'tblTempVendorCDR_20' ) end [2025-01-23 10:15:24] Production.INFO: ProcessCDR(1,14311649,1,1,2) [2025-01-23 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311649', 'tblTempUsageDetail_20' ) start [2025-01-23 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311649', 'tblTempUsageDetail_20' ) end [2025-01-23 10:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:15:29] Production.INFO: ==14016== Releasing lock... [2025-01-23 10:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:15:29] Production.INFO: 46 MB #Memory Used# [2025-01-23 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:16:05 [end_date_ymd] => 2025-01-23 10:16:05 [RateCDR] => 1 ) [2025-01-23 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:16:05' and `end` < '2025-01-23 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:16:18] Production.INFO: count ==2387 [2025-01-23 10:16:19] Production.ERROR: pbx CDR StartTime 2025-01-23 07:16:05 - End Time 2025-01-23 10:16:05 [2025-01-23 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311654', 'tblTempUsageDetail_20' ) start [2025-01-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311654', 'tblTempUsageDetail_20' ) end [2025-01-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311654', 'tblTempVendorCDR_20' ) start [2025-01-23 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311654', 'tblTempVendorCDR_20' ) end [2025-01-23 10:16:19] Production.INFO: ProcessCDR(1,14311654,1,1,2) [2025-01-23 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311654', 'tblTempUsageDetail_20' ) start [2025-01-23 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311654', 'tblTempUsageDetail_20' ) end [2025-01-23 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:16:24] Production.INFO: ==14097== Releasing lock... [2025-01-23 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:16:24] Production.INFO: 46 MB #Memory Used# [2025-01-23 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:17:05 [end_date_ymd] => 2025-01-23 10:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:17:05' and `end` < '2025-01-23 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-23 10:17:27] Production.INFO: count ==2405 [2025-01-23 10:17:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:17:05 - End Time 2025-01-23 10:17:05 [2025-01-23 10:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311659', 'tblTempUsageDetail_20' ) start [2025-01-23 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311659', 'tblTempUsageDetail_20' ) end [2025-01-23 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311659', 'tblTempVendorCDR_20' ) start [2025-01-23 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311659', 'tblTempVendorCDR_20' ) end [2025-01-23 10:17:28] Production.INFO: ProcessCDR(1,14311659,1,1,2) [2025-01-23 10:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311659', 'tblTempUsageDetail_20' ) start [2025-01-23 10:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311659', 'tblTempUsageDetail_20' ) end [2025-01-23 10:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:17:33] Production.INFO: ==14178== Releasing lock... [2025-01-23 10:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:17:33] Production.INFO: 46 MB #Memory Used# [2025-01-23 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:18:06 [end_date_ymd] => 2025-01-23 10:18:06 [RateCDR] => 1 ) [2025-01-23 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-23 07:18:06' and `end` < '2025-01-23 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-23 10:18:25] Production.INFO: count ==2418 [2025-01-23 10:18:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:18:06 - End Time 2025-01-23 10:18:06 [2025-01-23 10:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311664', 'tblTempUsageDetail_20' ) start [2025-01-23 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311664', 'tblTempUsageDetail_20' ) end [2025-01-23 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311664', 'tblTempVendorCDR_20' ) start [2025-01-23 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311664', 'tblTempVendorCDR_20' ) end [2025-01-23 10:18:26] Production.INFO: ProcessCDR(1,14311664,1,1,2) [2025-01-23 10:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311664', 'tblTempUsageDetail_20' ) start [2025-01-23 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311664', 'tblTempUsageDetail_20' ) end [2025-01-23 10:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:18:30] Production.INFO: ==14259== Releasing lock... [2025-01-23 10:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:18:30] Production.INFO: 46.25 MB #Memory Used# [2025-01-23 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:19:05 [end_date_ymd] => 2025-01-23 10:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:19:05' and `end` < '2025-01-23 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-23 10:19:21] Production.INFO: count ==2422 [2025-01-23 10:19:22] Production.ERROR: pbx CDR StartTime 2025-01-23 07:19:05 - End Time 2025-01-23 10:19:05 [2025-01-23 10:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311669', 'tblTempUsageDetail_20' ) start [2025-01-23 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311669', 'tblTempUsageDetail_20' ) end [2025-01-23 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311669', 'tblTempVendorCDR_20' ) start [2025-01-23 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311669', 'tblTempVendorCDR_20' ) end [2025-01-23 10:19:22] Production.INFO: ProcessCDR(1,14311669,1,1,2) [2025-01-23 10:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311669', 'tblTempUsageDetail_20' ) start [2025-01-23 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311669', 'tblTempUsageDetail_20' ) end [2025-01-23 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:19:27] Production.INFO: ==14337== Releasing lock... [2025-01-23 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:19:27] Production.INFO: 46.25 MB #Memory Used# [2025-01-23 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:20:07 [end_date_ymd] => 2025-01-23 10:20:07 [RateCDR] => 1 ) [2025-01-23 10:20: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-23 07:20:07' and `end` < '2025-01-23 10:20: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-23 10:20:22] Production.INFO: count ==2445 [2025-01-23 10:20:23] Production.ERROR: pbx CDR StartTime 2025-01-23 07:20:07 - End Time 2025-01-23 10:20:07 [2025-01-23 10:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311675', 'tblTempUsageDetail_20' ) start [2025-01-23 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311675', 'tblTempUsageDetail_20' ) end [2025-01-23 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311675', 'tblTempVendorCDR_20' ) start [2025-01-23 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311675', 'tblTempVendorCDR_20' ) end [2025-01-23 10:20:23] Production.INFO: ProcessCDR(1,14311675,1,1,2) [2025-01-23 10:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311675', 'tblTempUsageDetail_20' ) start [2025-01-23 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311675', 'tblTempUsageDetail_20' ) end [2025-01-23 10:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:20:28] Production.INFO: ==14425== Releasing lock... [2025-01-23 10:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:20:28] Production.INFO: 46.5 MB #Memory Used# [2025-01-23 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:21:05 [end_date_ymd] => 2025-01-23 10:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:21:05' and `end` < '2025-01-23 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-23 10:21:25] Production.INFO: count ==2561 [2025-01-23 10:21:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:21:05 - End Time 2025-01-23 10:21:05 [2025-01-23 10:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311680', 'tblTempUsageDetail_20' ) start [2025-01-23 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311680', 'tblTempUsageDetail_20' ) end [2025-01-23 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311680', 'tblTempVendorCDR_20' ) start [2025-01-23 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311680', 'tblTempVendorCDR_20' ) end [2025-01-23 10:21:26] Production.INFO: ProcessCDR(1,14311680,1,1,2) [2025-01-23 10:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311680', 'tblTempUsageDetail_20' ) start [2025-01-23 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311680', 'tblTempUsageDetail_20' ) end [2025-01-23 10:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:21:31] Production.INFO: ==14506== Releasing lock... [2025-01-23 10:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:21:31] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:22:05 [end_date_ymd] => 2025-01-23 10:22:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:22:05' and `end` < '2025-01-23 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-23 10:22:23] Production.INFO: count ==2577 [2025-01-23 10:22:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:22:05 - End Time 2025-01-23 10:22:05 [2025-01-23 10:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311685', 'tblTempUsageDetail_20' ) start [2025-01-23 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311685', 'tblTempUsageDetail_20' ) end [2025-01-23 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311685', 'tblTempVendorCDR_20' ) start [2025-01-23 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311685', 'tblTempVendorCDR_20' ) end [2025-01-23 10:22:24] Production.INFO: ProcessCDR(1,14311685,1,1,2) [2025-01-23 10:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311685', 'tblTempUsageDetail_20' ) start [2025-01-23 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311685', 'tblTempUsageDetail_20' ) end [2025-01-23 10:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:22:29] Production.INFO: ==14579== Releasing lock... [2025-01-23 10:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:22:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-23 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:23:05 [end_date_ymd] => 2025-01-23 10:23:05 [RateCDR] => 1 ) [2025-01-23 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:23:05' and `end` < '2025-01-23 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:23:21] Production.INFO: count ==2591 [2025-01-23 10:23:22] Production.ERROR: pbx CDR StartTime 2025-01-23 07:23:05 - End Time 2025-01-23 10:23:05 [2025-01-23 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311690', 'tblTempUsageDetail_20' ) start [2025-01-23 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311690', 'tblTempUsageDetail_20' ) end [2025-01-23 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311690', 'tblTempVendorCDR_20' ) start [2025-01-23 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311690', 'tblTempVendorCDR_20' ) end [2025-01-23 10:23:22] Production.INFO: ProcessCDR(1,14311690,1,1,2) [2025-01-23 10:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311690', 'tblTempUsageDetail_20' ) start [2025-01-23 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311690', 'tblTempUsageDetail_20' ) end [2025-01-23 10:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:23:27] Production.INFO: ==14655== Releasing lock... [2025-01-23 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:23:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:24:06 [end_date_ymd] => 2025-01-23 10:24:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:24:06' and `end` < '2025-01-23 10: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-23 10:24:25] Production.INFO: count ==2607 [2025-01-23 10:24:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:24:06 - End Time 2025-01-23 10:24:06 [2025-01-23 10:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311695', 'tblTempUsageDetail_20' ) start [2025-01-23 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311695', 'tblTempUsageDetail_20' ) end [2025-01-23 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311695', 'tblTempVendorCDR_20' ) start [2025-01-23 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311695', 'tblTempVendorCDR_20' ) end [2025-01-23 10:24:26] Production.INFO: ProcessCDR(1,14311695,1,1,2) [2025-01-23 10:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311695', 'tblTempUsageDetail_20' ) start [2025-01-23 10:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311695', 'tblTempUsageDetail_20' ) end [2025-01-23 10:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:24:31] Production.INFO: ==14736== Releasing lock... [2025-01-23 10:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:24:31] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:25:05 [end_date_ymd] => 2025-01-23 10:25:05 [RateCDR] => 1 ) [2025-01-23 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:25:05' and `end` < '2025-01-23 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:25:34] Production.INFO: count ==2623 [2025-01-23 10:25:35] Production.ERROR: pbx CDR StartTime 2025-01-23 07:25:05 - End Time 2025-01-23 10:25:05 [2025-01-23 10:25:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311700', 'tblTempUsageDetail_20' ) start [2025-01-23 10:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311700', 'tblTempUsageDetail_20' ) end [2025-01-23 10:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311700', 'tblTempVendorCDR_20' ) start [2025-01-23 10:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311700', 'tblTempVendorCDR_20' ) end [2025-01-23 10:25:35] Production.INFO: ProcessCDR(1,14311700,1,1,2) [2025-01-23 10:25:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:25:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:25:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311700', 'tblTempUsageDetail_20' ) start [2025-01-23 10:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311700', 'tblTempUsageDetail_20' ) end [2025-01-23 10:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:25:40] Production.INFO: ==14809== Releasing lock... [2025-01-23 10:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:25:40] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:26:06 [end_date_ymd] => 2025-01-23 10:26:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:26:06' and `end` < '2025-01-23 10: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-23 10:26:25] Production.INFO: count ==2643 [2025-01-23 10:26:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:26:06 - End Time 2025-01-23 10:26:06 [2025-01-23 10:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311705', 'tblTempUsageDetail_20' ) start [2025-01-23 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311705', 'tblTempUsageDetail_20' ) end [2025-01-23 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311705', 'tblTempVendorCDR_20' ) start [2025-01-23 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311705', 'tblTempVendorCDR_20' ) end [2025-01-23 10:26:26] Production.INFO: ProcessCDR(1,14311705,1,1,2) [2025-01-23 10:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311705', 'tblTempUsageDetail_20' ) start [2025-01-23 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311705', 'tblTempUsageDetail_20' ) end [2025-01-23 10:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:26:31] Production.INFO: ==14885== Releasing lock... [2025-01-23 10:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:26:31] Production.INFO: 48 MB #Memory Used# [2025-01-23 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:27:05 [end_date_ymd] => 2025-01-23 10:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:27:05' and `end` < '2025-01-23 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-23 10:27:23] Production.INFO: count ==2661 [2025-01-23 10:27:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:27:05 - End Time 2025-01-23 10:27:05 [2025-01-23 10:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311710', 'tblTempUsageDetail_20' ) start [2025-01-23 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311710', 'tblTempUsageDetail_20' ) end [2025-01-23 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311710', 'tblTempVendorCDR_20' ) start [2025-01-23 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311710', 'tblTempVendorCDR_20' ) end [2025-01-23 10:27:24] Production.INFO: ProcessCDR(1,14311710,1,1,2) [2025-01-23 10:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311710', 'tblTempUsageDetail_20' ) start [2025-01-23 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311710', 'tblTempUsageDetail_20' ) end [2025-01-23 10:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:27:29] Production.INFO: ==14962== Releasing lock... [2025-01-23 10:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:27:29] Production.INFO: 48 MB #Memory Used# [2025-01-23 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:28:06 [end_date_ymd] => 2025-01-23 10:28:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:28:06' and `end` < '2025-01-23 10: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-23 10:28:24] Production.INFO: count ==2675 [2025-01-23 10:28:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:28:06 - End Time 2025-01-23 10:28:06 [2025-01-23 10:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311715', 'tblTempUsageDetail_20' ) start [2025-01-23 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311715', 'tblTempUsageDetail_20' ) end [2025-01-23 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311715', 'tblTempVendorCDR_20' ) start [2025-01-23 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311715', 'tblTempVendorCDR_20' ) end [2025-01-23 10:28:25] Production.INFO: ProcessCDR(1,14311715,1,1,2) [2025-01-23 10:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311715', 'tblTempUsageDetail_20' ) start [2025-01-23 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311715', 'tblTempUsageDetail_20' ) end [2025-01-23 10:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:28:30] Production.INFO: ==15076== Releasing lock... [2025-01-23 10:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:28:30] Production.INFO: 48.25 MB #Memory Used# [2025-01-23 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:29:05 [end_date_ymd] => 2025-01-23 10:29:05 [RateCDR] => 1 ) [2025-01-23 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:29:05' and `end` < '2025-01-23 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:29:23] Production.INFO: count ==2699 [2025-01-23 10:29:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:29:05 - End Time 2025-01-23 10:29:05 [2025-01-23 10:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311720', 'tblTempUsageDetail_20' ) start [2025-01-23 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311720', 'tblTempUsageDetail_20' ) end [2025-01-23 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311720', 'tblTempVendorCDR_20' ) start [2025-01-23 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311720', 'tblTempVendorCDR_20' ) end [2025-01-23 10:29:24] Production.INFO: ProcessCDR(1,14311720,1,1,2) [2025-01-23 10:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311720', 'tblTempUsageDetail_20' ) start [2025-01-23 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311720', 'tblTempUsageDetail_20' ) end [2025-01-23 10:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:29:29] Production.INFO: ==15151== Releasing lock... [2025-01-23 10:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:29:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-23 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:30:07 [end_date_ymd] => 2025-01-23 10:30:07 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:30:07' and `end` < '2025-01-23 10: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-23 10:30:20] Production.INFO: count ==2707 [2025-01-23 10:30:21] Production.ERROR: pbx CDR StartTime 2025-01-23 07:30:07 - End Time 2025-01-23 10:30:07 [2025-01-23 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311726', 'tblTempUsageDetail_20' ) start [2025-01-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311726', 'tblTempUsageDetail_20' ) end [2025-01-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311726', 'tblTempVendorCDR_20' ) start [2025-01-23 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311726', 'tblTempVendorCDR_20' ) end [2025-01-23 10:30:21] Production.INFO: ProcessCDR(1,14311726,1,1,2) [2025-01-23 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311726', 'tblTempUsageDetail_20' ) start [2025-01-23 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311726', 'tblTempUsageDetail_20' ) end [2025-01-23 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:30:25] Production.INFO: ==15223== Releasing lock... [2025-01-23 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:30:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-23 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:31:05 [end_date_ymd] => 2025-01-23 10:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:31:05' and `end` < '2025-01-23 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-23 10:31:32] Production.INFO: count ==2848 [2025-01-23 10:31:33] Production.ERROR: pbx CDR StartTime 2025-01-23 07:31:05 - End Time 2025-01-23 10:31:05 [2025-01-23 10:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311731', 'tblTempUsageDetail_20' ) start [2025-01-23 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311731', 'tblTempUsageDetail_20' ) end [2025-01-23 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311731', 'tblTempVendorCDR_20' ) start [2025-01-23 10:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311731', 'tblTempVendorCDR_20' ) end [2025-01-23 10:31:33] Production.INFO: ProcessCDR(1,14311731,1,1,2) [2025-01-23 10:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311731', 'tblTempUsageDetail_20' ) start [2025-01-23 10:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311731', 'tblTempUsageDetail_20' ) end [2025-01-23 10:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:31:38] Production.INFO: ==15303== Releasing lock... [2025-01-23 10:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:31:38] Production.INFO: 49.25 MB #Memory Used# [2025-01-23 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:32:06 [end_date_ymd] => 2025-01-23 10:32:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:32:06' and `end` < '2025-01-23 10: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-23 10:32:25] Production.INFO: count ==2866 [2025-01-23 10:32:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:32:06 - End Time 2025-01-23 10:32:06 [2025-01-23 10:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311736', 'tblTempUsageDetail_20' ) start [2025-01-23 10:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311736', 'tblTempUsageDetail_20' ) end [2025-01-23 10:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311736', 'tblTempVendorCDR_20' ) start [2025-01-23 10:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311736', 'tblTempVendorCDR_20' ) end [2025-01-23 10:32:26] Production.INFO: ProcessCDR(1,14311736,1,1,2) [2025-01-23 10:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311736', 'tblTempUsageDetail_20' ) start [2025-01-23 10:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311736', 'tblTempUsageDetail_20' ) end [2025-01-23 10:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:32:31] Production.INFO: ==15379== Releasing lock... [2025-01-23 10:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:32:31] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:33:05 [end_date_ymd] => 2025-01-23 10:33:05 [RateCDR] => 1 ) [2025-01-23 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:33:05' and `end` < '2025-01-23 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:33:25] Production.INFO: count ==2895 [2025-01-23 10:33:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:33:05 - End Time 2025-01-23 10:33:05 [2025-01-23 10:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311741', 'tblTempUsageDetail_20' ) start [2025-01-23 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311741', 'tblTempUsageDetail_20' ) end [2025-01-23 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311741', 'tblTempVendorCDR_20' ) start [2025-01-23 10:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311741', 'tblTempVendorCDR_20' ) end [2025-01-23 10:33:26] Production.INFO: ProcessCDR(1,14311741,1,1,2) [2025-01-23 10:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311741', 'tblTempUsageDetail_20' ) start [2025-01-23 10:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311741', 'tblTempUsageDetail_20' ) end [2025-01-23 10:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:33:31] Production.INFO: ==15456== Releasing lock... [2025-01-23 10:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:33:31] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:34:04 [end_date_ymd] => 2025-01-23 10:34:04 [RateCDR] => 1 ) [2025-01-23 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-23 07:34:04' and `end` < '2025-01-23 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-23 10:34:25] Production.INFO: count ==2921 [2025-01-23 10:34:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:34:04 - End Time 2025-01-23 10:34:04 [2025-01-23 10:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311746', 'tblTempUsageDetail_20' ) start [2025-01-23 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311746', 'tblTempUsageDetail_20' ) end [2025-01-23 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311746', 'tblTempVendorCDR_20' ) start [2025-01-23 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311746', 'tblTempVendorCDR_20' ) end [2025-01-23 10:34:26] Production.INFO: ProcessCDR(1,14311746,1,1,2) [2025-01-23 10:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311746', 'tblTempUsageDetail_20' ) start [2025-01-23 10:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311746', 'tblTempUsageDetail_20' ) end [2025-01-23 10:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:34:30] Production.INFO: ==15526== Releasing lock... [2025-01-23 10:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:34:31] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:35:05 [end_date_ymd] => 2025-01-23 10:35:05 [RateCDR] => 1 ) [2025-01-23 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:35:05' and `end` < '2025-01-23 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:35:27] Production.INFO: count ==2931 [2025-01-23 10:35:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:35:05 - End Time 2025-01-23 10:35:05 [2025-01-23 10:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311751', 'tblTempUsageDetail_20' ) start [2025-01-23 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311751', 'tblTempUsageDetail_20' ) end [2025-01-23 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311751', 'tblTempVendorCDR_20' ) start [2025-01-23 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311751', 'tblTempVendorCDR_20' ) end [2025-01-23 10:35:28] Production.INFO: ProcessCDR(1,14311751,1,1,2) [2025-01-23 10:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311751', 'tblTempUsageDetail_20' ) start [2025-01-23 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311751', 'tblTempUsageDetail_20' ) end [2025-01-23 10:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:35:33] Production.INFO: ==15601== Releasing lock... [2025-01-23 10:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:35:33] Production.INFO: 50 MB #Memory Used# [2025-01-23 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:36:06 [end_date_ymd] => 2025-01-23 10:36:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:36:06' and `end` < '2025-01-23 10: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-23 10:36:23] Production.INFO: count ==2945 [2025-01-23 10:36:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:36:06 - End Time 2025-01-23 10:36:06 [2025-01-23 10:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311756', 'tblTempUsageDetail_20' ) start [2025-01-23 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311756', 'tblTempUsageDetail_20' ) end [2025-01-23 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311756', 'tblTempVendorCDR_20' ) start [2025-01-23 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311756', 'tblTempVendorCDR_20' ) end [2025-01-23 10:36:24] Production.INFO: ProcessCDR(1,14311756,1,1,2) [2025-01-23 10:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311756', 'tblTempUsageDetail_20' ) start [2025-01-23 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311756', 'tblTempUsageDetail_20' ) end [2025-01-23 10:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:36:29] Production.INFO: ==15676== Releasing lock... [2025-01-23 10:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:36:29] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:37:05 [end_date_ymd] => 2025-01-23 10:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:37:05' and `end` < '2025-01-23 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-23 10:37:27] Production.INFO: count ==2973 [2025-01-23 10:37:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:37:05 - End Time 2025-01-23 10:37:05 [2025-01-23 10:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311761', 'tblTempUsageDetail_20' ) start [2025-01-23 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311761', 'tblTempUsageDetail_20' ) end [2025-01-23 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311761', 'tblTempVendorCDR_20' ) start [2025-01-23 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311761', 'tblTempVendorCDR_20' ) end [2025-01-23 10:37:28] Production.INFO: ProcessCDR(1,14311761,1,1,2) [2025-01-23 10:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311761', 'tblTempUsageDetail_20' ) start [2025-01-23 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311761', 'tblTempUsageDetail_20' ) end [2025-01-23 10:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:37:33] Production.INFO: ==15750== Releasing lock... [2025-01-23 10:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:37:33] Production.INFO: 50 MB #Memory Used# [2025-01-23 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:38:06 [end_date_ymd] => 2025-01-23 10:38:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:38:06' and `end` < '2025-01-23 10: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-23 10:38:26] Production.INFO: count ==2994 [2025-01-23 10:38:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:38:06 - End Time 2025-01-23 10:38:06 [2025-01-23 10:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311766', 'tblTempUsageDetail_20' ) start [2025-01-23 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311766', 'tblTempUsageDetail_20' ) end [2025-01-23 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311766', 'tblTempVendorCDR_20' ) start [2025-01-23 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311766', 'tblTempVendorCDR_20' ) end [2025-01-23 10:38:28] Production.INFO: ProcessCDR(1,14311766,1,1,2) [2025-01-23 10:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311766', 'tblTempUsageDetail_20' ) start [2025-01-23 10:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311766', 'tblTempUsageDetail_20' ) end [2025-01-23 10:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:38:33] Production.INFO: ==15827== Releasing lock... [2025-01-23 10:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:38:33] Production.INFO: 50.25 MB #Memory Used# [2025-01-23 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:39:05 [end_date_ymd] => 2025-01-23 10:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:39:05' and `end` < '2025-01-23 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-23 10:39:32] Production.INFO: count ==3012 [2025-01-23 10:39:33] Production.ERROR: pbx CDR StartTime 2025-01-23 07:39:05 - End Time 2025-01-23 10:39:05 [2025-01-23 10:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311771', 'tblTempUsageDetail_20' ) start [2025-01-23 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311771', 'tblTempUsageDetail_20' ) end [2025-01-23 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311771', 'tblTempVendorCDR_20' ) start [2025-01-23 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311771', 'tblTempVendorCDR_20' ) end [2025-01-23 10:39:34] Production.INFO: ProcessCDR(1,14311771,1,1,2) [2025-01-23 10:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311771', 'tblTempUsageDetail_20' ) start [2025-01-23 10:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311771', 'tblTempUsageDetail_20' ) end [2025-01-23 10:39:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:39:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:39:39] Production.INFO: ==15905== Releasing lock... [2025-01-23 10:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:39:39] Production.INFO: 50.5 MB #Memory Used# [2025-01-23 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:40:07 [end_date_ymd] => 2025-01-23 10:40:07 [RateCDR] => 1 ) [2025-01-23 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:40:07' and `end` < '2025-01-23 10:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:40:35] Production.INFO: count ==3061 [2025-01-23 10:40:36] Production.ERROR: pbx CDR StartTime 2025-01-23 07:40:07 - End Time 2025-01-23 10:40:07 [2025-01-23 10:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311776', 'tblTempUsageDetail_20' ) start [2025-01-23 10:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311776', 'tblTempUsageDetail_20' ) end [2025-01-23 10:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311776', 'tblTempVendorCDR_20' ) start [2025-01-23 10:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311776', 'tblTempVendorCDR_20' ) end [2025-01-23 10:40:36] Production.INFO: ProcessCDR(1,14311776,1,1,2) [2025-01-23 10:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311776', 'tblTempUsageDetail_20' ) start [2025-01-23 10:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311776', 'tblTempUsageDetail_20' ) end [2025-01-23 10:40:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:40:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:40:42] Production.INFO: ==15980== Releasing lock... [2025-01-23 10:40:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:40:42] Production.INFO: 50.75 MB #Memory Used# [2025-01-23 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:41:05 [end_date_ymd] => 2025-01-23 10:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:41:05' and `end` < '2025-01-23 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-23 10:41:28] Production.INFO: count ==3213 [2025-01-23 10:41:29] Production.ERROR: pbx CDR StartTime 2025-01-23 07:41:05 - End Time 2025-01-23 10:41:05 [2025-01-23 10:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311782', 'tblTempUsageDetail_20' ) start [2025-01-23 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311782', 'tblTempUsageDetail_20' ) end [2025-01-23 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311782', 'tblTempVendorCDR_20' ) start [2025-01-23 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311782', 'tblTempVendorCDR_20' ) end [2025-01-23 10:41:29] Production.INFO: ProcessCDR(1,14311782,1,1,2) [2025-01-23 10:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311782', 'tblTempUsageDetail_20' ) start [2025-01-23 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311782', 'tblTempUsageDetail_20' ) end [2025-01-23 10:41:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:41:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:41:34] Production.INFO: ==16054== Releasing lock... [2025-01-23 10:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:41:34] Production.INFO: 52 MB #Memory Used# [2025-01-23 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:42:06 [end_date_ymd] => 2025-01-23 10:42:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:42:06' and `end` < '2025-01-23 10: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-23 10:42:33] Production.INFO: count ==3236 [2025-01-23 10:42:34] Production.ERROR: pbx CDR StartTime 2025-01-23 07:42:06 - End Time 2025-01-23 10:42:06 [2025-01-23 10:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311787', 'tblTempUsageDetail_20' ) start [2025-01-23 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311787', 'tblTempUsageDetail_20' ) end [2025-01-23 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311787', 'tblTempVendorCDR_20' ) start [2025-01-23 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311787', 'tblTempVendorCDR_20' ) end [2025-01-23 10:42:34] Production.INFO: ProcessCDR(1,14311787,1,1,2) [2025-01-23 10:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311787', 'tblTempUsageDetail_20' ) start [2025-01-23 10:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311787', 'tblTempUsageDetail_20' ) end [2025-01-23 10:42:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:42:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:42:39] Production.INFO: ==16129== Releasing lock... [2025-01-23 10:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:42:39] Production.INFO: 52.25 MB #Memory Used# [2025-01-23 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:43:05 [end_date_ymd] => 2025-01-23 10:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:43:05' and `end` < '2025-01-23 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-23 10:43:26] Production.INFO: count ==3246 [2025-01-23 10:43:27] Production.ERROR: pbx CDR StartTime 2025-01-23 07:43:05 - End Time 2025-01-23 10:43:05 [2025-01-23 10:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311792', 'tblTempUsageDetail_20' ) start [2025-01-23 10:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311792', 'tblTempUsageDetail_20' ) end [2025-01-23 10:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311792', 'tblTempVendorCDR_20' ) start [2025-01-23 10:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311792', 'tblTempVendorCDR_20' ) end [2025-01-23 10:43:27] Production.INFO: ProcessCDR(1,14311792,1,1,2) [2025-01-23 10:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311792', 'tblTempUsageDetail_20' ) start [2025-01-23 10:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311792', 'tblTempUsageDetail_20' ) end [2025-01-23 10:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:43:33] Production.INFO: ==16207== Releasing lock... [2025-01-23 10:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:43:33] Production.INFO: 52.25 MB #Memory Used# [2025-01-23 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:44:05 [end_date_ymd] => 2025-01-23 10:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:44:05' and `end` < '2025-01-23 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-23 10:44:22] Production.INFO: count ==3255 [2025-01-23 10:44:23] Production.ERROR: pbx CDR StartTime 2025-01-23 07:44:05 - End Time 2025-01-23 10:44:05 [2025-01-23 10:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311797', 'tblTempUsageDetail_20' ) start [2025-01-23 10:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311797', 'tblTempUsageDetail_20' ) end [2025-01-23 10:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311797', 'tblTempVendorCDR_20' ) start [2025-01-23 10:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311797', 'tblTempVendorCDR_20' ) end [2025-01-23 10:44:23] Production.INFO: ProcessCDR(1,14311797,1,1,2) [2025-01-23 10:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311797', 'tblTempUsageDetail_20' ) start [2025-01-23 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311797', 'tblTempUsageDetail_20' ) end [2025-01-23 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:44:26] Production.INFO: ==16319== Releasing lock... [2025-01-23 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:44:26] Production.INFO: 52.5 MB #Memory Used# [2025-01-23 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:45:06 [end_date_ymd] => 2025-01-23 10:45:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:45:06' and `end` < '2025-01-23 10: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-23 10:45:24] Production.INFO: count ==3290 [2025-01-23 10:45:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:45:06 - End Time 2025-01-23 10:45:06 [2025-01-23 10:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311802', 'tblTempUsageDetail_20' ) start [2025-01-23 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311802', 'tblTempUsageDetail_20' ) end [2025-01-23 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311802', 'tblTempVendorCDR_20' ) start [2025-01-23 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311802', 'tblTempVendorCDR_20' ) end [2025-01-23 10:45:26] Production.INFO: ProcessCDR(1,14311802,1,1,2) [2025-01-23 10:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311802', 'tblTempUsageDetail_20' ) start [2025-01-23 10:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311802', 'tblTempUsageDetail_20' ) end [2025-01-23 10:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:45:31] Production.INFO: ==16391== Releasing lock... [2025-01-23 10:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:45:31] Production.INFO: 52.5 MB #Memory Used# [2025-01-23 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:46:06 [end_date_ymd] => 2025-01-23 10:46:06 [RateCDR] => 1 ) [2025-01-23 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:46:06' and `end` < '2025-01-23 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:46:19] Production.INFO: count ==3300 [2025-01-23 10:46:20] Production.ERROR: pbx CDR StartTime 2025-01-23 07:46:06 - End Time 2025-01-23 10:46:06 [2025-01-23 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311807', 'tblTempUsageDetail_20' ) start [2025-01-23 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311807', 'tblTempUsageDetail_20' ) end [2025-01-23 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311807', 'tblTempVendorCDR_20' ) start [2025-01-23 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311807', 'tblTempVendorCDR_20' ) end [2025-01-23 10:46:20] Production.INFO: ProcessCDR(1,14311807,1,1,2) [2025-01-23 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311807', 'tblTempUsageDetail_20' ) start [2025-01-23 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311807', 'tblTempUsageDetail_20' ) end [2025-01-23 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:46:25] Production.INFO: ==16464== Releasing lock... [2025-01-23 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:46:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:47:05 [end_date_ymd] => 2025-01-23 10:47:05 [RateCDR] => 1 ) [2025-01-23 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:47:05' and `end` < '2025-01-23 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:47:27] Production.INFO: count ==3326 [2025-01-23 10:47:28] Production.ERROR: pbx CDR StartTime 2025-01-23 07:47:05 - End Time 2025-01-23 10:47:05 [2025-01-23 10:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311812', 'tblTempUsageDetail_20' ) start [2025-01-23 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311812', 'tblTempUsageDetail_20' ) end [2025-01-23 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311812', 'tblTempVendorCDR_20' ) start [2025-01-23 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311812', 'tblTempVendorCDR_20' ) end [2025-01-23 10:47:28] Production.INFO: ProcessCDR(1,14311812,1,1,2) [2025-01-23 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311812', 'tblTempUsageDetail_20' ) start [2025-01-23 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311812', 'tblTempUsageDetail_20' ) end [2025-01-23 10:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:47:33] Production.INFO: ==16540== Releasing lock... [2025-01-23 10:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:47:33] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:48:05 [end_date_ymd] => 2025-01-23 10:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:48:05' and `end` < '2025-01-23 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-23 10:48:24] Production.INFO: count ==3357 [2025-01-23 10:48:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:48:05 - End Time 2025-01-23 10:48:05 [2025-01-23 10:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311817', 'tblTempUsageDetail_20' ) start [2025-01-23 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311817', 'tblTempUsageDetail_20' ) end [2025-01-23 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311817', 'tblTempVendorCDR_20' ) start [2025-01-23 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311817', 'tblTempVendorCDR_20' ) end [2025-01-23 10:48:25] Production.INFO: ProcessCDR(1,14311817,1,1,2) [2025-01-23 10:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311817', 'tblTempUsageDetail_20' ) start [2025-01-23 10:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311817', 'tblTempUsageDetail_20' ) end [2025-01-23 10:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:48:30] Production.INFO: ==16614== Releasing lock... [2025-01-23 10:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:48:30] Production.INFO: 53 MB #Memory Used# [2025-01-23 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:49:05 [end_date_ymd] => 2025-01-23 10:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:49:05' and `end` < '2025-01-23 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-23 10:49:22] Production.INFO: count ==3363 [2025-01-23 10:49:23] Production.ERROR: pbx CDR StartTime 2025-01-23 07:49:05 - End Time 2025-01-23 10:49:05 [2025-01-23 10:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311822', 'tblTempUsageDetail_20' ) start [2025-01-23 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311822', 'tblTempUsageDetail_20' ) end [2025-01-23 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311822', 'tblTempVendorCDR_20' ) start [2025-01-23 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311822', 'tblTempVendorCDR_20' ) end [2025-01-23 10:49:23] Production.INFO: ProcessCDR(1,14311822,1,1,2) [2025-01-23 10:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311822', 'tblTempUsageDetail_20' ) start [2025-01-23 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311822', 'tblTempUsageDetail_20' ) end [2025-01-23 10:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:49:28] Production.INFO: ==16691== Releasing lock... [2025-01-23 10:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:49:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-23 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:50:06 [end_date_ymd] => 2025-01-23 10:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 07:50:06' and `end` < '2025-01-23 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-23 10:50:21] Production.INFO: count ==3381 [2025-01-23 10:50:22] Production.ERROR: pbx CDR StartTime 2025-01-23 07:50:06 - End Time 2025-01-23 10:50:06 [2025-01-23 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311826', 'tblTempUsageDetail_20' ) start [2025-01-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311826', 'tblTempUsageDetail_20' ) end [2025-01-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311826', 'tblTempVendorCDR_20' ) start [2025-01-23 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311826', 'tblTempVendorCDR_20' ) end [2025-01-23 10:50:22] Production.INFO: ProcessCDR(1,14311826,1,1,2) [2025-01-23 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311826', 'tblTempUsageDetail_20' ) start [2025-01-23 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311826', 'tblTempUsageDetail_20' ) end [2025-01-23 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:50:27] Production.INFO: ==16769== Releasing lock... [2025-01-23 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:50:27] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:51:05 [end_date_ymd] => 2025-01-23 10:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:51:05' and `end` < '2025-01-23 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-23 10:51:23] Production.INFO: count ==3485 [2025-01-23 10:51:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:51:05 - End Time 2025-01-23 10:51:05 [2025-01-23 10:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311833', 'tblTempUsageDetail_20' ) start [2025-01-23 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311833', 'tblTempUsageDetail_20' ) end [2025-01-23 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311833', 'tblTempVendorCDR_20' ) start [2025-01-23 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311833', 'tblTempVendorCDR_20' ) end [2025-01-23 10:51:25] Production.INFO: ProcessCDR(1,14311833,1,1,2) [2025-01-23 10:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311833', 'tblTempUsageDetail_20' ) start [2025-01-23 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311833', 'tblTempUsageDetail_20' ) end [2025-01-23 10:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:51:30] Production.INFO: ==16845== Releasing lock... [2025-01-23 10:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:51:30] Production.INFO: 54 MB #Memory Used# [2025-01-23 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:52:06 [end_date_ymd] => 2025-01-23 10:52:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:52:06' and `end` < '2025-01-23 10: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-23 10:52:25] Production.INFO: count ==3511 [2025-01-23 10:52:27] Production.ERROR: pbx CDR StartTime 2025-01-23 07:52:06 - End Time 2025-01-23 10:52:06 [2025-01-23 10:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311838', 'tblTempUsageDetail_20' ) start [2025-01-23 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311838', 'tblTempUsageDetail_20' ) end [2025-01-23 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311838', 'tblTempVendorCDR_20' ) start [2025-01-23 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311838', 'tblTempVendorCDR_20' ) end [2025-01-23 10:52:27] Production.INFO: ProcessCDR(1,14311838,1,1,2) [2025-01-23 10:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311838', 'tblTempUsageDetail_20' ) start [2025-01-23 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311838', 'tblTempUsageDetail_20' ) end [2025-01-23 10:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:52:32] Production.INFO: ==16919== Releasing lock... [2025-01-23 10:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:52:32] Production.INFO: 54.25 MB #Memory Used# [2025-01-23 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:53:06 [end_date_ymd] => 2025-01-23 10:53:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:53:06' and `end` < '2025-01-23 10: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-23 10:53:24] Production.INFO: count ==3529 [2025-01-23 10:53:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:53:06 - End Time 2025-01-23 10:53:06 [2025-01-23 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311843', 'tblTempUsageDetail_20' ) start [2025-01-23 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311843', 'tblTempUsageDetail_20' ) end [2025-01-23 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311843', 'tblTempVendorCDR_20' ) start [2025-01-23 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311843', 'tblTempVendorCDR_20' ) end [2025-01-23 10:53:25] Production.INFO: ProcessCDR(1,14311843,1,1,2) [2025-01-23 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311843', 'tblTempUsageDetail_20' ) start [2025-01-23 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311843', 'tblTempUsageDetail_20' ) end [2025-01-23 10:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:53:30] Production.INFO: ==16994== Releasing lock... [2025-01-23 10:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:53:30] Production.INFO: 54.75 MB #Memory Used# [2025-01-23 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:54:05 [end_date_ymd] => 2025-01-23 10:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 07:54:05' and `end` < '2025-01-23 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-23 10:54:25] Production.INFO: count ==3533 [2025-01-23 10:54:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:54:05 - End Time 2025-01-23 10:54:05 [2025-01-23 10:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311848', 'tblTempUsageDetail_20' ) start [2025-01-23 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311848', 'tblTempUsageDetail_20' ) end [2025-01-23 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311848', 'tblTempVendorCDR_20' ) start [2025-01-23 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311848', 'tblTempVendorCDR_20' ) end [2025-01-23 10:54:26] Production.INFO: ProcessCDR(1,14311848,1,1,2) [2025-01-23 10:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311848', 'tblTempUsageDetail_20' ) start [2025-01-23 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311848', 'tblTempUsageDetail_20' ) end [2025-01-23 10:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:54:31] Production.INFO: ==17071== Releasing lock... [2025-01-23 10:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:54:31] Production.INFO: 54.5 MB #Memory Used# [2025-01-23 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:55:05 [end_date_ymd] => 2025-01-23 10:55:05 [RateCDR] => 1 ) [2025-01-23 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:55:05' and `end` < '2025-01-23 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:55:30] Production.INFO: count ==3561 [2025-01-23 10:55:32] Production.ERROR: pbx CDR StartTime 2025-01-23 07:55:05 - End Time 2025-01-23 10:55:05 [2025-01-23 10:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311853', 'tblTempUsageDetail_20' ) start [2025-01-23 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311853', 'tblTempUsageDetail_20' ) end [2025-01-23 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311853', 'tblTempVendorCDR_20' ) start [2025-01-23 10:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311853', 'tblTempVendorCDR_20' ) end [2025-01-23 10:55:32] Production.INFO: ProcessCDR(1,14311853,1,1,2) [2025-01-23 10:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311853', 'tblTempUsageDetail_20' ) start [2025-01-23 10:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311853', 'tblTempUsageDetail_20' ) end [2025-01-23 10:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:55:38] Production.INFO: ==17147== Releasing lock... [2025-01-23 10:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:55:38] Production.INFO: 54.75 MB #Memory Used# [2025-01-23 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:56:05 [end_date_ymd] => 2025-01-23 10:56:05 [RateCDR] => 1 ) [2025-01-23 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:56:05' and `end` < '2025-01-23 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:56:25] Production.INFO: count ==3582 [2025-01-23 10:56:26] Production.ERROR: pbx CDR StartTime 2025-01-23 07:56:05 - End Time 2025-01-23 10:56:05 [2025-01-23 10:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311858', 'tblTempUsageDetail_20' ) start [2025-01-23 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311858', 'tblTempUsageDetail_20' ) end [2025-01-23 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311858', 'tblTempVendorCDR_20' ) start [2025-01-23 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311858', 'tblTempVendorCDR_20' ) end [2025-01-23 10:56:26] Production.INFO: ProcessCDR(1,14311858,1,1,2) [2025-01-23 10:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311858', 'tblTempUsageDetail_20' ) start [2025-01-23 10:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311858', 'tblTempUsageDetail_20' ) end [2025-01-23 10:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:56:32] Production.INFO: ==17226== Releasing lock... [2025-01-23 10:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:56:32] Production.INFO: 54.75 MB #Memory Used# [2025-01-23 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:57:06 [end_date_ymd] => 2025-01-23 10:57:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:57:06' and `end` < '2025-01-23 10: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-23 10:57:30] Production.INFO: count ==3599 [2025-01-23 10:57:31] Production.ERROR: pbx CDR StartTime 2025-01-23 07:57:06 - End Time 2025-01-23 10:57:06 [2025-01-23 10:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311863', 'tblTempUsageDetail_20' ) start [2025-01-23 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311863', 'tblTempUsageDetail_20' ) end [2025-01-23 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311863', 'tblTempVendorCDR_20' ) start [2025-01-23 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311863', 'tblTempVendorCDR_20' ) end [2025-01-23 10:57:31] Production.INFO: ProcessCDR(1,14311863,1,1,2) [2025-01-23 10:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311863', 'tblTempUsageDetail_20' ) start [2025-01-23 10:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311863', 'tblTempUsageDetail_20' ) end [2025-01-23 10:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:57:36] Production.INFO: ==17303== Releasing lock... [2025-01-23 10:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:57:36] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:58:06 [end_date_ymd] => 2025-01-23 10:58:06 [RateCDR] => 1 ) [2025-01-23 10: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-23 07:58:06' and `end` < '2025-01-23 10: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-23 10:58:24] Production.INFO: count ==3616 [2025-01-23 10:58:25] Production.ERROR: pbx CDR StartTime 2025-01-23 07:58:06 - End Time 2025-01-23 10:58:06 [2025-01-23 10:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311868', 'tblTempUsageDetail_20' ) start [2025-01-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311868', 'tblTempUsageDetail_20' ) end [2025-01-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311868', 'tblTempVendorCDR_20' ) start [2025-01-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311868', 'tblTempVendorCDR_20' ) end [2025-01-23 10:58:26] Production.INFO: ProcessCDR(1,14311868,1,1,2) [2025-01-23 10:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311868', 'tblTempUsageDetail_20' ) start [2025-01-23 10:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311868', 'tblTempUsageDetail_20' ) end [2025-01-23 10:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:58:31] Production.INFO: ==17383== Releasing lock... [2025-01-23 10:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:58:31] Production.INFO: 56 MB #Memory Used# [2025-01-23 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 07:59:06 [end_date_ymd] => 2025-01-23 10:59:06 [RateCDR] => 1 ) [2025-01-23 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 07:59:06' and `end` < '2025-01-23 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 10:59:22] Production.INFO: count ==3640 [2025-01-23 10:59:24] Production.ERROR: pbx CDR StartTime 2025-01-23 07:59:06 - End Time 2025-01-23 10:59:06 [2025-01-23 10:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311873', 'tblTempUsageDetail_20' ) start [2025-01-23 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311873', 'tblTempUsageDetail_20' ) end [2025-01-23 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311873', 'tblTempVendorCDR_20' ) start [2025-01-23 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311873', 'tblTempVendorCDR_20' ) end [2025-01-23 10:59:24] Production.INFO: ProcessCDR(1,14311873,1,1,2) [2025-01-23 10:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 10:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311873', 'tblTempUsageDetail_20' ) start [2025-01-23 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311873', 'tblTempUsageDetail_20' ) end [2025-01-23 10:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 10:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 10:59:30] Production.INFO: ==17499== Releasing lock... [2025-01-23 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 10:59:30] Production.INFO: 56 MB #Memory Used# [2025-01-23 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:00:06 [end_date_ymd] => 2025-01-23 11:00:06 [RateCDR] => 1 ) [2025-01-23 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:00:06' and `end` < '2025-01-23 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:00:24] Production.INFO: count ==3657 [2025-01-23 11:00:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:00:06 - End Time 2025-01-23 11:00:06 [2025-01-23 11:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311879', 'tblTempUsageDetail_20' ) start [2025-01-23 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311879', 'tblTempUsageDetail_20' ) end [2025-01-23 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311879', 'tblTempVendorCDR_20' ) start [2025-01-23 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311879', 'tblTempVendorCDR_20' ) end [2025-01-23 11:00:26] Production.INFO: ProcessCDR(1,14311879,1,1,2) [2025-01-23 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311879', 'tblTempUsageDetail_20' ) start [2025-01-23 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311879', 'tblTempUsageDetail_20' ) end [2025-01-23 11:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:00:31] Production.INFO: ==17581== Releasing lock... [2025-01-23 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:00:31] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:01:06 [end_date_ymd] => 2025-01-23 11:01:06 [RateCDR] => 1 ) [2025-01-23 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:01:06' and `end` < '2025-01-23 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:01:20] Production.INFO: count ==3754 [2025-01-23 11:01:22] Production.ERROR: pbx CDR StartTime 2025-01-23 08:01:06 - End Time 2025-01-23 11:01:06 [2025-01-23 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311884', 'tblTempUsageDetail_20' ) start [2025-01-23 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311884', 'tblTempUsageDetail_20' ) end [2025-01-23 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311884', 'tblTempVendorCDR_20' ) start [2025-01-23 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311884', 'tblTempVendorCDR_20' ) end [2025-01-23 11:01:22] Production.INFO: ProcessCDR(1,14311884,1,1,2) [2025-01-23 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311884', 'tblTempUsageDetail_20' ) start [2025-01-23 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311884', 'tblTempUsageDetail_20' ) end [2025-01-23 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:01:27] Production.INFO: ==17675== Releasing lock... [2025-01-23 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:01:27] Production.INFO: 56 MB #Memory Used# [2025-01-23 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:02:06 [end_date_ymd] => 2025-01-23 11:02:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:02:06' and `end` < '2025-01-23 11: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-23 11:02:22] Production.INFO: count ==3769 [2025-01-23 11:02:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:02:06 - End Time 2025-01-23 11:02:06 [2025-01-23 11:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311889', 'tblTempUsageDetail_20' ) start [2025-01-23 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311889', 'tblTempUsageDetail_20' ) end [2025-01-23 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311889', 'tblTempVendorCDR_20' ) start [2025-01-23 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311889', 'tblTempVendorCDR_20' ) end [2025-01-23 11:02:24] Production.INFO: ProcessCDR(1,14311889,1,1,2) [2025-01-23 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311889', 'tblTempUsageDetail_20' ) start [2025-01-23 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311889', 'tblTempUsageDetail_20' ) end [2025-01-23 11:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:02:29] Production.INFO: ==17832== Releasing lock... [2025-01-23 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:02:29] Production.INFO: 56.25 MB #Memory Used# [2025-01-23 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:03:05 [end_date_ymd] => 2025-01-23 11:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:03:05' and `end` < '2025-01-23 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-23 11:03:20] Production.INFO: count ==3775 [2025-01-23 11:03:21] Production.ERROR: pbx CDR StartTime 2025-01-23 08:03:05 - End Time 2025-01-23 11:03:05 [2025-01-23 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311894', 'tblTempUsageDetail_20' ) start [2025-01-23 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311894', 'tblTempUsageDetail_20' ) end [2025-01-23 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311894', 'tblTempVendorCDR_20' ) start [2025-01-23 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311894', 'tblTempVendorCDR_20' ) end [2025-01-23 11:03:22] Production.INFO: ProcessCDR(1,14311894,1,1,2) [2025-01-23 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311894', 'tblTempUsageDetail_20' ) start [2025-01-23 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311894', 'tblTempUsageDetail_20' ) end [2025-01-23 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:03:27] Production.INFO: ==17912== Releasing lock... [2025-01-23 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:03:27] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:04:06 [end_date_ymd] => 2025-01-23 11:04:06 [RateCDR] => 1 ) [2025-01-23 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:04:06' and `end` < '2025-01-23 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:04:19] Production.INFO: count ==3769 [2025-01-23 11:04:21] Production.ERROR: pbx CDR StartTime 2025-01-23 08:04:06 - End Time 2025-01-23 11:04:06 [2025-01-23 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311899', 'tblTempUsageDetail_20' ) start [2025-01-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311899', 'tblTempUsageDetail_20' ) end [2025-01-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311899', 'tblTempVendorCDR_20' ) start [2025-01-23 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311899', 'tblTempVendorCDR_20' ) end [2025-01-23 11:04:21] Production.INFO: ProcessCDR(1,14311899,1,1,2) [2025-01-23 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311899', 'tblTempUsageDetail_20' ) start [2025-01-23 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311899', 'tblTempUsageDetail_20' ) end [2025-01-23 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:04:26] Production.INFO: ==17988== Releasing lock... [2025-01-23 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:04:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:05:05 [end_date_ymd] => 2025-01-23 11:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:05:05' and `end` < '2025-01-23 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-23 11:05:26] Production.INFO: count ==3776 [2025-01-23 11:05:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:05:05 - End Time 2025-01-23 11:05:05 [2025-01-23 11:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311904', 'tblTempUsageDetail_20' ) start [2025-01-23 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311904', 'tblTempUsageDetail_20' ) end [2025-01-23 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311904', 'tblTempVendorCDR_20' ) start [2025-01-23 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311904', 'tblTempVendorCDR_20' ) end [2025-01-23 11:05:27] Production.INFO: ProcessCDR(1,14311904,1,1,2) [2025-01-23 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311904', 'tblTempUsageDetail_20' ) start [2025-01-23 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311904', 'tblTempUsageDetail_20' ) end [2025-01-23 11:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:05:33] Production.INFO: ==18141== Releasing lock... [2025-01-23 11:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:05:33] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:06:06 [end_date_ymd] => 2025-01-23 11:06:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:06:06' and `end` < '2025-01-23 11: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-23 11:06:24] Production.INFO: count ==3795 [2025-01-23 11:06:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:06:06 - End Time 2025-01-23 11:06:06 [2025-01-23 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311909', 'tblTempUsageDetail_20' ) start [2025-01-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311909', 'tblTempUsageDetail_20' ) end [2025-01-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311909', 'tblTempVendorCDR_20' ) start [2025-01-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311909', 'tblTempVendorCDR_20' ) end [2025-01-23 11:06:25] Production.INFO: ProcessCDR(1,14311909,1,1,2) [2025-01-23 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311909', 'tblTempUsageDetail_20' ) start [2025-01-23 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311909', 'tblTempUsageDetail_20' ) end [2025-01-23 11:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:06:31] Production.INFO: ==18220== Releasing lock... [2025-01-23 11:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:06:31] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:07:06 [end_date_ymd] => 2025-01-23 11:07:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:07:06' and `end` < '2025-01-23 11: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-23 11:07:25] Production.INFO: count ==3803 [2025-01-23 11:07:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:07:06 - End Time 2025-01-23 11:07:06 [2025-01-23 11:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311914', 'tblTempUsageDetail_20' ) start [2025-01-23 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311914', 'tblTempUsageDetail_20' ) end [2025-01-23 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311914', 'tblTempVendorCDR_20' ) start [2025-01-23 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311914', 'tblTempVendorCDR_20' ) end [2025-01-23 11:07:27] Production.INFO: ProcessCDR(1,14311914,1,1,2) [2025-01-23 11:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311914', 'tblTempUsageDetail_20' ) start [2025-01-23 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311914', 'tblTempUsageDetail_20' ) end [2025-01-23 11:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:07:31] Production.INFO: ==18294== Releasing lock... [2025-01-23 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:07:31] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:08:05 [end_date_ymd] => 2025-01-23 11:08:05 [RateCDR] => 1 ) [2025-01-23 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:08:05' and `end` < '2025-01-23 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:08:22] Production.INFO: count ==3803 [2025-01-23 11:08:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:08:05 - End Time 2025-01-23 11:08:05 [2025-01-23 11:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311919', 'tblTempUsageDetail_20' ) start [2025-01-23 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311919', 'tblTempUsageDetail_20' ) end [2025-01-23 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311919', 'tblTempVendorCDR_20' ) start [2025-01-23 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311919', 'tblTempVendorCDR_20' ) end [2025-01-23 11:08:24] Production.INFO: ProcessCDR(1,14311919,1,1,2) [2025-01-23 11:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311919', 'tblTempUsageDetail_20' ) start [2025-01-23 11:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311919', 'tblTempUsageDetail_20' ) end [2025-01-23 11:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:08:29] Production.INFO: ==18411== Releasing lock... [2025-01-23 11:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:08:29] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:09:05 [end_date_ymd] => 2025-01-23 11:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:09:05' and `end` < '2025-01-23 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-23 11:09:19] Production.INFO: count ==3796 [2025-01-23 11:09:20] Production.ERROR: pbx CDR StartTime 2025-01-23 08:09:05 - End Time 2025-01-23 11:09:05 [2025-01-23 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311924', 'tblTempUsageDetail_20' ) start [2025-01-23 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311924', 'tblTempUsageDetail_20' ) end [2025-01-23 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311924', 'tblTempVendorCDR_20' ) start [2025-01-23 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311924', 'tblTempVendorCDR_20' ) end [2025-01-23 11:09:20] Production.INFO: ProcessCDR(1,14311924,1,1,2) [2025-01-23 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311924', 'tblTempUsageDetail_20' ) start [2025-01-23 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311924', 'tblTempUsageDetail_20' ) end [2025-01-23 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:09:25] Production.INFO: ==18527== Releasing lock... [2025-01-23 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:09:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:10:06 [end_date_ymd] => 2025-01-23 11:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 08:10:06' and `end` < '2025-01-23 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-23 11:10:24] Production.INFO: count ==3805 [2025-01-23 11:10:26] Production.ERROR: pbx CDR StartTime 2025-01-23 08:10:06 - End Time 2025-01-23 11:10:06 [2025-01-23 11:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311930', 'tblTempUsageDetail_20' ) start [2025-01-23 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311930', 'tblTempUsageDetail_20' ) end [2025-01-23 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311930', 'tblTempVendorCDR_20' ) start [2025-01-23 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311930', 'tblTempVendorCDR_20' ) end [2025-01-23 11:10:26] Production.INFO: ProcessCDR(1,14311930,1,1,2) [2025-01-23 11:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311930', 'tblTempUsageDetail_20' ) start [2025-01-23 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311930', 'tblTempUsageDetail_20' ) end [2025-01-23 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:10:31] Production.INFO: ==18609== Releasing lock... [2025-01-23 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:10:31] Production.INFO: 56.5 MB #Memory Used# [2025-01-23 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:11:06 [end_date_ymd] => 2025-01-23 11:11:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:11:06' and `end` < '2025-01-23 11: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-23 11:11:26] Production.INFO: count ==3908 [2025-01-23 11:11:28] Production.ERROR: pbx CDR StartTime 2025-01-23 08:11:06 - End Time 2025-01-23 11:11:06 [2025-01-23 11:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311935', 'tblTempUsageDetail_20' ) start [2025-01-23 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311935', 'tblTempUsageDetail_20' ) end [2025-01-23 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311935', 'tblTempVendorCDR_20' ) start [2025-01-23 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311935', 'tblTempVendorCDR_20' ) end [2025-01-23 11:11:28] Production.INFO: ProcessCDR(1,14311935,1,1,2) [2025-01-23 11:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311935', 'tblTempUsageDetail_20' ) start [2025-01-23 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311935', 'tblTempUsageDetail_20' ) end [2025-01-23 11:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:11:34] Production.INFO: ==18691== Releasing lock... [2025-01-23 11:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:11:34] Production.INFO: 57.25 MB #Memory Used# [2025-01-23 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:12:06 [end_date_ymd] => 2025-01-23 11:12:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:12:06' and `end` < '2025-01-23 11: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-23 11:12:32] Production.INFO: count ==3918 [2025-01-23 11:12:33] Production.ERROR: pbx CDR StartTime 2025-01-23 08:12:06 - End Time 2025-01-23 11:12:06 [2025-01-23 11:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311940', 'tblTempUsageDetail_20' ) start [2025-01-23 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311940', 'tblTempUsageDetail_20' ) end [2025-01-23 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311940', 'tblTempVendorCDR_20' ) start [2025-01-23 11:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311940', 'tblTempVendorCDR_20' ) end [2025-01-23 11:12:33] Production.INFO: ProcessCDR(1,14311940,1,1,2) [2025-01-23 11:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:12:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:12:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:12:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311940', 'tblTempUsageDetail_20' ) start [2025-01-23 11:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311940', 'tblTempUsageDetail_20' ) end [2025-01-23 11:12:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:12:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:12:38] Production.INFO: ==18846== Releasing lock... [2025-01-23 11:12:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:12:38] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:13:04 [end_date_ymd] => 2025-01-23 11:13:04 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:13:04' and `end` < '2025-01-23 11: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-23 11:13:29] Production.INFO: count ==3929 [2025-01-23 11:13:31] Production.ERROR: pbx CDR StartTime 2025-01-23 08:13:04 - End Time 2025-01-23 11:13:04 [2025-01-23 11:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311945', 'tblTempUsageDetail_20' ) start [2025-01-23 11:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311945', 'tblTempUsageDetail_20' ) end [2025-01-23 11:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311945', 'tblTempVendorCDR_20' ) start [2025-01-23 11:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311945', 'tblTempVendorCDR_20' ) end [2025-01-23 11:13:31] Production.INFO: ProcessCDR(1,14311945,1,1,2) [2025-01-23 11:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:13:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:13:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:13:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311945', 'tblTempUsageDetail_20' ) start [2025-01-23 11:13:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311945', 'tblTempUsageDetail_20' ) end [2025-01-23 11:13:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:13:36] Production.INFO: ==18921== Releasing lock... [2025-01-23 11:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:13:36] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:14:05 [end_date_ymd] => 2025-01-23 11:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:14:05' and `end` < '2025-01-23 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-23 11:14:24] Production.INFO: count ==3941 [2025-01-23 11:14:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:14:05 - End Time 2025-01-23 11:14:05 [2025-01-23 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311950', 'tblTempUsageDetail_20' ) start [2025-01-23 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311950', 'tblTempUsageDetail_20' ) end [2025-01-23 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311950', 'tblTempVendorCDR_20' ) start [2025-01-23 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311950', 'tblTempVendorCDR_20' ) end [2025-01-23 11:14:26] Production.INFO: ProcessCDR(1,14311950,1,1,2) [2025-01-23 11:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311950', 'tblTempUsageDetail_20' ) start [2025-01-23 11:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311950', 'tblTempUsageDetail_20' ) end [2025-01-23 11:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:14:31] Production.INFO: ==19005== Releasing lock... [2025-01-23 11:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:14:31] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:15:06 [end_date_ymd] => 2025-01-23 11:15:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:15:06' and `end` < '2025-01-23 11: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-23 11:15:30] Production.INFO: count ==3960 [2025-01-23 11:15:32] Production.ERROR: pbx CDR StartTime 2025-01-23 08:15:06 - End Time 2025-01-23 11:15:06 [2025-01-23 11:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311955', 'tblTempUsageDetail_20' ) start [2025-01-23 11:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311955', 'tblTempUsageDetail_20' ) end [2025-01-23 11:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311955', 'tblTempVendorCDR_20' ) start [2025-01-23 11:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311955', 'tblTempVendorCDR_20' ) end [2025-01-23 11:15:32] Production.INFO: ProcessCDR(1,14311955,1,1,2) [2025-01-23 11:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311955', 'tblTempUsageDetail_20' ) start [2025-01-23 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311955', 'tblTempUsageDetail_20' ) end [2025-01-23 11:15:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:15:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:15:37] Production.INFO: ==19196== Releasing lock... [2025-01-23 11:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:15:37] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:16:05 [end_date_ymd] => 2025-01-23 11:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:16:05' and `end` < '2025-01-23 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-23 11:16:25] Production.INFO: count ==3974 [2025-01-23 11:16:26] Production.ERROR: pbx CDR StartTime 2025-01-23 08:16:05 - End Time 2025-01-23 11:16:05 [2025-01-23 11:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311960', 'tblTempUsageDetail_20' ) start [2025-01-23 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311960', 'tblTempUsageDetail_20' ) end [2025-01-23 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311960', 'tblTempVendorCDR_20' ) start [2025-01-23 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311960', 'tblTempVendorCDR_20' ) end [2025-01-23 11:16:26] Production.INFO: ProcessCDR(1,14311960,1,1,2) [2025-01-23 11:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311960', 'tblTempUsageDetail_20' ) start [2025-01-23 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311960', 'tblTempUsageDetail_20' ) end [2025-01-23 11:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:16:31] Production.INFO: ==19278== Releasing lock... [2025-01-23 11:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:16:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-23 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:17:05 [end_date_ymd] => 2025-01-23 11:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:17:05' and `end` < '2025-01-23 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-23 11:17:22] Production.INFO: count ==3981 [2025-01-23 11:17:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:17:05 - End Time 2025-01-23 11:17:05 [2025-01-23 11:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311965', 'tblTempUsageDetail_20' ) start [2025-01-23 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311965', 'tblTempUsageDetail_20' ) end [2025-01-23 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311965', 'tblTempVendorCDR_20' ) start [2025-01-23 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311965', 'tblTempVendorCDR_20' ) end [2025-01-23 11:17:24] Production.INFO: ProcessCDR(1,14311965,1,1,2) [2025-01-23 11:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311965', 'tblTempUsageDetail_20' ) start [2025-01-23 11:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311965', 'tblTempUsageDetail_20' ) end [2025-01-23 11:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:17:29] Production.INFO: ==19355== Releasing lock... [2025-01-23 11:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:17:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-23 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:18:06 [end_date_ymd] => 2025-01-23 11:18:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:18:06' and `end` < '2025-01-23 11: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-23 11:18:29] Production.INFO: count ==3994 [2025-01-23 11:18:31] Production.ERROR: pbx CDR StartTime 2025-01-23 08:18:06 - End Time 2025-01-23 11:18:06 [2025-01-23 11:18:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311970', 'tblTempUsageDetail_20' ) start [2025-01-23 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311970', 'tblTempUsageDetail_20' ) end [2025-01-23 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311970', 'tblTempVendorCDR_20' ) start [2025-01-23 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311970', 'tblTempVendorCDR_20' ) end [2025-01-23 11:18:31] Production.INFO: ProcessCDR(1,14311970,1,1,2) [2025-01-23 11:18:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:18:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311970', 'tblTempUsageDetail_20' ) start [2025-01-23 11:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311970', 'tblTempUsageDetail_20' ) end [2025-01-23 11:18:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:18:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:18:36] Production.INFO: ==19431== Releasing lock... [2025-01-23 11:18:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:18:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-23 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:19:05 [end_date_ymd] => 2025-01-23 11:19:05 [RateCDR] => 1 ) [2025-01-23 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:19:05' and `end` < '2025-01-23 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:19:22] Production.INFO: count ==4010 [2025-01-23 11:19:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:19:05 - End Time 2025-01-23 11:19:05 [2025-01-23 11:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311975', 'tblTempUsageDetail_20' ) start [2025-01-23 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311975', 'tblTempUsageDetail_20' ) end [2025-01-23 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311975', 'tblTempVendorCDR_20' ) start [2025-01-23 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311975', 'tblTempVendorCDR_20' ) end [2025-01-23 11:19:24] Production.INFO: ProcessCDR(1,14311975,1,1,2) [2025-01-23 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311975', 'tblTempUsageDetail_20' ) start [2025-01-23 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311975', 'tblTempUsageDetail_20' ) end [2025-01-23 11:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:19:29] Production.INFO: ==19507== Releasing lock... [2025-01-23 11:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:19:29] Production.INFO: 58 MB #Memory Used# [2025-01-23 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:20:06 [end_date_ymd] => 2025-01-23 11:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 08:20:06' and `end` < '2025-01-23 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-23 11:20:32] Production.INFO: count ==4020 [2025-01-23 11:20:34] Production.ERROR: pbx CDR StartTime 2025-01-23 08:20:06 - End Time 2025-01-23 11:20:06 [2025-01-23 11:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311980', 'tblTempUsageDetail_20' ) start [2025-01-23 11:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311980', 'tblTempUsageDetail_20' ) end [2025-01-23 11:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311980', 'tblTempVendorCDR_20' ) start [2025-01-23 11:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311980', 'tblTempVendorCDR_20' ) end [2025-01-23 11:20:34] Production.INFO: ProcessCDR(1,14311980,1,1,2) [2025-01-23 11:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311980', 'tblTempUsageDetail_20' ) start [2025-01-23 11:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311980', 'tblTempUsageDetail_20' ) end [2025-01-23 11:20:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:20:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:20:39] Production.INFO: ==19587== Releasing lock... [2025-01-23 11:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:20:39] Production.INFO: 58 MB #Memory Used# [2025-01-23 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:21:05 [end_date_ymd] => 2025-01-23 11:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:21:05' and `end` < '2025-01-23 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-23 11:21:22] Production.INFO: count ==4143 [2025-01-23 11:21:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:21:05 - End Time 2025-01-23 11:21:05 [2025-01-23 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311986', 'tblTempUsageDetail_20' ) start [2025-01-23 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311986', 'tblTempUsageDetail_20' ) end [2025-01-23 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311986', 'tblTempVendorCDR_20' ) start [2025-01-23 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311986', 'tblTempVendorCDR_20' ) end [2025-01-23 11:21:24] Production.INFO: ProcessCDR(1,14311986,1,1,2) [2025-01-23 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311986', 'tblTempUsageDetail_20' ) start [2025-01-23 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311986', 'tblTempUsageDetail_20' ) end [2025-01-23 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:21:29] Production.INFO: ==19663== Releasing lock... [2025-01-23 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:21:29] Production.INFO: 59 MB #Memory Used# [2025-01-23 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:22:05 [end_date_ymd] => 2025-01-23 11:22:05 [RateCDR] => 1 ) [2025-01-23 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:22:05' and `end` < '2025-01-23 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:22:23] Production.INFO: count ==4142 [2025-01-23 11:22:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:22:05 - End Time 2025-01-23 11:22:05 [2025-01-23 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311991', 'tblTempUsageDetail_20' ) start [2025-01-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311991', 'tblTempUsageDetail_20' ) end [2025-01-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311991', 'tblTempVendorCDR_20' ) start [2025-01-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311991', 'tblTempVendorCDR_20' ) end [2025-01-23 11:22:24] Production.INFO: ProcessCDR(1,14311991,1,1,2) [2025-01-23 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311991', 'tblTempUsageDetail_20' ) start [2025-01-23 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311991', 'tblTempUsageDetail_20' ) end [2025-01-23 11:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:22:29] Production.INFO: ==19744== Releasing lock... [2025-01-23 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:22:29] Production.INFO: 59 MB #Memory Used# [2025-01-23 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:23:05 [end_date_ymd] => 2025-01-23 11:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:23:05' and `end` < '2025-01-23 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-23 11:23:31] Production.INFO: count ==4172 [2025-01-23 11:23:32] Production.ERROR: pbx CDR StartTime 2025-01-23 08:23:05 - End Time 2025-01-23 11:23:05 [2025-01-23 11:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311996', 'tblTempUsageDetail_20' ) start [2025-01-23 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14311996', 'tblTempUsageDetail_20' ) end [2025-01-23 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311996', 'tblTempVendorCDR_20' ) start [2025-01-23 11:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14311996', 'tblTempVendorCDR_20' ) end [2025-01-23 11:23:33] Production.INFO: ProcessCDR(1,14311996,1,1,2) [2025-01-23 11:23:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14311996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14311996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14311996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14311996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311996', 'tblTempUsageDetail_20' ) start [2025-01-23 11:23:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14311996', 'tblTempUsageDetail_20' ) end [2025-01-23 11:23:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:23:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:23:38] Production.INFO: ==19818== Releasing lock... [2025-01-23 11:23:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:23:38] Production.INFO: 59.25 MB #Memory Used# [2025-01-23 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:24:05 [end_date_ymd] => 2025-01-23 11:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:24:05' and `end` < '2025-01-23 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-23 11:24:25] Production.INFO: count ==4184 [2025-01-23 11:24:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:24:05 - End Time 2025-01-23 11:24:05 [2025-01-23 11:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312001', 'tblTempUsageDetail_20' ) start [2025-01-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312001', 'tblTempUsageDetail_20' ) end [2025-01-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312001', 'tblTempVendorCDR_20' ) start [2025-01-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312001', 'tblTempVendorCDR_20' ) end [2025-01-23 11:24:27] Production.INFO: ProcessCDR(1,14312001,1,1,2) [2025-01-23 11:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312001', 'tblTempUsageDetail_20' ) start [2025-01-23 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312001', 'tblTempUsageDetail_20' ) end [2025-01-23 11:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:24:32] Production.INFO: ==19894== Releasing lock... [2025-01-23 11:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:24:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:25:05 [end_date_ymd] => 2025-01-23 11:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:25:05' and `end` < '2025-01-23 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-23 11:25:29] Production.INFO: count ==4203 [2025-01-23 11:25:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:25:05 - End Time 2025-01-23 11:25:05 [2025-01-23 11:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312006', 'tblTempUsageDetail_20' ) start [2025-01-23 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312006', 'tblTempUsageDetail_20' ) end [2025-01-23 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312006', 'tblTempVendorCDR_20' ) start [2025-01-23 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312006', 'tblTempVendorCDR_20' ) end [2025-01-23 11:25:30] Production.INFO: ProcessCDR(1,14312006,1,1,2) [2025-01-23 11:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312006', 'tblTempUsageDetail_20' ) start [2025-01-23 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312006', 'tblTempUsageDetail_20' ) end [2025-01-23 11:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:25:36] Production.INFO: ==19976== Releasing lock... [2025-01-23 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:25:36] Production.INFO: 59.5 MB #Memory Used# [2025-01-23 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:26:06 [end_date_ymd] => 2025-01-23 11:26:06 [RateCDR] => 1 ) [2025-01-23 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-23 08:26:06' and `end` < '2025-01-23 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-23 11:26:29] Production.INFO: count ==4212 [2025-01-23 11:26:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:26:06 - End Time 2025-01-23 11:26:06 [2025-01-23 11:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312011', 'tblTempUsageDetail_20' ) start [2025-01-23 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312011', 'tblTempUsageDetail_20' ) end [2025-01-23 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312011', 'tblTempVendorCDR_20' ) start [2025-01-23 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312011', 'tblTempVendorCDR_20' ) end [2025-01-23 11:26:30] Production.INFO: ProcessCDR(1,14312011,1,1,2) [2025-01-23 11:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312011', 'tblTempUsageDetail_20' ) start [2025-01-23 11:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312011', 'tblTempUsageDetail_20' ) end [2025-01-23 11:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:26:35] Production.INFO: ==20054== Releasing lock... [2025-01-23 11:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:26:35] Production.INFO: 59.5 MB #Memory Used# [2025-01-23 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:27:05 [end_date_ymd] => 2025-01-23 11:27:05 [RateCDR] => 1 ) [2025-01-23 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:27:05' and `end` < '2025-01-23 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:27:24] Production.INFO: count ==4225 [2025-01-23 11:27:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:27:05 - End Time 2025-01-23 11:27:05 [2025-01-23 11:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312016', 'tblTempUsageDetail_20' ) start [2025-01-23 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312016', 'tblTempUsageDetail_20' ) end [2025-01-23 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312016', 'tblTempVendorCDR_20' ) start [2025-01-23 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312016', 'tblTempVendorCDR_20' ) end [2025-01-23 11:27:25] Production.INFO: ProcessCDR(1,14312016,1,1,2) [2025-01-23 11:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312016', 'tblTempUsageDetail_20' ) start [2025-01-23 11:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312016', 'tblTempUsageDetail_20' ) end [2025-01-23 11:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:27:30] Production.INFO: ==20132== Releasing lock... [2025-01-23 11:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:27:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-23 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:28:05 [end_date_ymd] => 2025-01-23 11:28:05 [RateCDR] => 1 ) [2025-01-23 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:28:05' and `end` < '2025-01-23 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:28:26] Production.INFO: count ==4243 [2025-01-23 11:28:28] Production.ERROR: pbx CDR StartTime 2025-01-23 08:28:05 - End Time 2025-01-23 11:28:05 [2025-01-23 11:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312021', 'tblTempUsageDetail_20' ) start [2025-01-23 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312021', 'tblTempUsageDetail_20' ) end [2025-01-23 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312021', 'tblTempVendorCDR_20' ) start [2025-01-23 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312021', 'tblTempVendorCDR_20' ) end [2025-01-23 11:28:28] Production.INFO: ProcessCDR(1,14312021,1,1,2) [2025-01-23 11:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312021', 'tblTempUsageDetail_20' ) start [2025-01-23 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312021', 'tblTempUsageDetail_20' ) end [2025-01-23 11:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:28:33] Production.INFO: ==20207== Releasing lock... [2025-01-23 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:28:33] Production.INFO: 59.75 MB #Memory Used# [2025-01-23 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:29:04 [end_date_ymd] => 2025-01-23 11:29:04 [RateCDR] => 1 ) [2025-01-23 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:29:04' and `end` < '2025-01-23 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-23 11:29:30] Production.INFO: count ==4269 [2025-01-23 11:29:31] Production.ERROR: pbx CDR StartTime 2025-01-23 08:29:04 - End Time 2025-01-23 11:29:04 [2025-01-23 11:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312026', 'tblTempUsageDetail_20' ) start [2025-01-23 11:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312026', 'tblTempUsageDetail_20' ) end [2025-01-23 11:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312026', 'tblTempVendorCDR_20' ) start [2025-01-23 11:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312026', 'tblTempVendorCDR_20' ) end [2025-01-23 11:29:32] Production.INFO: ProcessCDR(1,14312026,1,1,2) [2025-01-23 11:29:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:29:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312026', 'tblTempUsageDetail_20' ) start [2025-01-23 11:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312026', 'tblTempUsageDetail_20' ) end [2025-01-23 11:29:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:29:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:29:37] Production.INFO: ==20285== Releasing lock... [2025-01-23 11:29:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:29:37] Production.INFO: 60 MB #Memory Used# [2025-01-23 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:30:06 [end_date_ymd] => 2025-01-23 11:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 08:30:06' and `end` < '2025-01-23 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-23 11:30:29] Production.INFO: count ==4279 [2025-01-23 11:30:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:30:06 - End Time 2025-01-23 11:30:06 [2025-01-23 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312032', 'tblTempUsageDetail_20' ) start [2025-01-23 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312032', 'tblTempUsageDetail_20' ) end [2025-01-23 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312032', 'tblTempVendorCDR_20' ) start [2025-01-23 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312032', 'tblTempVendorCDR_20' ) end [2025-01-23 11:30:31] Production.INFO: ProcessCDR(1,14312032,1,1,2) [2025-01-23 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312032', 'tblTempUsageDetail_20' ) start [2025-01-23 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312032', 'tblTempUsageDetail_20' ) end [2025-01-23 11:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:30:35] Production.INFO: ==20403== Releasing lock... [2025-01-23 11:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:30:35] Production.INFO: 60 MB #Memory Used# [2025-01-23 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:31:04 [end_date_ymd] => 2025-01-23 11:31:04 [RateCDR] => 1 ) [2025-01-23 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:31:04' and `end` < '2025-01-23 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:31:22] Production.INFO: count ==4342 [2025-01-23 11:31:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:31:04 - End Time 2025-01-23 11:31:04 [2025-01-23 11:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312037', 'tblTempUsageDetail_20' ) start [2025-01-23 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312037', 'tblTempUsageDetail_20' ) end [2025-01-23 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312037', 'tblTempVendorCDR_20' ) start [2025-01-23 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312037', 'tblTempVendorCDR_20' ) end [2025-01-23 11:31:24] Production.INFO: ProcessCDR(1,14312037,1,1,2) [2025-01-23 11:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312037', 'tblTempUsageDetail_20' ) start [2025-01-23 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312037', 'tblTempUsageDetail_20' ) end [2025-01-23 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:31:28] Production.INFO: ==20506== Releasing lock... [2025-01-23 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:31:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-23 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:32:05 [end_date_ymd] => 2025-01-23 11:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:32:05' and `end` < '2025-01-23 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-23 11:32:26] Production.INFO: count ==4355 [2025-01-23 11:32:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:32:05 - End Time 2025-01-23 11:32:05 [2025-01-23 11:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312042', 'tblTempUsageDetail_20' ) start [2025-01-23 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312042', 'tblTempUsageDetail_20' ) end [2025-01-23 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312042', 'tblTempVendorCDR_20' ) start [2025-01-23 11:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312042', 'tblTempVendorCDR_20' ) end [2025-01-23 11:32:27] Production.INFO: ProcessCDR(1,14312042,1,1,2) [2025-01-23 11:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312042', 'tblTempUsageDetail_20' ) start [2025-01-23 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312042', 'tblTempUsageDetail_20' ) end [2025-01-23 11:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:32:32] Production.INFO: ==20610== Releasing lock... [2025-01-23 11:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:32:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-23 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:33:06 [end_date_ymd] => 2025-01-23 11:33:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:33:06' and `end` < '2025-01-23 11: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-23 11:33:24] Production.INFO: count ==4367 [2025-01-23 11:33:26] Production.ERROR: pbx CDR StartTime 2025-01-23 08:33:06 - End Time 2025-01-23 11:33:06 [2025-01-23 11:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312047', 'tblTempUsageDetail_20' ) start [2025-01-23 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312047', 'tblTempUsageDetail_20' ) end [2025-01-23 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312047', 'tblTempVendorCDR_20' ) start [2025-01-23 11:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312047', 'tblTempVendorCDR_20' ) end [2025-01-23 11:33:26] Production.INFO: ProcessCDR(1,14312047,1,1,2) [2025-01-23 11:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312047', 'tblTempUsageDetail_20' ) start [2025-01-23 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312047', 'tblTempUsageDetail_20' ) end [2025-01-23 11:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:33:31] Production.INFO: ==20718== Releasing lock... [2025-01-23 11:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:33:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-23 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:34:05 [end_date_ymd] => 2025-01-23 11:34:05 [RateCDR] => 1 ) [2025-01-23 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:34:05' and `end` < '2025-01-23 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:34:21] Production.INFO: count ==4377 [2025-01-23 11:34:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:34:05 - End Time 2025-01-23 11:34:05 [2025-01-23 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312052', 'tblTempUsageDetail_20' ) start [2025-01-23 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312052', 'tblTempUsageDetail_20' ) end [2025-01-23 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312052', 'tblTempVendorCDR_20' ) start [2025-01-23 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312052', 'tblTempVendorCDR_20' ) end [2025-01-23 11:34:23] Production.INFO: ProcessCDR(1,14312052,1,1,2) [2025-01-23 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312052', 'tblTempUsageDetail_20' ) start [2025-01-23 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312052', 'tblTempUsageDetail_20' ) end [2025-01-23 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:34:28] Production.INFO: ==20827== Releasing lock... [2025-01-23 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:34:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-23 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:35:05 [end_date_ymd] => 2025-01-23 11:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:35:05' and `end` < '2025-01-23 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-23 11:35:24] Production.INFO: count ==4409 [2025-01-23 11:35:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:35:05 - End Time 2025-01-23 11:35:05 [2025-01-23 11:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312057', 'tblTempUsageDetail_20' ) start [2025-01-23 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312057', 'tblTempUsageDetail_20' ) end [2025-01-23 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312057', 'tblTempVendorCDR_20' ) start [2025-01-23 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312057', 'tblTempVendorCDR_20' ) end [2025-01-23 11:35:26] Production.INFO: ProcessCDR(1,14312057,1,1,2) [2025-01-23 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312057', 'tblTempUsageDetail_20' ) start [2025-01-23 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312057', 'tblTempUsageDetail_20' ) end [2025-01-23 11:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:35:31] Production.INFO: ==20919== Releasing lock... [2025-01-23 11:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:35:31] Production.INFO: 61 MB #Memory Used# [2025-01-23 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:36:05 [end_date_ymd] => 2025-01-23 11:36:05 [RateCDR] => 1 ) [2025-01-23 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:36:05' and `end` < '2025-01-23 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:36:21] Production.INFO: count ==4434 [2025-01-23 11:36:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:36:05 - End Time 2025-01-23 11:36:05 [2025-01-23 11:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312062', 'tblTempUsageDetail_20' ) start [2025-01-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312062', 'tblTempUsageDetail_20' ) end [2025-01-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312062', 'tblTempVendorCDR_20' ) start [2025-01-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312062', 'tblTempVendorCDR_20' ) end [2025-01-23 11:36:23] Production.INFO: ProcessCDR(1,14312062,1,1,2) [2025-01-23 11:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312062', 'tblTempUsageDetail_20' ) start [2025-01-23 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312062', 'tblTempUsageDetail_20' ) end [2025-01-23 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:36:28] Production.INFO: ==21005== Releasing lock... [2025-01-23 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:36:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-23 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:37:04 [end_date_ymd] => 2025-01-23 11:37:04 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:37:04' and `end` < '2025-01-23 11: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-23 11:37:29] Production.INFO: count ==4457 [2025-01-23 11:37:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:37:04 - End Time 2025-01-23 11:37:04 [2025-01-23 11:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312067', 'tblTempUsageDetail_20' ) start [2025-01-23 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312067', 'tblTempUsageDetail_20' ) end [2025-01-23 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312067', 'tblTempVendorCDR_20' ) start [2025-01-23 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312067', 'tblTempVendorCDR_20' ) end [2025-01-23 11:37:31] Production.INFO: ProcessCDR(1,14312067,1,1,2) [2025-01-23 11:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312067', 'tblTempUsageDetail_20' ) start [2025-01-23 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312067', 'tblTempUsageDetail_20' ) end [2025-01-23 11:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:37:35] Production.INFO: ==21097== Releasing lock... [2025-01-23 11:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:37:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:38:05 [end_date_ymd] => 2025-01-23 11:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:38:05' and `end` < '2025-01-23 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-23 11:38:25] Production.INFO: count ==4486 [2025-01-23 11:38:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:38:05 - End Time 2025-01-23 11:38:05 [2025-01-23 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312072', 'tblTempUsageDetail_20' ) start [2025-01-23 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312072', 'tblTempUsageDetail_20' ) end [2025-01-23 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312072', 'tblTempVendorCDR_20' ) start [2025-01-23 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312072', 'tblTempVendorCDR_20' ) end [2025-01-23 11:38:27] Production.INFO: ProcessCDR(1,14312072,1,1,2) [2025-01-23 11:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312072', 'tblTempUsageDetail_20' ) start [2025-01-23 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312072', 'tblTempUsageDetail_20' ) end [2025-01-23 11:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:38:32] Production.INFO: ==21188== Releasing lock... [2025-01-23 11:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:38:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:39:05 [end_date_ymd] => 2025-01-23 11:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:39:05' and `end` < '2025-01-23 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-23 11:39:22] Production.INFO: count ==4499 [2025-01-23 11:39:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:39:05 - End Time 2025-01-23 11:39:05 [2025-01-23 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312077', 'tblTempUsageDetail_20' ) start [2025-01-23 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312077', 'tblTempUsageDetail_20' ) end [2025-01-23 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312077', 'tblTempVendorCDR_20' ) start [2025-01-23 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312077', 'tblTempVendorCDR_20' ) end [2025-01-23 11:39:24] Production.INFO: ProcessCDR(1,14312077,1,1,2) [2025-01-23 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312077', 'tblTempUsageDetail_20' ) start [2025-01-23 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312077', 'tblTempUsageDetail_20' ) end [2025-01-23 11:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:39:29] Production.INFO: ==21276== Releasing lock... [2025-01-23 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:39:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-23 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:40:06 [end_date_ymd] => 2025-01-23 11:40:06 [RateCDR] => 1 ) [2025-01-23 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-23 08:40:06' and `end` < '2025-01-23 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-23 11:40:26] Production.INFO: count ==4498 [2025-01-23 11:40:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:40:06 - End Time 2025-01-23 11:40:06 [2025-01-23 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312082', 'tblTempUsageDetail_20' ) start [2025-01-23 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312082', 'tblTempUsageDetail_20' ) end [2025-01-23 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312082', 'tblTempVendorCDR_20' ) start [2025-01-23 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312082', 'tblTempVendorCDR_20' ) end [2025-01-23 11:40:28] Production.INFO: ProcessCDR(1,14312082,1,1,2) [2025-01-23 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312082', 'tblTempUsageDetail_20' ) start [2025-01-23 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312082', 'tblTempUsageDetail_20' ) end [2025-01-23 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:40:33] Production.INFO: ==21376== Releasing lock... [2025-01-23 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:40:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-23 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:41:04 [end_date_ymd] => 2025-01-23 11:41:04 [RateCDR] => 1 ) [2025-01-23 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:41:04' and `end` < '2025-01-23 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:41:20] Production.INFO: count ==4550 [2025-01-23 11:41:22] Production.ERROR: pbx CDR StartTime 2025-01-23 08:41:04 - End Time 2025-01-23 11:41:04 [2025-01-23 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312088', 'tblTempUsageDetail_20' ) start [2025-01-23 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312088', 'tblTempUsageDetail_20' ) end [2025-01-23 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312088', 'tblTempVendorCDR_20' ) start [2025-01-23 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312088', 'tblTempVendorCDR_20' ) end [2025-01-23 11:41:22] Production.INFO: ProcessCDR(1,14312088,1,1,2) [2025-01-23 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312088', 'tblTempUsageDetail_20' ) start [2025-01-23 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312088', 'tblTempUsageDetail_20' ) end [2025-01-23 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:41:27] Production.INFO: ==21456== Releasing lock... [2025-01-23 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:41:27] Production.INFO: 62 MB #Memory Used# [2025-01-23 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:42:06 [end_date_ymd] => 2025-01-23 11:42:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:42:06' and `end` < '2025-01-23 11: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-23 11:42:21] Production.INFO: count ==4554 [2025-01-23 11:42:23] Production.ERROR: pbx CDR StartTime 2025-01-23 08:42:06 - End Time 2025-01-23 11:42:06 [2025-01-23 11:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312093', 'tblTempUsageDetail_20' ) start [2025-01-23 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312093', 'tblTempUsageDetail_20' ) end [2025-01-23 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312093', 'tblTempVendorCDR_20' ) start [2025-01-23 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312093', 'tblTempVendorCDR_20' ) end [2025-01-23 11:42:23] Production.INFO: ProcessCDR(1,14312093,1,1,2) [2025-01-23 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312093', 'tblTempUsageDetail_20' ) start [2025-01-23 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312093', 'tblTempUsageDetail_20' ) end [2025-01-23 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:42:27] Production.INFO: ==21533== Releasing lock... [2025-01-23 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:42:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-23 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:43:06 [end_date_ymd] => 2025-01-23 11:43:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:43:06' and `end` < '2025-01-23 11: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-23 11:43:22] Production.INFO: count ==4567 [2025-01-23 11:43:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:43:06 - End Time 2025-01-23 11:43:06 [2025-01-23 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312098', 'tblTempUsageDetail_20' ) start [2025-01-23 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312098', 'tblTempUsageDetail_20' ) end [2025-01-23 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312098', 'tblTempVendorCDR_20' ) start [2025-01-23 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312098', 'tblTempVendorCDR_20' ) end [2025-01-23 11:43:24] Production.INFO: ProcessCDR(1,14312098,1,1,2) [2025-01-23 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312098', 'tblTempUsageDetail_20' ) start [2025-01-23 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312098', 'tblTempUsageDetail_20' ) end [2025-01-23 11:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:43:29] Production.INFO: ==21605== Releasing lock... [2025-01-23 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:43:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-23 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:44:05 [end_date_ymd] => 2025-01-23 11:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:44:05' and `end` < '2025-01-23 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-23 11:44:19] Production.INFO: count ==4577 [2025-01-23 11:44:21] Production.ERROR: pbx CDR StartTime 2025-01-23 08:44:05 - End Time 2025-01-23 11:44:05 [2025-01-23 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312103', 'tblTempUsageDetail_20' ) start [2025-01-23 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312103', 'tblTempUsageDetail_20' ) end [2025-01-23 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312103', 'tblTempVendorCDR_20' ) start [2025-01-23 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312103', 'tblTempVendorCDR_20' ) end [2025-01-23 11:44:21] Production.INFO: ProcessCDR(1,14312103,1,1,2) [2025-01-23 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312103', 'tblTempUsageDetail_20' ) start [2025-01-23 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312103', 'tblTempUsageDetail_20' ) end [2025-01-23 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:44:26] Production.INFO: ==21685== Releasing lock... [2025-01-23 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:44:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-23 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:45:05 [end_date_ymd] => 2025-01-23 11:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:45:05' and `end` < '2025-01-23 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-23 11:45:36] Production.INFO: count ==4589 [2025-01-23 11:45:38] Production.ERROR: pbx CDR StartTime 2025-01-23 08:45:05 - End Time 2025-01-23 11:45:05 [2025-01-23 11:45:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:45:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312108', 'tblTempUsageDetail_20' ) start [2025-01-23 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312108', 'tblTempUsageDetail_20' ) end [2025-01-23 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312108', 'tblTempVendorCDR_20' ) start [2025-01-23 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312108', 'tblTempVendorCDR_20' ) end [2025-01-23 11:45:39] Production.INFO: ProcessCDR(1,14312108,1,1,2) [2025-01-23 11:45:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:45:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:45:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:45:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312108', 'tblTempUsageDetail_20' ) start [2025-01-23 11:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312108', 'tblTempUsageDetail_20' ) end [2025-01-23 11:45:44] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:45:44] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:45:44] Production.INFO: ==21757== Releasing lock... [2025-01-23 11:45:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:45:44] Production.INFO: 62.5 MB #Memory Used# [2025-01-23 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:46:05 [end_date_ymd] => 2025-01-23 11:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:46:05' and `end` < '2025-01-23 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-23 11:46:23] Production.INFO: count ==4600 [2025-01-23 11:46:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:46:05 - End Time 2025-01-23 11:46:05 [2025-01-23 11:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312113', 'tblTempUsageDetail_20' ) start [2025-01-23 11:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312113', 'tblTempUsageDetail_20' ) end [2025-01-23 11:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312113', 'tblTempVendorCDR_20' ) start [2025-01-23 11:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312113', 'tblTempVendorCDR_20' ) end [2025-01-23 11:46:25] Production.INFO: ProcessCDR(1,14312113,1,1,2) [2025-01-23 11:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312113', 'tblTempUsageDetail_20' ) start [2025-01-23 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312113', 'tblTempUsageDetail_20' ) end [2025-01-23 11:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:46:30] Production.INFO: ==21874== Releasing lock... [2025-01-23 11:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:46:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-23 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:47:06 [end_date_ymd] => 2025-01-23 11:47:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:47:06' and `end` < '2025-01-23 11: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-23 11:47:27] Production.INFO: count ==4609 [2025-01-23 11:47:29] Production.ERROR: pbx CDR StartTime 2025-01-23 08:47:06 - End Time 2025-01-23 11:47:06 [2025-01-23 11:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312118', 'tblTempUsageDetail_20' ) start [2025-01-23 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312118', 'tblTempUsageDetail_20' ) end [2025-01-23 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312118', 'tblTempVendorCDR_20' ) start [2025-01-23 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312118', 'tblTempVendorCDR_20' ) end [2025-01-23 11:47:29] Production.INFO: ProcessCDR(1,14312118,1,1,2) [2025-01-23 11:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312118', 'tblTempUsageDetail_20' ) start [2025-01-23 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312118', 'tblTempUsageDetail_20' ) end [2025-01-23 11:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:47:34] Production.INFO: ==21950== Releasing lock... [2025-01-23 11:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:47:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-23 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:48:06 [end_date_ymd] => 2025-01-23 11:48:06 [RateCDR] => 1 ) [2025-01-23 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:48:06' and `end` < '2025-01-23 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:48:24] Production.INFO: count ==4606 [2025-01-23 11:48:26] Production.ERROR: pbx CDR StartTime 2025-01-23 08:48:06 - End Time 2025-01-23 11:48:06 [2025-01-23 11:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312123', 'tblTempUsageDetail_20' ) start [2025-01-23 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312123', 'tblTempUsageDetail_20' ) end [2025-01-23 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312123', 'tblTempVendorCDR_20' ) start [2025-01-23 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312123', 'tblTempVendorCDR_20' ) end [2025-01-23 11:48:26] Production.INFO: ProcessCDR(1,14312123,1,1,2) [2025-01-23 11:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312123', 'tblTempUsageDetail_20' ) start [2025-01-23 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312123', 'tblTempUsageDetail_20' ) end [2025-01-23 11:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:48:31] Production.INFO: ==22025== Releasing lock... [2025-01-23 11:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:48:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-23 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:49:05 [end_date_ymd] => 2025-01-23 11:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 08:49:05' and `end` < '2025-01-23 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-23 11:49:24] Production.INFO: count ==4609 [2025-01-23 11:49:26] Production.ERROR: pbx CDR StartTime 2025-01-23 08:49:05 - End Time 2025-01-23 11:49:05 [2025-01-23 11:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312128', 'tblTempUsageDetail_20' ) start [2025-01-23 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312128', 'tblTempUsageDetail_20' ) end [2025-01-23 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312128', 'tblTempVendorCDR_20' ) start [2025-01-23 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312128', 'tblTempVendorCDR_20' ) end [2025-01-23 11:49:26] Production.INFO: ProcessCDR(1,14312128,1,1,2) [2025-01-23 11:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312128', 'tblTempUsageDetail_20' ) start [2025-01-23 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312128', 'tblTempUsageDetail_20' ) end [2025-01-23 11:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:49:31] Production.INFO: ==22101== Releasing lock... [2025-01-23 11:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:49:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-23 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:50:06 [end_date_ymd] => 2025-01-23 11:50:06 [RateCDR] => 1 ) [2025-01-23 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:50:06' and `end` < '2025-01-23 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:50:28] Production.INFO: count ==4621 [2025-01-23 11:50:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:50:06 - End Time 2025-01-23 11:50:06 [2025-01-23 11:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312134', 'tblTempUsageDetail_20' ) start [2025-01-23 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312134', 'tblTempUsageDetail_20' ) end [2025-01-23 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312134', 'tblTempVendorCDR_20' ) start [2025-01-23 11:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312134', 'tblTempVendorCDR_20' ) end [2025-01-23 11:50:31] Production.INFO: ProcessCDR(1,14312134,1,1,2) [2025-01-23 11:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312134', 'tblTempUsageDetail_20' ) start [2025-01-23 11:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312134', 'tblTempUsageDetail_20' ) end [2025-01-23 11:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:50:36] Production.INFO: ==22181== Releasing lock... [2025-01-23 11:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:50:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-23 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:51:06 [end_date_ymd] => 2025-01-23 11:51:06 [RateCDR] => 1 ) [2025-01-23 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:51:06' and `end` < '2025-01-23 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:51:24] Production.INFO: count ==4759 [2025-01-23 11:51:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:51:06 - End Time 2025-01-23 11:51:06 [2025-01-23 11:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312139', 'tblTempUsageDetail_20' ) start [2025-01-23 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312139', 'tblTempUsageDetail_20' ) end [2025-01-23 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312139', 'tblTempVendorCDR_20' ) start [2025-01-23 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312139', 'tblTempVendorCDR_20' ) end [2025-01-23 11:51:26] Production.INFO: ProcessCDR(1,14312139,1,1,2) [2025-01-23 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312139', 'tblTempUsageDetail_20' ) start [2025-01-23 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312139', 'tblTempUsageDetail_20' ) end [2025-01-23 11:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:51:31] Production.INFO: ==22263== Releasing lock... [2025-01-23 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:51:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-23 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:52:06 [end_date_ymd] => 2025-01-23 11:52:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:52:06' and `end` < '2025-01-23 11: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-23 11:52:34] Production.INFO: count ==4769 [2025-01-23 11:52:36] Production.ERROR: pbx CDR StartTime 2025-01-23 08:52:06 - End Time 2025-01-23 11:52:06 [2025-01-23 11:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312144', 'tblTempUsageDetail_20' ) start [2025-01-23 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312144', 'tblTempUsageDetail_20' ) end [2025-01-23 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312144', 'tblTempVendorCDR_20' ) start [2025-01-23 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312144', 'tblTempVendorCDR_20' ) end [2025-01-23 11:52:36] Production.INFO: ProcessCDR(1,14312144,1,1,2) [2025-01-23 11:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:52:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:52:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312144', 'tblTempUsageDetail_20' ) start [2025-01-23 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312144', 'tblTempUsageDetail_20' ) end [2025-01-23 11:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:52:41] Production.INFO: ==22336== Releasing lock... [2025-01-23 11:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:52:41] Production.INFO: 63.75 MB #Memory Used# [2025-01-23 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:53:06 [end_date_ymd] => 2025-01-23 11:53:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:53:06' and `end` < '2025-01-23 11: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-23 11:53:22] Production.INFO: count ==4795 [2025-01-23 11:53:24] Production.ERROR: pbx CDR StartTime 2025-01-23 08:53:06 - End Time 2025-01-23 11:53:06 [2025-01-23 11:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312149', 'tblTempUsageDetail_20' ) start [2025-01-23 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312149', 'tblTempUsageDetail_20' ) end [2025-01-23 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312149', 'tblTempVendorCDR_20' ) start [2025-01-23 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312149', 'tblTempVendorCDR_20' ) end [2025-01-23 11:53:24] Production.INFO: ProcessCDR(1,14312149,1,1,2) [2025-01-23 11:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312149', 'tblTempUsageDetail_20' ) start [2025-01-23 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312149', 'tblTempUsageDetail_20' ) end [2025-01-23 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:53:30] Production.INFO: ==22412== Releasing lock... [2025-01-23 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:53:30] Production.INFO: 64 MB #Memory Used# [2025-01-23 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:54:06 [end_date_ymd] => 2025-01-23 11:54:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:54:06' and `end` < '2025-01-23 11: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-23 11:54:28] Production.INFO: count ==4831 [2025-01-23 11:54:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:54:06 - End Time 2025-01-23 11:54:06 [2025-01-23 11:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312154', 'tblTempUsageDetail_20' ) start [2025-01-23 11:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312154', 'tblTempUsageDetail_20' ) end [2025-01-23 11:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312154', 'tblTempVendorCDR_20' ) start [2025-01-23 11:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312154', 'tblTempVendorCDR_20' ) end [2025-01-23 11:54:30] Production.INFO: ProcessCDR(1,14312154,1,1,2) [2025-01-23 11:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312154', 'tblTempUsageDetail_20' ) start [2025-01-23 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312154', 'tblTempUsageDetail_20' ) end [2025-01-23 11:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:54:36] Production.INFO: ==22493== Releasing lock... [2025-01-23 11:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:54:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:55:05 [end_date_ymd] => 2025-01-23 11:55:05 [RateCDR] => 1 ) [2025-01-23 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:55:05' and `end` < '2025-01-23 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:55:25] Production.INFO: count ==4872 [2025-01-23 11:55:27] Production.ERROR: pbx CDR StartTime 2025-01-23 08:55:05 - End Time 2025-01-23 11:55:05 [2025-01-23 11:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312159', 'tblTempUsageDetail_20' ) start [2025-01-23 11:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312159', 'tblTempUsageDetail_20' ) end [2025-01-23 11:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312159', 'tblTempVendorCDR_20' ) start [2025-01-23 11:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312159', 'tblTempVendorCDR_20' ) end [2025-01-23 11:55:27] Production.INFO: ProcessCDR(1,14312159,1,1,2) [2025-01-23 11:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312159', 'tblTempUsageDetail_20' ) start [2025-01-23 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312159', 'tblTempUsageDetail_20' ) end [2025-01-23 11:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:55:33] Production.INFO: ==22575== Releasing lock... [2025-01-23 11:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:55:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-23 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:56:06 [end_date_ymd] => 2025-01-23 11:56:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:56:06' and `end` < '2025-01-23 11: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-23 11:56:36] Production.INFO: count ==4890 [2025-01-23 11:56:38] Production.ERROR: pbx CDR StartTime 2025-01-23 08:56:06 - End Time 2025-01-23 11:56:06 [2025-01-23 11:56:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:56:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312164', 'tblTempUsageDetail_20' ) start [2025-01-23 11:56:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312164', 'tblTempUsageDetail_20' ) end [2025-01-23 11:56:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312164', 'tblTempVendorCDR_20' ) start [2025-01-23 11:56:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312164', 'tblTempVendorCDR_20' ) end [2025-01-23 11:56:38] Production.INFO: ProcessCDR(1,14312164,1,1,2) [2025-01-23 11:56:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:56:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:56:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:56:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312164', 'tblTempUsageDetail_20' ) start [2025-01-23 11:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312164', 'tblTempUsageDetail_20' ) end [2025-01-23 11:56:44] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:56:44] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:56:44] Production.INFO: ==22658== Releasing lock... [2025-01-23 11:56:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:56:44] Production.INFO: 64.75 MB #Memory Used# [2025-01-23 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:57:06 [end_date_ymd] => 2025-01-23 11:57:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:57:06' and `end` < '2025-01-23 11: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-23 11:57:23] Production.INFO: count ==4898 [2025-01-23 11:57:25] Production.ERROR: pbx CDR StartTime 2025-01-23 08:57:06 - End Time 2025-01-23 11:57:06 [2025-01-23 11:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312169', 'tblTempUsageDetail_20' ) start [2025-01-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312169', 'tblTempUsageDetail_20' ) end [2025-01-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312169', 'tblTempVendorCDR_20' ) start [2025-01-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312169', 'tblTempVendorCDR_20' ) end [2025-01-23 11:57:25] Production.INFO: ProcessCDR(1,14312169,1,1,2) [2025-01-23 11:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312169', 'tblTempUsageDetail_20' ) start [2025-01-23 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312169', 'tblTempUsageDetail_20' ) end [2025-01-23 11:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:57:31] Production.INFO: ==22739== Releasing lock... [2025-01-23 11:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:57:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-23 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:58:06 [end_date_ymd] => 2025-01-23 11:58:06 [RateCDR] => 1 ) [2025-01-23 11: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-23 08:58:06' and `end` < '2025-01-23 11: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-23 11:58:28] Production.INFO: count ==4911 [2025-01-23 11:58:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:58:06 - End Time 2025-01-23 11:58:06 [2025-01-23 11:58:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312174', 'tblTempUsageDetail_20' ) start [2025-01-23 11:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312174', 'tblTempUsageDetail_20' ) end [2025-01-23 11:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312174', 'tblTempVendorCDR_20' ) start [2025-01-23 11:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312174', 'tblTempVendorCDR_20' ) end [2025-01-23 11:58:30] Production.INFO: ProcessCDR(1,14312174,1,1,2) [2025-01-23 11:58:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:58:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312174', 'tblTempUsageDetail_20' ) start [2025-01-23 11:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312174', 'tblTempUsageDetail_20' ) end [2025-01-23 11:58:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:58:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:58:35] Production.INFO: ==22818== Releasing lock... [2025-01-23 11:58:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:58:35] Production.INFO: 64.75 MB #Memory Used# [2025-01-23 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 08:59:05 [end_date_ymd] => 2025-01-23 11:59:05 [RateCDR] => 1 ) [2025-01-23 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 08:59:05' and `end` < '2025-01-23 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 11:59:29] Production.INFO: count ==4924 [2025-01-23 11:59:30] Production.ERROR: pbx CDR StartTime 2025-01-23 08:59:05 - End Time 2025-01-23 11:59:05 [2025-01-23 11:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 11:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312179', 'tblTempUsageDetail_20' ) start [2025-01-23 11:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312179', 'tblTempUsageDetail_20' ) end [2025-01-23 11:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312179', 'tblTempVendorCDR_20' ) start [2025-01-23 11:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312179', 'tblTempVendorCDR_20' ) end [2025-01-23 11:59:31] Production.INFO: ProcessCDR(1,14312179,1,1,2) [2025-01-23 11:59:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 11:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 11:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312179', 'tblTempUsageDetail_20' ) start [2025-01-23 11:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312179', 'tblTempUsageDetail_20' ) end [2025-01-23 11:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 11:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 11:59:36] Production.INFO: ==22899== Releasing lock... [2025-01-23 11:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 11:59:36] Production.INFO: 65 MB #Memory Used# [2025-01-23 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:00:07 [end_date_ymd] => 2025-01-23 12:00:07 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:00:07' and `end` < '2025-01-23 12: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-23 12:00:26] Production.INFO: count ==4924 [2025-01-23 12:00:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:00:07 - End Time 2025-01-23 12:00:07 [2025-01-23 12:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312185', 'tblTempUsageDetail_20' ) start [2025-01-23 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312185', 'tblTempUsageDetail_20' ) end [2025-01-23 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312185', 'tblTempVendorCDR_20' ) start [2025-01-23 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312185', 'tblTempVendorCDR_20' ) end [2025-01-23 12:00:29] Production.INFO: ProcessCDR(1,14312185,1,1,2) [2025-01-23 12:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312185', 'tblTempUsageDetail_20' ) start [2025-01-23 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312185', 'tblTempUsageDetail_20' ) end [2025-01-23 12:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:00:34] Production.INFO: ==22982== Releasing lock... [2025-01-23 12:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:00:34] Production.INFO: 65 MB #Memory Used# [2025-01-23 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:01:05 [end_date_ymd] => 2025-01-23 12:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:01:05' and `end` < '2025-01-23 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-23 12:01:25] Production.INFO: count ==5014 [2025-01-23 12:01:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:01:05 - End Time 2025-01-23 12:01:05 [2025-01-23 12:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312190', 'tblTempUsageDetail_20' ) start [2025-01-23 12:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312190', 'tblTempUsageDetail_20' ) end [2025-01-23 12:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312190', 'tblTempVendorCDR_20' ) start [2025-01-23 12:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312190', 'tblTempVendorCDR_20' ) end [2025-01-23 12:01:27] Production.INFO: ProcessCDR(1,14312190,1,1,2) [2025-01-23 12:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312190', 'tblTempUsageDetail_20' ) start [2025-01-23 12:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312190', 'tblTempUsageDetail_20' ) end [2025-01-23 12:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:01:32] Production.INFO: ==23115== Releasing lock... [2025-01-23 12:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:01:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:02:05 [end_date_ymd] => 2025-01-23 12:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:02:05' and `end` < '2025-01-23 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-23 12:02:22] Production.INFO: count ==5022 [2025-01-23 12:02:24] Production.ERROR: pbx CDR StartTime 2025-01-23 09:02:05 - End Time 2025-01-23 12:02:05 [2025-01-23 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312195', 'tblTempUsageDetail_20' ) start [2025-01-23 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312195', 'tblTempUsageDetail_20' ) end [2025-01-23 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312195', 'tblTempVendorCDR_20' ) start [2025-01-23 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312195', 'tblTempVendorCDR_20' ) end [2025-01-23 12:02:24] Production.INFO: ProcessCDR(1,14312195,1,1,2) [2025-01-23 12:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312195', 'tblTempUsageDetail_20' ) start [2025-01-23 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312195', 'tblTempUsageDetail_20' ) end [2025-01-23 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:02:29] Production.INFO: ==23192== Releasing lock... [2025-01-23 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:02:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:03:06 [end_date_ymd] => 2025-01-23 12:03:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:03:06' and `end` < '2025-01-23 12: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-23 12:03:20] Production.INFO: count ==5028 [2025-01-23 12:03:22] Production.ERROR: pbx CDR StartTime 2025-01-23 09:03:06 - End Time 2025-01-23 12:03:06 [2025-01-23 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312200', 'tblTempUsageDetail_20' ) start [2025-01-23 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312200', 'tblTempUsageDetail_20' ) end [2025-01-23 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312200', 'tblTempVendorCDR_20' ) start [2025-01-23 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312200', 'tblTempVendorCDR_20' ) end [2025-01-23 12:03:23] Production.INFO: ProcessCDR(1,14312200,1,1,2) [2025-01-23 12:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312200', 'tblTempUsageDetail_20' ) start [2025-01-23 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312200', 'tblTempUsageDetail_20' ) end [2025-01-23 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:03:28] Production.INFO: ==23273== Releasing lock... [2025-01-23 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:03:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:04:06 [end_date_ymd] => 2025-01-23 12:04:06 [RateCDR] => 1 ) [2025-01-23 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:04:06' and `end` < '2025-01-23 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:04:23] Production.INFO: count ==5035 [2025-01-23 12:04:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:04:06 - End Time 2025-01-23 12:04:06 [2025-01-23 12:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312205', 'tblTempUsageDetail_20' ) start [2025-01-23 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312205', 'tblTempUsageDetail_20' ) end [2025-01-23 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312205', 'tblTempVendorCDR_20' ) start [2025-01-23 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312205', 'tblTempVendorCDR_20' ) end [2025-01-23 12:04:25] Production.INFO: ProcessCDR(1,14312205,1,1,2) [2025-01-23 12:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312205', 'tblTempUsageDetail_20' ) start [2025-01-23 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312205', 'tblTempUsageDetail_20' ) end [2025-01-23 12:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:04:30] Production.INFO: ==23354== Releasing lock... [2025-01-23 12:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:04:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:05:06 [end_date_ymd] => 2025-01-23 12:05:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:05:06' and `end` < '2025-01-23 12: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-23 12:05:19] Production.INFO: count ==5031 [2025-01-23 12:05:21] Production.ERROR: pbx CDR StartTime 2025-01-23 09:05:06 - End Time 2025-01-23 12:05:06 [2025-01-23 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312210', 'tblTempUsageDetail_20' ) start [2025-01-23 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312210', 'tblTempUsageDetail_20' ) end [2025-01-23 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312210', 'tblTempVendorCDR_20' ) start [2025-01-23 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312210', 'tblTempVendorCDR_20' ) end [2025-01-23 12:05:21] Production.INFO: ProcessCDR(1,14312210,1,1,2) [2025-01-23 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312210', 'tblTempUsageDetail_20' ) start [2025-01-23 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312210', 'tblTempUsageDetail_20' ) end [2025-01-23 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:05:26] Production.INFO: ==23431== Releasing lock... [2025-01-23 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:05:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:06:05 [end_date_ymd] => 2025-01-23 12:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:06:05' and `end` < '2025-01-23 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-23 12:06:28] Production.INFO: count ==5044 [2025-01-23 12:06:30] Production.ERROR: pbx CDR StartTime 2025-01-23 09:06:05 - End Time 2025-01-23 12:06:05 [2025-01-23 12:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312215', 'tblTempUsageDetail_20' ) start [2025-01-23 12:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312215', 'tblTempUsageDetail_20' ) end [2025-01-23 12:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312215', 'tblTempVendorCDR_20' ) start [2025-01-23 12:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312215', 'tblTempVendorCDR_20' ) end [2025-01-23 12:06:31] Production.INFO: ProcessCDR(1,14312215,1,1,2) [2025-01-23 12:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312215', 'tblTempUsageDetail_20' ) start [2025-01-23 12:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312215', 'tblTempUsageDetail_20' ) end [2025-01-23 12:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:06:36] Production.INFO: ==23512== Releasing lock... [2025-01-23 12:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:06:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:07:06 [end_date_ymd] => 2025-01-23 12:07:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:07:06' and `end` < '2025-01-23 12: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-23 12:07:23] Production.INFO: count ==5050 [2025-01-23 12:07:26] Production.ERROR: pbx CDR StartTime 2025-01-23 09:07:06 - End Time 2025-01-23 12:07:06 [2025-01-23 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312220', 'tblTempUsageDetail_20' ) start [2025-01-23 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312220', 'tblTempUsageDetail_20' ) end [2025-01-23 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312220', 'tblTempVendorCDR_20' ) start [2025-01-23 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312220', 'tblTempVendorCDR_20' ) end [2025-01-23 12:07:26] Production.INFO: ProcessCDR(1,14312220,1,1,2) [2025-01-23 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312220', 'tblTempUsageDetail_20' ) start [2025-01-23 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312220', 'tblTempUsageDetail_20' ) end [2025-01-23 12:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:07:31] Production.INFO: ==23590== Releasing lock... [2025-01-23 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:07:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:08:05 [end_date_ymd] => 2025-01-23 12:08:05 [RateCDR] => 1 ) [2025-01-23 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:08:05' and `end` < '2025-01-23 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:08:20] Production.INFO: count ==5052 [2025-01-23 12:08:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:08:05 - End Time 2025-01-23 12:08:05 [2025-01-23 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312225', 'tblTempUsageDetail_20' ) start [2025-01-23 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312225', 'tblTempUsageDetail_20' ) end [2025-01-23 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312225', 'tblTempVendorCDR_20' ) start [2025-01-23 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312225', 'tblTempVendorCDR_20' ) end [2025-01-23 12:08:23] Production.INFO: ProcessCDR(1,14312225,1,1,2) [2025-01-23 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312225', 'tblTempUsageDetail_20' ) start [2025-01-23 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312225', 'tblTempUsageDetail_20' ) end [2025-01-23 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:08:28] Production.INFO: ==23669== Releasing lock... [2025-01-23 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:08:28] Production.INFO: 66 MB #Memory Used# [2025-01-23 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:09:06 [end_date_ymd] => 2025-01-23 12:09:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:09:06' and `end` < '2025-01-23 12: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-23 12:09:20] Production.INFO: count ==5051 [2025-01-23 12:09:22] Production.ERROR: pbx CDR StartTime 2025-01-23 09:09:06 - End Time 2025-01-23 12:09:06 [2025-01-23 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312230', 'tblTempUsageDetail_20' ) start [2025-01-23 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312230', 'tblTempUsageDetail_20' ) end [2025-01-23 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312230', 'tblTempVendorCDR_20' ) start [2025-01-23 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312230', 'tblTempVendorCDR_20' ) end [2025-01-23 12:09:23] Production.INFO: ProcessCDR(1,14312230,1,1,2) [2025-01-23 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312230', 'tblTempUsageDetail_20' ) start [2025-01-23 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312230', 'tblTempUsageDetail_20' ) end [2025-01-23 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:09:28] Production.INFO: ==23749== Releasing lock... [2025-01-23 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:09:28] Production.INFO: 66 MB #Memory Used# [2025-01-23 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:10:06 [end_date_ymd] => 2025-01-23 12:10:06 [RateCDR] => 1 ) [2025-01-23 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:10:06' and `end` < '2025-01-23 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:10:35] Production.INFO: count ==5073 [2025-01-23 12:10:37] Production.ERROR: pbx CDR StartTime 2025-01-23 09:10:06 - End Time 2025-01-23 12:10:06 [2025-01-23 12:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312236', 'tblTempUsageDetail_20' ) start [2025-01-23 12:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312236', 'tblTempUsageDetail_20' ) end [2025-01-23 12:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312236', 'tblTempVendorCDR_20' ) start [2025-01-23 12:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312236', 'tblTempVendorCDR_20' ) end [2025-01-23 12:10:38] Production.INFO: ProcessCDR(1,14312236,1,1,2) [2025-01-23 12:10:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:10:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:10:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312236', 'tblTempUsageDetail_20' ) start [2025-01-23 12:10:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312236', 'tblTempUsageDetail_20' ) end [2025-01-23 12:10:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:10:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:10:43] Production.INFO: ==23831== Releasing lock... [2025-01-23 12:10:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:10:43] Production.INFO: 66 MB #Memory Used# [2025-01-23 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:11:06 [end_date_ymd] => 2025-01-23 12:11:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:11:06' and `end` < '2025-01-23 12: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-23 12:11:34] Production.INFO: count ==5113 [2025-01-23 12:11:36] Production.ERROR: pbx CDR StartTime 2025-01-23 09:11:06 - End Time 2025-01-23 12:11:06 [2025-01-23 12:11:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312241', 'tblTempUsageDetail_20' ) start [2025-01-23 12:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312241', 'tblTempUsageDetail_20' ) end [2025-01-23 12:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312241', 'tblTempVendorCDR_20' ) start [2025-01-23 12:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312241', 'tblTempVendorCDR_20' ) end [2025-01-23 12:11:37] Production.INFO: ProcessCDR(1,14312241,1,1,2) [2025-01-23 12:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:11:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:11:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312241', 'tblTempUsageDetail_20' ) start [2025-01-23 12:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312241', 'tblTempUsageDetail_20' ) end [2025-01-23 12:11:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:11:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:11:42] Production.INFO: ==23911== Releasing lock... [2025-01-23 12:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:11:42] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:12:05 [end_date_ymd] => 2025-01-23 12:12:05 [RateCDR] => 1 ) [2025-01-23 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:12:05' and `end` < '2025-01-23 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-23 12:12:34] Production.INFO: count ==5113 [2025-01-23 12:12:36] Production.ERROR: pbx CDR StartTime 2025-01-23 09:12:05 - End Time 2025-01-23 12:12:05 [2025-01-23 12:12:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312246', 'tblTempUsageDetail_20' ) start [2025-01-23 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312246', 'tblTempUsageDetail_20' ) end [2025-01-23 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312246', 'tblTempVendorCDR_20' ) start [2025-01-23 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312246', 'tblTempVendorCDR_20' ) end [2025-01-23 12:12:37] Production.INFO: ProcessCDR(1,14312246,1,1,2) [2025-01-23 12:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312246', 'tblTempUsageDetail_20' ) start [2025-01-23 12:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312246', 'tblTempUsageDetail_20' ) end [2025-01-23 12:12:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:12:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:12:42] Production.INFO: ==23990== Releasing lock... [2025-01-23 12:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:12:42] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:13:06 [end_date_ymd] => 2025-01-23 12:13:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:13:06' and `end` < '2025-01-23 12: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-23 12:13:30] Production.INFO: count ==5122 [2025-01-23 12:13:32] Production.ERROR: pbx CDR StartTime 2025-01-23 09:13:06 - End Time 2025-01-23 12:13:06 [2025-01-23 12:13:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312251', 'tblTempUsageDetail_20' ) start [2025-01-23 12:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312251', 'tblTempUsageDetail_20' ) end [2025-01-23 12:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312251', 'tblTempVendorCDR_20' ) start [2025-01-23 12:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312251', 'tblTempVendorCDR_20' ) end [2025-01-23 12:13:32] Production.INFO: ProcessCDR(1,14312251,1,1,2) [2025-01-23 12:13:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:13:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:13:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:13:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312251', 'tblTempUsageDetail_20' ) start [2025-01-23 12:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312251', 'tblTempUsageDetail_20' ) end [2025-01-23 12:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:13:38] Production.INFO: ==24071== Releasing lock... [2025-01-23 12:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:13:38] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:14:05 [end_date_ymd] => 2025-01-23 12:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:14:05' and `end` < '2025-01-23 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-23 12:14:24] Production.INFO: count ==5143 [2025-01-23 12:14:26] Production.ERROR: pbx CDR StartTime 2025-01-23 09:14:05 - End Time 2025-01-23 12:14:05 [2025-01-23 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312256', 'tblTempUsageDetail_20' ) start [2025-01-23 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312256', 'tblTempUsageDetail_20' ) end [2025-01-23 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312256', 'tblTempVendorCDR_20' ) start [2025-01-23 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312256', 'tblTempVendorCDR_20' ) end [2025-01-23 12:14:26] Production.INFO: ProcessCDR(1,14312256,1,1,2) [2025-01-23 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312256', 'tblTempUsageDetail_20' ) start [2025-01-23 12:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312256', 'tblTempUsageDetail_20' ) end [2025-01-23 12:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:14:32] Production.INFO: ==24151== Releasing lock... [2025-01-23 12:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:14:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:15:05 [end_date_ymd] => 2025-01-23 12:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:15:05' and `end` < '2025-01-23 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-23 12:15:25] Production.INFO: count ==5130 [2025-01-23 12:15:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:15:05 - End Time 2025-01-23 12:15:05 [2025-01-23 12:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312261', 'tblTempUsageDetail_20' ) start [2025-01-23 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312261', 'tblTempUsageDetail_20' ) end [2025-01-23 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312261', 'tblTempVendorCDR_20' ) start [2025-01-23 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312261', 'tblTempVendorCDR_20' ) end [2025-01-23 12:15:27] Production.INFO: ProcessCDR(1,14312261,1,1,2) [2025-01-23 12:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312261', 'tblTempUsageDetail_20' ) start [2025-01-23 12:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312261', 'tblTempUsageDetail_20' ) end [2025-01-23 12:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:15:32] Production.INFO: ==24226== Releasing lock... [2025-01-23 12:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:15:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:16:06 [end_date_ymd] => 2025-01-23 12:16:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:16:06' and `end` < '2025-01-23 12: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-23 12:16:21] Production.INFO: count ==5122 [2025-01-23 12:16:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:16:06 - End Time 2025-01-23 12:16:06 [2025-01-23 12:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312266', 'tblTempUsageDetail_20' ) start [2025-01-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312266', 'tblTempUsageDetail_20' ) end [2025-01-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312266', 'tblTempVendorCDR_20' ) start [2025-01-23 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312266', 'tblTempVendorCDR_20' ) end [2025-01-23 12:16:23] Production.INFO: ProcessCDR(1,14312266,1,1,2) [2025-01-23 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312266', 'tblTempUsageDetail_20' ) start [2025-01-23 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312266', 'tblTempUsageDetail_20' ) end [2025-01-23 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:16:28] Production.INFO: ==24307== Releasing lock... [2025-01-23 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:16:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:17:05 [end_date_ymd] => 2025-01-23 12:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:17:05' and `end` < '2025-01-23 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-23 12:17:31] Production.INFO: count ==5146 [2025-01-23 12:17:33] Production.ERROR: pbx CDR StartTime 2025-01-23 09:17:05 - End Time 2025-01-23 12:17:05 [2025-01-23 12:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312271', 'tblTempUsageDetail_20' ) start [2025-01-23 12:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312271', 'tblTempUsageDetail_20' ) end [2025-01-23 12:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312271', 'tblTempVendorCDR_20' ) start [2025-01-23 12:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312271', 'tblTempVendorCDR_20' ) end [2025-01-23 12:17:33] Production.INFO: ProcessCDR(1,14312271,1,1,2) [2025-01-23 12:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312271', 'tblTempUsageDetail_20' ) start [2025-01-23 12:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312271', 'tblTempUsageDetail_20' ) end [2025-01-23 12:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:17:38] Production.INFO: ==24425== Releasing lock... [2025-01-23 12:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:17:38] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:18:05 [end_date_ymd] => 2025-01-23 12:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:18:05' and `end` < '2025-01-23 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-23 12:18:24] Production.INFO: count ==5162 [2025-01-23 12:18:26] Production.ERROR: pbx CDR StartTime 2025-01-23 09:18:05 - End Time 2025-01-23 12:18:05 [2025-01-23 12:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312276', 'tblTempUsageDetail_20' ) start [2025-01-23 12:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312276', 'tblTempUsageDetail_20' ) end [2025-01-23 12:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312276', 'tblTempVendorCDR_20' ) start [2025-01-23 12:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312276', 'tblTempVendorCDR_20' ) end [2025-01-23 12:18:27] Production.INFO: ProcessCDR(1,14312276,1,1,2) [2025-01-23 12:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312276', 'tblTempUsageDetail_20' ) start [2025-01-23 12:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312276', 'tblTempUsageDetail_20' ) end [2025-01-23 12:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:18:31] Production.INFO: ==24514== Releasing lock... [2025-01-23 12:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:18:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:19:05 [end_date_ymd] => 2025-01-23 12:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:19:05' and `end` < '2025-01-23 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-23 12:19:28] Production.INFO: count ==5170 [2025-01-23 12:19:30] Production.ERROR: pbx CDR StartTime 2025-01-23 09:19:05 - End Time 2025-01-23 12:19:05 [2025-01-23 12:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312281', 'tblTempUsageDetail_20' ) start [2025-01-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312281', 'tblTempUsageDetail_20' ) end [2025-01-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312281', 'tblTempVendorCDR_20' ) start [2025-01-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312281', 'tblTempVendorCDR_20' ) end [2025-01-23 12:19:30] Production.INFO: ProcessCDR(1,14312281,1,1,2) [2025-01-23 12:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312281', 'tblTempUsageDetail_20' ) start [2025-01-23 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312281', 'tblTempUsageDetail_20' ) end [2025-01-23 12:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:19:35] Production.INFO: ==24595== Releasing lock... [2025-01-23 12:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:19:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:20:05 [end_date_ymd] => 2025-01-23 12:20:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:20:05' and `end` < '2025-01-23 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-23 12:20:24] Production.INFO: count ==5164 [2025-01-23 12:20:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:20:05 - End Time 2025-01-23 12:20:05 [2025-01-23 12:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312285', 'tblTempUsageDetail_20' ) start [2025-01-23 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312285', 'tblTempUsageDetail_20' ) end [2025-01-23 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312285', 'tblTempVendorCDR_20' ) start [2025-01-23 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312285', 'tblTempVendorCDR_20' ) end [2025-01-23 12:20:27] Production.INFO: ProcessCDR(1,14312285,1,1,2) [2025-01-23 12:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312285', 'tblTempUsageDetail_20' ) start [2025-01-23 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312285', 'tblTempUsageDetail_20' ) end [2025-01-23 12:20:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:20:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:20:32] Production.INFO: ==24676== Releasing lock... [2025-01-23 12:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:20:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:21:05 [end_date_ymd] => 2025-01-23 12:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:21:05' and `end` < '2025-01-23 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-23 12:21:20] Production.INFO: count ==5173 [2025-01-23 12:21:22] Production.ERROR: pbx CDR StartTime 2025-01-23 09:21:05 - End Time 2025-01-23 12:21:05 [2025-01-23 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312292', 'tblTempUsageDetail_20' ) start [2025-01-23 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312292', 'tblTempUsageDetail_20' ) end [2025-01-23 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312292', 'tblTempVendorCDR_20' ) start [2025-01-23 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312292', 'tblTempVendorCDR_20' ) end [2025-01-23 12:21:22] Production.INFO: ProcessCDR(1,14312292,1,1,2) [2025-01-23 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312292', 'tblTempUsageDetail_20' ) start [2025-01-23 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312292', 'tblTempUsageDetail_20' ) end [2025-01-23 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:21:27] Production.INFO: ==24752== Releasing lock... [2025-01-23 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:21:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:22:06 [end_date_ymd] => 2025-01-23 12:22:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:22:06' and `end` < '2025-01-23 12: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-23 12:22:20] Production.INFO: count ==5165 [2025-01-23 12:22:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:22:06 - End Time 2025-01-23 12:22:06 [2025-01-23 12:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312297', 'tblTempUsageDetail_20' ) start [2025-01-23 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312297', 'tblTempUsageDetail_20' ) end [2025-01-23 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312297', 'tblTempVendorCDR_20' ) start [2025-01-23 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312297', 'tblTempVendorCDR_20' ) end [2025-01-23 12:22:23] Production.INFO: ProcessCDR(1,14312297,1,1,2) [2025-01-23 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312297', 'tblTempUsageDetail_20' ) start [2025-01-23 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312297', 'tblTempUsageDetail_20' ) end [2025-01-23 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:22:27] Production.INFO: ==24831== Releasing lock... [2025-01-23 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:22:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:23:05 [end_date_ymd] => 2025-01-23 12:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:23:05' and `end` < '2025-01-23 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-23 12:23:19] Production.INFO: count ==5174 [2025-01-23 12:23:21] Production.ERROR: pbx CDR StartTime 2025-01-23 09:23:05 - End Time 2025-01-23 12:23:05 [2025-01-23 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312302', 'tblTempUsageDetail_20' ) start [2025-01-23 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312302', 'tblTempUsageDetail_20' ) end [2025-01-23 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312302', 'tblTempVendorCDR_20' ) start [2025-01-23 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312302', 'tblTempVendorCDR_20' ) end [2025-01-23 12:23:21] Production.INFO: ProcessCDR(1,14312302,1,1,2) [2025-01-23 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312302', 'tblTempUsageDetail_20' ) start [2025-01-23 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312302', 'tblTempUsageDetail_20' ) end [2025-01-23 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:23:26] Production.INFO: ==24907== Releasing lock... [2025-01-23 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:23:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:24:05 [end_date_ymd] => 2025-01-23 12:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:24:05' and `end` < '2025-01-23 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-23 12:24:19] Production.INFO: count ==5176 [2025-01-23 12:24:21] Production.ERROR: pbx CDR StartTime 2025-01-23 09:24:05 - End Time 2025-01-23 12:24:05 [2025-01-23 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312307', 'tblTempUsageDetail_20' ) start [2025-01-23 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312307', 'tblTempUsageDetail_20' ) end [2025-01-23 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312307', 'tblTempVendorCDR_20' ) start [2025-01-23 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312307', 'tblTempVendorCDR_20' ) end [2025-01-23 12:24:21] Production.INFO: ProcessCDR(1,14312307,1,1,2) [2025-01-23 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312307', 'tblTempUsageDetail_20' ) start [2025-01-23 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312307', 'tblTempUsageDetail_20' ) end [2025-01-23 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:24:27] Production.INFO: ==24986== Releasing lock... [2025-01-23 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:24:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:25:05 [end_date_ymd] => 2025-01-23 12:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:25:05' and `end` < '2025-01-23 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-23 12:25:25] Production.INFO: count ==5181 [2025-01-23 12:25:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:25:05 - End Time 2025-01-23 12:25:05 [2025-01-23 12:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312312', 'tblTempUsageDetail_20' ) start [2025-01-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312312', 'tblTempUsageDetail_20' ) end [2025-01-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312312', 'tblTempVendorCDR_20' ) start [2025-01-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312312', 'tblTempVendorCDR_20' ) end [2025-01-23 12:25:28] Production.INFO: ProcessCDR(1,14312312,1,1,2) [2025-01-23 12:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312312', 'tblTempUsageDetail_20' ) start [2025-01-23 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312312', 'tblTempUsageDetail_20' ) end [2025-01-23 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:25:33] Production.INFO: ==25061== Releasing lock... [2025-01-23 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:25:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:26:06 [end_date_ymd] => 2025-01-23 12:26:06 [RateCDR] => 1 ) [2025-01-23 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-23 09:26:06' and `end` < '2025-01-23 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-23 12:26:30] Production.INFO: count ==5181 [2025-01-23 12:26:32] Production.ERROR: pbx CDR StartTime 2025-01-23 09:26:06 - End Time 2025-01-23 12:26:06 [2025-01-23 12:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312317', 'tblTempUsageDetail_20' ) start [2025-01-23 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312317', 'tblTempUsageDetail_20' ) end [2025-01-23 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312317', 'tblTempVendorCDR_20' ) start [2025-01-23 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312317', 'tblTempVendorCDR_20' ) end [2025-01-23 12:26:32] Production.INFO: ProcessCDR(1,14312317,1,1,2) [2025-01-23 12:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312317', 'tblTempUsageDetail_20' ) start [2025-01-23 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312317', 'tblTempUsageDetail_20' ) end [2025-01-23 12:26:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:26:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:26:37] Production.INFO: ==25140== Releasing lock... [2025-01-23 12:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:26:37] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:27:05 [end_date_ymd] => 2025-01-23 12:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:27:05' and `end` < '2025-01-23 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-23 12:27:23] Production.INFO: count ==5165 [2025-01-23 12:27:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:27:05 - End Time 2025-01-23 12:27:05 [2025-01-23 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312322', 'tblTempUsageDetail_20' ) start [2025-01-23 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312322', 'tblTempUsageDetail_20' ) end [2025-01-23 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312322', 'tblTempVendorCDR_20' ) start [2025-01-23 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312322', 'tblTempVendorCDR_20' ) end [2025-01-23 12:27:25] Production.INFO: ProcessCDR(1,14312322,1,1,2) [2025-01-23 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312322', 'tblTempUsageDetail_20' ) start [2025-01-23 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312322', 'tblTempUsageDetail_20' ) end [2025-01-23 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:27:30] Production.INFO: ==25214== Releasing lock... [2025-01-23 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:27:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:28:06 [end_date_ymd] => 2025-01-23 12:28:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:28:06' and `end` < '2025-01-23 12: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-23 12:28:22] Production.INFO: count ==5172 [2025-01-23 12:28:24] Production.ERROR: pbx CDR StartTime 2025-01-23 09:28:06 - End Time 2025-01-23 12:28:06 [2025-01-23 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312327', 'tblTempUsageDetail_20' ) start [2025-01-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312327', 'tblTempUsageDetail_20' ) end [2025-01-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312327', 'tblTempVendorCDR_20' ) start [2025-01-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312327', 'tblTempVendorCDR_20' ) end [2025-01-23 12:28:25] Production.INFO: ProcessCDR(1,14312327,1,1,2) [2025-01-23 12:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312327', 'tblTempUsageDetail_20' ) start [2025-01-23 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312327', 'tblTempUsageDetail_20' ) end [2025-01-23 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:28:29] Production.INFO: ==25286== Releasing lock... [2025-01-23 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:28:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:29:05 [end_date_ymd] => 2025-01-23 12:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:29:05' and `end` < '2025-01-23 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-23 12:29:23] Production.INFO: count ==5176 [2025-01-23 12:29:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:29:05 - End Time 2025-01-23 12:29:05 [2025-01-23 12:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312332', 'tblTempUsageDetail_20' ) start [2025-01-23 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312332', 'tblTempUsageDetail_20' ) end [2025-01-23 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312332', 'tblTempVendorCDR_20' ) start [2025-01-23 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312332', 'tblTempVendorCDR_20' ) end [2025-01-23 12:29:26] Production.INFO: ProcessCDR(1,14312332,1,1,2) [2025-01-23 12:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312332', 'tblTempUsageDetail_20' ) start [2025-01-23 12:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312332', 'tblTempUsageDetail_20' ) end [2025-01-23 12:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:29:31] Production.INFO: ==25360== Releasing lock... [2025-01-23 12:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:29:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:30:06 [end_date_ymd] => 2025-01-23 12:30:06 [RateCDR] => 1 ) [2025-01-23 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:30:06' and `end` < '2025-01-23 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:30:25] Production.INFO: count ==5184 [2025-01-23 12:30:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:30:06 - End Time 2025-01-23 12:30:06 [2025-01-23 12:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312337', 'tblTempUsageDetail_20' ) start [2025-01-23 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312337', 'tblTempUsageDetail_20' ) end [2025-01-23 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312337', 'tblTempVendorCDR_20' ) start [2025-01-23 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312337', 'tblTempVendorCDR_20' ) end [2025-01-23 12:30:28] Production.INFO: ProcessCDR(1,14312337,1,1,2) [2025-01-23 12:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312337', 'tblTempUsageDetail_20' ) start [2025-01-23 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312337', 'tblTempUsageDetail_20' ) end [2025-01-23 12:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:30:33] Production.INFO: ==25434== Releasing lock... [2025-01-23 12:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:30:33] Production.INFO: 67 MB #Memory Used# [2025-01-23 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:31:05 [end_date_ymd] => 2025-01-23 12:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:31:05' and `end` < '2025-01-23 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-23 12:31:21] Production.INFO: count ==5139 [2025-01-23 12:31:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:31:05 - End Time 2025-01-23 12:31:05 [2025-01-23 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312343', 'tblTempUsageDetail_20' ) start [2025-01-23 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312343', 'tblTempUsageDetail_20' ) end [2025-01-23 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312343', 'tblTempVendorCDR_20' ) start [2025-01-23 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312343', 'tblTempVendorCDR_20' ) end [2025-01-23 12:31:23] Production.INFO: ProcessCDR(1,14312343,1,1,2) [2025-01-23 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312343', 'tblTempUsageDetail_20' ) start [2025-01-23 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312343', 'tblTempUsageDetail_20' ) end [2025-01-23 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:31:29] Production.INFO: ==25510== Releasing lock... [2025-01-23 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:31:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:32:06 [end_date_ymd] => 2025-01-23 12:32:06 [RateCDR] => 1 ) [2025-01-23 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-23 09:32:06' and `end` < '2025-01-23 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-23 12:32:19] Production.INFO: count ==5139 [2025-01-23 12:32:21] Production.ERROR: pbx CDR StartTime 2025-01-23 09:32:06 - End Time 2025-01-23 12:32:06 [2025-01-23 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312348', 'tblTempUsageDetail_20' ) start [2025-01-23 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312348', 'tblTempUsageDetail_20' ) end [2025-01-23 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312348', 'tblTempVendorCDR_20' ) start [2025-01-23 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312348', 'tblTempVendorCDR_20' ) end [2025-01-23 12:32:21] Production.INFO: ProcessCDR(1,14312348,1,1,2) [2025-01-23 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312348', 'tblTempUsageDetail_20' ) start [2025-01-23 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312348', 'tblTempUsageDetail_20' ) end [2025-01-23 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:32:26] Production.INFO: ==25619== Releasing lock... [2025-01-23 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:32:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:33:05 [end_date_ymd] => 2025-01-23 12:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:33:05' and `end` < '2025-01-23 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-23 12:33:21] Production.INFO: count ==5146 [2025-01-23 12:33:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:33:05 - End Time 2025-01-23 12:33:05 [2025-01-23 12:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312353', 'tblTempUsageDetail_20' ) start [2025-01-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312353', 'tblTempUsageDetail_20' ) end [2025-01-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312353', 'tblTempVendorCDR_20' ) start [2025-01-23 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312353', 'tblTempVendorCDR_20' ) end [2025-01-23 12:33:23] Production.INFO: ProcessCDR(1,14312353,1,1,2) [2025-01-23 12:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312353', 'tblTempUsageDetail_20' ) start [2025-01-23 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312353', 'tblTempUsageDetail_20' ) end [2025-01-23 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:33:28] Production.INFO: ==25690== Releasing lock... [2025-01-23 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:33:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:34:06 [end_date_ymd] => 2025-01-23 12:34:06 [RateCDR] => 1 ) [2025-01-23 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-23 09:34:06' and `end` < '2025-01-23 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-23 12:34:26] Production.INFO: count ==5141 [2025-01-23 12:34:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:34:06 - End Time 2025-01-23 12:34:06 [2025-01-23 12:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312358', 'tblTempUsageDetail_20' ) start [2025-01-23 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312358', 'tblTempUsageDetail_20' ) end [2025-01-23 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312358', 'tblTempVendorCDR_20' ) start [2025-01-23 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312358', 'tblTempVendorCDR_20' ) end [2025-01-23 12:34:28] Production.INFO: ProcessCDR(1,14312358,1,1,2) [2025-01-23 12:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312358', 'tblTempUsageDetail_20' ) start [2025-01-23 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312358', 'tblTempUsageDetail_20' ) end [2025-01-23 12:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:34:33] Production.INFO: ==25761== Releasing lock... [2025-01-23 12:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:34:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:35:05 [end_date_ymd] => 2025-01-23 12:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:35:05' and `end` < '2025-01-23 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-23 12:35:25] Production.INFO: count ==5138 [2025-01-23 12:35:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:35:05 - End Time 2025-01-23 12:35:05 [2025-01-23 12:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312363', 'tblTempUsageDetail_20' ) start [2025-01-23 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312363', 'tblTempUsageDetail_20' ) end [2025-01-23 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312363', 'tblTempVendorCDR_20' ) start [2025-01-23 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312363', 'tblTempVendorCDR_20' ) end [2025-01-23 12:35:28] Production.INFO: ProcessCDR(1,14312363,1,1,2) [2025-01-23 12:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312363', 'tblTempUsageDetail_20' ) start [2025-01-23 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312363', 'tblTempUsageDetail_20' ) end [2025-01-23 12:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:35:32] Production.INFO: ==25834== Releasing lock... [2025-01-23 12:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:35:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:36:05 [end_date_ymd] => 2025-01-23 12:36:05 [RateCDR] => 1 ) [2025-01-23 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:36:05' and `end` < '2025-01-23 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:36:22] Production.INFO: count ==5142 [2025-01-23 12:36:24] Production.ERROR: pbx CDR StartTime 2025-01-23 09:36:05 - End Time 2025-01-23 12:36:05 [2025-01-23 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312368', 'tblTempUsageDetail_20' ) start [2025-01-23 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312368', 'tblTempUsageDetail_20' ) end [2025-01-23 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312368', 'tblTempVendorCDR_20' ) start [2025-01-23 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312368', 'tblTempVendorCDR_20' ) end [2025-01-23 12:36:24] Production.INFO: ProcessCDR(1,14312368,1,1,2) [2025-01-23 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312368', 'tblTempUsageDetail_20' ) start [2025-01-23 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312368', 'tblTempUsageDetail_20' ) end [2025-01-23 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:36:29] Production.INFO: ==25907== Releasing lock... [2025-01-23 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:36:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:37:05 [end_date_ymd] => 2025-01-23 12:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:37:05' and `end` < '2025-01-23 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-23 12:37:23] Production.INFO: count ==5145 [2025-01-23 12:37:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:37:05 - End Time 2025-01-23 12:37:05 [2025-01-23 12:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312373', 'tblTempUsageDetail_20' ) start [2025-01-23 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312373', 'tblTempUsageDetail_20' ) end [2025-01-23 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312373', 'tblTempVendorCDR_20' ) start [2025-01-23 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312373', 'tblTempVendorCDR_20' ) end [2025-01-23 12:37:25] Production.INFO: ProcessCDR(1,14312373,1,1,2) [2025-01-23 12:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312373', 'tblTempUsageDetail_20' ) start [2025-01-23 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312373', 'tblTempUsageDetail_20' ) end [2025-01-23 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:37:30] Production.INFO: ==25980== Releasing lock... [2025-01-23 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:37:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:38:05 [end_date_ymd] => 2025-01-23 12:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:38:05' and `end` < '2025-01-23 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-23 12:38:25] Production.INFO: count ==5155 [2025-01-23 12:38:26] Production.ERROR: pbx CDR StartTime 2025-01-23 09:38:05 - End Time 2025-01-23 12:38:05 [2025-01-23 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312378', 'tblTempUsageDetail_20' ) start [2025-01-23 12:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312378', 'tblTempUsageDetail_20' ) end [2025-01-23 12:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312378', 'tblTempVendorCDR_20' ) start [2025-01-23 12:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312378', 'tblTempVendorCDR_20' ) end [2025-01-23 12:38:27] Production.INFO: ProcessCDR(1,14312378,1,1,2) [2025-01-23 12:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312378', 'tblTempUsageDetail_20' ) start [2025-01-23 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312378', 'tblTempUsageDetail_20' ) end [2025-01-23 12:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:38:32] Production.INFO: ==26051== Releasing lock... [2025-01-23 12:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:38:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:39:05 [end_date_ymd] => 2025-01-23 12:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:39:05' and `end` < '2025-01-23 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-23 12:39:25] Production.INFO: count ==5155 [2025-01-23 12:39:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:39:05 - End Time 2025-01-23 12:39:05 [2025-01-23 12:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312383', 'tblTempUsageDetail_20' ) start [2025-01-23 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312383', 'tblTempUsageDetail_20' ) end [2025-01-23 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312383', 'tblTempVendorCDR_20' ) start [2025-01-23 12:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312383', 'tblTempVendorCDR_20' ) end [2025-01-23 12:39:27] Production.INFO: ProcessCDR(1,14312383,1,1,2) [2025-01-23 12:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312383', 'tblTempUsageDetail_20' ) start [2025-01-23 12:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312383', 'tblTempUsageDetail_20' ) end [2025-01-23 12:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:39:32] Production.INFO: ==26124== Releasing lock... [2025-01-23 12:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:39:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:40:05 [end_date_ymd] => 2025-01-23 12:40:05 [RateCDR] => 1 ) [2025-01-23 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:40:05' and `end` < '2025-01-23 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:40:23] Production.INFO: count ==5156 [2025-01-23 12:40:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:40:05 - End Time 2025-01-23 12:40:05 [2025-01-23 12:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312388', 'tblTempUsageDetail_20' ) start [2025-01-23 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312388', 'tblTempUsageDetail_20' ) end [2025-01-23 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312388', 'tblTempVendorCDR_20' ) start [2025-01-23 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312388', 'tblTempVendorCDR_20' ) end [2025-01-23 12:40:26] Production.INFO: ProcessCDR(1,14312388,1,1,2) [2025-01-23 12:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312388', 'tblTempUsageDetail_20' ) start [2025-01-23 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312388', 'tblTempUsageDetail_20' ) end [2025-01-23 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:40:30] Production.INFO: ==26196== Releasing lock... [2025-01-23 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:40:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:41:06 [end_date_ymd] => 2025-01-23 12:41:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:41:06' and `end` < '2025-01-23 12: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-23 12:41:28] Production.INFO: count ==5199 [2025-01-23 12:41:30] Production.ERROR: pbx CDR StartTime 2025-01-23 09:41:06 - End Time 2025-01-23 12:41:06 [2025-01-23 12:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312394', 'tblTempUsageDetail_20' ) start [2025-01-23 12:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312394', 'tblTempUsageDetail_20' ) end [2025-01-23 12:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312394', 'tblTempVendorCDR_20' ) start [2025-01-23 12:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312394', 'tblTempVendorCDR_20' ) end [2025-01-23 12:41:30] Production.INFO: ProcessCDR(1,14312394,1,1,2) [2025-01-23 12:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312394', 'tblTempUsageDetail_20' ) start [2025-01-23 12:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312394', 'tblTempUsageDetail_20' ) end [2025-01-23 12:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:41:35] Production.INFO: ==26272== Releasing lock... [2025-01-23 12:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:41:35] Production.INFO: 67 MB #Memory Used# [2025-01-23 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:42:05 [end_date_ymd] => 2025-01-23 12:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:42:05' and `end` < '2025-01-23 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-23 12:42:27] Production.INFO: count ==5210 [2025-01-23 12:42:29] Production.ERROR: pbx CDR StartTime 2025-01-23 09:42:05 - End Time 2025-01-23 12:42:05 [2025-01-23 12:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312399', 'tblTempUsageDetail_20' ) start [2025-01-23 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312399', 'tblTempUsageDetail_20' ) end [2025-01-23 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312399', 'tblTempVendorCDR_20' ) start [2025-01-23 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312399', 'tblTempVendorCDR_20' ) end [2025-01-23 12:42:29] Production.INFO: ProcessCDR(1,14312399,1,1,2) [2025-01-23 12:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312399', 'tblTempUsageDetail_20' ) start [2025-01-23 12:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312399', 'tblTempUsageDetail_20' ) end [2025-01-23 12:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:42:34] Production.INFO: ==26342== Releasing lock... [2025-01-23 12:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:42:34] Production.INFO: 67 MB #Memory Used# [2025-01-23 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:43:05 [end_date_ymd] => 2025-01-23 12:43:05 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:43:05' and `end` < '2025-01-23 12: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-23 12:43:30] Production.INFO: count ==5218 [2025-01-23 12:43:32] Production.ERROR: pbx CDR StartTime 2025-01-23 09:43:05 - End Time 2025-01-23 12:43:05 [2025-01-23 12:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312404', 'tblTempUsageDetail_20' ) start [2025-01-23 12:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312404', 'tblTempUsageDetail_20' ) end [2025-01-23 12:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312404', 'tblTempVendorCDR_20' ) start [2025-01-23 12:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312404', 'tblTempVendorCDR_20' ) end [2025-01-23 12:43:32] Production.INFO: ProcessCDR(1,14312404,1,1,2) [2025-01-23 12:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312404', 'tblTempUsageDetail_20' ) start [2025-01-23 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312404', 'tblTempUsageDetail_20' ) end [2025-01-23 12:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:43:36] Production.INFO: ==26418== Releasing lock... [2025-01-23 12:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:43:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:44:05 [end_date_ymd] => 2025-01-23 12:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:44:05' and `end` < '2025-01-23 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-23 12:44:23] Production.INFO: count ==5235 [2025-01-23 12:44:25] Production.ERROR: pbx CDR StartTime 2025-01-23 09:44:05 - End Time 2025-01-23 12:44:05 [2025-01-23 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312409', 'tblTempUsageDetail_20' ) start [2025-01-23 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312409', 'tblTempUsageDetail_20' ) end [2025-01-23 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312409', 'tblTempVendorCDR_20' ) start [2025-01-23 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312409', 'tblTempVendorCDR_20' ) end [2025-01-23 12:44:26] Production.INFO: ProcessCDR(1,14312409,1,1,2) [2025-01-23 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312409', 'tblTempUsageDetail_20' ) start [2025-01-23 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312409', 'tblTempUsageDetail_20' ) end [2025-01-23 12:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:44:30] Production.INFO: ==26492== Releasing lock... [2025-01-23 12:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:44:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:45:05 [end_date_ymd] => 2025-01-23 12:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:45:05' and `end` < '2025-01-23 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-23 12:45:25] Production.INFO: count ==5230 [2025-01-23 12:45:27] Production.ERROR: pbx CDR StartTime 2025-01-23 09:45:05 - End Time 2025-01-23 12:45:05 [2025-01-23 12:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312414', 'tblTempUsageDetail_20' ) start [2025-01-23 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312414', 'tblTempUsageDetail_20' ) end [2025-01-23 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312414', 'tblTempVendorCDR_20' ) start [2025-01-23 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312414', 'tblTempVendorCDR_20' ) end [2025-01-23 12:45:27] Production.INFO: ProcessCDR(1,14312414,1,1,2) [2025-01-23 12:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312414', 'tblTempUsageDetail_20' ) start [2025-01-23 12:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312414', 'tblTempUsageDetail_20' ) end [2025-01-23 12:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:45:32] Production.INFO: ==26566== Releasing lock... [2025-01-23 12:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:45:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:46:04 [end_date_ymd] => 2025-01-23 12:46:04 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:46:04' and `end` < '2025-01-23 12: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-23 12:46:21] Production.INFO: count ==5231 [2025-01-23 12:46:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:46:04 - End Time 2025-01-23 12:46:04 [2025-01-23 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312419', 'tblTempUsageDetail_20' ) start [2025-01-23 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312419', 'tblTempUsageDetail_20' ) end [2025-01-23 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312419', 'tblTempVendorCDR_20' ) start [2025-01-23 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312419', 'tblTempVendorCDR_20' ) end [2025-01-23 12:46:23] Production.INFO: ProcessCDR(1,14312419,1,1,2) [2025-01-23 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312419', 'tblTempUsageDetail_20' ) start [2025-01-23 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312419', 'tblTempUsageDetail_20' ) end [2025-01-23 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:46:27] Production.INFO: ==26636== Releasing lock... [2025-01-23 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:46:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:47:05 [end_date_ymd] => 2025-01-23 12:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:47:05' and `end` < '2025-01-23 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-23 12:47:18] Production.INFO: count ==5228 [2025-01-23 12:47:20] Production.ERROR: pbx CDR StartTime 2025-01-23 09:47:05 - End Time 2025-01-23 12:47:05 [2025-01-23 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312424', 'tblTempUsageDetail_20' ) start [2025-01-23 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312424', 'tblTempUsageDetail_20' ) end [2025-01-23 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312424', 'tblTempVendorCDR_20' ) start [2025-01-23 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312424', 'tblTempVendorCDR_20' ) end [2025-01-23 12:47:20] Production.INFO: ProcessCDR(1,14312424,1,1,2) [2025-01-23 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312424', 'tblTempUsageDetail_20' ) start [2025-01-23 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312424', 'tblTempUsageDetail_20' ) end [2025-01-23 12:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:47:25] Production.INFO: ==26709== Releasing lock... [2025-01-23 12:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:47:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:48:05 [end_date_ymd] => 2025-01-23 12:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:48:05' and `end` < '2025-01-23 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-23 12:48:18] Production.INFO: count ==5231 [2025-01-23 12:48:20] Production.ERROR: pbx CDR StartTime 2025-01-23 09:48:05 - End Time 2025-01-23 12:48:05 [2025-01-23 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312429', 'tblTempUsageDetail_20' ) start [2025-01-23 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312429', 'tblTempUsageDetail_20' ) end [2025-01-23 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312429', 'tblTempVendorCDR_20' ) start [2025-01-23 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312429', 'tblTempVendorCDR_20' ) end [2025-01-23 12:48:20] Production.INFO: ProcessCDR(1,14312429,1,1,2) [2025-01-23 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312429', 'tblTempUsageDetail_20' ) start [2025-01-23 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312429', 'tblTempUsageDetail_20' ) end [2025-01-23 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:48:25] Production.INFO: ==26819== Releasing lock... [2025-01-23 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:48:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:49:05 [end_date_ymd] => 2025-01-23 12:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:49:05' and `end` < '2025-01-23 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-23 12:49:30] Production.INFO: count ==5236 [2025-01-23 12:49:32] Production.ERROR: pbx CDR StartTime 2025-01-23 09:49:05 - End Time 2025-01-23 12:49:05 [2025-01-23 12:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312434', 'tblTempUsageDetail_20' ) start [2025-01-23 12:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312434', 'tblTempUsageDetail_20' ) end [2025-01-23 12:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312434', 'tblTempVendorCDR_20' ) start [2025-01-23 12:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312434', 'tblTempVendorCDR_20' ) end [2025-01-23 12:49:32] Production.INFO: ProcessCDR(1,14312434,1,1,2) [2025-01-23 12:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312434', 'tblTempUsageDetail_20' ) start [2025-01-23 12:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312434', 'tblTempUsageDetail_20' ) end [2025-01-23 12:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:49:36] Production.INFO: ==26892== Releasing lock... [2025-01-23 12:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:49:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:50:06 [end_date_ymd] => 2025-01-23 12:50:06 [RateCDR] => 1 ) [2025-01-23 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 09:50:06' and `end` < '2025-01-23 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 12:50:27] Production.INFO: count ==5234 [2025-01-23 12:50:29] Production.ERROR: pbx CDR StartTime 2025-01-23 09:50:06 - End Time 2025-01-23 12:50:06 [2025-01-23 12:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312440', 'tblTempUsageDetail_20' ) start [2025-01-23 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312440', 'tblTempUsageDetail_20' ) end [2025-01-23 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312440', 'tblTempVendorCDR_20' ) start [2025-01-23 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312440', 'tblTempVendorCDR_20' ) end [2025-01-23 12:50:29] Production.INFO: ProcessCDR(1,14312440,1,1,2) [2025-01-23 12:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312440', 'tblTempUsageDetail_20' ) start [2025-01-23 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312440', 'tblTempUsageDetail_20' ) end [2025-01-23 12:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:50:34] Production.INFO: ==26965== Releasing lock... [2025-01-23 12:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:50:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:51:05 [end_date_ymd] => 2025-01-23 12:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:51:05' and `end` < '2025-01-23 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-23 12:51:24] Production.INFO: count ==5273 [2025-01-23 12:51:26] Production.ERROR: pbx CDR StartTime 2025-01-23 09:51:05 - End Time 2025-01-23 12:51:05 [2025-01-23 12:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312442', 'tblTempUsageDetail_20' ) start [2025-01-23 12:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312442', 'tblTempUsageDetail_20' ) end [2025-01-23 12:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312442', 'tblTempVendorCDR_20' ) start [2025-01-23 12:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312442', 'tblTempVendorCDR_20' ) end [2025-01-23 12:51:26] Production.INFO: ProcessCDR(1,14312442,1,1,2) [2025-01-23 12:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312442', 'tblTempUsageDetail_20' ) start [2025-01-23 12:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312442', 'tblTempUsageDetail_20' ) end [2025-01-23 12:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:51:31] Production.INFO: ==27038== Releasing lock... [2025-01-23 12:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:51:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:52:05 [end_date_ymd] => 2025-01-23 12:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:52:05' and `end` < '2025-01-23 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-23 12:52:25] Production.INFO: count ==5247 [2025-01-23 12:52:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:52:05 - End Time 2025-01-23 12:52:05 [2025-01-23 12:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312450', 'tblTempUsageDetail_20' ) start [2025-01-23 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312450', 'tblTempUsageDetail_20' ) end [2025-01-23 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312450', 'tblTempVendorCDR_20' ) start [2025-01-23 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312450', 'tblTempVendorCDR_20' ) end [2025-01-23 12:52:28] Production.INFO: ProcessCDR(1,14312450,1,1,2) [2025-01-23 12:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312450', 'tblTempUsageDetail_20' ) start [2025-01-23 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312450', 'tblTempUsageDetail_20' ) end [2025-01-23 12:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:52:32] Production.INFO: ==27109== Releasing lock... [2025-01-23 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:52:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:53:06 [end_date_ymd] => 2025-01-23 12:53:06 [RateCDR] => 1 ) [2025-01-23 12: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-23 09:53:06' and `end` < '2025-01-23 12: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-23 12:53:26] Production.INFO: count ==5240 [2025-01-23 12:53:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:53:06 - End Time 2025-01-23 12:53:06 [2025-01-23 12:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312455', 'tblTempUsageDetail_20' ) start [2025-01-23 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312455', 'tblTempUsageDetail_20' ) end [2025-01-23 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312455', 'tblTempVendorCDR_20' ) start [2025-01-23 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312455', 'tblTempVendorCDR_20' ) end [2025-01-23 12:53:28] Production.INFO: ProcessCDR(1,14312455,1,1,2) [2025-01-23 12:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312455', 'tblTempUsageDetail_20' ) start [2025-01-23 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312455', 'tblTempUsageDetail_20' ) end [2025-01-23 12:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:53:31] Production.INFO: ==27178== Releasing lock... [2025-01-23 12:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:53:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:54:05 [end_date_ymd] => 2025-01-23 12:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:54:05' and `end` < '2025-01-23 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-23 12:54:21] Production.INFO: count ==5241 [2025-01-23 12:54:23] Production.ERROR: pbx CDR StartTime 2025-01-23 09:54:05 - End Time 2025-01-23 12:54:05 [2025-01-23 12:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312460', 'tblTempUsageDetail_20' ) start [2025-01-23 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312460', 'tblTempUsageDetail_20' ) end [2025-01-23 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312460', 'tblTempVendorCDR_20' ) start [2025-01-23 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312460', 'tblTempVendorCDR_20' ) end [2025-01-23 12:54:24] Production.INFO: ProcessCDR(1,14312460,1,1,2) [2025-01-23 12:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312460', 'tblTempUsageDetail_20' ) start [2025-01-23 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312460', 'tblTempUsageDetail_20' ) end [2025-01-23 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:54:28] Production.INFO: ==27266== Releasing lock... [2025-01-23 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:54:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:55:05 [end_date_ymd] => 2025-01-23 12:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:55:05' and `end` < '2025-01-23 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-23 12:55:31] Production.INFO: count ==5240 [2025-01-23 12:55:33] Production.ERROR: pbx CDR StartTime 2025-01-23 09:55:05 - End Time 2025-01-23 12:55:05 [2025-01-23 12:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312465', 'tblTempUsageDetail_20' ) start [2025-01-23 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312465', 'tblTempUsageDetail_20' ) end [2025-01-23 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312465', 'tblTempVendorCDR_20' ) start [2025-01-23 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312465', 'tblTempVendorCDR_20' ) end [2025-01-23 12:55:33] Production.INFO: ProcessCDR(1,14312465,1,1,2) [2025-01-23 12:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312465', 'tblTempUsageDetail_20' ) start [2025-01-23 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312465', 'tblTempUsageDetail_20' ) end [2025-01-23 12:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:55:38] Production.INFO: ==27337== Releasing lock... [2025-01-23 12:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:55:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:56:05 [end_date_ymd] => 2025-01-23 12:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:56:05' and `end` < '2025-01-23 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-23 12:56:32] Production.INFO: count ==5250 [2025-01-23 12:56:34] Production.ERROR: pbx CDR StartTime 2025-01-23 09:56:05 - End Time 2025-01-23 12:56:05 [2025-01-23 12:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312470', 'tblTempUsageDetail_20' ) start [2025-01-23 12:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312470', 'tblTempUsageDetail_20' ) end [2025-01-23 12:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312470', 'tblTempVendorCDR_20' ) start [2025-01-23 12:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312470', 'tblTempVendorCDR_20' ) end [2025-01-23 12:56:34] Production.INFO: ProcessCDR(1,14312470,1,1,2) [2025-01-23 12:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:56:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312470', 'tblTempUsageDetail_20' ) start [2025-01-23 12:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312470', 'tblTempUsageDetail_20' ) end [2025-01-23 12:56:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:56:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:56:39] Production.INFO: ==27409== Releasing lock... [2025-01-23 12:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:56:39] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:57:05 [end_date_ymd] => 2025-01-23 12:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:57:05' and `end` < '2025-01-23 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-23 12:57:28] Production.INFO: count ==5269 [2025-01-23 12:57:30] Production.ERROR: pbx CDR StartTime 2025-01-23 09:57:05 - End Time 2025-01-23 12:57:05 [2025-01-23 12:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312475', 'tblTempUsageDetail_20' ) start [2025-01-23 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312475', 'tblTempUsageDetail_20' ) end [2025-01-23 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312475', 'tblTempVendorCDR_20' ) start [2025-01-23 12:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312475', 'tblTempVendorCDR_20' ) end [2025-01-23 12:57:30] Production.INFO: ProcessCDR(1,14312475,1,1,2) [2025-01-23 12:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312475', 'tblTempUsageDetail_20' ) start [2025-01-23 12:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312475', 'tblTempUsageDetail_20' ) end [2025-01-23 12:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:57:35] Production.INFO: ==27483== Releasing lock... [2025-01-23 12:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:57:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:58:05 [end_date_ymd] => 2025-01-23 12:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:58:05' and `end` < '2025-01-23 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-23 12:58:25] Production.INFO: count ==5273 [2025-01-23 12:58:28] Production.ERROR: pbx CDR StartTime 2025-01-23 09:58:05 - End Time 2025-01-23 12:58:05 [2025-01-23 12:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312480', 'tblTempUsageDetail_20' ) start [2025-01-23 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312480', 'tblTempUsageDetail_20' ) end [2025-01-23 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312480', 'tblTempVendorCDR_20' ) start [2025-01-23 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312480', 'tblTempVendorCDR_20' ) end [2025-01-23 12:58:28] Production.INFO: ProcessCDR(1,14312480,1,1,2) [2025-01-23 12:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312480', 'tblTempUsageDetail_20' ) start [2025-01-23 12:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312480', 'tblTempUsageDetail_20' ) end [2025-01-23 12:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:58:32] Production.INFO: ==27554== Releasing lock... [2025-01-23 12:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:58:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 09:59:05 [end_date_ymd] => 2025-01-23 12:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 09:59:05' and `end` < '2025-01-23 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-23 12:59:29] Production.INFO: count ==5287 [2025-01-23 12:59:32] Production.ERROR: pbx CDR StartTime 2025-01-23 09:59:05 - End Time 2025-01-23 12:59:05 [2025-01-23 12:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312485', 'tblTempUsageDetail_20' ) start [2025-01-23 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312485', 'tblTempUsageDetail_20' ) end [2025-01-23 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312485', 'tblTempVendorCDR_20' ) start [2025-01-23 12:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312485', 'tblTempVendorCDR_20' ) end [2025-01-23 12:59:32] Production.INFO: ProcessCDR(1,14312485,1,1,2) [2025-01-23 12:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 12:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 12:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312485', 'tblTempUsageDetail_20' ) start [2025-01-23 12:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312485', 'tblTempUsageDetail_20' ) end [2025-01-23 12:59:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 12:59:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 12:59:37] Production.INFO: ==27623== Releasing lock... [2025-01-23 12:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 12:59:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:00:06 [end_date_ymd] => 2025-01-23 13:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:00:06' and `end` < '2025-01-23 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-23 13:00:26] Production.INFO: count ==5297 [2025-01-23 13:00:29] Production.ERROR: pbx CDR StartTime 2025-01-23 10:00:06 - End Time 2025-01-23 13:00:06 [2025-01-23 13:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312490', 'tblTempUsageDetail_20' ) start [2025-01-23 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312490', 'tblTempUsageDetail_20' ) end [2025-01-23 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312490', 'tblTempVendorCDR_20' ) start [2025-01-23 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312490', 'tblTempVendorCDR_20' ) end [2025-01-23 13:00:29] Production.INFO: ProcessCDR(1,14312490,1,1,2) [2025-01-23 13:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312490', 'tblTempUsageDetail_20' ) start [2025-01-23 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312490', 'tblTempUsageDetail_20' ) end [2025-01-23 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:00:34] Production.INFO: ==27697== Releasing lock... [2025-01-23 13:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:00:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:01:06 [end_date_ymd] => 2025-01-23 13:01:06 [RateCDR] => 1 ) [2025-01-23 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:01:06' and `end` < '2025-01-23 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:01:25] Production.INFO: count ==5346 [2025-01-23 13:01:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:01:06 - End Time 2025-01-23 13:01:06 [2025-01-23 13:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312496', 'tblTempUsageDetail_20' ) start [2025-01-23 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312496', 'tblTempUsageDetail_20' ) end [2025-01-23 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312496', 'tblTempVendorCDR_20' ) start [2025-01-23 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312496', 'tblTempVendorCDR_20' ) end [2025-01-23 13:01:27] Production.INFO: ProcessCDR(1,14312496,1,1,2) [2025-01-23 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312496', 'tblTempUsageDetail_20' ) start [2025-01-23 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312496', 'tblTempUsageDetail_20' ) end [2025-01-23 13:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:01:32] Production.INFO: ==27781== Releasing lock... [2025-01-23 13:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:01:32] Production.INFO: 68 MB #Memory Used# [2025-01-23 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:02:06 [end_date_ymd] => 2025-01-23 13:02:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:02:06' and `end` < '2025-01-23 13: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-23 13:02:29] Production.INFO: count ==5353 [2025-01-23 13:02:31] Production.ERROR: pbx CDR StartTime 2025-01-23 10:02:06 - End Time 2025-01-23 13:02:06 [2025-01-23 13:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312501', 'tblTempUsageDetail_20' ) start [2025-01-23 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312501', 'tblTempUsageDetail_20' ) end [2025-01-23 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312501', 'tblTempVendorCDR_20' ) start [2025-01-23 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312501', 'tblTempVendorCDR_20' ) end [2025-01-23 13:02:31] Production.INFO: ProcessCDR(1,14312501,1,1,2) [2025-01-23 13:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312501', 'tblTempUsageDetail_20' ) start [2025-01-23 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312501', 'tblTempUsageDetail_20' ) end [2025-01-23 13:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:02:37] Production.INFO: ==27852== Releasing lock... [2025-01-23 13:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:02:37] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:03:05 [end_date_ymd] => 2025-01-23 13:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:03:05' and `end` < '2025-01-23 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-23 13:03:24] Production.INFO: count ==5366 [2025-01-23 13:03:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:03:05 - End Time 2025-01-23 13:03:05 [2025-01-23 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312506', 'tblTempUsageDetail_20' ) start [2025-01-23 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312506', 'tblTempUsageDetail_20' ) end [2025-01-23 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312506', 'tblTempVendorCDR_20' ) start [2025-01-23 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312506', 'tblTempVendorCDR_20' ) end [2025-01-23 13:03:26] Production.INFO: ProcessCDR(1,14312506,1,1,2) [2025-01-23 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312506', 'tblTempUsageDetail_20' ) start [2025-01-23 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312506', 'tblTempUsageDetail_20' ) end [2025-01-23 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:03:32] Production.INFO: ==27963== Releasing lock... [2025-01-23 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:03:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:04:06 [end_date_ymd] => 2025-01-23 13:04:06 [RateCDR] => 1 ) [2025-01-23 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:04:06' and `end` < '2025-01-23 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:04:31] Production.INFO: count ==5412 [2025-01-23 13:04:34] Production.ERROR: pbx CDR StartTime 2025-01-23 10:04:06 - End Time 2025-01-23 13:04:06 [2025-01-23 13:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312511', 'tblTempUsageDetail_20' ) start [2025-01-23 13:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312511', 'tblTempUsageDetail_20' ) end [2025-01-23 13:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312511', 'tblTempVendorCDR_20' ) start [2025-01-23 13:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312511', 'tblTempVendorCDR_20' ) end [2025-01-23 13:04:34] Production.INFO: ProcessCDR(1,14312511,1,1,2) [2025-01-23 13:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312511', 'tblTempUsageDetail_20' ) start [2025-01-23 13:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312511', 'tblTempUsageDetail_20' ) end [2025-01-23 13:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:04:40] Production.INFO: ==28032== Releasing lock... [2025-01-23 13:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:04:40] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:05:06 [end_date_ymd] => 2025-01-23 13:05:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:05:06' and `end` < '2025-01-23 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-23 13:05:29] Production.INFO: count ==5428 [2025-01-23 13:05:32] Production.ERROR: pbx CDR StartTime 2025-01-23 10:05:06 - End Time 2025-01-23 13:05:06 [2025-01-23 13:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312516', 'tblTempUsageDetail_20' ) start [2025-01-23 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312516', 'tblTempUsageDetail_20' ) end [2025-01-23 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312516', 'tblTempVendorCDR_20' ) start [2025-01-23 13:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312516', 'tblTempVendorCDR_20' ) end [2025-01-23 13:05:32] Production.INFO: ProcessCDR(1,14312516,1,1,2) [2025-01-23 13:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312516', 'tblTempUsageDetail_20' ) start [2025-01-23 13:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312516', 'tblTempUsageDetail_20' ) end [2025-01-23 13:05:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:05:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:05:38] Production.INFO: ==28103== Releasing lock... [2025-01-23 13:05:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:05:38] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:06:05 [end_date_ymd] => 2025-01-23 13:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:06:05' and `end` < '2025-01-23 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-23 13:06:27] Production.INFO: count ==5448 [2025-01-23 13:06:29] Production.ERROR: pbx CDR StartTime 2025-01-23 10:06:05 - End Time 2025-01-23 13:06:05 [2025-01-23 13:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312521', 'tblTempUsageDetail_20' ) start [2025-01-23 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312521', 'tblTempUsageDetail_20' ) end [2025-01-23 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312521', 'tblTempVendorCDR_20' ) start [2025-01-23 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312521', 'tblTempVendorCDR_20' ) end [2025-01-23 13:06:29] Production.INFO: ProcessCDR(1,14312521,1,1,2) [2025-01-23 13:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312521', 'tblTempUsageDetail_20' ) start [2025-01-23 13:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312521', 'tblTempUsageDetail_20' ) end [2025-01-23 13:06:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:06:35] Production.INFO: ==28173== Releasing lock... [2025-01-23 13:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:06:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:07:06 [end_date_ymd] => 2025-01-23 13:07:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:07:06' and `end` < '2025-01-23 13: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-23 13:07:29] Production.INFO: count ==5432 [2025-01-23 13:07:31] Production.ERROR: pbx CDR StartTime 2025-01-23 10:07:06 - End Time 2025-01-23 13:07:06 [2025-01-23 13:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312526', 'tblTempUsageDetail_20' ) start [2025-01-23 13:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312526', 'tblTempUsageDetail_20' ) end [2025-01-23 13:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312526', 'tblTempVendorCDR_20' ) start [2025-01-23 13:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312526', 'tblTempVendorCDR_20' ) end [2025-01-23 13:07:31] Production.INFO: ProcessCDR(1,14312526,1,1,2) [2025-01-23 13:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312526', 'tblTempUsageDetail_20' ) start [2025-01-23 13:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312526', 'tblTempUsageDetail_20' ) end [2025-01-23 13:07:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:07:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:07:37] Production.INFO: ==28245== Releasing lock... [2025-01-23 13:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:07:37] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:08:05 [end_date_ymd] => 2025-01-23 13:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:08:05' and `end` < '2025-01-23 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-23 13:08:23] Production.INFO: count ==5443 [2025-01-23 13:08:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:08:05 - End Time 2025-01-23 13:08:05 [2025-01-23 13:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312531', 'tblTempUsageDetail_20' ) start [2025-01-23 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312531', 'tblTempUsageDetail_20' ) end [2025-01-23 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312531', 'tblTempVendorCDR_20' ) start [2025-01-23 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312531', 'tblTempVendorCDR_20' ) end [2025-01-23 13:08:26] Production.INFO: ProcessCDR(1,14312531,1,1,2) [2025-01-23 13:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312531', 'tblTempUsageDetail_20' ) start [2025-01-23 13:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312531', 'tblTempUsageDetail_20' ) end [2025-01-23 13:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:08:31] Production.INFO: ==28315== Releasing lock... [2025-01-23 13:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:08:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:09:06 [end_date_ymd] => 2025-01-23 13:09:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:09:06' and `end` < '2025-01-23 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-23 13:09:23] Production.INFO: count ==5451 [2025-01-23 13:09:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:09:06 - End Time 2025-01-23 13:09:06 [2025-01-23 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312536', 'tblTempUsageDetail_20' ) start [2025-01-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312536', 'tblTempUsageDetail_20' ) end [2025-01-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312536', 'tblTempVendorCDR_20' ) start [2025-01-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312536', 'tblTempVendorCDR_20' ) end [2025-01-23 13:09:25] Production.INFO: ProcessCDR(1,14312536,1,1,2) [2025-01-23 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312536', 'tblTempUsageDetail_20' ) start [2025-01-23 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312536', 'tblTempUsageDetail_20' ) end [2025-01-23 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:09:30] Production.INFO: ==28385== Releasing lock... [2025-01-23 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:09:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:10:06 [end_date_ymd] => 2025-01-23 13:10:06 [RateCDR] => 1 ) [2025-01-23 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:10:06' and `end` < '2025-01-23 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:10:32] Production.INFO: count ==5438 [2025-01-23 13:10:34] Production.ERROR: pbx CDR StartTime 2025-01-23 10:10:06 - End Time 2025-01-23 13:10:06 [2025-01-23 13:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312542', 'tblTempUsageDetail_20' ) start [2025-01-23 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312542', 'tblTempUsageDetail_20' ) end [2025-01-23 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312542', 'tblTempVendorCDR_20' ) start [2025-01-23 13:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312542', 'tblTempVendorCDR_20' ) end [2025-01-23 13:10:34] Production.INFO: ProcessCDR(1,14312542,1,1,2) [2025-01-23 13:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312542', 'tblTempUsageDetail_20' ) start [2025-01-23 13:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312542', 'tblTempUsageDetail_20' ) end [2025-01-23 13:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:10:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:10:40] Production.INFO: ==28457== Releasing lock... [2025-01-23 13:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:10:40] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:11:06 [end_date_ymd] => 2025-01-23 13:11:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:11:06' and `end` < '2025-01-23 13: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-23 13:11:24] Production.INFO: count ==5441 [2025-01-23 13:11:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:11:06 - End Time 2025-01-23 13:11:06 [2025-01-23 13:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312547', 'tblTempUsageDetail_20' ) start [2025-01-23 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312547', 'tblTempUsageDetail_20' ) end [2025-01-23 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312547', 'tblTempVendorCDR_20' ) start [2025-01-23 13:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312547', 'tblTempVendorCDR_20' ) end [2025-01-23 13:11:26] Production.INFO: ProcessCDR(1,14312547,1,1,2) [2025-01-23 13:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312547', 'tblTempUsageDetail_20' ) start [2025-01-23 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312547', 'tblTempUsageDetail_20' ) end [2025-01-23 13:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:11:31] Production.INFO: ==28532== Releasing lock... [2025-01-23 13:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:11:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:12:05 [end_date_ymd] => 2025-01-23 13:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:12:05' and `end` < '2025-01-23 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-23 13:12:22] Production.INFO: count ==5444 [2025-01-23 13:12:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:12:05 - End Time 2025-01-23 13:12:05 [2025-01-23 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312552', 'tblTempUsageDetail_20' ) start [2025-01-23 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312552', 'tblTempUsageDetail_20' ) end [2025-01-23 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312552', 'tblTempVendorCDR_20' ) start [2025-01-23 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312552', 'tblTempVendorCDR_20' ) end [2025-01-23 13:12:25] Production.INFO: ProcessCDR(1,14312552,1,1,2) [2025-01-23 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312552', 'tblTempUsageDetail_20' ) start [2025-01-23 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312552', 'tblTempUsageDetail_20' ) end [2025-01-23 13:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:12:30] Production.INFO: ==28602== Releasing lock... [2025-01-23 13:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:12:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:13:06 [end_date_ymd] => 2025-01-23 13:13:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:13:06' and `end` < '2025-01-23 13: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-23 13:13:22] Production.INFO: count ==5448 [2025-01-23 13:13:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:13:06 - End Time 2025-01-23 13:13:06 [2025-01-23 13:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312557', 'tblTempUsageDetail_20' ) start [2025-01-23 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312557', 'tblTempUsageDetail_20' ) end [2025-01-23 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312557', 'tblTempVendorCDR_20' ) start [2025-01-23 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312557', 'tblTempVendorCDR_20' ) end [2025-01-23 13:13:25] Production.INFO: ProcessCDR(1,14312557,1,1,2) [2025-01-23 13:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312557', 'tblTempUsageDetail_20' ) start [2025-01-23 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312557', 'tblTempUsageDetail_20' ) end [2025-01-23 13:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:13:31] Production.INFO: ==28673== Releasing lock... [2025-01-23 13:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:13:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:14:06 [end_date_ymd] => 2025-01-23 13:14:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:14:06' and `end` < '2025-01-23 13: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-23 13:14:23] Production.INFO: count ==5456 [2025-01-23 13:14:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:14:06 - End Time 2025-01-23 13:14:06 [2025-01-23 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312562', 'tblTempUsageDetail_20' ) start [2025-01-23 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312562', 'tblTempUsageDetail_20' ) end [2025-01-23 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312562', 'tblTempVendorCDR_20' ) start [2025-01-23 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312562', 'tblTempVendorCDR_20' ) end [2025-01-23 13:14:25] Production.INFO: ProcessCDR(1,14312562,1,1,2) [2025-01-23 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312562', 'tblTempUsageDetail_20' ) start [2025-01-23 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312562', 'tblTempUsageDetail_20' ) end [2025-01-23 13:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:14:31] Production.INFO: ==28744== Releasing lock... [2025-01-23 13:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:14:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:15:05 [end_date_ymd] => 2025-01-23 13:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:15:05' and `end` < '2025-01-23 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-23 13:15:31] Production.INFO: count ==5476 [2025-01-23 13:15:33] Production.ERROR: pbx CDR StartTime 2025-01-23 10:15:05 - End Time 2025-01-23 13:15:05 [2025-01-23 13:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312567', 'tblTempUsageDetail_20' ) start [2025-01-23 13:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312567', 'tblTempUsageDetail_20' ) end [2025-01-23 13:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312567', 'tblTempVendorCDR_20' ) start [2025-01-23 13:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312567', 'tblTempVendorCDR_20' ) end [2025-01-23 13:15:33] Production.INFO: ProcessCDR(1,14312567,1,1,2) [2025-01-23 13:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312567', 'tblTempUsageDetail_20' ) start [2025-01-23 13:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312567', 'tblTempUsageDetail_20' ) end [2025-01-23 13:15:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:15:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:15:39] Production.INFO: ==28814== Releasing lock... [2025-01-23 13:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:15:39] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:16:06 [end_date_ymd] => 2025-01-23 13:16:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:16:06' and `end` < '2025-01-23 13: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-23 13:16:26] Production.INFO: count ==5483 [2025-01-23 13:16:28] Production.ERROR: pbx CDR StartTime 2025-01-23 10:16:06 - End Time 2025-01-23 13:16:06 [2025-01-23 13:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312572', 'tblTempUsageDetail_20' ) start [2025-01-23 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312572', 'tblTempUsageDetail_20' ) end [2025-01-23 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312572', 'tblTempVendorCDR_20' ) start [2025-01-23 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312572', 'tblTempVendorCDR_20' ) end [2025-01-23 13:16:28] Production.INFO: ProcessCDR(1,14312572,1,1,2) [2025-01-23 13:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312572', 'tblTempUsageDetail_20' ) start [2025-01-23 13:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312572', 'tblTempUsageDetail_20' ) end [2025-01-23 13:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:16:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:16:34] Production.INFO: ==28886== Releasing lock... [2025-01-23 13:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:16:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:17:05 [end_date_ymd] => 2025-01-23 13:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:17:05' and `end` < '2025-01-23 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-23 13:17:25] Production.INFO: count ==5478 [2025-01-23 13:17:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:17:05 - End Time 2025-01-23 13:17:05 [2025-01-23 13:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312577', 'tblTempUsageDetail_20' ) start [2025-01-23 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312577', 'tblTempUsageDetail_20' ) end [2025-01-23 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312577', 'tblTempVendorCDR_20' ) start [2025-01-23 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312577', 'tblTempVendorCDR_20' ) end [2025-01-23 13:17:27] Production.INFO: ProcessCDR(1,14312577,1,1,2) [2025-01-23 13:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312577', 'tblTempUsageDetail_20' ) start [2025-01-23 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312577', 'tblTempUsageDetail_20' ) end [2025-01-23 13:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:17:32] Production.INFO: ==28956== Releasing lock... [2025-01-23 13:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:17:32] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:18:06 [end_date_ymd] => 2025-01-23 13:18:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:18:06' and `end` < '2025-01-23 13: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-23 13:18:26] Production.INFO: count ==5470 [2025-01-23 13:18:28] Production.ERROR: pbx CDR StartTime 2025-01-23 10:18:06 - End Time 2025-01-23 13:18:06 [2025-01-23 13:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312582', 'tblTempUsageDetail_20' ) start [2025-01-23 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312582', 'tblTempUsageDetail_20' ) end [2025-01-23 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312582', 'tblTempVendorCDR_20' ) start [2025-01-23 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312582', 'tblTempVendorCDR_20' ) end [2025-01-23 13:18:28] Production.INFO: ProcessCDR(1,14312582,1,1,2) [2025-01-23 13:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312582', 'tblTempUsageDetail_20' ) start [2025-01-23 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312582', 'tblTempUsageDetail_20' ) end [2025-01-23 13:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:18:34] Production.INFO: ==29028== Releasing lock... [2025-01-23 13:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:18:34] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:19:05 [end_date_ymd] => 2025-01-23 13:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:19:05' and `end` < '2025-01-23 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-23 13:19:27] Production.INFO: count ==5483 [2025-01-23 13:19:30] Production.ERROR: pbx CDR StartTime 2025-01-23 10:19:05 - End Time 2025-01-23 13:19:05 [2025-01-23 13:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312587', 'tblTempUsageDetail_20' ) start [2025-01-23 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312587', 'tblTempUsageDetail_20' ) end [2025-01-23 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312587', 'tblTempVendorCDR_20' ) start [2025-01-23 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312587', 'tblTempVendorCDR_20' ) end [2025-01-23 13:19:30] Production.INFO: ProcessCDR(1,14312587,1,1,2) [2025-01-23 13:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312587', 'tblTempUsageDetail_20' ) start [2025-01-23 13:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312587', 'tblTempUsageDetail_20' ) end [2025-01-23 13:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:19:36] Production.INFO: ==29140== Releasing lock... [2025-01-23 13:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:19:36] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:20:06 [end_date_ymd] => 2025-01-23 13:20:06 [RateCDR] => 1 ) [2025-01-23 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:20:06' and `end` < '2025-01-23 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:20:32] Production.INFO: count ==5482 [2025-01-23 13:20:34] Production.ERROR: pbx CDR StartTime 2025-01-23 10:20:06 - End Time 2025-01-23 13:20:06 [2025-01-23 13:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312593', 'tblTempUsageDetail_20' ) start [2025-01-23 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312593', 'tblTempUsageDetail_20' ) end [2025-01-23 13:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312593', 'tblTempVendorCDR_20' ) start [2025-01-23 13:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312593', 'tblTempVendorCDR_20' ) end [2025-01-23 13:20:35] Production.INFO: ProcessCDR(1,14312593,1,1,2) [2025-01-23 13:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:20:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312593', 'tblTempUsageDetail_20' ) start [2025-01-23 13:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312593', 'tblTempUsageDetail_20' ) end [2025-01-23 13:20:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:20:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:20:40] Production.INFO: ==29214== Releasing lock... [2025-01-23 13:20:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:20:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:21:06 [end_date_ymd] => 2025-01-23 13:21:06 [RateCDR] => 1 ) [2025-01-23 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:21:06' and `end` < '2025-01-23 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:21:32] Production.INFO: count ==5501 [2025-01-23 13:21:34] Production.ERROR: pbx CDR StartTime 2025-01-23 10:21:06 - End Time 2025-01-23 13:21:06 [2025-01-23 13:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312598', 'tblTempUsageDetail_20' ) start [2025-01-23 13:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312598', 'tblTempUsageDetail_20' ) end [2025-01-23 13:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312598', 'tblTempVendorCDR_20' ) start [2025-01-23 13:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312598', 'tblTempVendorCDR_20' ) end [2025-01-23 13:21:34] Production.INFO: ProcessCDR(1,14312598,1,1,2) [2025-01-23 13:21:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:21:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:21:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:21:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312598', 'tblTempUsageDetail_20' ) start [2025-01-23 13:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312598', 'tblTempUsageDetail_20' ) end [2025-01-23 13:21:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:21:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:21:40] Production.INFO: ==29287== Releasing lock... [2025-01-23 13:21:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:21:40] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:22:06 [end_date_ymd] => 2025-01-23 13:22:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:22:06' and `end` < '2025-01-23 13: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-23 13:22:30] Production.INFO: count ==5494 [2025-01-23 13:22:32] Production.ERROR: pbx CDR StartTime 2025-01-23 10:22:06 - End Time 2025-01-23 13:22:06 [2025-01-23 13:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312603', 'tblTempUsageDetail_20' ) start [2025-01-23 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312603', 'tblTempUsageDetail_20' ) end [2025-01-23 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312603', 'tblTempVendorCDR_20' ) start [2025-01-23 13:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312603', 'tblTempVendorCDR_20' ) end [2025-01-23 13:22:33] Production.INFO: ProcessCDR(1,14312603,1,1,2) [2025-01-23 13:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312603', 'tblTempUsageDetail_20' ) start [2025-01-23 13:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312603', 'tblTempUsageDetail_20' ) end [2025-01-23 13:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:22:38] Production.INFO: ==29359== Releasing lock... [2025-01-23 13:22:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:22:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:23:05 [end_date_ymd] => 2025-01-23 13:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:23:05' and `end` < '2025-01-23 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-23 13:23:22] Production.INFO: count ==5476 [2025-01-23 13:23:24] Production.ERROR: pbx CDR StartTime 2025-01-23 10:23:05 - End Time 2025-01-23 13:23:05 [2025-01-23 13:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312605', 'tblTempUsageDetail_20' ) start [2025-01-23 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312605', 'tblTempUsageDetail_20' ) end [2025-01-23 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312605', 'tblTempVendorCDR_20' ) start [2025-01-23 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312605', 'tblTempVendorCDR_20' ) end [2025-01-23 13:23:25] Production.INFO: ProcessCDR(1,14312605,1,1,2) [2025-01-23 13:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312605', 'tblTempUsageDetail_20' ) start [2025-01-23 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312605', 'tblTempUsageDetail_20' ) end [2025-01-23 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:23:28] Production.INFO: ==29433== Releasing lock... [2025-01-23 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:23:28] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:24:06 [end_date_ymd] => 2025-01-23 13:24:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:24:06' and `end` < '2025-01-23 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-23 13:24:23] Production.INFO: count ==5473 [2025-01-23 13:24:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:24:06 - End Time 2025-01-23 13:24:06 [2025-01-23 13:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312613', 'tblTempUsageDetail_20' ) start [2025-01-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312613', 'tblTempUsageDetail_20' ) end [2025-01-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312613', 'tblTempVendorCDR_20' ) start [2025-01-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312613', 'tblTempVendorCDR_20' ) end [2025-01-23 13:24:25] Production.INFO: ProcessCDR(1,14312613,1,1,2) [2025-01-23 13:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312613', 'tblTempUsageDetail_20' ) start [2025-01-23 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312613', 'tblTempUsageDetail_20' ) end [2025-01-23 13:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:24:30] Production.INFO: ==29505== Releasing lock... [2025-01-23 13:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:24:30] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:25:05 [end_date_ymd] => 2025-01-23 13:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:25:05' and `end` < '2025-01-23 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-23 13:25:26] Production.INFO: count ==5465 [2025-01-23 13:25:28] Production.ERROR: pbx CDR StartTime 2025-01-23 10:25:05 - End Time 2025-01-23 13:25:05 [2025-01-23 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312618', 'tblTempUsageDetail_20' ) start [2025-01-23 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312618', 'tblTempUsageDetail_20' ) end [2025-01-23 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312618', 'tblTempVendorCDR_20' ) start [2025-01-23 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312618', 'tblTempVendorCDR_20' ) end [2025-01-23 13:25:28] Production.INFO: ProcessCDR(1,14312618,1,1,2) [2025-01-23 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312618', 'tblTempUsageDetail_20' ) start [2025-01-23 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312618', 'tblTempUsageDetail_20' ) end [2025-01-23 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:25:34] Production.INFO: ==29575== Releasing lock... [2025-01-23 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:25:34] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:26:06 [end_date_ymd] => 2025-01-23 13:26:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:26:06' and `end` < '2025-01-23 13: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-23 13:26:22] Production.INFO: count ==5463 [2025-01-23 13:26:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:26:06 - End Time 2025-01-23 13:26:06 [2025-01-23 13:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312623', 'tblTempUsageDetail_20' ) start [2025-01-23 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312623', 'tblTempUsageDetail_20' ) end [2025-01-23 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312623', 'tblTempVendorCDR_20' ) start [2025-01-23 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312623', 'tblTempVendorCDR_20' ) end [2025-01-23 13:26:25] Production.INFO: ProcessCDR(1,14312623,1,1,2) [2025-01-23 13:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312623', 'tblTempUsageDetail_20' ) start [2025-01-23 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312623', 'tblTempUsageDetail_20' ) end [2025-01-23 13:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:26:31] Production.INFO: ==29646== Releasing lock... [2025-01-23 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:26:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:27:05 [end_date_ymd] => 2025-01-23 13:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:27:05' and `end` < '2025-01-23 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-23 13:27:23] Production.INFO: count ==5467 [2025-01-23 13:27:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:27:05 - End Time 2025-01-23 13:27:05 [2025-01-23 13:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312628', 'tblTempUsageDetail_20' ) start [2025-01-23 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312628', 'tblTempUsageDetail_20' ) end [2025-01-23 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312628', 'tblTempVendorCDR_20' ) start [2025-01-23 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312628', 'tblTempVendorCDR_20' ) end [2025-01-23 13:27:26] Production.INFO: ProcessCDR(1,14312628,1,1,2) [2025-01-23 13:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312628', 'tblTempUsageDetail_20' ) start [2025-01-23 13:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312628', 'tblTempUsageDetail_20' ) end [2025-01-23 13:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:27:31] Production.INFO: ==29716== Releasing lock... [2025-01-23 13:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:27:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:28:06 [end_date_ymd] => 2025-01-23 13:28:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:28:06' and `end` < '2025-01-23 13: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-23 13:28:24] Production.INFO: count ==5459 [2025-01-23 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:28:06 - End Time 2025-01-23 13:28:06 [2025-01-23 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312633', 'tblTempUsageDetail_20' ) start [2025-01-23 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312633', 'tblTempUsageDetail_20' ) end [2025-01-23 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312633', 'tblTempVendorCDR_20' ) start [2025-01-23 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312633', 'tblTempVendorCDR_20' ) end [2025-01-23 13:28:26] Production.INFO: ProcessCDR(1,14312633,1,1,2) [2025-01-23 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312633', 'tblTempUsageDetail_20' ) start [2025-01-23 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312633', 'tblTempUsageDetail_20' ) end [2025-01-23 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:28:31] Production.INFO: ==29788== Releasing lock... [2025-01-23 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:28:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:29:05 [end_date_ymd] => 2025-01-23 13:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:29:05' and `end` < '2025-01-23 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:29:33] Production.INFO: count ==5456 [2025-01-23 13:29:35] Production.ERROR: pbx CDR StartTime 2025-01-23 10:29:05 - End Time 2025-01-23 13:29:05 [2025-01-23 13:29:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312638', 'tblTempUsageDetail_20' ) start [2025-01-23 13:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312638', 'tblTempUsageDetail_20' ) end [2025-01-23 13:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312638', 'tblTempVendorCDR_20' ) start [2025-01-23 13:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312638', 'tblTempVendorCDR_20' ) end [2025-01-23 13:29:35] Production.INFO: ProcessCDR(1,14312638,1,1,2) [2025-01-23 13:29:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:29:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312638', 'tblTempUsageDetail_20' ) start [2025-01-23 13:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312638', 'tblTempUsageDetail_20' ) end [2025-01-23 13:29:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:29:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:29:41] Production.INFO: ==29861== Releasing lock... [2025-01-23 13:29:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:29:41] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:30:06 [end_date_ymd] => 2025-01-23 13:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:30:06' and `end` < '2025-01-23 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-23 13:30:35] Production.INFO: count ==5454 [2025-01-23 13:30:38] Production.ERROR: pbx CDR StartTime 2025-01-23 10:30:06 - End Time 2025-01-23 13:30:06 [2025-01-23 13:30:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312644', 'tblTempUsageDetail_20' ) start [2025-01-23 13:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312644', 'tblTempUsageDetail_20' ) end [2025-01-23 13:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312644', 'tblTempVendorCDR_20' ) start [2025-01-23 13:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312644', 'tblTempVendorCDR_20' ) end [2025-01-23 13:30:38] Production.INFO: ProcessCDR(1,14312644,1,1,2) [2025-01-23 13:30:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:30:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:30:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312644', 'tblTempUsageDetail_20' ) start [2025-01-23 13:30:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312644', 'tblTempUsageDetail_20' ) end [2025-01-23 13:30:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:30:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:30:43] Production.INFO: ==29936== Releasing lock... [2025-01-23 13:30:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:30:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:31:05 [end_date_ymd] => 2025-01-23 13:31:05 [RateCDR] => 1 ) [2025-01-23 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:31:05' and `end` < '2025-01-23 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:31:29] Production.INFO: count ==5429 [2025-01-23 13:31:32] Production.ERROR: pbx CDR StartTime 2025-01-23 10:31:05 - End Time 2025-01-23 13:31:05 [2025-01-23 13:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312649', 'tblTempUsageDetail_20' ) start [2025-01-23 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312649', 'tblTempUsageDetail_20' ) end [2025-01-23 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312649', 'tblTempVendorCDR_20' ) start [2025-01-23 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312649', 'tblTempVendorCDR_20' ) end [2025-01-23 13:31:32] Production.INFO: ProcessCDR(1,14312649,1,1,2) [2025-01-23 13:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312649', 'tblTempUsageDetail_20' ) start [2025-01-23 13:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312649', 'tblTempUsageDetail_20' ) end [2025-01-23 13:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:31:38] Production.INFO: ==30009== Releasing lock... [2025-01-23 13:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:31:38] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:32:06 [end_date_ymd] => 2025-01-23 13:32:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:32:06' and `end` < '2025-01-23 13: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-23 13:32:24] Production.INFO: count ==5435 [2025-01-23 13:32:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:32:06 - End Time 2025-01-23 13:32:06 [2025-01-23 13:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312654', 'tblTempUsageDetail_20' ) start [2025-01-23 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312654', 'tblTempUsageDetail_20' ) end [2025-01-23 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312654', 'tblTempVendorCDR_20' ) start [2025-01-23 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312654', 'tblTempVendorCDR_20' ) end [2025-01-23 13:32:27] Production.INFO: ProcessCDR(1,14312654,1,1,2) [2025-01-23 13:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312654', 'tblTempUsageDetail_20' ) start [2025-01-23 13:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312654', 'tblTempUsageDetail_20' ) end [2025-01-23 13:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:32:33] Production.INFO: ==30084== Releasing lock... [2025-01-23 13:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:32:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:33:05 [end_date_ymd] => 2025-01-23 13:33:05 [RateCDR] => 1 ) [2025-01-23 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:33:05' and `end` < '2025-01-23 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:33:29] Production.INFO: count ==5427 [2025-01-23 13:33:31] Production.ERROR: pbx CDR StartTime 2025-01-23 10:33:05 - End Time 2025-01-23 13:33:05 [2025-01-23 13:33:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312659', 'tblTempUsageDetail_20' ) start [2025-01-23 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312659', 'tblTempUsageDetail_20' ) end [2025-01-23 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312659', 'tblTempVendorCDR_20' ) start [2025-01-23 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312659', 'tblTempVendorCDR_20' ) end [2025-01-23 13:33:32] Production.INFO: ProcessCDR(1,14312659,1,1,2) [2025-01-23 13:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:33:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:33:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312659', 'tblTempUsageDetail_20' ) start [2025-01-23 13:33:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312659', 'tblTempUsageDetail_20' ) end [2025-01-23 13:33:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:33:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:33:37] Production.INFO: ==30157== Releasing lock... [2025-01-23 13:33:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:33:37] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:34:06 [end_date_ymd] => 2025-01-23 13:34:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:34:06' and `end` < '2025-01-23 13: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-23 13:34:29] Production.INFO: count ==5414 [2025-01-23 13:34:32] Production.ERROR: pbx CDR StartTime 2025-01-23 10:34:06 - End Time 2025-01-23 13:34:06 [2025-01-23 13:34:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312664', 'tblTempUsageDetail_20' ) start [2025-01-23 13:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312664', 'tblTempUsageDetail_20' ) end [2025-01-23 13:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312664', 'tblTempVendorCDR_20' ) start [2025-01-23 13:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312664', 'tblTempVendorCDR_20' ) end [2025-01-23 13:34:32] Production.INFO: ProcessCDR(1,14312664,1,1,2) [2025-01-23 13:34:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312664', 'tblTempUsageDetail_20' ) start [2025-01-23 13:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312664', 'tblTempUsageDetail_20' ) end [2025-01-23 13:34:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:34:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:34:37] Production.INFO: ==30271== Releasing lock... [2025-01-23 13:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:34:37] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:35:05 [end_date_ymd] => 2025-01-23 13:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:35:05' and `end` < '2025-01-23 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-23 13:35:24] Production.INFO: count ==5423 [2025-01-23 13:35:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:35:05 - End Time 2025-01-23 13:35:05 [2025-01-23 13:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312669', 'tblTempUsageDetail_20' ) start [2025-01-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312669', 'tblTempUsageDetail_20' ) end [2025-01-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312669', 'tblTempVendorCDR_20' ) start [2025-01-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312669', 'tblTempVendorCDR_20' ) end [2025-01-23 13:35:26] Production.INFO: ProcessCDR(1,14312669,1,1,2) [2025-01-23 13:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312669', 'tblTempUsageDetail_20' ) start [2025-01-23 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312669', 'tblTempUsageDetail_20' ) end [2025-01-23 13:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:35:31] Production.INFO: ==30344== Releasing lock... [2025-01-23 13:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:35:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:36:05 [end_date_ymd] => 2025-01-23 13:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:36:05' and `end` < '2025-01-23 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-23 13:36:19] Production.INFO: count ==5426 [2025-01-23 13:36:22] Production.ERROR: pbx CDR StartTime 2025-01-23 10:36:05 - End Time 2025-01-23 13:36:05 [2025-01-23 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312674', 'tblTempUsageDetail_20' ) start [2025-01-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312674', 'tblTempUsageDetail_20' ) end [2025-01-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312674', 'tblTempVendorCDR_20' ) start [2025-01-23 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312674', 'tblTempVendorCDR_20' ) end [2025-01-23 13:36:22] Production.INFO: ProcessCDR(1,14312674,1,1,2) [2025-01-23 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312674', 'tblTempUsageDetail_20' ) start [2025-01-23 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312674', 'tblTempUsageDetail_20' ) end [2025-01-23 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:36:27] Production.INFO: ==30414== Releasing lock... [2025-01-23 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:36:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:37:06 [end_date_ymd] => 2025-01-23 13:37:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:37:06' and `end` < '2025-01-23 13: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-23 13:37:25] Production.INFO: count ==5420 [2025-01-23 13:37:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:37:06 - End Time 2025-01-23 13:37:06 [2025-01-23 13:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312679', 'tblTempUsageDetail_20' ) start [2025-01-23 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312679', 'tblTempUsageDetail_20' ) end [2025-01-23 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312679', 'tblTempVendorCDR_20' ) start [2025-01-23 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312679', 'tblTempVendorCDR_20' ) end [2025-01-23 13:37:27] Production.INFO: ProcessCDR(1,14312679,1,1,2) [2025-01-23 13:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312679', 'tblTempUsageDetail_20' ) start [2025-01-23 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312679', 'tblTempUsageDetail_20' ) end [2025-01-23 13:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:37:33] Production.INFO: ==30483== Releasing lock... [2025-01-23 13:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:37:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:38:06 [end_date_ymd] => 2025-01-23 13:38:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:38:06' and `end` < '2025-01-23 13: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-23 13:38:26] Production.INFO: count ==5418 [2025-01-23 13:38:29] Production.ERROR: pbx CDR StartTime 2025-01-23 10:38:06 - End Time 2025-01-23 13:38:06 [2025-01-23 13:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312684', 'tblTempUsageDetail_20' ) start [2025-01-23 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312684', 'tblTempUsageDetail_20' ) end [2025-01-23 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312684', 'tblTempVendorCDR_20' ) start [2025-01-23 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312684', 'tblTempVendorCDR_20' ) end [2025-01-23 13:38:29] Production.INFO: ProcessCDR(1,14312684,1,1,2) [2025-01-23 13:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312684', 'tblTempUsageDetail_20' ) start [2025-01-23 13:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312684', 'tblTempUsageDetail_20' ) end [2025-01-23 13:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:38:35] Production.INFO: ==30555== Releasing lock... [2025-01-23 13:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:38:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:39:06 [end_date_ymd] => 2025-01-23 13:39:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:39:06' and `end` < '2025-01-23 13: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-23 13:39:22] Production.INFO: count ==5417 [2025-01-23 13:39:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:39:06 - End Time 2025-01-23 13:39:06 [2025-01-23 13:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312689', 'tblTempUsageDetail_20' ) start [2025-01-23 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312689', 'tblTempUsageDetail_20' ) end [2025-01-23 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312689', 'tblTempVendorCDR_20' ) start [2025-01-23 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312689', 'tblTempVendorCDR_20' ) end [2025-01-23 13:39:25] Production.INFO: ProcessCDR(1,14312689,1,1,2) [2025-01-23 13:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312689', 'tblTempUsageDetail_20' ) start [2025-01-23 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312689', 'tblTempUsageDetail_20' ) end [2025-01-23 13:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:39:30] Production.INFO: ==30625== Releasing lock... [2025-01-23 13:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:39:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:40:06 [end_date_ymd] => 2025-01-23 13:40:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:40:06' and `end` < '2025-01-23 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-23 13:40:20] Production.INFO: count ==5408 [2025-01-23 13:40:22] Production.ERROR: pbx CDR StartTime 2025-01-23 10:40:06 - End Time 2025-01-23 13:40:06 [2025-01-23 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312695', 'tblTempUsageDetail_20' ) start [2025-01-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312695', 'tblTempUsageDetail_20' ) end [2025-01-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312695', 'tblTempVendorCDR_20' ) start [2025-01-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312695', 'tblTempVendorCDR_20' ) end [2025-01-23 13:40:22] Production.INFO: ProcessCDR(1,14312695,1,1,2) [2025-01-23 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312695', 'tblTempUsageDetail_20' ) start [2025-01-23 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312695', 'tblTempUsageDetail_20' ) end [2025-01-23 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:40:27] Production.INFO: ==30698== Releasing lock... [2025-01-23 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:40:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:41:06 [end_date_ymd] => 2025-01-23 13:41:06 [RateCDR] => 1 ) [2025-01-23 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:41:06' and `end` < '2025-01-23 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:41:21] Production.INFO: count ==5377 [2025-01-23 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-23 10:41:06 - End Time 2025-01-23 13:41:06 [2025-01-23 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312700', 'tblTempUsageDetail_20' ) start [2025-01-23 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312700', 'tblTempUsageDetail_20' ) end [2025-01-23 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312700', 'tblTempVendorCDR_20' ) start [2025-01-23 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312700', 'tblTempVendorCDR_20' ) end [2025-01-23 13:41:23] Production.INFO: ProcessCDR(1,14312700,1,1,2) [2025-01-23 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312700', 'tblTempUsageDetail_20' ) start [2025-01-23 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312700', 'tblTempUsageDetail_20' ) end [2025-01-23 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:41:28] Production.INFO: ==30771== Releasing lock... [2025-01-23 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:41:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:42:05 [end_date_ymd] => 2025-01-23 13:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:42:05' and `end` < '2025-01-23 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-23 13:42:20] Production.INFO: count ==5381 [2025-01-23 13:42:22] Production.ERROR: pbx CDR StartTime 2025-01-23 10:42:05 - End Time 2025-01-23 13:42:05 [2025-01-23 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312705', 'tblTempUsageDetail_20' ) start [2025-01-23 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312705', 'tblTempUsageDetail_20' ) end [2025-01-23 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312705', 'tblTempVendorCDR_20' ) start [2025-01-23 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312705', 'tblTempVendorCDR_20' ) end [2025-01-23 13:42:23] Production.INFO: ProcessCDR(1,14312705,1,1,2) [2025-01-23 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312705', 'tblTempUsageDetail_20' ) start [2025-01-23 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312705', 'tblTempUsageDetail_20' ) end [2025-01-23 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:42:28] Production.INFO: ==30842== Releasing lock... [2025-01-23 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:42:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:43:06 [end_date_ymd] => 2025-01-23 13:43:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:43:06' and `end` < '2025-01-23 13: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-23 13:43:28] Production.INFO: count ==5356 [2025-01-23 13:43:31] Production.ERROR: pbx CDR StartTime 2025-01-23 10:43:06 - End Time 2025-01-23 13:43:06 [2025-01-23 13:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312710', 'tblTempUsageDetail_20' ) start [2025-01-23 13:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312710', 'tblTempUsageDetail_20' ) end [2025-01-23 13:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312710', 'tblTempVendorCDR_20' ) start [2025-01-23 13:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312710', 'tblTempVendorCDR_20' ) end [2025-01-23 13:43:31] Production.INFO: ProcessCDR(1,14312710,1,1,2) [2025-01-23 13:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312710', 'tblTempUsageDetail_20' ) start [2025-01-23 13:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312710', 'tblTempUsageDetail_20' ) end [2025-01-23 13:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:43:36] Production.INFO: ==30914== Releasing lock... [2025-01-23 13:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:43:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:44:06 [end_date_ymd] => 2025-01-23 13:44:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:44:06' and `end` < '2025-01-23 13: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-23 13:44:25] Production.INFO: count ==5362 [2025-01-23 13:44:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:44:06 - End Time 2025-01-23 13:44:06 [2025-01-23 13:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312715', 'tblTempUsageDetail_20' ) start [2025-01-23 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312715', 'tblTempUsageDetail_20' ) end [2025-01-23 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312715', 'tblTempVendorCDR_20' ) start [2025-01-23 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312715', 'tblTempVendorCDR_20' ) end [2025-01-23 13:44:27] Production.INFO: ProcessCDR(1,14312715,1,1,2) [2025-01-23 13:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312715', 'tblTempUsageDetail_20' ) start [2025-01-23 13:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312715', 'tblTempUsageDetail_20' ) end [2025-01-23 13:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:44:32] Production.INFO: ==30987== Releasing lock... [2025-01-23 13:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:44:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:45:05 [end_date_ymd] => 2025-01-23 13:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:45:05' and `end` < '2025-01-23 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-23 13:45:28] Production.INFO: count ==5369 [2025-01-23 13:45:30] Production.ERROR: pbx CDR StartTime 2025-01-23 10:45:05 - End Time 2025-01-23 13:45:05 [2025-01-23 13:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312720', 'tblTempUsageDetail_20' ) start [2025-01-23 13:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312720', 'tblTempUsageDetail_20' ) end [2025-01-23 13:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312720', 'tblTempVendorCDR_20' ) start [2025-01-23 13:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312720', 'tblTempVendorCDR_20' ) end [2025-01-23 13:45:30] Production.INFO: ProcessCDR(1,14312720,1,1,2) [2025-01-23 13:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312720', 'tblTempUsageDetail_20' ) start [2025-01-23 13:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312720', 'tblTempUsageDetail_20' ) end [2025-01-23 13:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:45:36] Production.INFO: ==31058== Releasing lock... [2025-01-23 13:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:45:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:46:05 [end_date_ymd] => 2025-01-23 13:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:46:05' and `end` < '2025-01-23 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-23 13:46:27] Production.INFO: count ==5359 [2025-01-23 13:46:30] Production.ERROR: pbx CDR StartTime 2025-01-23 10:46:05 - End Time 2025-01-23 13:46:05 [2025-01-23 13:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312725', 'tblTempUsageDetail_20' ) start [2025-01-23 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312725', 'tblTempUsageDetail_20' ) end [2025-01-23 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312725', 'tblTempVendorCDR_20' ) start [2025-01-23 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312725', 'tblTempVendorCDR_20' ) end [2025-01-23 13:46:30] Production.INFO: ProcessCDR(1,14312725,1,1,2) [2025-01-23 13:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312725', 'tblTempUsageDetail_20' ) start [2025-01-23 13:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312725', 'tblTempUsageDetail_20' ) end [2025-01-23 13:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:46:35] Production.INFO: ==31128== Releasing lock... [2025-01-23 13:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:46:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:47:05 [end_date_ymd] => 2025-01-23 13:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:47:05' and `end` < '2025-01-23 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-23 13:47:35] Production.INFO: count ==5366 [2025-01-23 13:47:37] Production.ERROR: pbx CDR StartTime 2025-01-23 10:47:05 - End Time 2025-01-23 13:47:05 [2025-01-23 13:47:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:47:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312730', 'tblTempUsageDetail_20' ) start [2025-01-23 13:47:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312730', 'tblTempUsageDetail_20' ) end [2025-01-23 13:47:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312730', 'tblTempVendorCDR_20' ) start [2025-01-23 13:47:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312730', 'tblTempVendorCDR_20' ) end [2025-01-23 13:47:37] Production.INFO: ProcessCDR(1,14312730,1,1,2) [2025-01-23 13:47:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:47:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:47:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:47:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:47:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312730', 'tblTempUsageDetail_20' ) start [2025-01-23 13:47:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312730', 'tblTempUsageDetail_20' ) end [2025-01-23 13:47:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:47:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:47:43] Production.INFO: ==31199== Releasing lock... [2025-01-23 13:47:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:47:43] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:48:06 [end_date_ymd] => 2025-01-23 13:48:06 [RateCDR] => 1 ) [2025-01-23 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:48:06' and `end` < '2025-01-23 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:48:25] Production.INFO: count ==5364 [2025-01-23 13:48:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:48:06 - End Time 2025-01-23 13:48:06 [2025-01-23 13:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312735', 'tblTempUsageDetail_20' ) start [2025-01-23 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312735', 'tblTempUsageDetail_20' ) end [2025-01-23 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312735', 'tblTempVendorCDR_20' ) start [2025-01-23 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312735', 'tblTempVendorCDR_20' ) end [2025-01-23 13:48:27] Production.INFO: ProcessCDR(1,14312735,1,1,2) [2025-01-23 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312735', 'tblTempUsageDetail_20' ) start [2025-01-23 13:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312735', 'tblTempUsageDetail_20' ) end [2025-01-23 13:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:48:33] Production.INFO: ==31268== Releasing lock... [2025-01-23 13:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:48:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:49:05 [end_date_ymd] => 2025-01-23 13:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:49:05' and `end` < '2025-01-23 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-23 13:49:24] Production.INFO: count ==5363 [2025-01-23 13:49:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:49:05 - End Time 2025-01-23 13:49:05 [2025-01-23 13:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312740', 'tblTempUsageDetail_20' ) start [2025-01-23 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312740', 'tblTempUsageDetail_20' ) end [2025-01-23 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312740', 'tblTempVendorCDR_20' ) start [2025-01-23 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312740', 'tblTempVendorCDR_20' ) end [2025-01-23 13:49:27] Production.INFO: ProcessCDR(1,14312740,1,1,2) [2025-01-23 13:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312740', 'tblTempUsageDetail_20' ) start [2025-01-23 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312740', 'tblTempUsageDetail_20' ) end [2025-01-23 13:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:49:32] Production.INFO: ==31378== Releasing lock... [2025-01-23 13:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:49:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:50:06 [end_date_ymd] => 2025-01-23 13:50:06 [RateCDR] => 1 ) [2025-01-23 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:50:06' and `end` < '2025-01-23 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:50:20] Production.INFO: count ==5375 [2025-01-23 13:50:22] Production.ERROR: pbx CDR StartTime 2025-01-23 10:50:06 - End Time 2025-01-23 13:50:06 [2025-01-23 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312745', 'tblTempUsageDetail_20' ) start [2025-01-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312745', 'tblTempUsageDetail_20' ) end [2025-01-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312745', 'tblTempVendorCDR_20' ) start [2025-01-23 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312745', 'tblTempVendorCDR_20' ) end [2025-01-23 13:50:23] Production.INFO: ProcessCDR(1,14312745,1,1,2) [2025-01-23 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312745', 'tblTempUsageDetail_20' ) start [2025-01-23 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312745', 'tblTempUsageDetail_20' ) end [2025-01-23 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:50:28] Production.INFO: ==31457== Releasing lock... [2025-01-23 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:50:28] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:51:05 [end_date_ymd] => 2025-01-23 13:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:51:05' and `end` < '2025-01-23 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-23 13:51:27] Production.INFO: count ==5397 [2025-01-23 13:51:30] Production.ERROR: pbx CDR StartTime 2025-01-23 10:51:05 - End Time 2025-01-23 13:51:05 [2025-01-23 13:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312751', 'tblTempUsageDetail_20' ) start [2025-01-23 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312751', 'tblTempUsageDetail_20' ) end [2025-01-23 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312751', 'tblTempVendorCDR_20' ) start [2025-01-23 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312751', 'tblTempVendorCDR_20' ) end [2025-01-23 13:51:30] Production.INFO: ProcessCDR(1,14312751,1,1,2) [2025-01-23 13:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312751', 'tblTempUsageDetail_20' ) start [2025-01-23 13:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312751', 'tblTempUsageDetail_20' ) end [2025-01-23 13:51:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:51:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:51:35] Production.INFO: ==31532== Releasing lock... [2025-01-23 13:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:51:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:52:06 [end_date_ymd] => 2025-01-23 13:52:06 [RateCDR] => 1 ) [2025-01-23 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-23 10:52:06' and `end` < '2025-01-23 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-23 13:52:24] Production.INFO: count ==5407 [2025-01-23 13:52:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:52:06 - End Time 2025-01-23 13:52:06 [2025-01-23 13:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312756', 'tblTempUsageDetail_20' ) start [2025-01-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312756', 'tblTempUsageDetail_20' ) end [2025-01-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312756', 'tblTempVendorCDR_20' ) start [2025-01-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312756', 'tblTempVendorCDR_20' ) end [2025-01-23 13:52:27] Production.INFO: ProcessCDR(1,14312756,1,1,2) [2025-01-23 13:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312756', 'tblTempUsageDetail_20' ) start [2025-01-23 13:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312756', 'tblTempUsageDetail_20' ) end [2025-01-23 13:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:52:32] Production.INFO: ==31603== Releasing lock... [2025-01-23 13:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:52:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:53:05 [end_date_ymd] => 2025-01-23 13:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:53:05' and `end` < '2025-01-23 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-23 13:53:23] Production.INFO: count ==5414 [2025-01-23 13:53:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:53:05 - End Time 2025-01-23 13:53:05 [2025-01-23 13:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312761', 'tblTempUsageDetail_20' ) start [2025-01-23 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312761', 'tblTempUsageDetail_20' ) end [2025-01-23 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312761', 'tblTempVendorCDR_20' ) start [2025-01-23 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312761', 'tblTempVendorCDR_20' ) end [2025-01-23 13:53:26] Production.INFO: ProcessCDR(1,14312761,1,1,2) [2025-01-23 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312761', 'tblTempUsageDetail_20' ) start [2025-01-23 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312761', 'tblTempUsageDetail_20' ) end [2025-01-23 13:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:53:32] Production.INFO: ==31673== Releasing lock... [2025-01-23 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:53:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:54:05 [end_date_ymd] => 2025-01-23 13:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:54:05' and `end` < '2025-01-23 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-23 13:54:24] Production.INFO: count ==5422 [2025-01-23 13:54:26] Production.ERROR: pbx CDR StartTime 2025-01-23 10:54:05 - End Time 2025-01-23 13:54:05 [2025-01-23 13:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312766', 'tblTempUsageDetail_20' ) start [2025-01-23 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312766', 'tblTempUsageDetail_20' ) end [2025-01-23 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312766', 'tblTempVendorCDR_20' ) start [2025-01-23 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312766', 'tblTempVendorCDR_20' ) end [2025-01-23 13:54:26] Production.INFO: ProcessCDR(1,14312766,1,1,2) [2025-01-23 13:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312766', 'tblTempUsageDetail_20' ) start [2025-01-23 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312766', 'tblTempUsageDetail_20' ) end [2025-01-23 13:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:54:32] Production.INFO: ==31744== Releasing lock... [2025-01-23 13:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:54:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:55:05 [end_date_ymd] => 2025-01-23 13:55:05 [RateCDR] => 1 ) [2025-01-23 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:55:05' and `end` < '2025-01-23 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:55:26] Production.INFO: count ==5399 [2025-01-23 13:55:28] Production.ERROR: pbx CDR StartTime 2025-01-23 10:55:05 - End Time 2025-01-23 13:55:05 [2025-01-23 13:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312771', 'tblTempUsageDetail_20' ) start [2025-01-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312771', 'tblTempUsageDetail_20' ) end [2025-01-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312771', 'tblTempVendorCDR_20' ) start [2025-01-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312771', 'tblTempVendorCDR_20' ) end [2025-01-23 13:55:29] Production.INFO: ProcessCDR(1,14312771,1,1,2) [2025-01-23 13:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312771', 'tblTempUsageDetail_20' ) start [2025-01-23 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312771', 'tblTempUsageDetail_20' ) end [2025-01-23 13:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:55:34] Production.INFO: ==31815== Releasing lock... [2025-01-23 13:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:55:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:56:05 [end_date_ymd] => 2025-01-23 13:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 10:56:05' and `end` < '2025-01-23 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-23 13:56:22] Production.INFO: count ==5397 [2025-01-23 13:56:25] Production.ERROR: pbx CDR StartTime 2025-01-23 10:56:05 - End Time 2025-01-23 13:56:05 [2025-01-23 13:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312776', 'tblTempUsageDetail_20' ) start [2025-01-23 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312776', 'tblTempUsageDetail_20' ) end [2025-01-23 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312776', 'tblTempVendorCDR_20' ) start [2025-01-23 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312776', 'tblTempVendorCDR_20' ) end [2025-01-23 13:56:25] Production.INFO: ProcessCDR(1,14312776,1,1,2) [2025-01-23 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312776', 'tblTempUsageDetail_20' ) start [2025-01-23 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312776', 'tblTempUsageDetail_20' ) end [2025-01-23 13:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:56:31] Production.INFO: ==31886== Releasing lock... [2025-01-23 13:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:56:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:57:06 [end_date_ymd] => 2025-01-23 13:57:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:57:06' and `end` < '2025-01-23 13: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-23 13:57:27] Production.INFO: count ==5413 [2025-01-23 13:57:30] Production.ERROR: pbx CDR StartTime 2025-01-23 10:57:06 - End Time 2025-01-23 13:57:06 [2025-01-23 13:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312781', 'tblTempUsageDetail_20' ) start [2025-01-23 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312781', 'tblTempUsageDetail_20' ) end [2025-01-23 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312781', 'tblTempVendorCDR_20' ) start [2025-01-23 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312781', 'tblTempVendorCDR_20' ) end [2025-01-23 13:57:30] Production.INFO: ProcessCDR(1,14312781,1,1,2) [2025-01-23 13:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312781', 'tblTempUsageDetail_20' ) start [2025-01-23 13:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312781', 'tblTempUsageDetail_20' ) end [2025-01-23 13:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:57:36] Production.INFO: ==31959== Releasing lock... [2025-01-23 13:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:57:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:58:06 [end_date_ymd] => 2025-01-23 13:58:06 [RateCDR] => 1 ) [2025-01-23 13: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-23 10:58:06' and `end` < '2025-01-23 13: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-23 13:58:25] Production.INFO: count ==5414 [2025-01-23 13:58:27] Production.ERROR: pbx CDR StartTime 2025-01-23 10:58:06 - End Time 2025-01-23 13:58:06 [2025-01-23 13:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312786', 'tblTempUsageDetail_20' ) start [2025-01-23 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312786', 'tblTempUsageDetail_20' ) end [2025-01-23 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312786', 'tblTempVendorCDR_20' ) start [2025-01-23 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312786', 'tblTempVendorCDR_20' ) end [2025-01-23 13:58:27] Production.INFO: ProcessCDR(1,14312786,1,1,2) [2025-01-23 13:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312786', 'tblTempUsageDetail_20' ) start [2025-01-23 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312786', 'tblTempUsageDetail_20' ) end [2025-01-23 13:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:58:33] Production.INFO: ==32030== Releasing lock... [2025-01-23 13:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:58:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 10:59:05 [end_date_ymd] => 2025-01-23 13:59:05 [RateCDR] => 1 ) [2025-01-23 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 10:59:05' and `end` < '2025-01-23 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 13:59:34] Production.INFO: count ==5421 [2025-01-23 13:59:36] Production.ERROR: pbx CDR StartTime 2025-01-23 10:59:05 - End Time 2025-01-23 13:59:05 [2025-01-23 13:59:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 13:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312791', 'tblTempUsageDetail_20' ) start [2025-01-23 13:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312791', 'tblTempUsageDetail_20' ) end [2025-01-23 13:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312791', 'tblTempVendorCDR_20' ) start [2025-01-23 13:59:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312791', 'tblTempVendorCDR_20' ) end [2025-01-23 13:59:36] Production.INFO: ProcessCDR(1,14312791,1,1,2) [2025-01-23 13:59:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:59:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 13:59:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:59:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 13:59:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312791', 'tblTempUsageDetail_20' ) start [2025-01-23 13:59:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312791', 'tblTempUsageDetail_20' ) end [2025-01-23 13:59:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 13:59:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 13:59:41] Production.INFO: ==32099== Releasing lock... [2025-01-23 13:59:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 13:59:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:00:07 [end_date_ymd] => 2025-01-23 14:00:07 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:00:07' and `end` < '2025-01-23 14: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-23 14:00:28] Production.INFO: count ==5422 [2025-01-23 14:00:31] Production.ERROR: pbx CDR StartTime 2025-01-23 11:00:07 - End Time 2025-01-23 14:00:07 [2025-01-23 14:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312797', 'tblTempUsageDetail_20' ) start [2025-01-23 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312797', 'tblTempUsageDetail_20' ) end [2025-01-23 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312797', 'tblTempVendorCDR_20' ) start [2025-01-23 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312797', 'tblTempVendorCDR_20' ) end [2025-01-23 14:00:31] Production.INFO: ProcessCDR(1,14312797,1,1,2) [2025-01-23 14:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312797', 'tblTempUsageDetail_20' ) start [2025-01-23 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312797', 'tblTempUsageDetail_20' ) end [2025-01-23 14:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:00:37] Production.INFO: ==32174== Releasing lock... [2025-01-23 14:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:00:37] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:01:05 [end_date_ymd] => 2025-01-23 14:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:01:05' and `end` < '2025-01-23 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-23 14:01:25] Production.INFO: count ==5451 [2025-01-23 14:01:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:01:05 - End Time 2025-01-23 14:01:05 [2025-01-23 14:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312802', 'tblTempUsageDetail_20' ) start [2025-01-23 14:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312802', 'tblTempUsageDetail_20' ) end [2025-01-23 14:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312802', 'tblTempVendorCDR_20' ) start [2025-01-23 14:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312802', 'tblTempVendorCDR_20' ) end [2025-01-23 14:01:27] Production.INFO: ProcessCDR(1,14312802,1,1,2) [2025-01-23 14:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312802', 'tblTempUsageDetail_20' ) start [2025-01-23 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312802', 'tblTempUsageDetail_20' ) end [2025-01-23 14:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:01:33] Production.INFO: ==32259== Releasing lock... [2025-01-23 14:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:01:33] Production.INFO: 69 MB #Memory Used# [2025-01-23 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:02:06 [end_date_ymd] => 2025-01-23 14:02:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:02:06' and `end` < '2025-01-23 14: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-23 14:02:23] Production.INFO: count ==5429 [2025-01-23 14:02:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:02:06 - End Time 2025-01-23 14:02:06 [2025-01-23 14:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312807', 'tblTempUsageDetail_20' ) start [2025-01-23 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312807', 'tblTempUsageDetail_20' ) end [2025-01-23 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312807', 'tblTempVendorCDR_20' ) start [2025-01-23 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312807', 'tblTempVendorCDR_20' ) end [2025-01-23 14:02:25] Production.INFO: ProcessCDR(1,14312807,1,1,2) [2025-01-23 14:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312807', 'tblTempUsageDetail_20' ) start [2025-01-23 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312807', 'tblTempUsageDetail_20' ) end [2025-01-23 14:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:02:31] Production.INFO: ==32330== Releasing lock... [2025-01-23 14:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:02:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:03:06 [end_date_ymd] => 2025-01-23 14:03:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:03:06' and `end` < '2025-01-23 14: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-23 14:03:26] Production.INFO: count ==5434 [2025-01-23 14:03:28] Production.ERROR: pbx CDR StartTime 2025-01-23 11:03:06 - End Time 2025-01-23 14:03:06 [2025-01-23 14:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312812', 'tblTempUsageDetail_20' ) start [2025-01-23 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312812', 'tblTempUsageDetail_20' ) end [2025-01-23 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312812', 'tblTempVendorCDR_20' ) start [2025-01-23 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312812', 'tblTempVendorCDR_20' ) end [2025-01-23 14:03:28] Production.INFO: ProcessCDR(1,14312812,1,1,2) [2025-01-23 14:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312812', 'tblTempUsageDetail_20' ) start [2025-01-23 14:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312812', 'tblTempUsageDetail_20' ) end [2025-01-23 14:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:03:33] Production.INFO: ==32400== Releasing lock... [2025-01-23 14:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:03:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:04:06 [end_date_ymd] => 2025-01-23 14:04:06 [RateCDR] => 1 ) [2025-01-23 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:04:06' and `end` < '2025-01-23 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:04:22] Production.INFO: count ==5426 [2025-01-23 14:04:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:04:06 - End Time 2025-01-23 14:04:06 [2025-01-23 14:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312817', 'tblTempUsageDetail_20' ) start [2025-01-23 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312817', 'tblTempUsageDetail_20' ) end [2025-01-23 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312817', 'tblTempVendorCDR_20' ) start [2025-01-23 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312817', 'tblTempVendorCDR_20' ) end [2025-01-23 14:04:25] Production.INFO: ProcessCDR(1,14312817,1,1,2) [2025-01-23 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312817', 'tblTempUsageDetail_20' ) start [2025-01-23 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312817', 'tblTempUsageDetail_20' ) end [2025-01-23 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:04:30] Production.INFO: ==32473== Releasing lock... [2025-01-23 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:04:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:05:05 [end_date_ymd] => 2025-01-23 14:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:05:05' and `end` < '2025-01-23 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-23 14:05:28] Production.INFO: count ==5429 [2025-01-23 14:05:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:05:05 - End Time 2025-01-23 14:05:05 [2025-01-23 14:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312822', 'tblTempUsageDetail_20' ) start [2025-01-23 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312822', 'tblTempUsageDetail_20' ) end [2025-01-23 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312822', 'tblTempVendorCDR_20' ) start [2025-01-23 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312822', 'tblTempVendorCDR_20' ) end [2025-01-23 14:05:30] Production.INFO: ProcessCDR(1,14312822,1,1,2) [2025-01-23 14:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312822', 'tblTempUsageDetail_20' ) start [2025-01-23 14:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312822', 'tblTempUsageDetail_20' ) end [2025-01-23 14:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:05:36] Production.INFO: ==32586== Releasing lock... [2025-01-23 14:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:05:36] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:06:05 [end_date_ymd] => 2025-01-23 14:06:05 [RateCDR] => 1 ) [2025-01-23 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:06:05' and `end` < '2025-01-23 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:06:23] Production.INFO: count ==5418 [2025-01-23 14:06:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:06:05 - End Time 2025-01-23 14:06:05 [2025-01-23 14:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312827', 'tblTempUsageDetail_20' ) start [2025-01-23 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312827', 'tblTempUsageDetail_20' ) end [2025-01-23 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312827', 'tblTempVendorCDR_20' ) start [2025-01-23 14:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312827', 'tblTempVendorCDR_20' ) end [2025-01-23 14:06:25] Production.INFO: ProcessCDR(1,14312827,1,1,2) [2025-01-23 14:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312827', 'tblTempUsageDetail_20' ) start [2025-01-23 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312827', 'tblTempUsageDetail_20' ) end [2025-01-23 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:06:30] Production.INFO: ==32657== Releasing lock... [2025-01-23 14:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:06:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:07:06 [end_date_ymd] => 2025-01-23 14:07:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:07:06' and `end` < '2025-01-23 14: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-23 14:07:20] Production.INFO: count ==5419 [2025-01-23 14:07:23] Production.ERROR: pbx CDR StartTime 2025-01-23 11:07:06 - End Time 2025-01-23 14:07:06 [2025-01-23 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312832', 'tblTempUsageDetail_20' ) start [2025-01-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312832', 'tblTempUsageDetail_20' ) end [2025-01-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312832', 'tblTempVendorCDR_20' ) start [2025-01-23 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312832', 'tblTempVendorCDR_20' ) end [2025-01-23 14:07:23] Production.INFO: ProcessCDR(1,14312832,1,1,2) [2025-01-23 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312832', 'tblTempUsageDetail_20' ) start [2025-01-23 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312832', 'tblTempUsageDetail_20' ) end [2025-01-23 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:07:28] Production.INFO: ==32729== Releasing lock... [2025-01-23 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:07:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:08:05 [end_date_ymd] => 2025-01-23 14:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:08:05' and `end` < '2025-01-23 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-23 14:08:20] Production.INFO: count ==5431 [2025-01-23 14:08:22] Production.ERROR: pbx CDR StartTime 2025-01-23 11:08:05 - End Time 2025-01-23 14:08:05 [2025-01-23 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312837', 'tblTempUsageDetail_20' ) start [2025-01-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312837', 'tblTempUsageDetail_20' ) end [2025-01-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312837', 'tblTempVendorCDR_20' ) start [2025-01-23 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312837', 'tblTempVendorCDR_20' ) end [2025-01-23 14:08:23] Production.INFO: ProcessCDR(1,14312837,1,1,2) [2025-01-23 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312837', 'tblTempUsageDetail_20' ) start [2025-01-23 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312837', 'tblTempUsageDetail_20' ) end [2025-01-23 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:08:28] Production.INFO: ==353== Releasing lock... [2025-01-23 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:08:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:09:05 [end_date_ymd] => 2025-01-23 14:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:09:05' and `end` < '2025-01-23 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-23 14:09:20] Production.INFO: count ==5449 [2025-01-23 14:09:23] Production.ERROR: pbx CDR StartTime 2025-01-23 11:09:05 - End Time 2025-01-23 14:09:05 [2025-01-23 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312842', 'tblTempUsageDetail_20' ) start [2025-01-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312842', 'tblTempUsageDetail_20' ) end [2025-01-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312842', 'tblTempVendorCDR_20' ) start [2025-01-23 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312842', 'tblTempVendorCDR_20' ) end [2025-01-23 14:09:23] Production.INFO: ProcessCDR(1,14312842,1,1,2) [2025-01-23 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312842', 'tblTempUsageDetail_20' ) start [2025-01-23 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312842', 'tblTempUsageDetail_20' ) end [2025-01-23 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:09:29] Production.INFO: ==423== Releasing lock... [2025-01-23 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:09:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:10:06 [end_date_ymd] => 2025-01-23 14:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 11:10:06' and `end` < '2025-01-23 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-23 14:10:25] Production.INFO: count ==5435 [2025-01-23 14:10:28] Production.ERROR: pbx CDR StartTime 2025-01-23 11:10:06 - End Time 2025-01-23 14:10:06 [2025-01-23 14:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312847', 'tblTempUsageDetail_20' ) start [2025-01-23 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312847', 'tblTempUsageDetail_20' ) end [2025-01-23 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312847', 'tblTempVendorCDR_20' ) start [2025-01-23 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312847', 'tblTempVendorCDR_20' ) end [2025-01-23 14:10:28] Production.INFO: ProcessCDR(1,14312847,1,1,2) [2025-01-23 14:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312847', 'tblTempUsageDetail_20' ) start [2025-01-23 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312847', 'tblTempUsageDetail_20' ) end [2025-01-23 14:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:10:33] Production.INFO: ==497== Releasing lock... [2025-01-23 14:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:10:33] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:11:06 [end_date_ymd] => 2025-01-23 14:11:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:11:06' and `end` < '2025-01-23 14: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-23 14:11:28] Production.INFO: count ==5416 [2025-01-23 14:11:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:11:06 - End Time 2025-01-23 14:11:06 [2025-01-23 14:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312853', 'tblTempUsageDetail_20' ) start [2025-01-23 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312853', 'tblTempUsageDetail_20' ) end [2025-01-23 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312853', 'tblTempVendorCDR_20' ) start [2025-01-23 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312853', 'tblTempVendorCDR_20' ) end [2025-01-23 14:11:30] Production.INFO: ProcessCDR(1,14312853,1,1,2) [2025-01-23 14:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312853', 'tblTempUsageDetail_20' ) start [2025-01-23 14:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312853', 'tblTempUsageDetail_20' ) end [2025-01-23 14:11:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:11:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:11:36] Production.INFO: ==572== Releasing lock... [2025-01-23 14:11:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:11:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:12:06 [end_date_ymd] => 2025-01-23 14:12:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:12:06' and `end` < '2025-01-23 14: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-23 14:12:23] Production.INFO: count ==5420 [2025-01-23 14:12:26] Production.ERROR: pbx CDR StartTime 2025-01-23 11:12:06 - End Time 2025-01-23 14:12:06 [2025-01-23 14:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312858', 'tblTempUsageDetail_20' ) start [2025-01-23 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312858', 'tblTempUsageDetail_20' ) end [2025-01-23 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312858', 'tblTempVendorCDR_20' ) start [2025-01-23 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312858', 'tblTempVendorCDR_20' ) end [2025-01-23 14:12:26] Production.INFO: ProcessCDR(1,14312858,1,1,2) [2025-01-23 14:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312858', 'tblTempUsageDetail_20' ) start [2025-01-23 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312858', 'tblTempUsageDetail_20' ) end [2025-01-23 14:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:12:31] Production.INFO: ==650== Releasing lock... [2025-01-23 14:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:12:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:13:06 [end_date_ymd] => 2025-01-23 14:13:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:13:06' and `end` < '2025-01-23 14: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-23 14:13:22] Production.INFO: count ==5417 [2025-01-23 14:13:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:13:06 - End Time 2025-01-23 14:13:06 [2025-01-23 14:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312863', 'tblTempUsageDetail_20' ) start [2025-01-23 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312863', 'tblTempUsageDetail_20' ) end [2025-01-23 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312863', 'tblTempVendorCDR_20' ) start [2025-01-23 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312863', 'tblTempVendorCDR_20' ) end [2025-01-23 14:13:25] Production.INFO: ProcessCDR(1,14312863,1,1,2) [2025-01-23 14:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312863', 'tblTempUsageDetail_20' ) start [2025-01-23 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312863', 'tblTempUsageDetail_20' ) end [2025-01-23 14:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:13:30] Production.INFO: ==743== Releasing lock... [2025-01-23 14:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:13:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:14:06 [end_date_ymd] => 2025-01-23 14:14:06 [RateCDR] => 1 ) [2025-01-23 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-23 11:14:06' and `end` < '2025-01-23 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-23 14:14:25] Production.INFO: count ==5410 [2025-01-23 14:14:28] Production.ERROR: pbx CDR StartTime 2025-01-23 11:14:06 - End Time 2025-01-23 14:14:06 [2025-01-23 14:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312868', 'tblTempUsageDetail_20' ) start [2025-01-23 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312868', 'tblTempUsageDetail_20' ) end [2025-01-23 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312868', 'tblTempVendorCDR_20' ) start [2025-01-23 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312868', 'tblTempVendorCDR_20' ) end [2025-01-23 14:14:28] Production.INFO: ProcessCDR(1,14312868,1,1,2) [2025-01-23 14:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312868', 'tblTempUsageDetail_20' ) start [2025-01-23 14:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312868', 'tblTempUsageDetail_20' ) end [2025-01-23 14:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:14:33] Production.INFO: ==818== Releasing lock... [2025-01-23 14:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:14:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:15:06 [end_date_ymd] => 2025-01-23 14:15:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:15:06' and `end` < '2025-01-23 14: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-23 14:15:24] Production.INFO: count ==5383 [2025-01-23 14:15:26] Production.ERROR: pbx CDR StartTime 2025-01-23 11:15:06 - End Time 2025-01-23 14:15:06 [2025-01-23 14:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312873', 'tblTempUsageDetail_20' ) start [2025-01-23 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312873', 'tblTempUsageDetail_20' ) end [2025-01-23 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312873', 'tblTempVendorCDR_20' ) start [2025-01-23 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312873', 'tblTempVendorCDR_20' ) end [2025-01-23 14:15:27] Production.INFO: ProcessCDR(1,14312873,1,1,2) [2025-01-23 14:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312873', 'tblTempUsageDetail_20' ) start [2025-01-23 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312873', 'tblTempUsageDetail_20' ) end [2025-01-23 14:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:15:32] Production.INFO: ==889== Releasing lock... [2025-01-23 14:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:15:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:16:06 [end_date_ymd] => 2025-01-23 14:16:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:16:06' and `end` < '2025-01-23 14: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-23 14:16:23] Production.INFO: count ==5376 [2025-01-23 14:16:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:16:06 - End Time 2025-01-23 14:16:06 [2025-01-23 14:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312878', 'tblTempUsageDetail_20' ) start [2025-01-23 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312878', 'tblTempUsageDetail_20' ) end [2025-01-23 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312878', 'tblTempVendorCDR_20' ) start [2025-01-23 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312878', 'tblTempVendorCDR_20' ) end [2025-01-23 14:16:26] Production.INFO: ProcessCDR(1,14312878,1,1,2) [2025-01-23 14:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312878', 'tblTempUsageDetail_20' ) start [2025-01-23 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312878', 'tblTempUsageDetail_20' ) end [2025-01-23 14:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:16:31] Production.INFO: ==958== Releasing lock... [2025-01-23 14:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:16:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:17:05 [end_date_ymd] => 2025-01-23 14:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:17:05' and `end` < '2025-01-23 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-23 14:17:25] Production.INFO: count ==5385 [2025-01-23 14:17:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:17:05 - End Time 2025-01-23 14:17:05 [2025-01-23 14:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312882', 'tblTempUsageDetail_20' ) start [2025-01-23 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312882', 'tblTempUsageDetail_20' ) end [2025-01-23 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312882', 'tblTempVendorCDR_20' ) start [2025-01-23 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312882', 'tblTempVendorCDR_20' ) end [2025-01-23 14:17:28] Production.INFO: ProcessCDR(1,14312882,1,1,2) [2025-01-23 14:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312882', 'tblTempUsageDetail_20' ) start [2025-01-23 14:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312882', 'tblTempUsageDetail_20' ) end [2025-01-23 14:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:17:33] Production.INFO: ==1030== Releasing lock... [2025-01-23 14:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:17:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:18:06 [end_date_ymd] => 2025-01-23 14:18:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:18:06' and `end` < '2025-01-23 14: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-23 14:18:24] Production.INFO: count ==5383 [2025-01-23 14:18:26] Production.ERROR: pbx CDR StartTime 2025-01-23 11:18:06 - End Time 2025-01-23 14:18:06 [2025-01-23 14:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312888', 'tblTempUsageDetail_20' ) start [2025-01-23 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312888', 'tblTempUsageDetail_20' ) end [2025-01-23 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312888', 'tblTempVendorCDR_20' ) start [2025-01-23 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312888', 'tblTempVendorCDR_20' ) end [2025-01-23 14:18:27] Production.INFO: ProcessCDR(1,14312888,1,1,2) [2025-01-23 14:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312888', 'tblTempUsageDetail_20' ) start [2025-01-23 14:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312888', 'tblTempUsageDetail_20' ) end [2025-01-23 14:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:18:32] Production.INFO: ==1103== Releasing lock... [2025-01-23 14:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:18:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:19:06 [end_date_ymd] => 2025-01-23 14:19:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:19:06' and `end` < '2025-01-23 14: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-23 14:19:23] Production.INFO: count ==5372 [2025-01-23 14:19:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:19:06 - End Time 2025-01-23 14:19:06 [2025-01-23 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312893', 'tblTempUsageDetail_20' ) start [2025-01-23 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312893', 'tblTempUsageDetail_20' ) end [2025-01-23 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312893', 'tblTempVendorCDR_20' ) start [2025-01-23 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312893', 'tblTempVendorCDR_20' ) end [2025-01-23 14:19:25] Production.INFO: ProcessCDR(1,14312893,1,1,2) [2025-01-23 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312893', 'tblTempUsageDetail_20' ) start [2025-01-23 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312893', 'tblTempUsageDetail_20' ) end [2025-01-23 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:19:30] Production.INFO: ==1178== Releasing lock... [2025-01-23 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:19:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:20:06 [end_date_ymd] => 2025-01-23 14:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 11:20:06' and `end` < '2025-01-23 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-23 14:20:31] Production.INFO: count ==5368 [2025-01-23 14:20:34] Production.ERROR: pbx CDR StartTime 2025-01-23 11:20:06 - End Time 2025-01-23 14:20:06 [2025-01-23 14:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312899', 'tblTempUsageDetail_20' ) start [2025-01-23 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312899', 'tblTempUsageDetail_20' ) end [2025-01-23 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312899', 'tblTempVendorCDR_20' ) start [2025-01-23 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312899', 'tblTempVendorCDR_20' ) end [2025-01-23 14:20:34] Production.INFO: ProcessCDR(1,14312899,1,1,2) [2025-01-23 14:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312899', 'tblTempUsageDetail_20' ) start [2025-01-23 14:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312899', 'tblTempUsageDetail_20' ) end [2025-01-23 14:20:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:20:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:20:39] Production.INFO: ==1306== Releasing lock... [2025-01-23 14:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:20:39] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:21:05 [end_date_ymd] => 2025-01-23 14:21:05 [RateCDR] => 1 ) [2025-01-23 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:21:05' and `end` < '2025-01-23 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:21:22] Production.INFO: count ==5332 [2025-01-23 14:21:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:21:05 - End Time 2025-01-23 14:21:05 [2025-01-23 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312904', 'tblTempUsageDetail_20' ) start [2025-01-23 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312904', 'tblTempUsageDetail_20' ) end [2025-01-23 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312904', 'tblTempVendorCDR_20' ) start [2025-01-23 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312904', 'tblTempVendorCDR_20' ) end [2025-01-23 14:21:25] Production.INFO: ProcessCDR(1,14312904,1,1,2) [2025-01-23 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312904', 'tblTempUsageDetail_20' ) start [2025-01-23 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312904', 'tblTempUsageDetail_20' ) end [2025-01-23 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:21:30] Production.INFO: ==1382== Releasing lock... [2025-01-23 14:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:21:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:22:05 [end_date_ymd] => 2025-01-23 14:22:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:22:05' and `end` < '2025-01-23 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-23 14:22:24] Production.INFO: count ==5337 [2025-01-23 14:22:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:22:05 - End Time 2025-01-23 14:22:05 [2025-01-23 14:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312909', 'tblTempUsageDetail_20' ) start [2025-01-23 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312909', 'tblTempUsageDetail_20' ) end [2025-01-23 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312909', 'tblTempVendorCDR_20' ) start [2025-01-23 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312909', 'tblTempVendorCDR_20' ) end [2025-01-23 14:22:27] Production.INFO: ProcessCDR(1,14312909,1,1,2) [2025-01-23 14:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312909', 'tblTempUsageDetail_20' ) start [2025-01-23 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312909', 'tblTempUsageDetail_20' ) end [2025-01-23 14:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:22:31] Production.INFO: ==1453== Releasing lock... [2025-01-23 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:22:31] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:23:06 [end_date_ymd] => 2025-01-23 14:23:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:23:06' and `end` < '2025-01-23 14: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-23 14:23:24] Production.INFO: count ==5322 [2025-01-23 14:23:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:23:06 - End Time 2025-01-23 14:23:06 [2025-01-23 14:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312914', 'tblTempUsageDetail_20' ) start [2025-01-23 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312914', 'tblTempUsageDetail_20' ) end [2025-01-23 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312914', 'tblTempVendorCDR_20' ) start [2025-01-23 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312914', 'tblTempVendorCDR_20' ) end [2025-01-23 14:23:27] Production.INFO: ProcessCDR(1,14312914,1,1,2) [2025-01-23 14:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312914', 'tblTempUsageDetail_20' ) start [2025-01-23 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312914', 'tblTempUsageDetail_20' ) end [2025-01-23 14:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:23:31] Production.INFO: ==1558== Releasing lock... [2025-01-23 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:23:31] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:24:06 [end_date_ymd] => 2025-01-23 14:24:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:24:06' and `end` < '2025-01-23 14: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-23 14:24:22] Production.INFO: count ==5325 [2025-01-23 14:24:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:24:06 - End Time 2025-01-23 14:24:06 [2025-01-23 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312919', 'tblTempUsageDetail_20' ) start [2025-01-23 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312919', 'tblTempUsageDetail_20' ) end [2025-01-23 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312919', 'tblTempVendorCDR_20' ) start [2025-01-23 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312919', 'tblTempVendorCDR_20' ) end [2025-01-23 14:24:24] Production.INFO: ProcessCDR(1,14312919,1,1,2) [2025-01-23 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312919', 'tblTempUsageDetail_20' ) start [2025-01-23 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312919', 'tblTempUsageDetail_20' ) end [2025-01-23 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:24:30] Production.INFO: ==1633== Releasing lock... [2025-01-23 14:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:24:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:25:05 [end_date_ymd] => 2025-01-23 14:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:25:05' and `end` < '2025-01-23 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-23 14:25:18] Production.INFO: count ==5314 [2025-01-23 14:25:20] Production.ERROR: pbx CDR StartTime 2025-01-23 11:25:05 - End Time 2025-01-23 14:25:05 [2025-01-23 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312924', 'tblTempUsageDetail_20' ) start [2025-01-23 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312924', 'tblTempUsageDetail_20' ) end [2025-01-23 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312924', 'tblTempVendorCDR_20' ) start [2025-01-23 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312924', 'tblTempVendorCDR_20' ) end [2025-01-23 14:25:21] Production.INFO: ProcessCDR(1,14312924,1,1,2) [2025-01-23 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312924', 'tblTempUsageDetail_20' ) start [2025-01-23 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312924', 'tblTempUsageDetail_20' ) end [2025-01-23 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:25:26] Production.INFO: ==1703== Releasing lock... [2025-01-23 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:25:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:26:05 [end_date_ymd] => 2025-01-23 14:26:05 [RateCDR] => 1 ) [2025-01-23 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:26:05' and `end` < '2025-01-23 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:26:25] Production.INFO: count ==5306 [2025-01-23 14:26:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:26:05 - End Time 2025-01-23 14:26:05 [2025-01-23 14:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312929', 'tblTempUsageDetail_20' ) start [2025-01-23 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312929', 'tblTempUsageDetail_20' ) end [2025-01-23 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312929', 'tblTempVendorCDR_20' ) start [2025-01-23 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312929', 'tblTempVendorCDR_20' ) end [2025-01-23 14:26:27] Production.INFO: ProcessCDR(1,14312929,1,1,2) [2025-01-23 14:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312929', 'tblTempUsageDetail_20' ) start [2025-01-23 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312929', 'tblTempUsageDetail_20' ) end [2025-01-23 14:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:26:32] Production.INFO: ==1774== Releasing lock... [2025-01-23 14:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:26:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:27:06 [end_date_ymd] => 2025-01-23 14:27:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:27:06' and `end` < '2025-01-23 14: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-23 14:27:28] Production.INFO: count ==5312 [2025-01-23 14:27:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:27:06 - End Time 2025-01-23 14:27:06 [2025-01-23 14:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312934', 'tblTempUsageDetail_20' ) start [2025-01-23 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312934', 'tblTempUsageDetail_20' ) end [2025-01-23 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312934', 'tblTempVendorCDR_20' ) start [2025-01-23 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312934', 'tblTempVendorCDR_20' ) end [2025-01-23 14:27:30] Production.INFO: ProcessCDR(1,14312934,1,1,2) [2025-01-23 14:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312934', 'tblTempUsageDetail_20' ) start [2025-01-23 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312934', 'tblTempUsageDetail_20' ) end [2025-01-23 14:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:27:35] Production.INFO: ==1848== Releasing lock... [2025-01-23 14:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:27:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:28:05 [end_date_ymd] => 2025-01-23 14:28:05 [RateCDR] => 1 ) [2025-01-23 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:28:05' and `end` < '2025-01-23 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:28:22] Production.INFO: count ==5321 [2025-01-23 14:28:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:28:05 - End Time 2025-01-23 14:28:05 [2025-01-23 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312939', 'tblTempUsageDetail_20' ) start [2025-01-23 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312939', 'tblTempUsageDetail_20' ) end [2025-01-23 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312939', 'tblTempVendorCDR_20' ) start [2025-01-23 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312939', 'tblTempVendorCDR_20' ) end [2025-01-23 14:28:25] Production.INFO: ProcessCDR(1,14312939,1,1,2) [2025-01-23 14:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312939', 'tblTempUsageDetail_20' ) start [2025-01-23 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312939', 'tblTempUsageDetail_20' ) end [2025-01-23 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:28:30] Production.INFO: ==1918== Releasing lock... [2025-01-23 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:28:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:29:05 [end_date_ymd] => 2025-01-23 14:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:29:05' and `end` < '2025-01-23 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-23 14:29:22] Production.INFO: count ==5310 [2025-01-23 14:29:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:29:05 - End Time 2025-01-23 14:29:05 [2025-01-23 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312944', 'tblTempUsageDetail_20' ) start [2025-01-23 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312944', 'tblTempUsageDetail_20' ) end [2025-01-23 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312944', 'tblTempVendorCDR_20' ) start [2025-01-23 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312944', 'tblTempVendorCDR_20' ) end [2025-01-23 14:29:24] Production.INFO: ProcessCDR(1,14312944,1,1,2) [2025-01-23 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312944', 'tblTempUsageDetail_20' ) start [2025-01-23 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312944', 'tblTempUsageDetail_20' ) end [2025-01-23 14:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:29:30] Production.INFO: ==1990== Releasing lock... [2025-01-23 14:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:29:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:30:06 [end_date_ymd] => 2025-01-23 14:30:06 [RateCDR] => 1 ) [2025-01-23 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:30:06' and `end` < '2025-01-23 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:30:28] Production.INFO: count ==5327 [2025-01-23 14:30:31] Production.ERROR: pbx CDR StartTime 2025-01-23 11:30:06 - End Time 2025-01-23 14:30:06 [2025-01-23 14:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312949', 'tblTempUsageDetail_20' ) start [2025-01-23 14:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312949', 'tblTempUsageDetail_20' ) end [2025-01-23 14:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312949', 'tblTempVendorCDR_20' ) start [2025-01-23 14:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312949', 'tblTempVendorCDR_20' ) end [2025-01-23 14:30:31] Production.INFO: ProcessCDR(1,14312949,1,1,2) [2025-01-23 14:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312949', 'tblTempUsageDetail_20' ) start [2025-01-23 14:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312949', 'tblTempUsageDetail_20' ) end [2025-01-23 14:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:30:36] Production.INFO: ==2064== Releasing lock... [2025-01-23 14:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:30:36] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:31:06 [end_date_ymd] => 2025-01-23 14:31:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:31:06' and `end` < '2025-01-23 14: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-23 14:31:22] Production.INFO: count ==5345 [2025-01-23 14:31:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:31:06 - End Time 2025-01-23 14:31:06 [2025-01-23 14:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312955', 'tblTempUsageDetail_20' ) start [2025-01-23 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312955', 'tblTempUsageDetail_20' ) end [2025-01-23 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312955', 'tblTempVendorCDR_20' ) start [2025-01-23 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312955', 'tblTempVendorCDR_20' ) end [2025-01-23 14:31:24] Production.INFO: ProcessCDR(1,14312955,1,1,2) [2025-01-23 14:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312955', 'tblTempUsageDetail_20' ) start [2025-01-23 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312955', 'tblTempUsageDetail_20' ) end [2025-01-23 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:31:30] Production.INFO: ==2137== Releasing lock... [2025-01-23 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:31:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:32:06 [end_date_ymd] => 2025-01-23 14:32:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:32:06' and `end` < '2025-01-23 14: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-23 14:32:19] Production.INFO: count ==5344 [2025-01-23 14:32:21] Production.ERROR: pbx CDR StartTime 2025-01-23 11:32:06 - End Time 2025-01-23 14:32:06 [2025-01-23 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312960', 'tblTempUsageDetail_20' ) start [2025-01-23 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312960', 'tblTempUsageDetail_20' ) end [2025-01-23 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312960', 'tblTempVendorCDR_20' ) start [2025-01-23 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312960', 'tblTempVendorCDR_20' ) end [2025-01-23 14:32:21] Production.INFO: ProcessCDR(1,14312960,1,1,2) [2025-01-23 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312960', 'tblTempUsageDetail_20' ) start [2025-01-23 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312960', 'tblTempUsageDetail_20' ) end [2025-01-23 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:32:27] Production.INFO: ==2208== Releasing lock... [2025-01-23 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:32:27] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:33:06 [end_date_ymd] => 2025-01-23 14:33:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:33:06' and `end` < '2025-01-23 14: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-23 14:33:20] Production.INFO: count ==5344 [2025-01-23 14:33:22] Production.ERROR: pbx CDR StartTime 2025-01-23 11:33:06 - End Time 2025-01-23 14:33:06 [2025-01-23 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312965', 'tblTempUsageDetail_20' ) start [2025-01-23 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312965', 'tblTempUsageDetail_20' ) end [2025-01-23 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312965', 'tblTempVendorCDR_20' ) start [2025-01-23 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312965', 'tblTempVendorCDR_20' ) end [2025-01-23 14:33:22] Production.INFO: ProcessCDR(1,14312965,1,1,2) [2025-01-23 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312965', 'tblTempUsageDetail_20' ) start [2025-01-23 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312965', 'tblTempUsageDetail_20' ) end [2025-01-23 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:33:28] Production.INFO: ==2279== Releasing lock... [2025-01-23 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:33:28] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:34:06 [end_date_ymd] => 2025-01-23 14:34:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:34:06' and `end` < '2025-01-23 14: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-23 14:34:25] Production.INFO: count ==5342 [2025-01-23 14:34:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:34:06 - End Time 2025-01-23 14:34:06 [2025-01-23 14:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312970', 'tblTempUsageDetail_20' ) start [2025-01-23 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312970', 'tblTempUsageDetail_20' ) end [2025-01-23 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312970', 'tblTempVendorCDR_20' ) start [2025-01-23 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312970', 'tblTempVendorCDR_20' ) end [2025-01-23 14:34:27] Production.INFO: ProcessCDR(1,14312970,1,1,2) [2025-01-23 14:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312970', 'tblTempUsageDetail_20' ) start [2025-01-23 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312970', 'tblTempUsageDetail_20' ) end [2025-01-23 14:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:34:32] Production.INFO: ==2350== Releasing lock... [2025-01-23 14:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:34:32] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:35:05 [end_date_ymd] => 2025-01-23 14:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:35:05' and `end` < '2025-01-23 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-23 14:35:32] Production.INFO: count ==5328 [2025-01-23 14:35:34] Production.ERROR: pbx CDR StartTime 2025-01-23 11:35:05 - End Time 2025-01-23 14:35:05 [2025-01-23 14:35:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312975', 'tblTempUsageDetail_20' ) start [2025-01-23 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312975', 'tblTempUsageDetail_20' ) end [2025-01-23 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312975', 'tblTempVendorCDR_20' ) start [2025-01-23 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312975', 'tblTempVendorCDR_20' ) end [2025-01-23 14:35:34] Production.INFO: ProcessCDR(1,14312975,1,1,2) [2025-01-23 14:35:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:35:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:35:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:35:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312975', 'tblTempUsageDetail_20' ) start [2025-01-23 14:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312975', 'tblTempUsageDetail_20' ) end [2025-01-23 14:35:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:35:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:35:39] Production.INFO: ==2432== Releasing lock... [2025-01-23 14:35:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:35:39] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:36:05 [end_date_ymd] => 2025-01-23 14:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:36:05' and `end` < '2025-01-23 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-23 14:36:24] Production.INFO: count ==5307 [2025-01-23 14:36:26] Production.ERROR: pbx CDR StartTime 2025-01-23 11:36:05 - End Time 2025-01-23 14:36:05 [2025-01-23 14:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312980', 'tblTempUsageDetail_20' ) start [2025-01-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312980', 'tblTempUsageDetail_20' ) end [2025-01-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312980', 'tblTempVendorCDR_20' ) start [2025-01-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312980', 'tblTempVendorCDR_20' ) end [2025-01-23 14:36:27] Production.INFO: ProcessCDR(1,14312980,1,1,2) [2025-01-23 14:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312980', 'tblTempUsageDetail_20' ) start [2025-01-23 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312980', 'tblTempUsageDetail_20' ) end [2025-01-23 14:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:36:32] Production.INFO: ==2547== Releasing lock... [2025-01-23 14:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:36:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:37:05 [end_date_ymd] => 2025-01-23 14:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:37:05' and `end` < '2025-01-23 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-23 14:37:25] Production.INFO: count ==5293 [2025-01-23 14:37:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:37:05 - End Time 2025-01-23 14:37:05 [2025-01-23 14:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312985', 'tblTempUsageDetail_20' ) start [2025-01-23 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312985', 'tblTempUsageDetail_20' ) end [2025-01-23 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312985', 'tblTempVendorCDR_20' ) start [2025-01-23 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312985', 'tblTempVendorCDR_20' ) end [2025-01-23 14:37:27] Production.INFO: ProcessCDR(1,14312985,1,1,2) [2025-01-23 14:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312985', 'tblTempUsageDetail_20' ) start [2025-01-23 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312985', 'tblTempUsageDetail_20' ) end [2025-01-23 14:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:37:32] Production.INFO: ==2620== Releasing lock... [2025-01-23 14:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:37:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:38:06 [end_date_ymd] => 2025-01-23 14:38:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:38:06' and `end` < '2025-01-23 14: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-23 14:38:34] Production.INFO: count ==5294 [2025-01-23 14:38:36] Production.ERROR: pbx CDR StartTime 2025-01-23 11:38:06 - End Time 2025-01-23 14:38:06 [2025-01-23 14:38:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:38:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312990', 'tblTempUsageDetail_20' ) start [2025-01-23 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312990', 'tblTempUsageDetail_20' ) end [2025-01-23 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312990', 'tblTempVendorCDR_20' ) start [2025-01-23 14:38:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312990', 'tblTempVendorCDR_20' ) end [2025-01-23 14:38:37] Production.INFO: ProcessCDR(1,14312990,1,1,2) [2025-01-23 14:38:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:38:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:38:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:38:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:38:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312990', 'tblTempUsageDetail_20' ) start [2025-01-23 14:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312990', 'tblTempUsageDetail_20' ) end [2025-01-23 14:38:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:38:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:38:42] Production.INFO: ==2689== Releasing lock... [2025-01-23 14:38:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:38:42] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:39:06 [end_date_ymd] => 2025-01-23 14:39:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:39:06' and `end` < '2025-01-23 14: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-23 14:39:29] Production.INFO: count ==5281 [2025-01-23 14:39:32] Production.ERROR: pbx CDR StartTime 2025-01-23 11:39:06 - End Time 2025-01-23 14:39:06 [2025-01-23 14:39:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312995', 'tblTempUsageDetail_20' ) start [2025-01-23 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14312995', 'tblTempUsageDetail_20' ) end [2025-01-23 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312995', 'tblTempVendorCDR_20' ) start [2025-01-23 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14312995', 'tblTempVendorCDR_20' ) end [2025-01-23 14:39:32] Production.INFO: ProcessCDR(1,14312995,1,1,2) [2025-01-23 14:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14312995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14312995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14312995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:39:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14312995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312995', 'tblTempUsageDetail_20' ) start [2025-01-23 14:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14312995', 'tblTempUsageDetail_20' ) end [2025-01-23 14:39:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:39:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:39:37] Production.INFO: ==2762== Releasing lock... [2025-01-23 14:39:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:39:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:40:06 [end_date_ymd] => 2025-01-23 14:40:06 [RateCDR] => 1 ) [2025-01-23 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:40:06' and `end` < '2025-01-23 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:40:28] Production.INFO: count ==5274 [2025-01-23 14:40:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:40:06 - End Time 2025-01-23 14:40:06 [2025-01-23 14:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313001', 'tblTempUsageDetail_20' ) start [2025-01-23 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313001', 'tblTempUsageDetail_20' ) end [2025-01-23 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313001', 'tblTempVendorCDR_20' ) start [2025-01-23 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313001', 'tblTempVendorCDR_20' ) end [2025-01-23 14:40:30] Production.INFO: ProcessCDR(1,14313001,1,1,2) [2025-01-23 14:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313001', 'tblTempUsageDetail_20' ) start [2025-01-23 14:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313001', 'tblTempUsageDetail_20' ) end [2025-01-23 14:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:40:35] Production.INFO: ==2836== Releasing lock... [2025-01-23 14:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:40:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:41:06 [end_date_ymd] => 2025-01-23 14:41:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:41:06' and `end` < '2025-01-23 14: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-23 14:41:23] Production.INFO: count ==5314 [2025-01-23 14:41:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:41:06 - End Time 2025-01-23 14:41:06 [2025-01-23 14:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313006', 'tblTempUsageDetail_20' ) start [2025-01-23 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313006', 'tblTempUsageDetail_20' ) end [2025-01-23 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313006', 'tblTempVendorCDR_20' ) start [2025-01-23 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313006', 'tblTempVendorCDR_20' ) end [2025-01-23 14:41:26] Production.INFO: ProcessCDR(1,14313006,1,1,2) [2025-01-23 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313006', 'tblTempUsageDetail_20' ) start [2025-01-23 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313006', 'tblTempUsageDetail_20' ) end [2025-01-23 14:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:41:29] Production.INFO: ==2910== Releasing lock... [2025-01-23 14:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:41:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:42:05 [end_date_ymd] => 2025-01-23 14:42:05 [RateCDR] => 1 ) [2025-01-23 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:42:05' and `end` < '2025-01-23 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:42:32] Production.INFO: count ==5329 [2025-01-23 14:42:34] Production.ERROR: pbx CDR StartTime 2025-01-23 11:42:05 - End Time 2025-01-23 14:42:05 [2025-01-23 14:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313011', 'tblTempUsageDetail_20' ) start [2025-01-23 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313011', 'tblTempUsageDetail_20' ) end [2025-01-23 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313011', 'tblTempVendorCDR_20' ) start [2025-01-23 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313011', 'tblTempVendorCDR_20' ) end [2025-01-23 14:42:35] Production.INFO: ProcessCDR(1,14313011,1,1,2) [2025-01-23 14:42:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:42:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313011', 'tblTempUsageDetail_20' ) start [2025-01-23 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313011', 'tblTempUsageDetail_20' ) end [2025-01-23 14:42:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:42:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:42:40] Production.INFO: ==2986== Releasing lock... [2025-01-23 14:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:42:40] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:43:05 [end_date_ymd] => 2025-01-23 14:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:43:05' and `end` < '2025-01-23 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-23 14:43:29] Production.INFO: count ==5355 [2025-01-23 14:43:32] Production.ERROR: pbx CDR StartTime 2025-01-23 11:43:05 - End Time 2025-01-23 14:43:05 [2025-01-23 14:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313016', 'tblTempUsageDetail_20' ) start [2025-01-23 14:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313016', 'tblTempUsageDetail_20' ) end [2025-01-23 14:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313016', 'tblTempVendorCDR_20' ) start [2025-01-23 14:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313016', 'tblTempVendorCDR_20' ) end [2025-01-23 14:43:32] Production.INFO: ProcessCDR(1,14313016,1,1,2) [2025-01-23 14:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313016', 'tblTempUsageDetail_20' ) start [2025-01-23 14:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313016', 'tblTempUsageDetail_20' ) end [2025-01-23 14:43:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:43:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:43:37] Production.INFO: ==3064== Releasing lock... [2025-01-23 14:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:43:37] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:44:06 [end_date_ymd] => 2025-01-23 14:44:06 [RateCDR] => 1 ) [2025-01-23 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:44:06' and `end` < '2025-01-23 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:44:28] Production.INFO: count ==5353 [2025-01-23 14:44:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:44:06 - End Time 2025-01-23 14:44:06 [2025-01-23 14:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313021', 'tblTempUsageDetail_20' ) start [2025-01-23 14:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313021', 'tblTempUsageDetail_20' ) end [2025-01-23 14:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313021', 'tblTempVendorCDR_20' ) start [2025-01-23 14:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313021', 'tblTempVendorCDR_20' ) end [2025-01-23 14:44:31] Production.INFO: ProcessCDR(1,14313021,1,1,2) [2025-01-23 14:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313021', 'tblTempUsageDetail_20' ) start [2025-01-23 14:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313021', 'tblTempUsageDetail_20' ) end [2025-01-23 14:44:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:44:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:44:36] Production.INFO: ==3148== Releasing lock... [2025-01-23 14:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:44:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:45:05 [end_date_ymd] => 2025-01-23 14:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:45:05' and `end` < '2025-01-23 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-23 14:45:28] Production.INFO: count ==5348 [2025-01-23 14:45:31] Production.ERROR: pbx CDR StartTime 2025-01-23 11:45:05 - End Time 2025-01-23 14:45:05 [2025-01-23 14:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313026', 'tblTempUsageDetail_20' ) start [2025-01-23 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313026', 'tblTempUsageDetail_20' ) end [2025-01-23 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313026', 'tblTempVendorCDR_20' ) start [2025-01-23 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313026', 'tblTempVendorCDR_20' ) end [2025-01-23 14:45:31] Production.INFO: ProcessCDR(1,14313026,1,1,2) [2025-01-23 14:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313026', 'tblTempUsageDetail_20' ) start [2025-01-23 14:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313026', 'tblTempUsageDetail_20' ) end [2025-01-23 14:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:45:36] Production.INFO: ==3223== Releasing lock... [2025-01-23 14:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:45:36] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:46:06 [end_date_ymd] => 2025-01-23 14:46:06 [RateCDR] => 1 ) [2025-01-23 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:46:06' and `end` < '2025-01-23 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:46:23] Production.INFO: count ==5338 [2025-01-23 14:46:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:46:06 - End Time 2025-01-23 14:46:06 [2025-01-23 14:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313031', 'tblTempUsageDetail_20' ) start [2025-01-23 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313031', 'tblTempUsageDetail_20' ) end [2025-01-23 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313031', 'tblTempVendorCDR_20' ) start [2025-01-23 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313031', 'tblTempVendorCDR_20' ) end [2025-01-23 14:46:26] Production.INFO: ProcessCDR(1,14313031,1,1,2) [2025-01-23 14:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313031', 'tblTempUsageDetail_20' ) start [2025-01-23 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313031', 'tblTempUsageDetail_20' ) end [2025-01-23 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:46:29] Production.INFO: ==3302== Releasing lock... [2025-01-23 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:46:29] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:47:05 [end_date_ymd] => 2025-01-23 14:47:05 [RateCDR] => 1 ) [2025-01-23 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:47:05' and `end` < '2025-01-23 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:47:23] Production.INFO: count ==5351 [2025-01-23 14:47:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:47:05 - End Time 2025-01-23 14:47:05 [2025-01-23 14:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313036', 'tblTempUsageDetail_20' ) start [2025-01-23 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313036', 'tblTempUsageDetail_20' ) end [2025-01-23 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313036', 'tblTempVendorCDR_20' ) start [2025-01-23 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313036', 'tblTempVendorCDR_20' ) end [2025-01-23 14:47:25] Production.INFO: ProcessCDR(1,14313036,1,1,2) [2025-01-23 14:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313036', 'tblTempUsageDetail_20' ) start [2025-01-23 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313036', 'tblTempUsageDetail_20' ) end [2025-01-23 14:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:47:31] Production.INFO: ==3382== Releasing lock... [2025-01-23 14:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:47:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:48:06 [end_date_ymd] => 2025-01-23 14:48:06 [RateCDR] => 1 ) [2025-01-23 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:48:06' and `end` < '2025-01-23 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:48:22] Production.INFO: count ==5336 [2025-01-23 14:48:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:48:06 - End Time 2025-01-23 14:48:06 [2025-01-23 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313041', 'tblTempUsageDetail_20' ) start [2025-01-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313041', 'tblTempUsageDetail_20' ) end [2025-01-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313041', 'tblTempVendorCDR_20' ) start [2025-01-23 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313041', 'tblTempVendorCDR_20' ) end [2025-01-23 14:48:24] Production.INFO: ProcessCDR(1,14313041,1,1,2) [2025-01-23 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313041', 'tblTempUsageDetail_20' ) start [2025-01-23 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313041', 'tblTempUsageDetail_20' ) end [2025-01-23 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:48:29] Production.INFO: ==3465== Releasing lock... [2025-01-23 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:48:29] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:49:05 [end_date_ymd] => 2025-01-23 14:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:49:05' and `end` < '2025-01-23 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-23 14:49:22] Production.INFO: count ==5328 [2025-01-23 14:49:25] Production.ERROR: pbx CDR StartTime 2025-01-23 11:49:05 - End Time 2025-01-23 14:49:05 [2025-01-23 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313046', 'tblTempUsageDetail_20' ) start [2025-01-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313046', 'tblTempUsageDetail_20' ) end [2025-01-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313046', 'tblTempVendorCDR_20' ) start [2025-01-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313046', 'tblTempVendorCDR_20' ) end [2025-01-23 14:49:25] Production.INFO: ProcessCDR(1,14313046,1,1,2) [2025-01-23 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313046', 'tblTempUsageDetail_20' ) start [2025-01-23 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313046', 'tblTempUsageDetail_20' ) end [2025-01-23 14:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:49:30] Production.INFO: ==3535== Releasing lock... [2025-01-23 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:49:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:50:07 [end_date_ymd] => 2025-01-23 14:50:07 [RateCDR] => 1 ) [2025-01-23 14:50: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-23 11:50:07' and `end` < '2025-01-23 14:50: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-23 14:50:21] Production.INFO: count ==5308 [2025-01-23 14:50:23] Production.ERROR: pbx CDR StartTime 2025-01-23 11:50:07 - End Time 2025-01-23 14:50:07 [2025-01-23 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313052', 'tblTempUsageDetail_20' ) start [2025-01-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313052', 'tblTempUsageDetail_20' ) end [2025-01-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313052', 'tblTempVendorCDR_20' ) start [2025-01-23 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313052', 'tblTempVendorCDR_20' ) end [2025-01-23 14:50:23] Production.INFO: ProcessCDR(1,14313052,1,1,2) [2025-01-23 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313052', 'tblTempUsageDetail_20' ) start [2025-01-23 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313052', 'tblTempUsageDetail_20' ) end [2025-01-23 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:50:26] Production.INFO: ==3621== Releasing lock... [2025-01-23 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:50:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:51:05 [end_date_ymd] => 2025-01-23 14:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:51:05' and `end` < '2025-01-23 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-23 14:51:26] Production.INFO: count ==5279 [2025-01-23 14:51:28] Production.ERROR: pbx CDR StartTime 2025-01-23 11:51:05 - End Time 2025-01-23 14:51:05 [2025-01-23 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313057', 'tblTempUsageDetail_20' ) start [2025-01-23 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313057', 'tblTempUsageDetail_20' ) end [2025-01-23 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313057', 'tblTempVendorCDR_20' ) start [2025-01-23 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313057', 'tblTempVendorCDR_20' ) end [2025-01-23 14:51:29] Production.INFO: ProcessCDR(1,14313057,1,1,2) [2025-01-23 14:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313057', 'tblTempUsageDetail_20' ) start [2025-01-23 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313057', 'tblTempUsageDetail_20' ) end [2025-01-23 14:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:51:34] Production.INFO: ==3746== Releasing lock... [2025-01-23 14:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:51:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:52:06 [end_date_ymd] => 2025-01-23 14:52:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:52:06' and `end` < '2025-01-23 14: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-23 14:52:28] Production.INFO: count ==5270 [2025-01-23 14:52:30] Production.ERROR: pbx CDR StartTime 2025-01-23 11:52:06 - End Time 2025-01-23 14:52:06 [2025-01-23 14:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313062', 'tblTempUsageDetail_20' ) start [2025-01-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313062', 'tblTempUsageDetail_20' ) end [2025-01-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313062', 'tblTempVendorCDR_20' ) start [2025-01-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313062', 'tblTempVendorCDR_20' ) end [2025-01-23 14:52:31] Production.INFO: ProcessCDR(1,14313062,1,1,2) [2025-01-23 14:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313062', 'tblTempUsageDetail_20' ) start [2025-01-23 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313062', 'tblTempUsageDetail_20' ) end [2025-01-23 14:52:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:52:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:52:36] Production.INFO: ==3826== Releasing lock... [2025-01-23 14:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:52:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:53:05 [end_date_ymd] => 2025-01-23 14:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:53:05' and `end` < '2025-01-23 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-23 14:53:22] Production.INFO: count ==5251 [2025-01-23 14:53:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:53:05 - End Time 2025-01-23 14:53:05 [2025-01-23 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313067', 'tblTempUsageDetail_20' ) start [2025-01-23 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313067', 'tblTempUsageDetail_20' ) end [2025-01-23 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313067', 'tblTempVendorCDR_20' ) start [2025-01-23 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313067', 'tblTempVendorCDR_20' ) end [2025-01-23 14:53:24] Production.INFO: ProcessCDR(1,14313067,1,1,2) [2025-01-23 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313067', 'tblTempUsageDetail_20' ) start [2025-01-23 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313067', 'tblTempUsageDetail_20' ) end [2025-01-23 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:53:30] Production.INFO: ==3905== Releasing lock... [2025-01-23 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:53:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:54:06 [end_date_ymd] => 2025-01-23 14:54:06 [RateCDR] => 1 ) [2025-01-23 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 11:54:06' and `end` < '2025-01-23 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 14:54:20] Production.INFO: count ==5228 [2025-01-23 14:54:22] Production.ERROR: pbx CDR StartTime 2025-01-23 11:54:06 - End Time 2025-01-23 14:54:06 [2025-01-23 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313072', 'tblTempUsageDetail_20' ) start [2025-01-23 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313072', 'tblTempUsageDetail_20' ) end [2025-01-23 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313072', 'tblTempVendorCDR_20' ) start [2025-01-23 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313072', 'tblTempVendorCDR_20' ) end [2025-01-23 14:54:22] Production.INFO: ProcessCDR(1,14313072,1,1,2) [2025-01-23 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313072', 'tblTempUsageDetail_20' ) start [2025-01-23 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313072', 'tblTempUsageDetail_20' ) end [2025-01-23 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:54:28] Production.INFO: ==3984== Releasing lock... [2025-01-23 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:54:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:55:05 [end_date_ymd] => 2025-01-23 14:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:55:05' and `end` < '2025-01-23 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-23 14:55:25] Production.INFO: count ==5210 [2025-01-23 14:55:27] Production.ERROR: pbx CDR StartTime 2025-01-23 11:55:05 - End Time 2025-01-23 14:55:05 [2025-01-23 14:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313077', 'tblTempUsageDetail_20' ) start [2025-01-23 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313077', 'tblTempUsageDetail_20' ) end [2025-01-23 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313077', 'tblTempVendorCDR_20' ) start [2025-01-23 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313077', 'tblTempVendorCDR_20' ) end [2025-01-23 14:55:27] Production.INFO: ProcessCDR(1,14313077,1,1,2) [2025-01-23 14:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313077', 'tblTempUsageDetail_20' ) start [2025-01-23 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313077', 'tblTempUsageDetail_20' ) end [2025-01-23 14:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:55:33] Production.INFO: ==4063== Releasing lock... [2025-01-23 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:55:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:56:06 [end_date_ymd] => 2025-01-23 14:56:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:56:06' and `end` < '2025-01-23 14: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-23 14:56:21] Production.INFO: count ==5199 [2025-01-23 14:56:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:56:06 - End Time 2025-01-23 14:56:06 [2025-01-23 14:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313082', 'tblTempUsageDetail_20' ) start [2025-01-23 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313082', 'tblTempUsageDetail_20' ) end [2025-01-23 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313082', 'tblTempVendorCDR_20' ) start [2025-01-23 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313082', 'tblTempVendorCDR_20' ) end [2025-01-23 14:56:24] Production.INFO: ProcessCDR(1,14313082,1,1,2) [2025-01-23 14:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313082', 'tblTempUsageDetail_20' ) start [2025-01-23 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313082', 'tblTempUsageDetail_20' ) end [2025-01-23 14:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:56:29] Production.INFO: ==4150== Releasing lock... [2025-01-23 14:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:56:29] Production.INFO: 67 MB #Memory Used# [2025-01-23 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:57:05 [end_date_ymd] => 2025-01-23 14:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:57:05' and `end` < '2025-01-23 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-23 14:57:19] Production.INFO: count ==5192 [2025-01-23 14:57:21] Production.ERROR: pbx CDR StartTime 2025-01-23 11:57:05 - End Time 2025-01-23 14:57:05 [2025-01-23 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313087', 'tblTempUsageDetail_20' ) start [2025-01-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313087', 'tblTempUsageDetail_20' ) end [2025-01-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313087', 'tblTempVendorCDR_20' ) start [2025-01-23 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313087', 'tblTempVendorCDR_20' ) end [2025-01-23 14:57:22] Production.INFO: ProcessCDR(1,14313087,1,1,2) [2025-01-23 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313087', 'tblTempUsageDetail_20' ) start [2025-01-23 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313087', 'tblTempUsageDetail_20' ) end [2025-01-23 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:57:27] Production.INFO: ==4231== Releasing lock... [2025-01-23 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:57:27] Production.INFO: 67 MB #Memory Used# [2025-01-23 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:58:06 [end_date_ymd] => 2025-01-23 14:58:06 [RateCDR] => 1 ) [2025-01-23 14: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-23 11:58:06' and `end` < '2025-01-23 14: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-23 14:58:22] Production.INFO: count ==5186 [2025-01-23 14:58:24] Production.ERROR: pbx CDR StartTime 2025-01-23 11:58:06 - End Time 2025-01-23 14:58:06 [2025-01-23 14:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313092', 'tblTempUsageDetail_20' ) start [2025-01-23 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313092', 'tblTempUsageDetail_20' ) end [2025-01-23 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313092', 'tblTempVendorCDR_20' ) start [2025-01-23 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313092', 'tblTempVendorCDR_20' ) end [2025-01-23 14:58:24] Production.INFO: ProcessCDR(1,14313092,1,1,2) [2025-01-23 14:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313092', 'tblTempUsageDetail_20' ) start [2025-01-23 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313092', 'tblTempUsageDetail_20' ) end [2025-01-23 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:58:30] Production.INFO: ==4313== Releasing lock... [2025-01-23 14:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:58:30] Production.INFO: 67 MB #Memory Used# [2025-01-23 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 11:59:05 [end_date_ymd] => 2025-01-23 14:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 11:59:05' and `end` < '2025-01-23 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-23 14:59:26] Production.INFO: count ==5193 [2025-01-23 14:59:28] Production.ERROR: pbx CDR StartTime 2025-01-23 11:59:05 - End Time 2025-01-23 14:59:05 [2025-01-23 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313097', 'tblTempUsageDetail_20' ) start [2025-01-23 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313097', 'tblTempUsageDetail_20' ) end [2025-01-23 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313097', 'tblTempVendorCDR_20' ) start [2025-01-23 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313097', 'tblTempVendorCDR_20' ) end [2025-01-23 14:59:28] Production.INFO: ProcessCDR(1,14313097,1,1,2) [2025-01-23 14:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 14:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313097', 'tblTempUsageDetail_20' ) start [2025-01-23 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313097', 'tblTempUsageDetail_20' ) end [2025-01-23 14:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 14:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 14:59:33] Production.INFO: ==4395== Releasing lock... [2025-01-23 14:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 14:59:33] Production.INFO: 67 MB #Memory Used# [2025-01-23 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:00:06 [end_date_ymd] => 2025-01-23 15:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 12:00:06' and `end` < '2025-01-23 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-23 15:00:20] Production.INFO: count ==5200 [2025-01-23 15:00:23] Production.ERROR: pbx CDR StartTime 2025-01-23 12:00:06 - End Time 2025-01-23 15:00:06 [2025-01-23 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313102', 'tblTempUsageDetail_20' ) start [2025-01-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313102', 'tblTempUsageDetail_20' ) end [2025-01-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313102', 'tblTempVendorCDR_20' ) start [2025-01-23 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313102', 'tblTempVendorCDR_20' ) end [2025-01-23 15:00:23] Production.INFO: ProcessCDR(1,14313102,1,1,2) [2025-01-23 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313102', 'tblTempUsageDetail_20' ) start [2025-01-23 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313102', 'tblTempUsageDetail_20' ) end [2025-01-23 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:00:28] Production.INFO: ==4477== Releasing lock... [2025-01-23 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:00:28] Production.INFO: 67 MB #Memory Used# [2025-01-23 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:01:06 [end_date_ymd] => 2025-01-23 15:01:06 [RateCDR] => 1 ) [2025-01-23 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:01:06' and `end` < '2025-01-23 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:01:20] Production.INFO: count ==5202 [2025-01-23 15:01:22] Production.ERROR: pbx CDR StartTime 2025-01-23 12:01:06 - End Time 2025-01-23 15:01:06 [2025-01-23 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313108', 'tblTempUsageDetail_20' ) start [2025-01-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313108', 'tblTempUsageDetail_20' ) end [2025-01-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313108', 'tblTempVendorCDR_20' ) start [2025-01-23 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313108', 'tblTempVendorCDR_20' ) end [2025-01-23 15:01:22] Production.INFO: ProcessCDR(1,14313108,1,1,2) [2025-01-23 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313108', 'tblTempUsageDetail_20' ) start [2025-01-23 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313108', 'tblTempUsageDetail_20' ) end [2025-01-23 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:01:28] Production.INFO: ==4579== Releasing lock... [2025-01-23 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:01:28] Production.INFO: 67 MB #Memory Used# [2025-01-23 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:02:06 [end_date_ymd] => 2025-01-23 15:02:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:02:06' and `end` < '2025-01-23 15: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-23 15:02:24] Production.INFO: count ==5225 [2025-01-23 15:02:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:02:06 - End Time 2025-01-23 15:02:06 [2025-01-23 15:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313113', 'tblTempUsageDetail_20' ) start [2025-01-23 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313113', 'tblTempUsageDetail_20' ) end [2025-01-23 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313113', 'tblTempVendorCDR_20' ) start [2025-01-23 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313113', 'tblTempVendorCDR_20' ) end [2025-01-23 15:02:27] Production.INFO: ProcessCDR(1,14313113,1,1,2) [2025-01-23 15:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313113', 'tblTempUsageDetail_20' ) start [2025-01-23 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313113', 'tblTempUsageDetail_20' ) end [2025-01-23 15:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:02:33] Production.INFO: ==4741== Releasing lock... [2025-01-23 15:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:02:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:03:05 [end_date_ymd] => 2025-01-23 15:03:05 [RateCDR] => 1 ) [2025-01-23 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:03:05' and `end` < '2025-01-23 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:03:22] Production.INFO: count ==5224 [2025-01-23 15:03:24] Production.ERROR: pbx CDR StartTime 2025-01-23 12:03:05 - End Time 2025-01-23 15:03:05 [2025-01-23 15:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313118', 'tblTempUsageDetail_20' ) start [2025-01-23 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313118', 'tblTempUsageDetail_20' ) end [2025-01-23 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313118', 'tblTempVendorCDR_20' ) start [2025-01-23 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313118', 'tblTempVendorCDR_20' ) end [2025-01-23 15:03:24] Production.INFO: ProcessCDR(1,14313118,1,1,2) [2025-01-23 15:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313118', 'tblTempUsageDetail_20' ) start [2025-01-23 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313118', 'tblTempUsageDetail_20' ) end [2025-01-23 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:03:30] Production.INFO: ==4824== Releasing lock... [2025-01-23 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:03:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:04:06 [end_date_ymd] => 2025-01-23 15:04:06 [RateCDR] => 1 ) [2025-01-23 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:04:06' and `end` < '2025-01-23 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:04:20] Production.INFO: count ==5220 [2025-01-23 15:04:22] Production.ERROR: pbx CDR StartTime 2025-01-23 12:04:06 - End Time 2025-01-23 15:04:06 [2025-01-23 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313123', 'tblTempUsageDetail_20' ) start [2025-01-23 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313123', 'tblTempUsageDetail_20' ) end [2025-01-23 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313123', 'tblTempVendorCDR_20' ) start [2025-01-23 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313123', 'tblTempVendorCDR_20' ) end [2025-01-23 15:04:22] Production.INFO: ProcessCDR(1,14313123,1,1,2) [2025-01-23 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313123', 'tblTempUsageDetail_20' ) start [2025-01-23 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313123', 'tblTempUsageDetail_20' ) end [2025-01-23 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:04:28] Production.INFO: ==4905== Releasing lock... [2025-01-23 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:04:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:05:06 [end_date_ymd] => 2025-01-23 15:05:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:05:06' and `end` < '2025-01-23 15: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-23 15:05:24] Production.INFO: count ==5235 [2025-01-23 15:05:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:05:06 - End Time 2025-01-23 15:05:06 [2025-01-23 15:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313128', 'tblTempUsageDetail_20' ) start [2025-01-23 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313128', 'tblTempUsageDetail_20' ) end [2025-01-23 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313128', 'tblTempVendorCDR_20' ) start [2025-01-23 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313128', 'tblTempVendorCDR_20' ) end [2025-01-23 15:05:26] Production.INFO: ProcessCDR(1,14313128,1,1,2) [2025-01-23 15:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313128', 'tblTempUsageDetail_20' ) start [2025-01-23 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313128', 'tblTempUsageDetail_20' ) end [2025-01-23 15:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:05:32] Production.INFO: ==5068== Releasing lock... [2025-01-23 15:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:05:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:06:05 [end_date_ymd] => 2025-01-23 15:06:05 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:06:05' and `end` < '2025-01-23 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:06:30] Production.INFO: count ==5235 [2025-01-23 15:06:32] Production.ERROR: pbx CDR StartTime 2025-01-23 12:06:05 - End Time 2025-01-23 15:06:05 [2025-01-23 15:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313133', 'tblTempUsageDetail_20' ) start [2025-01-23 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313133', 'tblTempUsageDetail_20' ) end [2025-01-23 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313133', 'tblTempVendorCDR_20' ) start [2025-01-23 15:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313133', 'tblTempVendorCDR_20' ) end [2025-01-23 15:06:32] Production.INFO: ProcessCDR(1,14313133,1,1,2) [2025-01-23 15:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313133', 'tblTempUsageDetail_20' ) start [2025-01-23 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313133', 'tblTempUsageDetail_20' ) end [2025-01-23 15:06:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:06:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:06:38] Production.INFO: ==5156== Releasing lock... [2025-01-23 15:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:06:38] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:07:06 [end_date_ymd] => 2025-01-23 15:07:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:07:06' and `end` < '2025-01-23 15: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-23 15:07:26] Production.INFO: count ==5229 [2025-01-23 15:07:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:07:06 - End Time 2025-01-23 15:07:06 [2025-01-23 15:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313138', 'tblTempUsageDetail_20' ) start [2025-01-23 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313138', 'tblTempUsageDetail_20' ) end [2025-01-23 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313138', 'tblTempVendorCDR_20' ) start [2025-01-23 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313138', 'tblTempVendorCDR_20' ) end [2025-01-23 15:07:28] Production.INFO: ProcessCDR(1,14313138,1,1,2) [2025-01-23 15:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313138', 'tblTempUsageDetail_20' ) start [2025-01-23 15:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313138', 'tblTempUsageDetail_20' ) end [2025-01-23 15:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:07:34] Production.INFO: ==5287== Releasing lock... [2025-01-23 15:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:07:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:08:06 [end_date_ymd] => 2025-01-23 15:08:06 [RateCDR] => 1 ) [2025-01-23 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-23 12:08:06' and `end` < '2025-01-23 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-23 15:08:31] Production.INFO: count ==5229 [2025-01-23 15:08:34] Production.ERROR: pbx CDR StartTime 2025-01-23 12:08:06 - End Time 2025-01-23 15:08:06 [2025-01-23 15:08:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313143', 'tblTempUsageDetail_20' ) start [2025-01-23 15:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313143', 'tblTempUsageDetail_20' ) end [2025-01-23 15:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313143', 'tblTempVendorCDR_20' ) start [2025-01-23 15:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313143', 'tblTempVendorCDR_20' ) end [2025-01-23 15:08:34] Production.INFO: ProcessCDR(1,14313143,1,1,2) [2025-01-23 15:08:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:08:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:08:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:08:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313143', 'tblTempUsageDetail_20' ) start [2025-01-23 15:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313143', 'tblTempUsageDetail_20' ) end [2025-01-23 15:08:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:08:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:08:39] Production.INFO: ==5411== Releasing lock... [2025-01-23 15:08:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:08:39] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:09:06 [end_date_ymd] => 2025-01-23 15:09:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:09:06' and `end` < '2025-01-23 15: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-23 15:09:32] Production.INFO: count ==5227 [2025-01-23 15:09:34] Production.ERROR: pbx CDR StartTime 2025-01-23 12:09:06 - End Time 2025-01-23 15:09:06 [2025-01-23 15:09:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313148', 'tblTempUsageDetail_20' ) start [2025-01-23 15:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313148', 'tblTempUsageDetail_20' ) end [2025-01-23 15:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313148', 'tblTempVendorCDR_20' ) start [2025-01-23 15:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313148', 'tblTempVendorCDR_20' ) end [2025-01-23 15:09:34] Production.INFO: ProcessCDR(1,14313148,1,1,2) [2025-01-23 15:09:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:09:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:09:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:09:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313148', 'tblTempUsageDetail_20' ) start [2025-01-23 15:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313148', 'tblTempUsageDetail_20' ) end [2025-01-23 15:09:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:09:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:09:40] Production.INFO: ==5537== Releasing lock... [2025-01-23 15:09:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:09:40] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:10:07 [end_date_ymd] => 2025-01-23 15:10:07 [RateCDR] => 1 ) [2025-01-23 15:10: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-23 12:10:07' and `end` < '2025-01-23 15:10: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-23 15:10:28] Production.INFO: count ==5212 [2025-01-23 15:10:30] Production.ERROR: pbx CDR StartTime 2025-01-23 12:10:07 - End Time 2025-01-23 15:10:07 [2025-01-23 15:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313154', 'tblTempUsageDetail_20' ) start [2025-01-23 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313154', 'tblTempUsageDetail_20' ) end [2025-01-23 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313154', 'tblTempVendorCDR_20' ) start [2025-01-23 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313154', 'tblTempVendorCDR_20' ) end [2025-01-23 15:10:31] Production.INFO: ProcessCDR(1,14313154,1,1,2) [2025-01-23 15:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313154', 'tblTempUsageDetail_20' ) start [2025-01-23 15:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313154', 'tblTempUsageDetail_20' ) end [2025-01-23 15:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:10:36] Production.INFO: ==5627== Releasing lock... [2025-01-23 15:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:10:36] Production.INFO: 67 MB #Memory Used# [2025-01-23 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:11:06 [end_date_ymd] => 2025-01-23 15:11:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:11:06' and `end` < '2025-01-23 15: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-23 15:11:26] Production.INFO: count ==5239 [2025-01-23 15:11:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:11:06 - End Time 2025-01-23 15:11:06 [2025-01-23 15:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313159', 'tblTempUsageDetail_20' ) start [2025-01-23 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313159', 'tblTempUsageDetail_20' ) end [2025-01-23 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313159', 'tblTempVendorCDR_20' ) start [2025-01-23 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313159', 'tblTempVendorCDR_20' ) end [2025-01-23 15:11:28] Production.INFO: ProcessCDR(1,14313159,1,1,2) [2025-01-23 15:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313159', 'tblTempUsageDetail_20' ) start [2025-01-23 15:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313159', 'tblTempUsageDetail_20' ) end [2025-01-23 15:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:11:34] Production.INFO: ==5716== Releasing lock... [2025-01-23 15:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:11:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:12:06 [end_date_ymd] => 2025-01-23 15:12:06 [RateCDR] => 1 ) [2025-01-23 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:12:06' and `end` < '2025-01-23 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:12:20] Production.INFO: count ==5247 [2025-01-23 15:12:22] Production.ERROR: pbx CDR StartTime 2025-01-23 12:12:06 - End Time 2025-01-23 15:12:06 [2025-01-23 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313164', 'tblTempUsageDetail_20' ) start [2025-01-23 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313164', 'tblTempUsageDetail_20' ) end [2025-01-23 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313164', 'tblTempVendorCDR_20' ) start [2025-01-23 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313164', 'tblTempVendorCDR_20' ) end [2025-01-23 15:12:22] Production.INFO: ProcessCDR(1,14313164,1,1,2) [2025-01-23 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313164', 'tblTempUsageDetail_20' ) start [2025-01-23 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313164', 'tblTempUsageDetail_20' ) end [2025-01-23 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:12:28] Production.INFO: ==5872== Releasing lock... [2025-01-23 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:12:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:13:06 [end_date_ymd] => 2025-01-23 15:13:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:13:06' and `end` < '2025-01-23 15: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-23 15:13:27] Production.INFO: count ==5256 [2025-01-23 15:13:29] Production.ERROR: pbx CDR StartTime 2025-01-23 12:13:06 - End Time 2025-01-23 15:13:06 [2025-01-23 15:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313169', 'tblTempUsageDetail_20' ) start [2025-01-23 15:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313169', 'tblTempUsageDetail_20' ) end [2025-01-23 15:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313169', 'tblTempVendorCDR_20' ) start [2025-01-23 15:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313169', 'tblTempVendorCDR_20' ) end [2025-01-23 15:13:29] Production.INFO: ProcessCDR(1,14313169,1,1,2) [2025-01-23 15:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313169', 'tblTempUsageDetail_20' ) start [2025-01-23 15:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313169', 'tblTempUsageDetail_20' ) end [2025-01-23 15:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:13:34] Production.INFO: ==5954== Releasing lock... [2025-01-23 15:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:13:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:14:06 [end_date_ymd] => 2025-01-23 15:14:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:14:06' and `end` < '2025-01-23 15: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-23 15:14:24] Production.INFO: count ==5243 [2025-01-23 15:14:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:14:06 - End Time 2025-01-23 15:14:06 [2025-01-23 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313174', 'tblTempUsageDetail_20' ) start [2025-01-23 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313174', 'tblTempUsageDetail_20' ) end [2025-01-23 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313174', 'tblTempVendorCDR_20' ) start [2025-01-23 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313174', 'tblTempVendorCDR_20' ) end [2025-01-23 15:14:26] Production.INFO: ProcessCDR(1,14313174,1,1,2) [2025-01-23 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313174', 'tblTempUsageDetail_20' ) start [2025-01-23 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313174', 'tblTempUsageDetail_20' ) end [2025-01-23 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:14:31] Production.INFO: ==6041== Releasing lock... [2025-01-23 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:14:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:15:05 [end_date_ymd] => 2025-01-23 15:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:15:05' and `end` < '2025-01-23 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-23 15:15:24] Production.INFO: count ==5253 [2025-01-23 15:15:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:15:05 - End Time 2025-01-23 15:15:05 [2025-01-23 15:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313179', 'tblTempUsageDetail_20' ) start [2025-01-23 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313179', 'tblTempUsageDetail_20' ) end [2025-01-23 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313179', 'tblTempVendorCDR_20' ) start [2025-01-23 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313179', 'tblTempVendorCDR_20' ) end [2025-01-23 15:15:26] Production.INFO: ProcessCDR(1,14313179,1,1,2) [2025-01-23 15:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313179', 'tblTempUsageDetail_20' ) start [2025-01-23 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313179', 'tblTempUsageDetail_20' ) end [2025-01-23 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:15:32] Production.INFO: ==6195== Releasing lock... [2025-01-23 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:15:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:16:06 [end_date_ymd] => 2025-01-23 15:16:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:16:06' and `end` < '2025-01-23 15: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-23 15:16:23] Production.INFO: count ==5254 [2025-01-23 15:16:25] Production.ERROR: pbx CDR StartTime 2025-01-23 12:16:06 - End Time 2025-01-23 15:16:06 [2025-01-23 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313184', 'tblTempUsageDetail_20' ) start [2025-01-23 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313184', 'tblTempUsageDetail_20' ) end [2025-01-23 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313184', 'tblTempVendorCDR_20' ) start [2025-01-23 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313184', 'tblTempVendorCDR_20' ) end [2025-01-23 15:16:25] Production.INFO: ProcessCDR(1,14313184,1,1,2) [2025-01-23 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313184', 'tblTempUsageDetail_20' ) start [2025-01-23 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313184', 'tblTempUsageDetail_20' ) end [2025-01-23 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:16:30] Production.INFO: ==6276== Releasing lock... [2025-01-23 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:16:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:17:05 [end_date_ymd] => 2025-01-23 15:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:17:05' and `end` < '2025-01-23 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-23 15:17:23] Production.INFO: count ==5253 [2025-01-23 15:17:25] Production.ERROR: pbx CDR StartTime 2025-01-23 12:17:05 - End Time 2025-01-23 15:17:05 [2025-01-23 15:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313189', 'tblTempUsageDetail_20' ) start [2025-01-23 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313189', 'tblTempUsageDetail_20' ) end [2025-01-23 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313189', 'tblTempVendorCDR_20' ) start [2025-01-23 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313189', 'tblTempVendorCDR_20' ) end [2025-01-23 15:17:25] Production.INFO: ProcessCDR(1,14313189,1,1,2) [2025-01-23 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313189', 'tblTempUsageDetail_20' ) start [2025-01-23 15:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313189', 'tblTempUsageDetail_20' ) end [2025-01-23 15:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:17:31] Production.INFO: ==6360== Releasing lock... [2025-01-23 15:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:17:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:18:06 [end_date_ymd] => 2025-01-23 15:18:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:18:06' and `end` < '2025-01-23 15: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-23 15:18:25] Production.INFO: count ==5257 [2025-01-23 15:18:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:18:06 - End Time 2025-01-23 15:18:06 [2025-01-23 15:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313194', 'tblTempUsageDetail_20' ) start [2025-01-23 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313194', 'tblTempUsageDetail_20' ) end [2025-01-23 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313194', 'tblTempVendorCDR_20' ) start [2025-01-23 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313194', 'tblTempVendorCDR_20' ) end [2025-01-23 15:18:27] Production.INFO: ProcessCDR(1,14313194,1,1,2) [2025-01-23 15:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313194', 'tblTempUsageDetail_20' ) start [2025-01-23 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313194', 'tblTempUsageDetail_20' ) end [2025-01-23 15:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:18:33] Production.INFO: ==6441== Releasing lock... [2025-01-23 15:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:18:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:19:05 [end_date_ymd] => 2025-01-23 15:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:19:05' and `end` < '2025-01-23 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-23 15:19:29] Production.INFO: count ==5245 [2025-01-23 15:19:31] Production.ERROR: pbx CDR StartTime 2025-01-23 12:19:05 - End Time 2025-01-23 15:19:05 [2025-01-23 15:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313199', 'tblTempUsageDetail_20' ) start [2025-01-23 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313199', 'tblTempUsageDetail_20' ) end [2025-01-23 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313199', 'tblTempVendorCDR_20' ) start [2025-01-23 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313199', 'tblTempVendorCDR_20' ) end [2025-01-23 15:19:31] Production.INFO: ProcessCDR(1,14313199,1,1,2) [2025-01-23 15:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313199', 'tblTempUsageDetail_20' ) start [2025-01-23 15:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313199', 'tblTempUsageDetail_20' ) end [2025-01-23 15:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:19:36] Production.INFO: ==6519== Releasing lock... [2025-01-23 15:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:19:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:20:06 [end_date_ymd] => 2025-01-23 15:20:06 [RateCDR] => 1 ) [2025-01-23 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:20:06' and `end` < '2025-01-23 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:20:33] Production.INFO: count ==5258 [2025-01-23 15:20:35] Production.ERROR: pbx CDR StartTime 2025-01-23 12:20:06 - End Time 2025-01-23 15:20:06 [2025-01-23 15:20:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313204', 'tblTempUsageDetail_20' ) start [2025-01-23 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313204', 'tblTempUsageDetail_20' ) end [2025-01-23 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313204', 'tblTempVendorCDR_20' ) start [2025-01-23 15:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313204', 'tblTempVendorCDR_20' ) end [2025-01-23 15:20:35] Production.INFO: ProcessCDR(1,14313204,1,1,2) [2025-01-23 15:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:20:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:20:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:20:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313204', 'tblTempUsageDetail_20' ) start [2025-01-23 15:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313204', 'tblTempUsageDetail_20' ) end [2025-01-23 15:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:20:41] Production.INFO: ==6606== Releasing lock... [2025-01-23 15:20:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:20:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:21:05 [end_date_ymd] => 2025-01-23 15:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:21:05' and `end` < '2025-01-23 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-23 15:21:25] Production.INFO: count ==5311 [2025-01-23 15:21:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:21:05 - End Time 2025-01-23 15:21:05 [2025-01-23 15:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313210', 'tblTempUsageDetail_20' ) start [2025-01-23 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313210', 'tblTempUsageDetail_20' ) end [2025-01-23 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313210', 'tblTempVendorCDR_20' ) start [2025-01-23 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313210', 'tblTempVendorCDR_20' ) end [2025-01-23 15:21:27] Production.INFO: ProcessCDR(1,14313210,1,1,2) [2025-01-23 15:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313210', 'tblTempUsageDetail_20' ) start [2025-01-23 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313210', 'tblTempUsageDetail_20' ) end [2025-01-23 15:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:21:32] Production.INFO: ==6689== Releasing lock... [2025-01-23 15:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:21:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:22:06 [end_date_ymd] => 2025-01-23 15:22:06 [RateCDR] => 1 ) [2025-01-23 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:22:06' and `end` < '2025-01-23 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:22:27] Production.INFO: count ==5320 [2025-01-23 15:22:29] Production.ERROR: pbx CDR StartTime 2025-01-23 12:22:06 - End Time 2025-01-23 15:22:06 [2025-01-23 15:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313215', 'tblTempUsageDetail_20' ) start [2025-01-23 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313215', 'tblTempUsageDetail_20' ) end [2025-01-23 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313215', 'tblTempVendorCDR_20' ) start [2025-01-23 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313215', 'tblTempVendorCDR_20' ) end [2025-01-23 15:22:29] Production.INFO: ProcessCDR(1,14313215,1,1,2) [2025-01-23 15:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313215', 'tblTempUsageDetail_20' ) start [2025-01-23 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313215', 'tblTempUsageDetail_20' ) end [2025-01-23 15:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:22:35] Production.INFO: ==6810== Releasing lock... [2025-01-23 15:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:22:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:23:05 [end_date_ymd] => 2025-01-23 15:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:23:05' and `end` < '2025-01-23 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-23 15:23:24] Production.INFO: count ==5331 [2025-01-23 15:23:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:23:05 - End Time 2025-01-23 15:23:05 [2025-01-23 15:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313220', 'tblTempUsageDetail_20' ) start [2025-01-23 15:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313220', 'tblTempUsageDetail_20' ) end [2025-01-23 15:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313220', 'tblTempVendorCDR_20' ) start [2025-01-23 15:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313220', 'tblTempVendorCDR_20' ) end [2025-01-23 15:23:27] Production.INFO: ProcessCDR(1,14313220,1,1,2) [2025-01-23 15:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313220', 'tblTempUsageDetail_20' ) start [2025-01-23 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313220', 'tblTempUsageDetail_20' ) end [2025-01-23 15:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:23:32] Production.INFO: ==6892== Releasing lock... [2025-01-23 15:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:23:32] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:24:06 [end_date_ymd] => 2025-01-23 15:24:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:24:06' and `end` < '2025-01-23 15: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-23 15:24:26] Production.INFO: count ==5336 [2025-01-23 15:24:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:24:06 - End Time 2025-01-23 15:24:06 [2025-01-23 15:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313225', 'tblTempUsageDetail_20' ) start [2025-01-23 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313225', 'tblTempUsageDetail_20' ) end [2025-01-23 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313225', 'tblTempVendorCDR_20' ) start [2025-01-23 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313225', 'tblTempVendorCDR_20' ) end [2025-01-23 15:24:28] Production.INFO: ProcessCDR(1,14313225,1,1,2) [2025-01-23 15:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313225', 'tblTempUsageDetail_20' ) start [2025-01-23 15:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313225', 'tblTempUsageDetail_20' ) end [2025-01-23 15:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:24:34] Production.INFO: ==6972== Releasing lock... [2025-01-23 15:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:24:34] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:25:05 [end_date_ymd] => 2025-01-23 15:25:05 [RateCDR] => 1 ) [2025-01-23 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:25:05' and `end` < '2025-01-23 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:25:25] Production.INFO: count ==5334 [2025-01-23 15:25:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:25:05 - End Time 2025-01-23 15:25:05 [2025-01-23 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313230', 'tblTempUsageDetail_20' ) start [2025-01-23 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313230', 'tblTempUsageDetail_20' ) end [2025-01-23 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313230', 'tblTempVendorCDR_20' ) start [2025-01-23 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313230', 'tblTempVendorCDR_20' ) end [2025-01-23 15:25:27] Production.INFO: ProcessCDR(1,14313230,1,1,2) [2025-01-23 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313230', 'tblTempUsageDetail_20' ) start [2025-01-23 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313230', 'tblTempUsageDetail_20' ) end [2025-01-23 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:25:33] Production.INFO: ==7050== Releasing lock... [2025-01-23 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:25:33] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:26:05 [end_date_ymd] => 2025-01-23 15:26:05 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:26:05' and `end` < '2025-01-23 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-23 15:26:22] Production.INFO: count ==5344 [2025-01-23 15:26:24] Production.ERROR: pbx CDR StartTime 2025-01-23 12:26:05 - End Time 2025-01-23 15:26:05 [2025-01-23 15:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313235', 'tblTempUsageDetail_20' ) start [2025-01-23 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313235', 'tblTempUsageDetail_20' ) end [2025-01-23 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313235', 'tblTempVendorCDR_20' ) start [2025-01-23 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313235', 'tblTempVendorCDR_20' ) end [2025-01-23 15:26:24] Production.INFO: ProcessCDR(1,14313235,1,1,2) [2025-01-23 15:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313235', 'tblTempUsageDetail_20' ) start [2025-01-23 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313235', 'tblTempUsageDetail_20' ) end [2025-01-23 15:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:26:30] Production.INFO: ==7129== Releasing lock... [2025-01-23 15:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:26:30] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:27:06 [end_date_ymd] => 2025-01-23 15:27:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:27:06' and `end` < '2025-01-23 15: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-23 15:27:25] Production.INFO: count ==5347 [2025-01-23 15:27:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:27:06 - End Time 2025-01-23 15:27:06 [2025-01-23 15:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313240', 'tblTempUsageDetail_20' ) start [2025-01-23 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313240', 'tblTempUsageDetail_20' ) end [2025-01-23 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313240', 'tblTempVendorCDR_20' ) start [2025-01-23 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313240', 'tblTempVendorCDR_20' ) end [2025-01-23 15:27:27] Production.INFO: ProcessCDR(1,14313240,1,1,2) [2025-01-23 15:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313240', 'tblTempUsageDetail_20' ) start [2025-01-23 15:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313240', 'tblTempUsageDetail_20' ) end [2025-01-23 15:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:27:33] Production.INFO: ==7200== Releasing lock... [2025-01-23 15:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:27:33] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:28:06 [end_date_ymd] => 2025-01-23 15:28:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:28:06' and `end` < '2025-01-23 15: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-23 15:28:26] Production.INFO: count ==5338 [2025-01-23 15:28:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:28:06 - End Time 2025-01-23 15:28:06 [2025-01-23 15:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313244', 'tblTempUsageDetail_20' ) start [2025-01-23 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313244', 'tblTempUsageDetail_20' ) end [2025-01-23 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313244', 'tblTempVendorCDR_20' ) start [2025-01-23 15:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313244', 'tblTempVendorCDR_20' ) end [2025-01-23 15:28:28] Production.INFO: ProcessCDR(1,14313244,1,1,2) [2025-01-23 15:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313244', 'tblTempUsageDetail_20' ) start [2025-01-23 15:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313244', 'tblTempUsageDetail_20' ) end [2025-01-23 15:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:28:33] Production.INFO: ==7281== Releasing lock... [2025-01-23 15:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:28:33] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:29:06 [end_date_ymd] => 2025-01-23 15:29:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:29:06' and `end` < '2025-01-23 15: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-23 15:29:24] Production.INFO: count ==5327 [2025-01-23 15:29:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:29:06 - End Time 2025-01-23 15:29:06 [2025-01-23 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313250', 'tblTempUsageDetail_20' ) start [2025-01-23 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313250', 'tblTempUsageDetail_20' ) end [2025-01-23 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313250', 'tblTempVendorCDR_20' ) start [2025-01-23 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313250', 'tblTempVendorCDR_20' ) end [2025-01-23 15:29:26] Production.INFO: ProcessCDR(1,14313250,1,1,2) [2025-01-23 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313250', 'tblTempUsageDetail_20' ) start [2025-01-23 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313250', 'tblTempUsageDetail_20' ) end [2025-01-23 15:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:29:31] Production.INFO: ==7355== Releasing lock... [2025-01-23 15:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:29:31] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:30:06 [end_date_ymd] => 2025-01-23 15:30:06 [RateCDR] => 1 ) [2025-01-23 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:30:06' and `end` < '2025-01-23 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:30:33] Production.INFO: count ==5338 [2025-01-23 15:30:35] Production.ERROR: pbx CDR StartTime 2025-01-23 12:30:06 - End Time 2025-01-23 15:30:06 [2025-01-23 15:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313256', 'tblTempUsageDetail_20' ) start [2025-01-23 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313256', 'tblTempUsageDetail_20' ) end [2025-01-23 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313256', 'tblTempVendorCDR_20' ) start [2025-01-23 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313256', 'tblTempVendorCDR_20' ) end [2025-01-23 15:30:35] Production.INFO: ProcessCDR(1,14313256,1,1,2) [2025-01-23 15:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313256', 'tblTempUsageDetail_20' ) start [2025-01-23 15:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313256', 'tblTempUsageDetail_20' ) end [2025-01-23 15:30:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:30:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:30:40] Production.INFO: ==7430== Releasing lock... [2025-01-23 15:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:30:40] Production.INFO: 68 MB #Memory Used# [2025-01-23 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:31:06 [end_date_ymd] => 2025-01-23 15:31:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:31:06' and `end` < '2025-01-23 15: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-23 15:31:28] Production.INFO: count ==5407 [2025-01-23 15:31:30] Production.ERROR: pbx CDR StartTime 2025-01-23 12:31:06 - End Time 2025-01-23 15:31:06 [2025-01-23 15:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313261', 'tblTempUsageDetail_20' ) start [2025-01-23 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313261', 'tblTempUsageDetail_20' ) end [2025-01-23 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313261', 'tblTempVendorCDR_20' ) start [2025-01-23 15:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313261', 'tblTempVendorCDR_20' ) end [2025-01-23 15:31:30] Production.INFO: ProcessCDR(1,14313261,1,1,2) [2025-01-23 15:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313261', 'tblTempUsageDetail_20' ) start [2025-01-23 15:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313261', 'tblTempUsageDetail_20' ) end [2025-01-23 15:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:31:35] Production.INFO: ==7506== Releasing lock... [2025-01-23 15:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:31:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:32:05 [end_date_ymd] => 2025-01-23 15:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:32:05' and `end` < '2025-01-23 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-23 15:32:27] Production.INFO: count ==5422 [2025-01-23 15:32:30] Production.ERROR: pbx CDR StartTime 2025-01-23 12:32:05 - End Time 2025-01-23 15:32:05 [2025-01-23 15:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313266', 'tblTempUsageDetail_20' ) start [2025-01-23 15:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313266', 'tblTempUsageDetail_20' ) end [2025-01-23 15:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313266', 'tblTempVendorCDR_20' ) start [2025-01-23 15:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313266', 'tblTempVendorCDR_20' ) end [2025-01-23 15:32:30] Production.INFO: ProcessCDR(1,14313266,1,1,2) [2025-01-23 15:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313266', 'tblTempUsageDetail_20' ) start [2025-01-23 15:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313266', 'tblTempUsageDetail_20' ) end [2025-01-23 15:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:32:35] Production.INFO: ==7579== Releasing lock... [2025-01-23 15:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:32:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:33:05 [end_date_ymd] => 2025-01-23 15:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:33:05' and `end` < '2025-01-23 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-23 15:33:25] Production.INFO: count ==5435 [2025-01-23 15:33:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:33:05 - End Time 2025-01-23 15:33:05 [2025-01-23 15:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313271', 'tblTempUsageDetail_20' ) start [2025-01-23 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313271', 'tblTempUsageDetail_20' ) end [2025-01-23 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313271', 'tblTempVendorCDR_20' ) start [2025-01-23 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313271', 'tblTempVendorCDR_20' ) end [2025-01-23 15:33:27] Production.INFO: ProcessCDR(1,14313271,1,1,2) [2025-01-23 15:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313271', 'tblTempUsageDetail_20' ) start [2025-01-23 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313271', 'tblTempUsageDetail_20' ) end [2025-01-23 15:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:33:32] Production.INFO: ==7652== Releasing lock... [2025-01-23 15:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:33:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:34:05 [end_date_ymd] => 2025-01-23 15:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:34:05' and `end` < '2025-01-23 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-23 15:34:32] Production.INFO: count ==5456 [2025-01-23 15:34:34] Production.ERROR: pbx CDR StartTime 2025-01-23 12:34:05 - End Time 2025-01-23 15:34:05 [2025-01-23 15:34:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313276', 'tblTempUsageDetail_20' ) start [2025-01-23 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313276', 'tblTempUsageDetail_20' ) end [2025-01-23 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313276', 'tblTempVendorCDR_20' ) start [2025-01-23 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313276', 'tblTempVendorCDR_20' ) end [2025-01-23 15:34:34] Production.INFO: ProcessCDR(1,14313276,1,1,2) [2025-01-23 15:34:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:34:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:34:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:34:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:34:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313276', 'tblTempUsageDetail_20' ) start [2025-01-23 15:34:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313276', 'tblTempUsageDetail_20' ) end [2025-01-23 15:34:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:34:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:34:40] Production.INFO: ==7723== Releasing lock... [2025-01-23 15:34:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:34:40] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:35:05 [end_date_ymd] => 2025-01-23 15:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:35:05' and `end` < '2025-01-23 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-23 15:35:36] Production.INFO: count ==5469 [2025-01-23 15:35:38] Production.ERROR: pbx CDR StartTime 2025-01-23 12:35:05 - End Time 2025-01-23 15:35:05 [2025-01-23 15:35:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313281', 'tblTempUsageDetail_20' ) start [2025-01-23 15:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313281', 'tblTempUsageDetail_20' ) end [2025-01-23 15:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313281', 'tblTempVendorCDR_20' ) start [2025-01-23 15:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313281', 'tblTempVendorCDR_20' ) end [2025-01-23 15:35:38] Production.INFO: ProcessCDR(1,14313281,1,1,2) [2025-01-23 15:35:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:35:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:35:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313281', 'tblTempUsageDetail_20' ) start [2025-01-23 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313281', 'tblTempUsageDetail_20' ) end [2025-01-23 15:35:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:35:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:35:43] Production.INFO: ==7797== Releasing lock... [2025-01-23 15:35:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:35:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:36:05 [end_date_ymd] => 2025-01-23 15:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:36:05' and `end` < '2025-01-23 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-23 15:36:26] Production.INFO: count ==5487 [2025-01-23 15:36:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:36:05 - End Time 2025-01-23 15:36:05 [2025-01-23 15:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313286', 'tblTempUsageDetail_20' ) start [2025-01-23 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313286', 'tblTempUsageDetail_20' ) end [2025-01-23 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313286', 'tblTempVendorCDR_20' ) start [2025-01-23 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313286', 'tblTempVendorCDR_20' ) end [2025-01-23 15:36:29] Production.INFO: ProcessCDR(1,14313286,1,1,2) [2025-01-23 15:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313286', 'tblTempUsageDetail_20' ) start [2025-01-23 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313286', 'tblTempUsageDetail_20' ) end [2025-01-23 15:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:36:33] Production.INFO: ==7892== Releasing lock... [2025-01-23 15:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:36:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:37:06 [end_date_ymd] => 2025-01-23 15:37:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:37:06' and `end` < '2025-01-23 15: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-23 15:37:31] Production.INFO: count ==5451 [2025-01-23 15:37:33] Production.ERROR: pbx CDR StartTime 2025-01-23 12:37:06 - End Time 2025-01-23 15:37:06 [2025-01-23 15:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313291', 'tblTempUsageDetail_20' ) start [2025-01-23 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313291', 'tblTempUsageDetail_20' ) end [2025-01-23 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313291', 'tblTempVendorCDR_20' ) start [2025-01-23 15:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313291', 'tblTempVendorCDR_20' ) end [2025-01-23 15:37:33] Production.INFO: ProcessCDR(1,14313291,1,1,2) [2025-01-23 15:37:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313291', 'tblTempUsageDetail_20' ) start [2025-01-23 15:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313291', 'tblTempUsageDetail_20' ) end [2025-01-23 15:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:37:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:37:38] Production.INFO: ==7967== Releasing lock... [2025-01-23 15:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:37:38] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:38:05 [end_date_ymd] => 2025-01-23 15:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:38:05' and `end` < '2025-01-23 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-23 15:38:27] Production.INFO: count ==5460 [2025-01-23 15:38:29] Production.ERROR: pbx CDR StartTime 2025-01-23 12:38:05 - End Time 2025-01-23 15:38:05 [2025-01-23 15:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313296', 'tblTempUsageDetail_20' ) start [2025-01-23 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313296', 'tblTempUsageDetail_20' ) end [2025-01-23 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313296', 'tblTempVendorCDR_20' ) start [2025-01-23 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313296', 'tblTempVendorCDR_20' ) end [2025-01-23 15:38:29] Production.INFO: ProcessCDR(1,14313296,1,1,2) [2025-01-23 15:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313296', 'tblTempUsageDetail_20' ) start [2025-01-23 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313296', 'tblTempUsageDetail_20' ) end [2025-01-23 15:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:38:34] Production.INFO: ==8083== Releasing lock... [2025-01-23 15:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:38:34] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:39:06 [end_date_ymd] => 2025-01-23 15:39:06 [RateCDR] => 1 ) [2025-01-23 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:39:06' and `end` < '2025-01-23 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:39:25] Production.INFO: count ==5469 [2025-01-23 15:39:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:39:06 - End Time 2025-01-23 15:39:06 [2025-01-23 15:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313301', 'tblTempUsageDetail_20' ) start [2025-01-23 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313301', 'tblTempUsageDetail_20' ) end [2025-01-23 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313301', 'tblTempVendorCDR_20' ) start [2025-01-23 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313301', 'tblTempVendorCDR_20' ) end [2025-01-23 15:39:28] Production.INFO: ProcessCDR(1,14313301,1,1,2) [2025-01-23 15:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313301', 'tblTempUsageDetail_20' ) start [2025-01-23 15:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313301', 'tblTempUsageDetail_20' ) end [2025-01-23 15:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:39:32] Production.INFO: ==8157== Releasing lock... [2025-01-23 15:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:39:32] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:40:05 [end_date_ymd] => 2025-01-23 15:40:05 [RateCDR] => 1 ) [2025-01-23 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:40:05' and `end` < '2025-01-23 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:40:21] Production.INFO: count ==5467 [2025-01-23 15:40:23] Production.ERROR: pbx CDR StartTime 2025-01-23 12:40:05 - End Time 2025-01-23 15:40:05 [2025-01-23 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313306', 'tblTempUsageDetail_20' ) start [2025-01-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313306', 'tblTempUsageDetail_20' ) end [2025-01-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313306', 'tblTempVendorCDR_20' ) start [2025-01-23 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313306', 'tblTempVendorCDR_20' ) end [2025-01-23 15:40:23] Production.INFO: ProcessCDR(1,14313306,1,1,2) [2025-01-23 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313306', 'tblTempUsageDetail_20' ) start [2025-01-23 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313306', 'tblTempUsageDetail_20' ) end [2025-01-23 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:40:28] Production.INFO: ==8229== Releasing lock... [2025-01-23 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:40:28] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:41:06 [end_date_ymd] => 2025-01-23 15:41:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:41:06' and `end` < '2025-01-23 15: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-23 15:41:25] Production.INFO: count ==5463 [2025-01-23 15:41:27] Production.ERROR: pbx CDR StartTime 2025-01-23 12:41:06 - End Time 2025-01-23 15:41:06 [2025-01-23 15:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313312', 'tblTempUsageDetail_20' ) start [2025-01-23 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313312', 'tblTempUsageDetail_20' ) end [2025-01-23 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313312', 'tblTempVendorCDR_20' ) start [2025-01-23 15:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313312', 'tblTempVendorCDR_20' ) end [2025-01-23 15:41:27] Production.INFO: ProcessCDR(1,14313312,1,1,2) [2025-01-23 15:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313312', 'tblTempUsageDetail_20' ) start [2025-01-23 15:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313312', 'tblTempUsageDetail_20' ) end [2025-01-23 15:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:41:32] Production.INFO: ==8300== Releasing lock... [2025-01-23 15:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:41:32] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:42:05 [end_date_ymd] => 2025-01-23 15:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:42:05' and `end` < '2025-01-23 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-23 15:42:24] Production.INFO: count ==5474 [2025-01-23 15:42:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:42:05 - End Time 2025-01-23 15:42:05 [2025-01-23 15:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313317', 'tblTempUsageDetail_20' ) start [2025-01-23 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313317', 'tblTempUsageDetail_20' ) end [2025-01-23 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313317', 'tblTempVendorCDR_20' ) start [2025-01-23 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313317', 'tblTempVendorCDR_20' ) end [2025-01-23 15:42:26] Production.INFO: ProcessCDR(1,14313317,1,1,2) [2025-01-23 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313317', 'tblTempUsageDetail_20' ) start [2025-01-23 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313317', 'tblTempUsageDetail_20' ) end [2025-01-23 15:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:42:31] Production.INFO: ==8371== Releasing lock... [2025-01-23 15:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:42:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:43:06 [end_date_ymd] => 2025-01-23 15:43:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:43:06' and `end` < '2025-01-23 15: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-23 15:43:22] Production.INFO: count ==5459 [2025-01-23 15:43:25] Production.ERROR: pbx CDR StartTime 2025-01-23 12:43:06 - End Time 2025-01-23 15:43:06 [2025-01-23 15:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313322', 'tblTempUsageDetail_20' ) start [2025-01-23 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313322', 'tblTempUsageDetail_20' ) end [2025-01-23 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313322', 'tblTempVendorCDR_20' ) start [2025-01-23 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313322', 'tblTempVendorCDR_20' ) end [2025-01-23 15:43:25] Production.INFO: ProcessCDR(1,14313322,1,1,2) [2025-01-23 15:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313322', 'tblTempUsageDetail_20' ) start [2025-01-23 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313322', 'tblTempUsageDetail_20' ) end [2025-01-23 15:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:43:30] Production.INFO: ==8441== Releasing lock... [2025-01-23 15:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:43:30] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:44:05 [end_date_ymd] => 2025-01-23 15:44:05 [RateCDR] => 1 ) [2025-01-23 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:44:05' and `end` < '2025-01-23 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:44:25] Production.INFO: count ==5454 [2025-01-23 15:44:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:44:05 - End Time 2025-01-23 15:44:05 [2025-01-23 15:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313327', 'tblTempUsageDetail_20' ) start [2025-01-23 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313327', 'tblTempUsageDetail_20' ) end [2025-01-23 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313327', 'tblTempVendorCDR_20' ) start [2025-01-23 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313327', 'tblTempVendorCDR_20' ) end [2025-01-23 15:44:28] Production.INFO: ProcessCDR(1,14313327,1,1,2) [2025-01-23 15:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313327', 'tblTempUsageDetail_20' ) start [2025-01-23 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313327', 'tblTempUsageDetail_20' ) end [2025-01-23 15:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:44:33] Production.INFO: ==8513== Releasing lock... [2025-01-23 15:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:44:33] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:45:05 [end_date_ymd] => 2025-01-23 15:45:05 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:45:05' and `end` < '2025-01-23 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-23 15:45:28] Production.INFO: count ==5462 [2025-01-23 15:45:30] Production.ERROR: pbx CDR StartTime 2025-01-23 12:45:05 - End Time 2025-01-23 15:45:05 [2025-01-23 15:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313332', 'tblTempUsageDetail_20' ) start [2025-01-23 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313332', 'tblTempUsageDetail_20' ) end [2025-01-23 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313332', 'tblTempVendorCDR_20' ) start [2025-01-23 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313332', 'tblTempVendorCDR_20' ) end [2025-01-23 15:45:30] Production.INFO: ProcessCDR(1,14313332,1,1,2) [2025-01-23 15:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313332', 'tblTempUsageDetail_20' ) start [2025-01-23 15:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313332', 'tblTempUsageDetail_20' ) end [2025-01-23 15:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:45:36] Production.INFO: ==8585== Releasing lock... [2025-01-23 15:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:45:36] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:46:06 [end_date_ymd] => 2025-01-23 15:46:06 [RateCDR] => 1 ) [2025-01-23 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:46:06' and `end` < '2025-01-23 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:46:23] Production.INFO: count ==5467 [2025-01-23 15:46:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:46:06 - End Time 2025-01-23 15:46:06 [2025-01-23 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313337', 'tblTempUsageDetail_20' ) start [2025-01-23 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313337', 'tblTempUsageDetail_20' ) end [2025-01-23 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313337', 'tblTempVendorCDR_20' ) start [2025-01-23 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313337', 'tblTempVendorCDR_20' ) end [2025-01-23 15:46:26] Production.INFO: ProcessCDR(1,14313337,1,1,2) [2025-01-23 15:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313337', 'tblTempUsageDetail_20' ) start [2025-01-23 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313337', 'tblTempUsageDetail_20' ) end [2025-01-23 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:46:31] Production.INFO: ==8655== Releasing lock... [2025-01-23 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:46:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:47:06 [end_date_ymd] => 2025-01-23 15:47:06 [RateCDR] => 1 ) [2025-01-23 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-23 12:47:06' and `end` < '2025-01-23 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-23 15:47:21] Production.INFO: count ==5470 [2025-01-23 15:47:24] Production.ERROR: pbx CDR StartTime 2025-01-23 12:47:06 - End Time 2025-01-23 15:47:06 [2025-01-23 15:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313342', 'tblTempUsageDetail_20' ) start [2025-01-23 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313342', 'tblTempUsageDetail_20' ) end [2025-01-23 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313342', 'tblTempVendorCDR_20' ) start [2025-01-23 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313342', 'tblTempVendorCDR_20' ) end [2025-01-23 15:47:24] Production.INFO: ProcessCDR(1,14313342,1,1,2) [2025-01-23 15:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313342', 'tblTempUsageDetail_20' ) start [2025-01-23 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313342', 'tblTempUsageDetail_20' ) end [2025-01-23 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:47:29] Production.INFO: ==8728== Releasing lock... [2025-01-23 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:47:29] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:48:06 [end_date_ymd] => 2025-01-23 15:48:06 [RateCDR] => 1 ) [2025-01-23 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:48:06' and `end` < '2025-01-23 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:48:26] Production.INFO: count ==5484 [2025-01-23 15:48:28] Production.ERROR: pbx CDR StartTime 2025-01-23 12:48:06 - End Time 2025-01-23 15:48:06 [2025-01-23 15:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313347', 'tblTempUsageDetail_20' ) start [2025-01-23 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313347', 'tblTempUsageDetail_20' ) end [2025-01-23 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313347', 'tblTempVendorCDR_20' ) start [2025-01-23 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313347', 'tblTempVendorCDR_20' ) end [2025-01-23 15:48:28] Production.INFO: ProcessCDR(1,14313347,1,1,2) [2025-01-23 15:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313347', 'tblTempUsageDetail_20' ) start [2025-01-23 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313347', 'tblTempUsageDetail_20' ) end [2025-01-23 15:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:48:34] Production.INFO: ==8797== Releasing lock... [2025-01-23 15:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:48:34] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:49:06 [end_date_ymd] => 2025-01-23 15:49:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:49:06' and `end` < '2025-01-23 15: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-23 15:49:35] Production.INFO: count ==5480 [2025-01-23 15:49:37] Production.ERROR: pbx CDR StartTime 2025-01-23 12:49:06 - End Time 2025-01-23 15:49:06 [2025-01-23 15:49:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313352', 'tblTempUsageDetail_20' ) start [2025-01-23 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313352', 'tblTempUsageDetail_20' ) end [2025-01-23 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313352', 'tblTempVendorCDR_20' ) start [2025-01-23 15:49:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313352', 'tblTempVendorCDR_20' ) end [2025-01-23 15:49:37] Production.INFO: ProcessCDR(1,14313352,1,1,2) [2025-01-23 15:49:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:49:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:49:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:49:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313352', 'tblTempUsageDetail_20' ) start [2025-01-23 15:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313352', 'tblTempUsageDetail_20' ) end [2025-01-23 15:49:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:49:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:49:43] Production.INFO: ==8869== Releasing lock... [2025-01-23 15:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:49:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:50:07 [end_date_ymd] => 2025-01-23 15:50:07 [RateCDR] => 1 ) [2025-01-23 15:50: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-23 12:50:07' and `end` < '2025-01-23 15:50: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-23 15:50:35] Production.INFO: count ==5474 [2025-01-23 15:50:38] Production.ERROR: pbx CDR StartTime 2025-01-23 12:50:07 - End Time 2025-01-23 15:50:07 [2025-01-23 15:50:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313358', 'tblTempUsageDetail_20' ) start [2025-01-23 15:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313358', 'tblTempUsageDetail_20' ) end [2025-01-23 15:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313358', 'tblTempVendorCDR_20' ) start [2025-01-23 15:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313358', 'tblTempVendorCDR_20' ) end [2025-01-23 15:50:38] Production.INFO: ProcessCDR(1,14313358,1,1,2) [2025-01-23 15:50:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:50:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:50:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:50:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313358', 'tblTempUsageDetail_20' ) start [2025-01-23 15:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313358', 'tblTempUsageDetail_20' ) end [2025-01-23 15:50:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:50:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:50:43] Production.INFO: ==8944== Releasing lock... [2025-01-23 15:50:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:50:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:51:06 [end_date_ymd] => 2025-01-23 15:51:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:51:06' and `end` < '2025-01-23 15: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-23 15:51:35] Production.INFO: count ==5462 [2025-01-23 15:51:37] Production.ERROR: pbx CDR StartTime 2025-01-23 12:51:06 - End Time 2025-01-23 15:51:06 [2025-01-23 15:51:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:51:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313363', 'tblTempUsageDetail_20' ) start [2025-01-23 15:51:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313363', 'tblTempUsageDetail_20' ) end [2025-01-23 15:51:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313363', 'tblTempVendorCDR_20' ) start [2025-01-23 15:51:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313363', 'tblTempVendorCDR_20' ) end [2025-01-23 15:51:38] Production.INFO: ProcessCDR(1,14313363,1,1,2) [2025-01-23 15:51:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:51:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:51:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:51:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:51:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313363', 'tblTempUsageDetail_20' ) start [2025-01-23 15:51:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313363', 'tblTempUsageDetail_20' ) end [2025-01-23 15:51:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:51:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:51:43] Production.INFO: ==9015== Releasing lock... [2025-01-23 15:51:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:51:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:52:05 [end_date_ymd] => 2025-01-23 15:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:52:05' and `end` < '2025-01-23 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-23 15:52:33] Production.INFO: count ==5469 [2025-01-23 15:52:35] Production.ERROR: pbx CDR StartTime 2025-01-23 12:52:05 - End Time 2025-01-23 15:52:05 [2025-01-23 15:52:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313368', 'tblTempUsageDetail_20' ) start [2025-01-23 15:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313368', 'tblTempUsageDetail_20' ) end [2025-01-23 15:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313368', 'tblTempVendorCDR_20' ) start [2025-01-23 15:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313368', 'tblTempVendorCDR_20' ) end [2025-01-23 15:52:35] Production.INFO: ProcessCDR(1,14313368,1,1,2) [2025-01-23 15:52:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:52:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:52:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:52:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313368', 'tblTempUsageDetail_20' ) start [2025-01-23 15:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313368', 'tblTempUsageDetail_20' ) end [2025-01-23 15:52:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:52:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:52:39] Production.INFO: ==9085== Releasing lock... [2025-01-23 15:52:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:52:39] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:53:06 [end_date_ymd] => 2025-01-23 15:53:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:53:06' and `end` < '2025-01-23 15: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-23 15:53:35] Production.INFO: count ==5475 [2025-01-23 15:53:38] Production.ERROR: pbx CDR StartTime 2025-01-23 12:53:06 - End Time 2025-01-23 15:53:06 [2025-01-23 15:53:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:53:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313373', 'tblTempUsageDetail_20' ) start [2025-01-23 15:53:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313373', 'tblTempUsageDetail_20' ) end [2025-01-23 15:53:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313373', 'tblTempVendorCDR_20' ) start [2025-01-23 15:53:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313373', 'tblTempVendorCDR_20' ) end [2025-01-23 15:53:38] Production.INFO: ProcessCDR(1,14313373,1,1,2) [2025-01-23 15:53:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:53:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:53:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:53:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:53:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313373', 'tblTempUsageDetail_20' ) start [2025-01-23 15:53:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313373', 'tblTempUsageDetail_20' ) end [2025-01-23 15:53:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:53:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:53:43] Production.INFO: ==9200== Releasing lock... [2025-01-23 15:53:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:53:43] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:54:05 [end_date_ymd] => 2025-01-23 15:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:54:05' and `end` < '2025-01-23 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-23 15:54:24] Production.INFO: count ==5483 [2025-01-23 15:54:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:54:05 - End Time 2025-01-23 15:54:05 [2025-01-23 15:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313378', 'tblTempUsageDetail_20' ) start [2025-01-23 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313378', 'tblTempUsageDetail_20' ) end [2025-01-23 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313378', 'tblTempVendorCDR_20' ) start [2025-01-23 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313378', 'tblTempVendorCDR_20' ) end [2025-01-23 15:54:26] Production.INFO: ProcessCDR(1,14313378,1,1,2) [2025-01-23 15:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313378', 'tblTempUsageDetail_20' ) start [2025-01-23 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313378', 'tblTempUsageDetail_20' ) end [2025-01-23 15:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:54:31] Production.INFO: ==9274== Releasing lock... [2025-01-23 15:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:54:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:55:06 [end_date_ymd] => 2025-01-23 15:55:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:55:06' and `end` < '2025-01-23 15: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-23 15:55:26] Production.INFO: count ==5468 [2025-01-23 15:55:29] Production.ERROR: pbx CDR StartTime 2025-01-23 12:55:06 - End Time 2025-01-23 15:55:06 [2025-01-23 15:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313383', 'tblTempUsageDetail_20' ) start [2025-01-23 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313383', 'tblTempUsageDetail_20' ) end [2025-01-23 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313383', 'tblTempVendorCDR_20' ) start [2025-01-23 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313383', 'tblTempVendorCDR_20' ) end [2025-01-23 15:55:29] Production.INFO: ProcessCDR(1,14313383,1,1,2) [2025-01-23 15:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313383', 'tblTempUsageDetail_20' ) start [2025-01-23 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313383', 'tblTempUsageDetail_20' ) end [2025-01-23 15:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:55:34] Production.INFO: ==9364== Releasing lock... [2025-01-23 15:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:55:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-23 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:56:05 [end_date_ymd] => 2025-01-23 15:56:05 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:56:05' and `end` < '2025-01-23 15: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-23 15:56:24] Production.INFO: count ==5465 [2025-01-23 15:56:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:56:05 - End Time 2025-01-23 15:56:05 [2025-01-23 15:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313388', 'tblTempUsageDetail_20' ) start [2025-01-23 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313388', 'tblTempUsageDetail_20' ) end [2025-01-23 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313388', 'tblTempVendorCDR_20' ) start [2025-01-23 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313388', 'tblTempVendorCDR_20' ) end [2025-01-23 15:56:27] Production.INFO: ProcessCDR(1,14313388,1,1,2) [2025-01-23 15:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313388', 'tblTempUsageDetail_20' ) start [2025-01-23 15:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313388', 'tblTempUsageDetail_20' ) end [2025-01-23 15:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:56:33] Production.INFO: ==9435== Releasing lock... [2025-01-23 15:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:56:33] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:57:06 [end_date_ymd] => 2025-01-23 15:57:06 [RateCDR] => 1 ) [2025-01-23 15: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-23 12:57:06' and `end` < '2025-01-23 15: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-23 15:57:23] Production.INFO: count ==5465 [2025-01-23 15:57:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:57:06 - End Time 2025-01-23 15:57:06 [2025-01-23 15:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313393', 'tblTempUsageDetail_20' ) start [2025-01-23 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313393', 'tblTempUsageDetail_20' ) end [2025-01-23 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313393', 'tblTempVendorCDR_20' ) start [2025-01-23 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313393', 'tblTempVendorCDR_20' ) end [2025-01-23 15:57:26] Production.INFO: ProcessCDR(1,14313393,1,1,2) [2025-01-23 15:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313393', 'tblTempUsageDetail_20' ) start [2025-01-23 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313393', 'tblTempUsageDetail_20' ) end [2025-01-23 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:57:31] Production.INFO: ==9507== Releasing lock... [2025-01-23 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:57:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:58:05 [end_date_ymd] => 2025-01-23 15:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 12:58:05' and `end` < '2025-01-23 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-23 15:58:22] Production.INFO: count ==5466 [2025-01-23 15:58:24] Production.ERROR: pbx CDR StartTime 2025-01-23 12:58:05 - End Time 2025-01-23 15:58:05 [2025-01-23 15:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313394', 'tblTempUsageDetail_20' ) start [2025-01-23 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313394', 'tblTempUsageDetail_20' ) end [2025-01-23 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313394', 'tblTempVendorCDR_20' ) start [2025-01-23 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313394', 'tblTempVendorCDR_20' ) end [2025-01-23 15:58:25] Production.INFO: ProcessCDR(1,14313394,1,1,2) [2025-01-23 15:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313394', 'tblTempUsageDetail_20' ) start [2025-01-23 15:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313394', 'tblTempUsageDetail_20' ) end [2025-01-23 15:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:58:30] Production.INFO: ==9577== Releasing lock... [2025-01-23 15:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:58:30] Production.INFO: 69 MB #Memory Used# [2025-01-23 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 12:59:06 [end_date_ymd] => 2025-01-23 15:59:06 [RateCDR] => 1 ) [2025-01-23 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 12:59:06' and `end` < '2025-01-23 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 15:59:24] Production.INFO: count ==5465 [2025-01-23 15:59:26] Production.ERROR: pbx CDR StartTime 2025-01-23 12:59:06 - End Time 2025-01-23 15:59:06 [2025-01-23 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313403', 'tblTempUsageDetail_20' ) start [2025-01-23 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313403', 'tblTempUsageDetail_20' ) end [2025-01-23 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313403', 'tblTempVendorCDR_20' ) start [2025-01-23 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313403', 'tblTempVendorCDR_20' ) end [2025-01-23 15:59:26] Production.INFO: ProcessCDR(1,14313403,1,1,2) [2025-01-23 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313403', 'tblTempUsageDetail_20' ) start [2025-01-23 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313403', 'tblTempUsageDetail_20' ) end [2025-01-23 15:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 15:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 15:59:32] Production.INFO: ==9646== Releasing lock... [2025-01-23 15:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 15:59:32] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:00:06 [end_date_ymd] => 2025-01-23 16:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 13:00:06' and `end` < '2025-01-23 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-23 16:00:27] Production.INFO: count ==5468 [2025-01-23 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:00:06 - End Time 2025-01-23 16:00:06 [2025-01-23 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313408', 'tblTempUsageDetail_20' ) start [2025-01-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313408', 'tblTempUsageDetail_20' ) end [2025-01-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313408', 'tblTempVendorCDR_20' ) start [2025-01-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313408', 'tblTempVendorCDR_20' ) end [2025-01-23 16:00:30] Production.INFO: ProcessCDR(1,14313408,1,1,2) [2025-01-23 16:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313408', 'tblTempUsageDetail_20' ) start [2025-01-23 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313408', 'tblTempUsageDetail_20' ) end [2025-01-23 16:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:00:35] Production.INFO: ==9722== Releasing lock... [2025-01-23 16:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:00:35] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:01:05 [end_date_ymd] => 2025-01-23 16:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:01:05' and `end` < '2025-01-23 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-23 16:01:22] Production.INFO: count ==5473 [2025-01-23 16:01:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:01:05 - End Time 2025-01-23 16:01:05 [2025-01-23 16:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313414', 'tblTempUsageDetail_20' ) start [2025-01-23 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313414', 'tblTempUsageDetail_20' ) end [2025-01-23 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313414', 'tblTempVendorCDR_20' ) start [2025-01-23 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313414', 'tblTempVendorCDR_20' ) end [2025-01-23 16:01:25] Production.INFO: ProcessCDR(1,14313414,1,1,2) [2025-01-23 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313414', 'tblTempUsageDetail_20' ) start [2025-01-23 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313414', 'tblTempUsageDetail_20' ) end [2025-01-23 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:01:30] Production.INFO: ==9806== Releasing lock... [2025-01-23 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:01:30] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:02:05 [end_date_ymd] => 2025-01-23 16:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:02:05' and `end` < '2025-01-23 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-23 16:02:19] Production.INFO: count ==5463 [2025-01-23 16:02:21] Production.ERROR: pbx CDR StartTime 2025-01-23 13:02:05 - End Time 2025-01-23 16:02:05 [2025-01-23 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313419', 'tblTempUsageDetail_20' ) start [2025-01-23 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313419', 'tblTempUsageDetail_20' ) end [2025-01-23 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313419', 'tblTempVendorCDR_20' ) start [2025-01-23 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313419', 'tblTempVendorCDR_20' ) end [2025-01-23 16:02:21] Production.INFO: ProcessCDR(1,14313419,1,1,2) [2025-01-23 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313419', 'tblTempUsageDetail_20' ) start [2025-01-23 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313419', 'tblTempUsageDetail_20' ) end [2025-01-23 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:02:27] Production.INFO: ==9876== Releasing lock... [2025-01-23 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:02:27] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:03:05 [end_date_ymd] => 2025-01-23 16:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:03:05' and `end` < '2025-01-23 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-23 16:03:26] Production.INFO: count ==5447 [2025-01-23 16:03:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:03:05 - End Time 2025-01-23 16:03:05 [2025-01-23 16:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313424', 'tblTempUsageDetail_20' ) start [2025-01-23 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313424', 'tblTempUsageDetail_20' ) end [2025-01-23 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313424', 'tblTempVendorCDR_20' ) start [2025-01-23 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313424', 'tblTempVendorCDR_20' ) end [2025-01-23 16:03:29] Production.INFO: ProcessCDR(1,14313424,1,1,2) [2025-01-23 16:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313424', 'tblTempUsageDetail_20' ) start [2025-01-23 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313424', 'tblTempUsageDetail_20' ) end [2025-01-23 16:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:03:34] Production.INFO: ==9946== Releasing lock... [2025-01-23 16:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:03:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:04:06 [end_date_ymd] => 2025-01-23 16:04:06 [RateCDR] => 1 ) [2025-01-23 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:04:06' and `end` < '2025-01-23 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:04:31] Production.INFO: count ==5443 [2025-01-23 16:04:34] Production.ERROR: pbx CDR StartTime 2025-01-23 13:04:06 - End Time 2025-01-23 16:04:06 [2025-01-23 16:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313429', 'tblTempUsageDetail_20' ) start [2025-01-23 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313429', 'tblTempUsageDetail_20' ) end [2025-01-23 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313429', 'tblTempVendorCDR_20' ) start [2025-01-23 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313429', 'tblTempVendorCDR_20' ) end [2025-01-23 16:04:34] Production.INFO: ProcessCDR(1,14313429,1,1,2) [2025-01-23 16:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313429', 'tblTempUsageDetail_20' ) start [2025-01-23 16:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313429', 'tblTempUsageDetail_20' ) end [2025-01-23 16:04:40] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:04:40] Production.INFO: ==10016== Releasing lock... [2025-01-23 16:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:04:40] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:05:05 [end_date_ymd] => 2025-01-23 16:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:05:05' and `end` < '2025-01-23 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-23 16:05:35] Production.INFO: count ==5404 [2025-01-23 16:05:37] Production.ERROR: pbx CDR StartTime 2025-01-23 13:05:05 - End Time 2025-01-23 16:05:05 [2025-01-23 16:05:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:05:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313434', 'tblTempUsageDetail_20' ) start [2025-01-23 16:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313434', 'tblTempUsageDetail_20' ) end [2025-01-23 16:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313434', 'tblTempVendorCDR_20' ) start [2025-01-23 16:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313434', 'tblTempVendorCDR_20' ) end [2025-01-23 16:05:38] Production.INFO: ProcessCDR(1,14313434,1,1,2) [2025-01-23 16:05:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:05:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:05:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313434', 'tblTempUsageDetail_20' ) start [2025-01-23 16:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313434', 'tblTempUsageDetail_20' ) end [2025-01-23 16:05:43] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:05:43] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:05:43] Production.INFO: ==10088== Releasing lock... [2025-01-23 16:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:05:43] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:06:06 [end_date_ymd] => 2025-01-23 16:06:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:06:06' and `end` < '2025-01-23 16: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-23 16:06:28] Production.INFO: count ==5394 [2025-01-23 16:06:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:06:06 - End Time 2025-01-23 16:06:06 [2025-01-23 16:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313439', 'tblTempUsageDetail_20' ) start [2025-01-23 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313439', 'tblTempUsageDetail_20' ) end [2025-01-23 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313439', 'tblTempVendorCDR_20' ) start [2025-01-23 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313439', 'tblTempVendorCDR_20' ) end [2025-01-23 16:06:30] Production.INFO: ProcessCDR(1,14313439,1,1,2) [2025-01-23 16:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313439', 'tblTempUsageDetail_20' ) start [2025-01-23 16:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313439', 'tblTempUsageDetail_20' ) end [2025-01-23 16:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:06:36] Production.INFO: ==10159== Releasing lock... [2025-01-23 16:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:06:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:07:06 [end_date_ymd] => 2025-01-23 16:07:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:07:06' and `end` < '2025-01-23 16: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-23 16:07:22] Production.INFO: count ==5391 [2025-01-23 16:07:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:07:06 - End Time 2025-01-23 16:07:06 [2025-01-23 16:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313444', 'tblTempUsageDetail_20' ) start [2025-01-23 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313444', 'tblTempUsageDetail_20' ) end [2025-01-23 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313444', 'tblTempVendorCDR_20' ) start [2025-01-23 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313444', 'tblTempVendorCDR_20' ) end [2025-01-23 16:07:24] Production.INFO: ProcessCDR(1,14313444,1,1,2) [2025-01-23 16:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313444', 'tblTempUsageDetail_20' ) start [2025-01-23 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313444', 'tblTempUsageDetail_20' ) end [2025-01-23 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:07:29] Production.INFO: ==10229== Releasing lock... [2025-01-23 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:07:29] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:08:05 [end_date_ymd] => 2025-01-23 16:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:08:05' and `end` < '2025-01-23 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-23 16:08:25] Production.INFO: count ==5392 [2025-01-23 16:08:27] Production.ERROR: pbx CDR StartTime 2025-01-23 13:08:05 - End Time 2025-01-23 16:08:05 [2025-01-23 16:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313449', 'tblTempUsageDetail_20' ) start [2025-01-23 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313449', 'tblTempUsageDetail_20' ) end [2025-01-23 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313449', 'tblTempVendorCDR_20' ) start [2025-01-23 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313449', 'tblTempVendorCDR_20' ) end [2025-01-23 16:08:27] Production.INFO: ProcessCDR(1,14313449,1,1,2) [2025-01-23 16:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313449', 'tblTempUsageDetail_20' ) start [2025-01-23 16:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313449', 'tblTempUsageDetail_20' ) end [2025-01-23 16:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:08:33] Production.INFO: ==10343== Releasing lock... [2025-01-23 16:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:08:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:09:05 [end_date_ymd] => 2025-01-23 16:09:05 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:09:05' and `end` < '2025-01-23 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-23 16:09:28] Production.INFO: count ==5413 [2025-01-23 16:09:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:09:05 - End Time 2025-01-23 16:09:05 [2025-01-23 16:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313454', 'tblTempUsageDetail_20' ) start [2025-01-23 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313454', 'tblTempUsageDetail_20' ) end [2025-01-23 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313454', 'tblTempVendorCDR_20' ) start [2025-01-23 16:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313454', 'tblTempVendorCDR_20' ) end [2025-01-23 16:09:31] Production.INFO: ProcessCDR(1,14313454,1,1,2) [2025-01-23 16:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313454', 'tblTempUsageDetail_20' ) start [2025-01-23 16:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313454', 'tblTempUsageDetail_20' ) end [2025-01-23 16:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:09:36] Production.INFO: ==10416== Releasing lock... [2025-01-23 16:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:09:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:10:07 [end_date_ymd] => 2025-01-23 16:10:07 [RateCDR] => 1 ) [2025-01-23 16:10: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-23 13:10:07' and `end` < '2025-01-23 16:10: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-23 16:10:34] Production.INFO: count ==5406 [2025-01-23 16:10:37] Production.ERROR: pbx CDR StartTime 2025-01-23 13:10:07 - End Time 2025-01-23 16:10:07 [2025-01-23 16:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313460', 'tblTempUsageDetail_20' ) start [2025-01-23 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313460', 'tblTempUsageDetail_20' ) end [2025-01-23 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313460', 'tblTempVendorCDR_20' ) start [2025-01-23 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313460', 'tblTempVendorCDR_20' ) end [2025-01-23 16:10:37] Production.INFO: ProcessCDR(1,14313460,1,1,2) [2025-01-23 16:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313460', 'tblTempUsageDetail_20' ) start [2025-01-23 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313460', 'tblTempUsageDetail_20' ) end [2025-01-23 16:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:10:42] Production.INFO: ==10492== Releasing lock... [2025-01-23 16:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:10:42] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:11:05 [end_date_ymd] => 2025-01-23 16:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:11:05' and `end` < '2025-01-23 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-23 16:11:26] Production.INFO: count ==5455 [2025-01-23 16:11:28] Production.ERROR: pbx CDR StartTime 2025-01-23 13:11:05 - End Time 2025-01-23 16:11:05 [2025-01-23 16:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313465', 'tblTempUsageDetail_20' ) start [2025-01-23 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313465', 'tblTempUsageDetail_20' ) end [2025-01-23 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313465', 'tblTempVendorCDR_20' ) start [2025-01-23 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313465', 'tblTempVendorCDR_20' ) end [2025-01-23 16:11:28] Production.INFO: ProcessCDR(1,14313465,1,1,2) [2025-01-23 16:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313465', 'tblTempUsageDetail_20' ) start [2025-01-23 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313465', 'tblTempUsageDetail_20' ) end [2025-01-23 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:11:34] Production.INFO: ==10564== Releasing lock... [2025-01-23 16:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:11:34] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:12:06 [end_date_ymd] => 2025-01-23 16:12:06 [RateCDR] => 1 ) [2025-01-23 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-23 13:12:06' and `end` < '2025-01-23 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-23 16:12:25] Production.INFO: count ==5447 [2025-01-23 16:12:28] Production.ERROR: pbx CDR StartTime 2025-01-23 13:12:06 - End Time 2025-01-23 16:12:06 [2025-01-23 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313470', 'tblTempUsageDetail_20' ) start [2025-01-23 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313470', 'tblTempUsageDetail_20' ) end [2025-01-23 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313470', 'tblTempVendorCDR_20' ) start [2025-01-23 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313470', 'tblTempVendorCDR_20' ) end [2025-01-23 16:12:28] Production.INFO: ProcessCDR(1,14313470,1,1,2) [2025-01-23 16:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313470', 'tblTempUsageDetail_20' ) start [2025-01-23 16:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313470', 'tblTempUsageDetail_20' ) end [2025-01-23 16:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:12:31] Production.INFO: ==10636== Releasing lock... [2025-01-23 16:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:12:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:13:05 [end_date_ymd] => 2025-01-23 16:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:13:05' and `end` < '2025-01-23 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-23 16:13:27] Production.INFO: count ==5445 [2025-01-23 16:13:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:13:05 - End Time 2025-01-23 16:13:05 [2025-01-23 16:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313475', 'tblTempUsageDetail_20' ) start [2025-01-23 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313475', 'tblTempUsageDetail_20' ) end [2025-01-23 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313475', 'tblTempVendorCDR_20' ) start [2025-01-23 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313475', 'tblTempVendorCDR_20' ) end [2025-01-23 16:13:29] Production.INFO: ProcessCDR(1,14313475,1,1,2) [2025-01-23 16:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313475', 'tblTempUsageDetail_20' ) start [2025-01-23 16:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313475', 'tblTempUsageDetail_20' ) end [2025-01-23 16:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:13:34] Production.INFO: ==10710== Releasing lock... [2025-01-23 16:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:13:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:14:05 [end_date_ymd] => 2025-01-23 16:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:14:05' and `end` < '2025-01-23 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-23 16:14:28] Production.INFO: count ==5433 [2025-01-23 16:14:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:14:05 - End Time 2025-01-23 16:14:05 [2025-01-23 16:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313480', 'tblTempUsageDetail_20' ) start [2025-01-23 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313480', 'tblTempUsageDetail_20' ) end [2025-01-23 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313480', 'tblTempVendorCDR_20' ) start [2025-01-23 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313480', 'tblTempVendorCDR_20' ) end [2025-01-23 16:14:30] Production.INFO: ProcessCDR(1,14313480,1,1,2) [2025-01-23 16:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313480', 'tblTempUsageDetail_20' ) start [2025-01-23 16:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313480', 'tblTempUsageDetail_20' ) end [2025-01-23 16:14:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:14:35] Production.INFO: ==10785== Releasing lock... [2025-01-23 16:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:14:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:15:06 [end_date_ymd] => 2025-01-23 16:15:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:15:06' and `end` < '2025-01-23 16: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-23 16:15:28] Production.INFO: count ==5436 [2025-01-23 16:15:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:15:06 - End Time 2025-01-23 16:15:06 [2025-01-23 16:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313485', 'tblTempUsageDetail_20' ) start [2025-01-23 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313485', 'tblTempUsageDetail_20' ) end [2025-01-23 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313485', 'tblTempVendorCDR_20' ) start [2025-01-23 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313485', 'tblTempVendorCDR_20' ) end [2025-01-23 16:15:30] Production.INFO: ProcessCDR(1,14313485,1,1,2) [2025-01-23 16:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313485', 'tblTempUsageDetail_20' ) start [2025-01-23 16:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313485', 'tblTempUsageDetail_20' ) end [2025-01-23 16:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:15:36] Production.INFO: ==10859== Releasing lock... [2025-01-23 16:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:15:36] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:16:05 [end_date_ymd] => 2025-01-23 16:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:16:05' and `end` < '2025-01-23 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-23 16:16:25] Production.INFO: count ==5431 [2025-01-23 16:16:27] Production.ERROR: pbx CDR StartTime 2025-01-23 13:16:05 - End Time 2025-01-23 16:16:05 [2025-01-23 16:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313490', 'tblTempUsageDetail_20' ) start [2025-01-23 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313490', 'tblTempUsageDetail_20' ) end [2025-01-23 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313490', 'tblTempVendorCDR_20' ) start [2025-01-23 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313490', 'tblTempVendorCDR_20' ) end [2025-01-23 16:16:27] Production.INFO: ProcessCDR(1,14313490,1,1,2) [2025-01-23 16:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313490', 'tblTempUsageDetail_20' ) start [2025-01-23 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313490', 'tblTempUsageDetail_20' ) end [2025-01-23 16:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:16:32] Production.INFO: ==10933== Releasing lock... [2025-01-23 16:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:16:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:17:06 [end_date_ymd] => 2025-01-23 16:17:06 [RateCDR] => 1 ) [2025-01-23 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:17:06' and `end` < '2025-01-23 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:17:25] Production.INFO: count ==5433 [2025-01-23 16:17:27] Production.ERROR: pbx CDR StartTime 2025-01-23 13:17:06 - End Time 2025-01-23 16:17:06 [2025-01-23 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313495', 'tblTempUsageDetail_20' ) start [2025-01-23 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313495', 'tblTempUsageDetail_20' ) end [2025-01-23 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313495', 'tblTempVendorCDR_20' ) start [2025-01-23 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313495', 'tblTempVendorCDR_20' ) end [2025-01-23 16:17:27] Production.INFO: ProcessCDR(1,14313495,1,1,2) [2025-01-23 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313495', 'tblTempUsageDetail_20' ) start [2025-01-23 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313495', 'tblTempUsageDetail_20' ) end [2025-01-23 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:17:32] Production.INFO: ==11009== Releasing lock... [2025-01-23 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:17:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:18:05 [end_date_ymd] => 2025-01-23 16:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:18:05' and `end` < '2025-01-23 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-23 16:18:28] Production.INFO: count ==5439 [2025-01-23 16:18:31] Production.ERROR: pbx CDR StartTime 2025-01-23 13:18:05 - End Time 2025-01-23 16:18:05 [2025-01-23 16:18:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313500', 'tblTempUsageDetail_20' ) start [2025-01-23 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313500', 'tblTempUsageDetail_20' ) end [2025-01-23 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313500', 'tblTempVendorCDR_20' ) start [2025-01-23 16:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313500', 'tblTempVendorCDR_20' ) end [2025-01-23 16:18:31] Production.INFO: ProcessCDR(1,14313500,1,1,2) [2025-01-23 16:18:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:18:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313500', 'tblTempUsageDetail_20' ) start [2025-01-23 16:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313500', 'tblTempUsageDetail_20' ) end [2025-01-23 16:18:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:18:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:18:36] Production.INFO: ==11095== Releasing lock... [2025-01-23 16:18:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:18:36] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:19:06 [end_date_ymd] => 2025-01-23 16:19:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:19:06' and `end` < '2025-01-23 16: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-23 16:19:25] Production.INFO: count ==5463 [2025-01-23 16:19:27] Production.ERROR: pbx CDR StartTime 2025-01-23 13:19:06 - End Time 2025-01-23 16:19:06 [2025-01-23 16:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313505', 'tblTempUsageDetail_20' ) start [2025-01-23 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313505', 'tblTempUsageDetail_20' ) end [2025-01-23 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313505', 'tblTempVendorCDR_20' ) start [2025-01-23 16:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313505', 'tblTempVendorCDR_20' ) end [2025-01-23 16:19:27] Production.INFO: ProcessCDR(1,14313505,1,1,2) [2025-01-23 16:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313505', 'tblTempUsageDetail_20' ) start [2025-01-23 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313505', 'tblTempUsageDetail_20' ) end [2025-01-23 16:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:19:33] Production.INFO: ==11170== Releasing lock... [2025-01-23 16:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:19:33] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:20:06 [end_date_ymd] => 2025-01-23 16:20:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:20:06' and `end` < '2025-01-23 16: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-23 16:20:34] Production.INFO: count ==5464 [2025-01-23 16:20:36] Production.ERROR: pbx CDR StartTime 2025-01-23 13:20:06 - End Time 2025-01-23 16:20:06 [2025-01-23 16:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313510', 'tblTempUsageDetail_20' ) start [2025-01-23 16:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313510', 'tblTempUsageDetail_20' ) end [2025-01-23 16:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313510', 'tblTempVendorCDR_20' ) start [2025-01-23 16:20:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313510', 'tblTempVendorCDR_20' ) end [2025-01-23 16:20:37] Production.INFO: ProcessCDR(1,14313510,1,1,2) [2025-01-23 16:20:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:20:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313510', 'tblTempUsageDetail_20' ) start [2025-01-23 16:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313510', 'tblTempUsageDetail_20' ) end [2025-01-23 16:20:42] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:20:42] Production.INFO: ==11248== Releasing lock... [2025-01-23 16:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:20:42] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:21:06 [end_date_ymd] => 2025-01-23 16:21:06 [RateCDR] => 1 ) [2025-01-23 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:21:06' and `end` < '2025-01-23 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:21:23] Production.INFO: count ==5454 [2025-01-23 16:21:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:21:06 - End Time 2025-01-23 16:21:06 [2025-01-23 16:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313516', 'tblTempUsageDetail_20' ) start [2025-01-23 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313516', 'tblTempUsageDetail_20' ) end [2025-01-23 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313516', 'tblTempVendorCDR_20' ) start [2025-01-23 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313516', 'tblTempVendorCDR_20' ) end [2025-01-23 16:21:26] Production.INFO: ProcessCDR(1,14313516,1,1,2) [2025-01-23 16:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313516', 'tblTempUsageDetail_20' ) start [2025-01-23 16:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313516', 'tblTempUsageDetail_20' ) end [2025-01-23 16:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:21:31] Production.INFO: ==11327== Releasing lock... [2025-01-23 16:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:21:31] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:22:06 [end_date_ymd] => 2025-01-23 16:22:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:22:06' and `end` < '2025-01-23 16: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-23 16:22:23] Production.INFO: count ==5446 [2025-01-23 16:22:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:22:06 - End Time 2025-01-23 16:22:06 [2025-01-23 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313521', 'tblTempUsageDetail_20' ) start [2025-01-23 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313521', 'tblTempUsageDetail_20' ) end [2025-01-23 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313521', 'tblTempVendorCDR_20' ) start [2025-01-23 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313521', 'tblTempVendorCDR_20' ) end [2025-01-23 16:22:25] Production.INFO: ProcessCDR(1,14313521,1,1,2) [2025-01-23 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313521', 'tblTempUsageDetail_20' ) start [2025-01-23 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313521', 'tblTempUsageDetail_20' ) end [2025-01-23 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:22:30] Production.INFO: ==11400== Releasing lock... [2025-01-23 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:22:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:23:06 [end_date_ymd] => 2025-01-23 16:23:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:23:06' and `end` < '2025-01-23 16: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-23 16:23:20] Production.INFO: count ==5453 [2025-01-23 16:23:22] Production.ERROR: pbx CDR StartTime 2025-01-23 13:23:06 - End Time 2025-01-23 16:23:06 [2025-01-23 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313526', 'tblTempUsageDetail_20' ) start [2025-01-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313526', 'tblTempUsageDetail_20' ) end [2025-01-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313526', 'tblTempVendorCDR_20' ) start [2025-01-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313526', 'tblTempVendorCDR_20' ) end [2025-01-23 16:23:23] Production.INFO: ProcessCDR(1,14313526,1,1,2) [2025-01-23 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313526', 'tblTempUsageDetail_20' ) start [2025-01-23 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313526', 'tblTempUsageDetail_20' ) end [2025-01-23 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:23:28] Production.INFO: ==11480== Releasing lock... [2025-01-23 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:23:28] Production.INFO: 69 MB #Memory Used# [2025-01-23 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:24:05 [end_date_ymd] => 2025-01-23 16:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:24:05' and `end` < '2025-01-23 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-23 16:24:19] Production.INFO: count ==5450 [2025-01-23 16:24:22] Production.ERROR: pbx CDR StartTime 2025-01-23 13:24:05 - End Time 2025-01-23 16:24:05 [2025-01-23 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313531', 'tblTempUsageDetail_20' ) start [2025-01-23 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313531', 'tblTempUsageDetail_20' ) end [2025-01-23 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313531', 'tblTempVendorCDR_20' ) start [2025-01-23 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313531', 'tblTempVendorCDR_20' ) end [2025-01-23 16:24:22] Production.INFO: ProcessCDR(1,14313531,1,1,2) [2025-01-23 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313531', 'tblTempUsageDetail_20' ) start [2025-01-23 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313531', 'tblTempUsageDetail_20' ) end [2025-01-23 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:24:27] Production.INFO: ==11602== Releasing lock... [2025-01-23 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:24:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:25:06 [end_date_ymd] => 2025-01-23 16:25:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:25:06' and `end` < '2025-01-23 16: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-23 16:25:19] Production.INFO: count ==5442 [2025-01-23 16:25:21] Production.ERROR: pbx CDR StartTime 2025-01-23 13:25:06 - End Time 2025-01-23 16:25:06 [2025-01-23 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313536', 'tblTempUsageDetail_20' ) start [2025-01-23 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313536', 'tblTempUsageDetail_20' ) end [2025-01-23 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313536', 'tblTempVendorCDR_20' ) start [2025-01-23 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313536', 'tblTempVendorCDR_20' ) end [2025-01-23 16:25:21] Production.INFO: ProcessCDR(1,14313536,1,1,2) [2025-01-23 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313536', 'tblTempUsageDetail_20' ) start [2025-01-23 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313536', 'tblTempUsageDetail_20' ) end [2025-01-23 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:25:26] Production.INFO: ==11679== Releasing lock... [2025-01-23 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:25:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:26:05 [end_date_ymd] => 2025-01-23 16:26:05 [RateCDR] => 1 ) [2025-01-23 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:26:05' and `end` < '2025-01-23 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:26:20] Production.INFO: count ==5446 [2025-01-23 16:26:23] Production.ERROR: pbx CDR StartTime 2025-01-23 13:26:05 - End Time 2025-01-23 16:26:05 [2025-01-23 16:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313541', 'tblTempUsageDetail_20' ) start [2025-01-23 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313541', 'tblTempUsageDetail_20' ) end [2025-01-23 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313541', 'tblTempVendorCDR_20' ) start [2025-01-23 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313541', 'tblTempVendorCDR_20' ) end [2025-01-23 16:26:23] Production.INFO: ProcessCDR(1,14313541,1,1,2) [2025-01-23 16:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313541', 'tblTempUsageDetail_20' ) start [2025-01-23 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313541', 'tblTempUsageDetail_20' ) end [2025-01-23 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:26:28] Production.INFO: ==11767== Releasing lock... [2025-01-23 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:26:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:27:06 [end_date_ymd] => 2025-01-23 16:27:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:27:06' and `end` < '2025-01-23 16: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-23 16:27:26] Production.INFO: count ==5445 [2025-01-23 16:27:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:27:06 - End Time 2025-01-23 16:27:06 [2025-01-23 16:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313546', 'tblTempUsageDetail_20' ) start [2025-01-23 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313546', 'tblTempUsageDetail_20' ) end [2025-01-23 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313546', 'tblTempVendorCDR_20' ) start [2025-01-23 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313546', 'tblTempVendorCDR_20' ) end [2025-01-23 16:27:29] Production.INFO: ProcessCDR(1,14313546,1,1,2) [2025-01-23 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313546', 'tblTempUsageDetail_20' ) start [2025-01-23 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313546', 'tblTempUsageDetail_20' ) end [2025-01-23 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:27:34] Production.INFO: ==11848== Releasing lock... [2025-01-23 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:27:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:28:05 [end_date_ymd] => 2025-01-23 16:28:05 [RateCDR] => 1 ) [2025-01-23 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:28:05' and `end` < '2025-01-23 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:28:22] Production.INFO: count ==5428 [2025-01-23 16:28:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:28:05 - End Time 2025-01-23 16:28:05 [2025-01-23 16:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313551', 'tblTempUsageDetail_20' ) start [2025-01-23 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313551', 'tblTempUsageDetail_20' ) end [2025-01-23 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313551', 'tblTempVendorCDR_20' ) start [2025-01-23 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313551', 'tblTempVendorCDR_20' ) end [2025-01-23 16:28:24] Production.INFO: ProcessCDR(1,14313551,1,1,2) [2025-01-23 16:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313551', 'tblTempUsageDetail_20' ) start [2025-01-23 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313551', 'tblTempUsageDetail_20' ) end [2025-01-23 16:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:28:29] Production.INFO: ==11926== Releasing lock... [2025-01-23 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:28:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:29:06 [end_date_ymd] => 2025-01-23 16:29:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:29:06' and `end` < '2025-01-23 16: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-23 16:29:24] Production.INFO: count ==5444 [2025-01-23 16:29:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:29:06 - End Time 2025-01-23 16:29:06 [2025-01-23 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313556', 'tblTempUsageDetail_20' ) start [2025-01-23 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313556', 'tblTempUsageDetail_20' ) end [2025-01-23 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313556', 'tblTempVendorCDR_20' ) start [2025-01-23 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313556', 'tblTempVendorCDR_20' ) end [2025-01-23 16:29:26] Production.INFO: ProcessCDR(1,14313556,1,1,2) [2025-01-23 16:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313556', 'tblTempUsageDetail_20' ) start [2025-01-23 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313556', 'tblTempUsageDetail_20' ) end [2025-01-23 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:29:32] Production.INFO: ==12005== Releasing lock... [2025-01-23 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:29:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:30:07 [end_date_ymd] => 2025-01-23 16:30:07 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:30:07' and `end` < '2025-01-23 16: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-23 16:30:33] Production.INFO: count ==5437 [2025-01-23 16:30:35] Production.ERROR: pbx CDR StartTime 2025-01-23 13:30:07 - End Time 2025-01-23 16:30:07 [2025-01-23 16:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313561', 'tblTempUsageDetail_20' ) start [2025-01-23 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313561', 'tblTempUsageDetail_20' ) end [2025-01-23 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313561', 'tblTempVendorCDR_20' ) start [2025-01-23 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313561', 'tblTempVendorCDR_20' ) end [2025-01-23 16:30:35] Production.INFO: ProcessCDR(1,14313561,1,1,2) [2025-01-23 16:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313561', 'tblTempUsageDetail_20' ) start [2025-01-23 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313561', 'tblTempUsageDetail_20' ) end [2025-01-23 16:30:41] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:30:41] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:30:41] Production.INFO: ==12086== Releasing lock... [2025-01-23 16:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:30:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:31:05 [end_date_ymd] => 2025-01-23 16:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:31:05' and `end` < '2025-01-23 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-23 16:31:24] Production.INFO: count ==5446 [2025-01-23 16:31:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:31:05 - End Time 2025-01-23 16:31:05 [2025-01-23 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313567', 'tblTempUsageDetail_20' ) start [2025-01-23 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313567', 'tblTempUsageDetail_20' ) end [2025-01-23 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313567', 'tblTempVendorCDR_20' ) start [2025-01-23 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313567', 'tblTempVendorCDR_20' ) end [2025-01-23 16:31:27] Production.INFO: ProcessCDR(1,14313567,1,1,2) [2025-01-23 16:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313567', 'tblTempUsageDetail_20' ) start [2025-01-23 16:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313567', 'tblTempUsageDetail_20' ) end [2025-01-23 16:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:31:32] Production.INFO: ==12169== Releasing lock... [2025-01-23 16:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:31:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:32:05 [end_date_ymd] => 2025-01-23 16:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:32:05' and `end` < '2025-01-23 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-23 16:32:29] Production.INFO: count ==5424 [2025-01-23 16:32:31] Production.ERROR: pbx CDR StartTime 2025-01-23 13:32:05 - End Time 2025-01-23 16:32:05 [2025-01-23 16:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313572', 'tblTempUsageDetail_20' ) start [2025-01-23 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313572', 'tblTempUsageDetail_20' ) end [2025-01-23 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313572', 'tblTempVendorCDR_20' ) start [2025-01-23 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313572', 'tblTempVendorCDR_20' ) end [2025-01-23 16:32:31] Production.INFO: ProcessCDR(1,14313572,1,1,2) [2025-01-23 16:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313572', 'tblTempUsageDetail_20' ) start [2025-01-23 16:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313572', 'tblTempUsageDetail_20' ) end [2025-01-23 16:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:32:36] Production.INFO: ==12247== Releasing lock... [2025-01-23 16:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:32:36] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:33:05 [end_date_ymd] => 2025-01-23 16:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:33:05' and `end` < '2025-01-23 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-23 16:33:23] Production.INFO: count ==5441 [2025-01-23 16:33:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:33:05 - End Time 2025-01-23 16:33:05 [2025-01-23 16:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313577', 'tblTempUsageDetail_20' ) start [2025-01-23 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313577', 'tblTempUsageDetail_20' ) end [2025-01-23 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313577', 'tblTempVendorCDR_20' ) start [2025-01-23 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313577', 'tblTempVendorCDR_20' ) end [2025-01-23 16:33:25] Production.INFO: ProcessCDR(1,14313577,1,1,2) [2025-01-23 16:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313577', 'tblTempUsageDetail_20' ) start [2025-01-23 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313577', 'tblTempUsageDetail_20' ) end [2025-01-23 16:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:33:30] Production.INFO: ==12322== Releasing lock... [2025-01-23 16:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:33:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:34:06 [end_date_ymd] => 2025-01-23 16:34:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:34:06' and `end` < '2025-01-23 16: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-23 16:34:26] Production.INFO: count ==5440 [2025-01-23 16:34:28] Production.ERROR: pbx CDR StartTime 2025-01-23 13:34:06 - End Time 2025-01-23 16:34:06 [2025-01-23 16:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313582', 'tblTempUsageDetail_20' ) start [2025-01-23 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313582', 'tblTempUsageDetail_20' ) end [2025-01-23 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313582', 'tblTempVendorCDR_20' ) start [2025-01-23 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313582', 'tblTempVendorCDR_20' ) end [2025-01-23 16:34:28] Production.INFO: ProcessCDR(1,14313582,1,1,2) [2025-01-23 16:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313582', 'tblTempUsageDetail_20' ) start [2025-01-23 16:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313582', 'tblTempUsageDetail_20' ) end [2025-01-23 16:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:34:31] Production.INFO: ==12401== Releasing lock... [2025-01-23 16:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:34:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:35:05 [end_date_ymd] => 2025-01-23 16:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:35:05' and `end` < '2025-01-23 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-23 16:35:27] Production.INFO: count ==5419 [2025-01-23 16:35:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:35:05 - End Time 2025-01-23 16:35:05 [2025-01-23 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313587', 'tblTempUsageDetail_20' ) start [2025-01-23 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313587', 'tblTempUsageDetail_20' ) end [2025-01-23 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313587', 'tblTempVendorCDR_20' ) start [2025-01-23 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313587', 'tblTempVendorCDR_20' ) end [2025-01-23 16:35:30] Production.INFO: ProcessCDR(1,14313587,1,1,2) [2025-01-23 16:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313587', 'tblTempUsageDetail_20' ) start [2025-01-23 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313587', 'tblTempUsageDetail_20' ) end [2025-01-23 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:35:35] Production.INFO: ==12482== Releasing lock... [2025-01-23 16:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:35:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:36:06 [end_date_ymd] => 2025-01-23 16:36:06 [RateCDR] => 1 ) [2025-01-23 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:36:06' and `end` < '2025-01-23 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:36:27] Production.INFO: count ==5426 [2025-01-23 16:36:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:36:06 - End Time 2025-01-23 16:36:06 [2025-01-23 16:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313592', 'tblTempUsageDetail_20' ) start [2025-01-23 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313592', 'tblTempUsageDetail_20' ) end [2025-01-23 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313592', 'tblTempVendorCDR_20' ) start [2025-01-23 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313592', 'tblTempVendorCDR_20' ) end [2025-01-23 16:36:30] Production.INFO: ProcessCDR(1,14313592,1,1,2) [2025-01-23 16:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313592', 'tblTempUsageDetail_20' ) start [2025-01-23 16:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313592', 'tblTempUsageDetail_20' ) end [2025-01-23 16:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:36:35] Production.INFO: ==12564== Releasing lock... [2025-01-23 16:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:36:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-23 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:37:05 [end_date_ymd] => 2025-01-23 16:37:05 [RateCDR] => 1 ) [2025-01-23 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:37:05' and `end` < '2025-01-23 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:37:24] Production.INFO: count ==5408 [2025-01-23 16:37:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:37:05 - End Time 2025-01-23 16:37:05 [2025-01-23 16:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313597', 'tblTempUsageDetail_20' ) start [2025-01-23 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313597', 'tblTempUsageDetail_20' ) end [2025-01-23 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313597', 'tblTempVendorCDR_20' ) start [2025-01-23 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313597', 'tblTempVendorCDR_20' ) end [2025-01-23 16:37:26] Production.INFO: ProcessCDR(1,14313597,1,1,2) [2025-01-23 16:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313597', 'tblTempUsageDetail_20' ) start [2025-01-23 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313597', 'tblTempUsageDetail_20' ) end [2025-01-23 16:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:37:31] Production.INFO: ==12640== Releasing lock... [2025-01-23 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:37:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:38:06 [end_date_ymd] => 2025-01-23 16:38:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:38:06' and `end` < '2025-01-23 16: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-23 16:38:22] Production.INFO: count ==5402 [2025-01-23 16:38:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:38:06 - End Time 2025-01-23 16:38:06 [2025-01-23 16:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313602', 'tblTempUsageDetail_20' ) start [2025-01-23 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313602', 'tblTempUsageDetail_20' ) end [2025-01-23 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313602', 'tblTempVendorCDR_20' ) start [2025-01-23 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313602', 'tblTempVendorCDR_20' ) end [2025-01-23 16:38:25] Production.INFO: ProcessCDR(1,14313602,1,1,2) [2025-01-23 16:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313602', 'tblTempUsageDetail_20' ) start [2025-01-23 16:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313602', 'tblTempUsageDetail_20' ) end [2025-01-23 16:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:38:30] Production.INFO: ==12721== Releasing lock... [2025-01-23 16:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:38:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:39:06 [end_date_ymd] => 2025-01-23 16:39:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:39:06' and `end` < '2025-01-23 16: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-23 16:39:24] Production.INFO: count ==5404 [2025-01-23 16:39:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:39:06 - End Time 2025-01-23 16:39:06 [2025-01-23 16:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313607', 'tblTempUsageDetail_20' ) start [2025-01-23 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313607', 'tblTempUsageDetail_20' ) end [2025-01-23 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313607', 'tblTempVendorCDR_20' ) start [2025-01-23 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313607', 'tblTempVendorCDR_20' ) end [2025-01-23 16:39:26] Production.INFO: ProcessCDR(1,14313607,1,1,2) [2025-01-23 16:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313607', 'tblTempUsageDetail_20' ) start [2025-01-23 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313607', 'tblTempUsageDetail_20' ) end [2025-01-23 16:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:39:32] Production.INFO: ==12841== Releasing lock... [2025-01-23 16:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:39:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:40:07 [end_date_ymd] => 2025-01-23 16:40:07 [RateCDR] => 1 ) [2025-01-23 16:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:40:07' and `end` < '2025-01-23 16:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:40:31] Production.INFO: count ==5398 [2025-01-23 16:40:33] Production.ERROR: pbx CDR StartTime 2025-01-23 13:40:07 - End Time 2025-01-23 16:40:07 [2025-01-23 16:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313613', 'tblTempUsageDetail_20' ) start [2025-01-23 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313613', 'tblTempUsageDetail_20' ) end [2025-01-23 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313613', 'tblTempVendorCDR_20' ) start [2025-01-23 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313613', 'tblTempVendorCDR_20' ) end [2025-01-23 16:40:34] Production.INFO: ProcessCDR(1,14313613,1,1,2) [2025-01-23 16:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313613', 'tblTempUsageDetail_20' ) start [2025-01-23 16:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313613', 'tblTempUsageDetail_20' ) end [2025-01-23 16:40:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:40:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:40:39] Production.INFO: ==12927== Releasing lock... [2025-01-23 16:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:40:39] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:41:05 [end_date_ymd] => 2025-01-23 16:41:05 [RateCDR] => 1 ) [2025-01-23 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:41:05' and `end` < '2025-01-23 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:41:28] Production.INFO: count ==5401 [2025-01-23 16:41:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:41:05 - End Time 2025-01-23 16:41:05 [2025-01-23 16:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313618', 'tblTempUsageDetail_20' ) start [2025-01-23 16:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313618', 'tblTempUsageDetail_20' ) end [2025-01-23 16:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313618', 'tblTempVendorCDR_20' ) start [2025-01-23 16:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313618', 'tblTempVendorCDR_20' ) end [2025-01-23 16:41:30] Production.INFO: ProcessCDR(1,14313618,1,1,2) [2025-01-23 16:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313618', 'tblTempUsageDetail_20' ) start [2025-01-23 16:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313618', 'tblTempUsageDetail_20' ) end [2025-01-23 16:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:41:35] Production.INFO: ==13010== Releasing lock... [2025-01-23 16:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:41:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:42:06 [end_date_ymd] => 2025-01-23 16:42:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:42:06' and `end` < '2025-01-23 16: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-23 16:42:30] Production.INFO: count ==5398 [2025-01-23 16:42:32] Production.ERROR: pbx CDR StartTime 2025-01-23 13:42:06 - End Time 2025-01-23 16:42:06 [2025-01-23 16:42:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313623', 'tblTempUsageDetail_20' ) start [2025-01-23 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313623', 'tblTempUsageDetail_20' ) end [2025-01-23 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313623', 'tblTempVendorCDR_20' ) start [2025-01-23 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313623', 'tblTempVendorCDR_20' ) end [2025-01-23 16:42:32] Production.INFO: ProcessCDR(1,14313623,1,1,2) [2025-01-23 16:42:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:42:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:42:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:42:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313623', 'tblTempUsageDetail_20' ) start [2025-01-23 16:42:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313623', 'tblTempUsageDetail_20' ) end [2025-01-23 16:42:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:42:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:42:38] Production.INFO: ==13093== Releasing lock... [2025-01-23 16:42:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:42:38] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:43:06 [end_date_ymd] => 2025-01-23 16:43:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:43:06' and `end` < '2025-01-23 16: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-23 16:43:24] Production.INFO: count ==5389 [2025-01-23 16:43:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:43:06 - End Time 2025-01-23 16:43:06 [2025-01-23 16:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313628', 'tblTempUsageDetail_20' ) start [2025-01-23 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313628', 'tblTempUsageDetail_20' ) end [2025-01-23 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313628', 'tblTempVendorCDR_20' ) start [2025-01-23 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313628', 'tblTempVendorCDR_20' ) end [2025-01-23 16:43:26] Production.INFO: ProcessCDR(1,14313628,1,1,2) [2025-01-23 16:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313628', 'tblTempUsageDetail_20' ) start [2025-01-23 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313628', 'tblTempUsageDetail_20' ) end [2025-01-23 16:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:43:31] Production.INFO: ==13167== Releasing lock... [2025-01-23 16:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:43:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-23 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:44:06 [end_date_ymd] => 2025-01-23 16:44:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:44:06' and `end` < '2025-01-23 16: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-23 16:44:22] Production.INFO: count ==5372 [2025-01-23 16:44:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:44:06 - End Time 2025-01-23 16:44:06 [2025-01-23 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313633', 'tblTempUsageDetail_20' ) start [2025-01-23 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313633', 'tblTempUsageDetail_20' ) end [2025-01-23 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313633', 'tblTempVendorCDR_20' ) start [2025-01-23 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313633', 'tblTempVendorCDR_20' ) end [2025-01-23 16:44:24] Production.INFO: ProcessCDR(1,14313633,1,1,2) [2025-01-23 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313633', 'tblTempUsageDetail_20' ) start [2025-01-23 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313633', 'tblTempUsageDetail_20' ) end [2025-01-23 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:44:29] Production.INFO: ==13250== Releasing lock... [2025-01-23 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:44:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:45:05 [end_date_ymd] => 2025-01-23 16:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:45:05' and `end` < '2025-01-23 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-23 16:45:30] Production.INFO: count ==5360 [2025-01-23 16:45:32] Production.ERROR: pbx CDR StartTime 2025-01-23 13:45:05 - End Time 2025-01-23 16:45:05 [2025-01-23 16:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313638', 'tblTempUsageDetail_20' ) start [2025-01-23 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313638', 'tblTempUsageDetail_20' ) end [2025-01-23 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313638', 'tblTempVendorCDR_20' ) start [2025-01-23 16:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313638', 'tblTempVendorCDR_20' ) end [2025-01-23 16:45:32] Production.INFO: ProcessCDR(1,14313638,1,1,2) [2025-01-23 16:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313638', 'tblTempUsageDetail_20' ) start [2025-01-23 16:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313638', 'tblTempUsageDetail_20' ) end [2025-01-23 16:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:45:38] Production.INFO: ==13328== Releasing lock... [2025-01-23 16:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:45:38] Production.INFO: 68.25 MB #Memory Used# [2025-01-23 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:46:06 [end_date_ymd] => 2025-01-23 16:46:06 [RateCDR] => 1 ) [2025-01-23 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:46:06' and `end` < '2025-01-23 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:46:22] Production.INFO: count ==5339 [2025-01-23 16:46:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:46:06 - End Time 2025-01-23 16:46:06 [2025-01-23 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313643', 'tblTempUsageDetail_20' ) start [2025-01-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313643', 'tblTempUsageDetail_20' ) end [2025-01-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313643', 'tblTempVendorCDR_20' ) start [2025-01-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313643', 'tblTempVendorCDR_20' ) end [2025-01-23 16:46:25] Production.INFO: ProcessCDR(1,14313643,1,1,2) [2025-01-23 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313643', 'tblTempUsageDetail_20' ) start [2025-01-23 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313643', 'tblTempUsageDetail_20' ) end [2025-01-23 16:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:46:29] Production.INFO: ==13414== Releasing lock... [2025-01-23 16:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:46:29] Production.INFO: 68 MB #Memory Used# [2025-01-23 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:47:05 [end_date_ymd] => 2025-01-23 16:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:47:05' and `end` < '2025-01-23 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-23 16:47:20] Production.INFO: count ==5337 [2025-01-23 16:47:22] Production.ERROR: pbx CDR StartTime 2025-01-23 13:47:05 - End Time 2025-01-23 16:47:05 [2025-01-23 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313648', 'tblTempUsageDetail_20' ) start [2025-01-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313648', 'tblTempUsageDetail_20' ) end [2025-01-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313648', 'tblTempVendorCDR_20' ) start [2025-01-23 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313648', 'tblTempVendorCDR_20' ) end [2025-01-23 16:47:22] Production.INFO: ProcessCDR(1,14313648,1,1,2) [2025-01-23 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313648', 'tblTempUsageDetail_20' ) start [2025-01-23 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313648', 'tblTempUsageDetail_20' ) end [2025-01-23 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:47:27] Production.INFO: ==13497== Releasing lock... [2025-01-23 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:47:27] Production.INFO: 68 MB #Memory Used# [2025-01-23 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:48:06 [end_date_ymd] => 2025-01-23 16:48:06 [RateCDR] => 1 ) [2025-01-23 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:48:06' and `end` < '2025-01-23 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:48:31] Production.INFO: count ==5302 [2025-01-23 16:48:33] Production.ERROR: pbx CDR StartTime 2025-01-23 13:48:06 - End Time 2025-01-23 16:48:06 [2025-01-23 16:48:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313653', 'tblTempUsageDetail_20' ) start [2025-01-23 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313653', 'tblTempUsageDetail_20' ) end [2025-01-23 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313653', 'tblTempVendorCDR_20' ) start [2025-01-23 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313653', 'tblTempVendorCDR_20' ) end [2025-01-23 16:48:33] Production.INFO: ProcessCDR(1,14313653,1,1,2) [2025-01-23 16:48:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:48:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:48:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:48:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313653', 'tblTempUsageDetail_20' ) start [2025-01-23 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313653', 'tblTempUsageDetail_20' ) end [2025-01-23 16:48:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:48:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:48:38] Production.INFO: ==13575== Releasing lock... [2025-01-23 16:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:48:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:49:05 [end_date_ymd] => 2025-01-23 16:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:49:05' and `end` < '2025-01-23 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-23 16:49:23] Production.INFO: count ==5289 [2025-01-23 16:49:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:49:05 - End Time 2025-01-23 16:49:05 [2025-01-23 16:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313658', 'tblTempUsageDetail_20' ) start [2025-01-23 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313658', 'tblTempUsageDetail_20' ) end [2025-01-23 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313658', 'tblTempVendorCDR_20' ) start [2025-01-23 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313658', 'tblTempVendorCDR_20' ) end [2025-01-23 16:49:25] Production.INFO: ProcessCDR(1,14313658,1,1,2) [2025-01-23 16:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313658', 'tblTempUsageDetail_20' ) start [2025-01-23 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313658', 'tblTempUsageDetail_20' ) end [2025-01-23 16:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:49:30] Production.INFO: ==13649== Releasing lock... [2025-01-23 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:49:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-23 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:50:06 [end_date_ymd] => 2025-01-23 16:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 13:50:06' and `end` < '2025-01-23 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-23 16:50:25] Production.INFO: count ==5277 [2025-01-23 16:50:28] Production.ERROR: pbx CDR StartTime 2025-01-23 13:50:06 - End Time 2025-01-23 16:50:06 [2025-01-23 16:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313664', 'tblTempUsageDetail_20' ) start [2025-01-23 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313664', 'tblTempUsageDetail_20' ) end [2025-01-23 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313664', 'tblTempVendorCDR_20' ) start [2025-01-23 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313664', 'tblTempVendorCDR_20' ) end [2025-01-23 16:50:28] Production.INFO: ProcessCDR(1,14313664,1,1,2) [2025-01-23 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313664', 'tblTempUsageDetail_20' ) start [2025-01-23 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313664', 'tblTempUsageDetail_20' ) end [2025-01-23 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:50:33] Production.INFO: ==13736== Releasing lock... [2025-01-23 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:50:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:51:06 [end_date_ymd] => 2025-01-23 16:51:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:51:06' and `end` < '2025-01-23 16: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-23 16:51:22] Production.INFO: count ==5274 [2025-01-23 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:51:06 - End Time 2025-01-23 16:51:06 [2025-01-23 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313669', 'tblTempUsageDetail_20' ) start [2025-01-23 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313669', 'tblTempUsageDetail_20' ) end [2025-01-23 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313669', 'tblTempVendorCDR_20' ) start [2025-01-23 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313669', 'tblTempVendorCDR_20' ) end [2025-01-23 16:51:25] Production.INFO: ProcessCDR(1,14313669,1,1,2) [2025-01-23 16:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313669', 'tblTempUsageDetail_20' ) start [2025-01-23 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313669', 'tblTempUsageDetail_20' ) end [2025-01-23 16:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:51:30] Production.INFO: ==13816== Releasing lock... [2025-01-23 16:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:51:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:52:06 [end_date_ymd] => 2025-01-23 16:52:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:52:06' and `end` < '2025-01-23 16: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-23 16:52:22] Production.INFO: count ==5274 [2025-01-23 16:52:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:52:06 - End Time 2025-01-23 16:52:06 [2025-01-23 16:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313674', 'tblTempUsageDetail_20' ) start [2025-01-23 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313674', 'tblTempUsageDetail_20' ) end [2025-01-23 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313674', 'tblTempVendorCDR_20' ) start [2025-01-23 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313674', 'tblTempVendorCDR_20' ) end [2025-01-23 16:52:25] Production.INFO: ProcessCDR(1,14313674,1,1,2) [2025-01-23 16:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313674', 'tblTempUsageDetail_20' ) start [2025-01-23 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313674', 'tblTempUsageDetail_20' ) end [2025-01-23 16:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:52:30] Production.INFO: ==13894== Releasing lock... [2025-01-23 16:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:52:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:53:05 [end_date_ymd] => 2025-01-23 16:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 13:53:05' and `end` < '2025-01-23 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-23 16:53:20] Production.INFO: count ==5268 [2025-01-23 16:53:22] Production.ERROR: pbx CDR StartTime 2025-01-23 13:53:05 - End Time 2025-01-23 16:53:05 [2025-01-23 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313679', 'tblTempUsageDetail_20' ) start [2025-01-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313679', 'tblTempUsageDetail_20' ) end [2025-01-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313679', 'tblTempVendorCDR_20' ) start [2025-01-23 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313679', 'tblTempVendorCDR_20' ) end [2025-01-23 16:53:22] Production.INFO: ProcessCDR(1,14313679,1,1,2) [2025-01-23 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313679', 'tblTempUsageDetail_20' ) start [2025-01-23 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313679', 'tblTempUsageDetail_20' ) end [2025-01-23 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:53:27] Production.INFO: ==13972== Releasing lock... [2025-01-23 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:53:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:54:06 [end_date_ymd] => 2025-01-23 16:54:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:54:06' and `end` < '2025-01-23 16: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-23 16:54:23] Production.INFO: count ==5254 [2025-01-23 16:54:25] Production.ERROR: pbx CDR StartTime 2025-01-23 13:54:06 - End Time 2025-01-23 16:54:06 [2025-01-23 16:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313684', 'tblTempUsageDetail_20' ) start [2025-01-23 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313684', 'tblTempUsageDetail_20' ) end [2025-01-23 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313684', 'tblTempVendorCDR_20' ) start [2025-01-23 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313684', 'tblTempVendorCDR_20' ) end [2025-01-23 16:54:25] Production.INFO: ProcessCDR(1,14313684,1,1,2) [2025-01-23 16:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313684', 'tblTempUsageDetail_20' ) start [2025-01-23 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313684', 'tblTempUsageDetail_20' ) end [2025-01-23 16:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:54:30] Production.INFO: ==14056== Releasing lock... [2025-01-23 16:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:54:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:55:06 [end_date_ymd] => 2025-01-23 16:55:06 [RateCDR] => 1 ) [2025-01-23 16: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-23 13:55:06' and `end` < '2025-01-23 16: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-23 16:55:28] Production.INFO: count ==5251 [2025-01-23 16:55:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:55:06 - End Time 2025-01-23 16:55:06 [2025-01-23 16:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313689', 'tblTempUsageDetail_20' ) start [2025-01-23 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313689', 'tblTempUsageDetail_20' ) end [2025-01-23 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313689', 'tblTempVendorCDR_20' ) start [2025-01-23 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313689', 'tblTempVendorCDR_20' ) end [2025-01-23 16:55:31] Production.INFO: ProcessCDR(1,14313689,1,1,2) [2025-01-23 16:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313689', 'tblTempUsageDetail_20' ) start [2025-01-23 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313689', 'tblTempUsageDetail_20' ) end [2025-01-23 16:55:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:55:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:55:36] Production.INFO: ==14169== Releasing lock... [2025-01-23 16:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:55:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-23 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:56:05 [end_date_ymd] => 2025-01-23 16:56:05 [RateCDR] => 1 ) [2025-01-23 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:56:05' and `end` < '2025-01-23 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:56:21] Production.INFO: count ==5248 [2025-01-23 16:56:24] Production.ERROR: pbx CDR StartTime 2025-01-23 13:56:05 - End Time 2025-01-23 16:56:05 [2025-01-23 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313694', 'tblTempUsageDetail_20' ) start [2025-01-23 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313694', 'tblTempUsageDetail_20' ) end [2025-01-23 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313694', 'tblTempVendorCDR_20' ) start [2025-01-23 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313694', 'tblTempVendorCDR_20' ) end [2025-01-23 16:56:24] Production.INFO: ProcessCDR(1,14313694,1,1,2) [2025-01-23 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313694', 'tblTempUsageDetail_20' ) start [2025-01-23 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313694', 'tblTempUsageDetail_20' ) end [2025-01-23 16:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:56:29] Production.INFO: ==14246== Releasing lock... [2025-01-23 16:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:56:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:57:06 [end_date_ymd] => 2025-01-23 16:57:06 [RateCDR] => 1 ) [2025-01-23 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:57:06' and `end` < '2025-01-23 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:57:27] Production.INFO: count ==5231 [2025-01-23 16:57:29] Production.ERROR: pbx CDR StartTime 2025-01-23 13:57:06 - End Time 2025-01-23 16:57:06 [2025-01-23 16:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313699', 'tblTempUsageDetail_20' ) start [2025-01-23 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313699', 'tblTempUsageDetail_20' ) end [2025-01-23 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313699', 'tblTempVendorCDR_20' ) start [2025-01-23 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313699', 'tblTempVendorCDR_20' ) end [2025-01-23 16:57:29] Production.INFO: ProcessCDR(1,14313699,1,1,2) [2025-01-23 16:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313699', 'tblTempUsageDetail_20' ) start [2025-01-23 16:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313699', 'tblTempUsageDetail_20' ) end [2025-01-23 16:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:57:34] Production.INFO: ==14322== Releasing lock... [2025-01-23 16:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:57:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:58:05 [end_date_ymd] => 2025-01-23 16:58:05 [RateCDR] => 1 ) [2025-01-23 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:58:05' and `end` < '2025-01-23 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:58:24] Production.INFO: count ==5214 [2025-01-23 16:58:26] Production.ERROR: pbx CDR StartTime 2025-01-23 13:58:05 - End Time 2025-01-23 16:58:05 [2025-01-23 16:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313704', 'tblTempUsageDetail_20' ) start [2025-01-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313704', 'tblTempUsageDetail_20' ) end [2025-01-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313704', 'tblTempVendorCDR_20' ) start [2025-01-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313704', 'tblTempVendorCDR_20' ) end [2025-01-23 16:58:26] Production.INFO: ProcessCDR(1,14313704,1,1,2) [2025-01-23 16:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313704', 'tblTempUsageDetail_20' ) start [2025-01-23 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313704', 'tblTempUsageDetail_20' ) end [2025-01-23 16:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:58:31] Production.INFO: ==14399== Releasing lock... [2025-01-23 16:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:58:31] Production.INFO: 67 MB #Memory Used# [2025-01-23 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 13:59:06 [end_date_ymd] => 2025-01-23 16:59:06 [RateCDR] => 1 ) [2025-01-23 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 13:59:06' and `end` < '2025-01-23 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 16:59:28] Production.INFO: count ==5208 [2025-01-23 16:59:30] Production.ERROR: pbx CDR StartTime 2025-01-23 13:59:06 - End Time 2025-01-23 16:59:06 [2025-01-23 16:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313709', 'tblTempUsageDetail_20' ) start [2025-01-23 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313709', 'tblTempUsageDetail_20' ) end [2025-01-23 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313709', 'tblTempVendorCDR_20' ) start [2025-01-23 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313709', 'tblTempVendorCDR_20' ) end [2025-01-23 16:59:30] Production.INFO: ProcessCDR(1,14313709,1,1,2) [2025-01-23 16:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 16:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 16:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313709', 'tblTempUsageDetail_20' ) start [2025-01-23 16:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313709', 'tblTempUsageDetail_20' ) end [2025-01-23 16:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 16:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 16:59:36] Production.INFO: ==14480== Releasing lock... [2025-01-23 16:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 16:59:36] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:00:06 [end_date_ymd] => 2025-01-23 17:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 14:00:06' and `end` < '2025-01-23 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-23 17:00:27] Production.INFO: count ==5198 [2025-01-23 17:00:29] Production.ERROR: pbx CDR StartTime 2025-01-23 14:00:06 - End Time 2025-01-23 17:00:06 [2025-01-23 17:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313715', 'tblTempUsageDetail_20' ) start [2025-01-23 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313715', 'tblTempUsageDetail_20' ) end [2025-01-23 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313715', 'tblTempVendorCDR_20' ) start [2025-01-23 17:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313715', 'tblTempVendorCDR_20' ) end [2025-01-23 17:00:29] Production.INFO: ProcessCDR(1,14313715,1,1,2) [2025-01-23 17:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313715', 'tblTempUsageDetail_20' ) start [2025-01-23 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313715', 'tblTempUsageDetail_20' ) end [2025-01-23 17:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:00:34] Production.INFO: ==14556== Releasing lock... [2025-01-23 17:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:00:34] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:01:06 [end_date_ymd] => 2025-01-23 17:01:06 [RateCDR] => 1 ) [2025-01-23 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:01:06' and `end` < '2025-01-23 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:01:23] Production.INFO: count ==5249 [2025-01-23 17:01:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:01:06 - End Time 2025-01-23 17:01:06 [2025-01-23 17:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313720', 'tblTempUsageDetail_20' ) start [2025-01-23 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313720', 'tblTempUsageDetail_20' ) end [2025-01-23 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313720', 'tblTempVendorCDR_20' ) start [2025-01-23 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313720', 'tblTempVendorCDR_20' ) end [2025-01-23 17:01:26] Production.INFO: ProcessCDR(1,14313720,1,1,2) [2025-01-23 17:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313720', 'tblTempUsageDetail_20' ) start [2025-01-23 17:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313720', 'tblTempUsageDetail_20' ) end [2025-01-23 17:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:01:31] Production.INFO: ==14645== Releasing lock... [2025-01-23 17:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:01:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:02:05 [end_date_ymd] => 2025-01-23 17:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:02:05' and `end` < '2025-01-23 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-23 17:02:19] Production.INFO: count ==5242 [2025-01-23 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-23 14:02:05 - End Time 2025-01-23 17:02:05 [2025-01-23 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313725', 'tblTempUsageDetail_20' ) start [2025-01-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313725', 'tblTempUsageDetail_20' ) end [2025-01-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313725', 'tblTempVendorCDR_20' ) start [2025-01-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313725', 'tblTempVendorCDR_20' ) end [2025-01-23 17:02:21] Production.INFO: ProcessCDR(1,14313725,1,1,2) [2025-01-23 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313725', 'tblTempUsageDetail_20' ) start [2025-01-23 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313725', 'tblTempUsageDetail_20' ) end [2025-01-23 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:02:24] Production.INFO: ==14725== Releasing lock... [2025-01-23 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:02:24] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:03:06 [end_date_ymd] => 2025-01-23 17:03:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:03:06' and `end` < '2025-01-23 17: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-23 17:03:23] Production.INFO: count ==5232 [2025-01-23 17:03:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:03:06 - End Time 2025-01-23 17:03:06 [2025-01-23 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313730', 'tblTempUsageDetail_20' ) start [2025-01-23 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313730', 'tblTempUsageDetail_20' ) end [2025-01-23 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313730', 'tblTempVendorCDR_20' ) start [2025-01-23 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313730', 'tblTempVendorCDR_20' ) end [2025-01-23 17:03:25] Production.INFO: ProcessCDR(1,14313730,1,1,2) [2025-01-23 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313730', 'tblTempUsageDetail_20' ) start [2025-01-23 17:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313730', 'tblTempUsageDetail_20' ) end [2025-01-23 17:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:03:31] Production.INFO: ==14804== Releasing lock... [2025-01-23 17:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:03:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:04:06 [end_date_ymd] => 2025-01-23 17:04:06 [RateCDR] => 1 ) [2025-01-23 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:04:06' and `end` < '2025-01-23 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:04:30] Production.INFO: count ==5216 [2025-01-23 17:04:32] Production.ERROR: pbx CDR StartTime 2025-01-23 14:04:06 - End Time 2025-01-23 17:04:06 [2025-01-23 17:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313735', 'tblTempUsageDetail_20' ) start [2025-01-23 17:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313735', 'tblTempUsageDetail_20' ) end [2025-01-23 17:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313735', 'tblTempVendorCDR_20' ) start [2025-01-23 17:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313735', 'tblTempVendorCDR_20' ) end [2025-01-23 17:04:32] Production.INFO: ProcessCDR(1,14313735,1,1,2) [2025-01-23 17:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:04:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:04:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313735', 'tblTempUsageDetail_20' ) start [2025-01-23 17:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313735', 'tblTempUsageDetail_20' ) end [2025-01-23 17:04:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:04:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:04:37] Production.INFO: ==14878== Releasing lock... [2025-01-23 17:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:04:37] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:05:05 [end_date_ymd] => 2025-01-23 17:05:05 [RateCDR] => 1 ) [2025-01-23 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:05:05' and `end` < '2025-01-23 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:05:27] Production.INFO: count ==5232 [2025-01-23 17:05:29] Production.ERROR: pbx CDR StartTime 2025-01-23 14:05:05 - End Time 2025-01-23 17:05:05 [2025-01-23 17:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313740', 'tblTempUsageDetail_20' ) start [2025-01-23 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313740', 'tblTempUsageDetail_20' ) end [2025-01-23 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313740', 'tblTempVendorCDR_20' ) start [2025-01-23 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313740', 'tblTempVendorCDR_20' ) end [2025-01-23 17:05:29] Production.INFO: ProcessCDR(1,14313740,1,1,2) [2025-01-23 17:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313740', 'tblTempUsageDetail_20' ) start [2025-01-23 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313740', 'tblTempUsageDetail_20' ) end [2025-01-23 17:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:05:35] Production.INFO: ==14954== Releasing lock... [2025-01-23 17:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:05:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:06:06 [end_date_ymd] => 2025-01-23 17:06:06 [RateCDR] => 1 ) [2025-01-23 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:06:06' and `end` < '2025-01-23 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:06:25] Production.INFO: count ==5237 [2025-01-23 17:06:28] Production.ERROR: pbx CDR StartTime 2025-01-23 14:06:06 - End Time 2025-01-23 17:06:06 [2025-01-23 17:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313745', 'tblTempUsageDetail_20' ) start [2025-01-23 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313745', 'tblTempUsageDetail_20' ) end [2025-01-23 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313745', 'tblTempVendorCDR_20' ) start [2025-01-23 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313745', 'tblTempVendorCDR_20' ) end [2025-01-23 17:06:28] Production.INFO: ProcessCDR(1,14313745,1,1,2) [2025-01-23 17:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313745', 'tblTempUsageDetail_20' ) start [2025-01-23 17:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313745', 'tblTempUsageDetail_20' ) end [2025-01-23 17:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:06:33] Production.INFO: ==15056== Releasing lock... [2025-01-23 17:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:06:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:07:05 [end_date_ymd] => 2025-01-23 17:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:07:05' and `end` < '2025-01-23 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-23 17:07:24] Production.INFO: count ==5222 [2025-01-23 17:07:27] Production.ERROR: pbx CDR StartTime 2025-01-23 14:07:05 - End Time 2025-01-23 17:07:05 [2025-01-23 17:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313750', 'tblTempUsageDetail_20' ) start [2025-01-23 17:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313750', 'tblTempUsageDetail_20' ) end [2025-01-23 17:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313750', 'tblTempVendorCDR_20' ) start [2025-01-23 17:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313750', 'tblTempVendorCDR_20' ) end [2025-01-23 17:07:28] Production.INFO: ProcessCDR(1,14313750,1,1,2) [2025-01-23 17:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313750', 'tblTempUsageDetail_20' ) start [2025-01-23 17:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313750', 'tblTempUsageDetail_20' ) end [2025-01-23 17:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:07:33] Production.INFO: ==19152== Releasing lock... [2025-01-23 17:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:07:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:08:06 [end_date_ymd] => 2025-01-23 17:08:06 [RateCDR] => 1 ) [2025-01-23 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:08:06' and `end` < '2025-01-23 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:08:19] Production.INFO: count ==5206 [2025-01-23 17:08:21] Production.ERROR: pbx CDR StartTime 2025-01-23 14:08:06 - End Time 2025-01-23 17:08:06 [2025-01-23 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313755', 'tblTempUsageDetail_20' ) start [2025-01-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313755', 'tblTempUsageDetail_20' ) end [2025-01-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313755', 'tblTempVendorCDR_20' ) start [2025-01-23 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313755', 'tblTempVendorCDR_20' ) end [2025-01-23 17:08:22] Production.INFO: ProcessCDR(1,14313755,1,1,2) [2025-01-23 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313755', 'tblTempUsageDetail_20' ) start [2025-01-23 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313755', 'tblTempUsageDetail_20' ) end [2025-01-23 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:08:27] Production.INFO: ==19501== Releasing lock... [2025-01-23 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:08:27] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:09:06 [end_date_ymd] => 2025-01-23 17:09:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:09:06' and `end` < '2025-01-23 17: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-23 17:09:21] Production.INFO: count ==5196 [2025-01-23 17:09:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:09:06 - End Time 2025-01-23 17:09:06 [2025-01-23 17:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313760', 'tblTempUsageDetail_20' ) start [2025-01-23 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313760', 'tblTempUsageDetail_20' ) end [2025-01-23 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313760', 'tblTempVendorCDR_20' ) start [2025-01-23 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313760', 'tblTempVendorCDR_20' ) end [2025-01-23 17:09:23] Production.INFO: ProcessCDR(1,14313760,1,1,2) [2025-01-23 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313760', 'tblTempUsageDetail_20' ) start [2025-01-23 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313760', 'tblTempUsageDetail_20' ) end [2025-01-23 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:09:27] Production.INFO: ==19792== Releasing lock... [2025-01-23 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:09:27] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:10:07 [end_date_ymd] => 2025-01-23 17:10:07 [RateCDR] => 1 ) [2025-01-23 17:10: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-23 14:10:07' and `end` < '2025-01-23 17:10: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-23 17:10:30] Production.INFO: count ==5195 [2025-01-23 17:10:32] Production.ERROR: pbx CDR StartTime 2025-01-23 14:10:07 - End Time 2025-01-23 17:10:07 [2025-01-23 17:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313766', 'tblTempUsageDetail_20' ) start [2025-01-23 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313766', 'tblTempUsageDetail_20' ) end [2025-01-23 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313766', 'tblTempVendorCDR_20' ) start [2025-01-23 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313766', 'tblTempVendorCDR_20' ) end [2025-01-23 17:10:32] Production.INFO: ProcessCDR(1,14313766,1,1,2) [2025-01-23 17:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313766', 'tblTempUsageDetail_20' ) start [2025-01-23 17:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313766', 'tblTempUsageDetail_20' ) end [2025-01-23 17:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:10:39] Production.INFO: ==20091== Releasing lock... [2025-01-23 17:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:10:39] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:11:06 [end_date_ymd] => 2025-01-23 17:11:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:11:06' and `end` < '2025-01-23 17: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-23 17:11:24] Production.INFO: count ==5224 [2025-01-23 17:11:26] Production.ERROR: pbx CDR StartTime 2025-01-23 14:11:06 - End Time 2025-01-23 17:11:06 [2025-01-23 17:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313771', 'tblTempUsageDetail_20' ) start [2025-01-23 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313771', 'tblTempUsageDetail_20' ) end [2025-01-23 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313771', 'tblTempVendorCDR_20' ) start [2025-01-23 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313771', 'tblTempVendorCDR_20' ) end [2025-01-23 17:11:26] Production.INFO: ProcessCDR(1,14313771,1,1,2) [2025-01-23 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313771', 'tblTempUsageDetail_20' ) start [2025-01-23 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313771', 'tblTempUsageDetail_20' ) end [2025-01-23 17:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:11:30] Production.INFO: ==20169== Releasing lock... [2025-01-23 17:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:11:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-23 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:12:06 [end_date_ymd] => 2025-01-23 17:12:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:12:06' and `end` < '2025-01-23 17: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-23 17:12:25] Production.INFO: count ==5219 [2025-01-23 17:12:27] Production.ERROR: pbx CDR StartTime 2025-01-23 14:12:06 - End Time 2025-01-23 17:12:06 [2025-01-23 17:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313776', 'tblTempUsageDetail_20' ) start [2025-01-23 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313776', 'tblTempUsageDetail_20' ) end [2025-01-23 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313776', 'tblTempVendorCDR_20' ) start [2025-01-23 17:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313776', 'tblTempVendorCDR_20' ) end [2025-01-23 17:12:27] Production.INFO: ProcessCDR(1,14313776,1,1,2) [2025-01-23 17:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313776', 'tblTempUsageDetail_20' ) start [2025-01-23 17:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313776', 'tblTempUsageDetail_20' ) end [2025-01-23 17:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:12:32] Production.INFO: ==20245== Releasing lock... [2025-01-23 17:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:12:32] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:13:06 [end_date_ymd] => 2025-01-23 17:13:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:13:06' and `end` < '2025-01-23 17: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-23 17:13:23] Production.INFO: count ==5208 [2025-01-23 17:13:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:13:06 - End Time 2025-01-23 17:13:06 [2025-01-23 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313781', 'tblTempUsageDetail_20' ) start [2025-01-23 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313781', 'tblTempUsageDetail_20' ) end [2025-01-23 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313781', 'tblTempVendorCDR_20' ) start [2025-01-23 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313781', 'tblTempVendorCDR_20' ) end [2025-01-23 17:13:25] Production.INFO: ProcessCDR(1,14313781,1,1,2) [2025-01-23 17:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313781', 'tblTempUsageDetail_20' ) start [2025-01-23 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313781', 'tblTempUsageDetail_20' ) end [2025-01-23 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:13:30] Production.INFO: ==20317== Releasing lock... [2025-01-23 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:13:30] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:14:06 [end_date_ymd] => 2025-01-23 17:14:06 [RateCDR] => 1 ) [2025-01-23 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-23 14:14:06' and `end` < '2025-01-23 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-23 17:14:21] Production.INFO: count ==5201 [2025-01-23 17:14:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:14:06 - End Time 2025-01-23 17:14:06 [2025-01-23 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313786', 'tblTempUsageDetail_20' ) start [2025-01-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313786', 'tblTempUsageDetail_20' ) end [2025-01-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313786', 'tblTempVendorCDR_20' ) start [2025-01-23 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313786', 'tblTempVendorCDR_20' ) end [2025-01-23 17:14:23] Production.INFO: ProcessCDR(1,14313786,1,1,2) [2025-01-23 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313786', 'tblTempUsageDetail_20' ) start [2025-01-23 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313786', 'tblTempUsageDetail_20' ) end [2025-01-23 17:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:14:29] Production.INFO: ==20391== Releasing lock... [2025-01-23 17:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:14:29] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:15:06 [end_date_ymd] => 2025-01-23 17:15:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:15:06' and `end` < '2025-01-23 17: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-23 17:15:28] Production.INFO: count ==5208 [2025-01-23 17:15:30] Production.ERROR: pbx CDR StartTime 2025-01-23 14:15:06 - End Time 2025-01-23 17:15:06 [2025-01-23 17:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313791', 'tblTempUsageDetail_20' ) start [2025-01-23 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313791', 'tblTempUsageDetail_20' ) end [2025-01-23 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313791', 'tblTempVendorCDR_20' ) start [2025-01-23 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313791', 'tblTempVendorCDR_20' ) end [2025-01-23 17:15:30] Production.INFO: ProcessCDR(1,14313791,1,1,2) [2025-01-23 17:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313791', 'tblTempUsageDetail_20' ) start [2025-01-23 17:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313791', 'tblTempUsageDetail_20' ) end [2025-01-23 17:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:15:36] Production.INFO: ==20463== Releasing lock... [2025-01-23 17:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:15:36] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:16:06 [end_date_ymd] => 2025-01-23 17:16:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:16:06' and `end` < '2025-01-23 17: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-23 17:16:25] Production.INFO: count ==5203 [2025-01-23 17:16:27] Production.ERROR: pbx CDR StartTime 2025-01-23 14:16:06 - End Time 2025-01-23 17:16:06 [2025-01-23 17:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313796', 'tblTempUsageDetail_20' ) start [2025-01-23 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313796', 'tblTempUsageDetail_20' ) end [2025-01-23 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313796', 'tblTempVendorCDR_20' ) start [2025-01-23 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313796', 'tblTempVendorCDR_20' ) end [2025-01-23 17:16:27] Production.INFO: ProcessCDR(1,14313796,1,1,2) [2025-01-23 17:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313796', 'tblTempUsageDetail_20' ) start [2025-01-23 17:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313796', 'tblTempUsageDetail_20' ) end [2025-01-23 17:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:16:32] Production.INFO: ==20541== Releasing lock... [2025-01-23 17:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:16:32] Production.INFO: 67 MB #Memory Used# [2025-01-23 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:17:06 [end_date_ymd] => 2025-01-23 17:17:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:17:06' and `end` < '2025-01-23 17: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-23 17:17:23] Production.INFO: count ==5186 [2025-01-23 17:17:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:17:06 - End Time 2025-01-23 17:17:06 [2025-01-23 17:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313801', 'tblTempUsageDetail_20' ) start [2025-01-23 17:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313801', 'tblTempUsageDetail_20' ) end [2025-01-23 17:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313801', 'tblTempVendorCDR_20' ) start [2025-01-23 17:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313801', 'tblTempVendorCDR_20' ) end [2025-01-23 17:17:26] Production.INFO: ProcessCDR(1,14313801,1,1,2) [2025-01-23 17:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313801', 'tblTempUsageDetail_20' ) start [2025-01-23 17:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313801', 'tblTempUsageDetail_20' ) end [2025-01-23 17:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:17:31] Production.INFO: ==20612== Releasing lock... [2025-01-23 17:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:17:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:18:05 [end_date_ymd] => 2025-01-23 17:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:18:05' and `end` < '2025-01-23 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-23 17:18:30] Production.INFO: count ==5175 [2025-01-23 17:18:32] Production.ERROR: pbx CDR StartTime 2025-01-23 14:18:05 - End Time 2025-01-23 17:18:05 [2025-01-23 17:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313806', 'tblTempUsageDetail_20' ) start [2025-01-23 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313806', 'tblTempUsageDetail_20' ) end [2025-01-23 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313806', 'tblTempVendorCDR_20' ) start [2025-01-23 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313806', 'tblTempVendorCDR_20' ) end [2025-01-23 17:18:32] Production.INFO: ProcessCDR(1,14313806,1,1,2) [2025-01-23 17:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313806', 'tblTempUsageDetail_20' ) start [2025-01-23 17:18:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313806', 'tblTempUsageDetail_20' ) end [2025-01-23 17:18:38] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:18:38] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:18:38] Production.INFO: ==20685== Releasing lock... [2025-01-23 17:18:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:18:38] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:19:05 [end_date_ymd] => 2025-01-23 17:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:19:05' and `end` < '2025-01-23 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-23 17:19:25] Production.INFO: count ==5177 [2025-01-23 17:19:27] Production.ERROR: pbx CDR StartTime 2025-01-23 14:19:05 - End Time 2025-01-23 17:19:05 [2025-01-23 17:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313811', 'tblTempUsageDetail_20' ) start [2025-01-23 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313811', 'tblTempUsageDetail_20' ) end [2025-01-23 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313811', 'tblTempVendorCDR_20' ) start [2025-01-23 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313811', 'tblTempVendorCDR_20' ) end [2025-01-23 17:19:27] Production.INFO: ProcessCDR(1,14313811,1,1,2) [2025-01-23 17:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313811', 'tblTempUsageDetail_20' ) start [2025-01-23 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313811', 'tblTempUsageDetail_20' ) end [2025-01-23 17:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:19:32] Production.INFO: ==20759== Releasing lock... [2025-01-23 17:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:19:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:20:06 [end_date_ymd] => 2025-01-23 17:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 14:20:06' and `end` < '2025-01-23 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-23 17:20:27] Production.INFO: count ==5172 [2025-01-23 17:20:29] Production.ERROR: pbx CDR StartTime 2025-01-23 14:20:06 - End Time 2025-01-23 17:20:06 [2025-01-23 17:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313816', 'tblTempUsageDetail_20' ) start [2025-01-23 17:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313816', 'tblTempUsageDetail_20' ) end [2025-01-23 17:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313816', 'tblTempVendorCDR_20' ) start [2025-01-23 17:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313816', 'tblTempVendorCDR_20' ) end [2025-01-23 17:20:29] Production.INFO: ProcessCDR(1,14313816,1,1,2) [2025-01-23 17:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313816', 'tblTempUsageDetail_20' ) start [2025-01-23 17:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313816', 'tblTempUsageDetail_20' ) end [2025-01-23 17:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:20:35] Production.INFO: ==20836== Releasing lock... [2025-01-23 17:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:20:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:21:06 [end_date_ymd] => 2025-01-23 17:21:06 [RateCDR] => 1 ) [2025-01-23 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:21:06' and `end` < '2025-01-23 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:21:26] Production.INFO: count ==5187 [2025-01-23 17:21:28] Production.ERROR: pbx CDR StartTime 2025-01-23 14:21:06 - End Time 2025-01-23 17:21:06 [2025-01-23 17:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313822', 'tblTempUsageDetail_20' ) start [2025-01-23 17:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313822', 'tblTempUsageDetail_20' ) end [2025-01-23 17:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313822', 'tblTempVendorCDR_20' ) start [2025-01-23 17:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313822', 'tblTempVendorCDR_20' ) end [2025-01-23 17:21:28] Production.INFO: ProcessCDR(1,14313822,1,1,2) [2025-01-23 17:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313822', 'tblTempUsageDetail_20' ) start [2025-01-23 17:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313822', 'tblTempUsageDetail_20' ) end [2025-01-23 17:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:21:32] Production.INFO: ==20913== Releasing lock... [2025-01-23 17:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:21:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:22:06 [end_date_ymd] => 2025-01-23 17:22:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:22:06' and `end` < '2025-01-23 17: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-23 17:22:19] Production.INFO: count ==5172 [2025-01-23 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-23 14:22:06 - End Time 2025-01-23 17:22:06 [2025-01-23 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313827', 'tblTempUsageDetail_20' ) start [2025-01-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313827', 'tblTempUsageDetail_20' ) end [2025-01-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313827', 'tblTempVendorCDR_20' ) start [2025-01-23 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313827', 'tblTempVendorCDR_20' ) end [2025-01-23 17:22:21] Production.INFO: ProcessCDR(1,14313827,1,1,2) [2025-01-23 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313827', 'tblTempUsageDetail_20' ) start [2025-01-23 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313827', 'tblTempUsageDetail_20' ) end [2025-01-23 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:22:25] Production.INFO: ==20991== Releasing lock... [2025-01-23 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:22:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:23:05 [end_date_ymd] => 2025-01-23 17:23:05 [RateCDR] => 1 ) [2025-01-23 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:23:05' and `end` < '2025-01-23 17: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-23 17:23:19] Production.INFO: count ==5175 [2025-01-23 17:23:21] Production.ERROR: pbx CDR StartTime 2025-01-23 14:23:05 - End Time 2025-01-23 17:23:05 [2025-01-23 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313832', 'tblTempUsageDetail_20' ) start [2025-01-23 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313832', 'tblTempUsageDetail_20' ) end [2025-01-23 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313832', 'tblTempVendorCDR_20' ) start [2025-01-23 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313832', 'tblTempVendorCDR_20' ) end [2025-01-23 17:23:21] Production.INFO: ProcessCDR(1,14313832,1,1,2) [2025-01-23 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313832', 'tblTempUsageDetail_20' ) start [2025-01-23 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313832', 'tblTempUsageDetail_20' ) end [2025-01-23 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:23:25] Production.INFO: ==21063== Releasing lock... [2025-01-23 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:23:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:24:05 [end_date_ymd] => 2025-01-23 17:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:24:05' and `end` < '2025-01-23 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-23 17:24:21] Production.INFO: count ==5165 [2025-01-23 17:24:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:24:05 - End Time 2025-01-23 17:24:05 [2025-01-23 17:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313837', 'tblTempUsageDetail_20' ) start [2025-01-23 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313837', 'tblTempUsageDetail_20' ) end [2025-01-23 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313837', 'tblTempVendorCDR_20' ) start [2025-01-23 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313837', 'tblTempVendorCDR_20' ) end [2025-01-23 17:24:23] Production.INFO: ProcessCDR(1,14313837,1,1,2) [2025-01-23 17:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313837', 'tblTempUsageDetail_20' ) start [2025-01-23 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313837', 'tblTempUsageDetail_20' ) end [2025-01-23 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:24:28] Production.INFO: ==21138== Releasing lock... [2025-01-23 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:24:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:25:06 [end_date_ymd] => 2025-01-23 17:25:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:25:06' and `end` < '2025-01-23 17: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-23 17:25:21] Production.INFO: count ==5157 [2025-01-23 17:25:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:25:06 - End Time 2025-01-23 17:25:06 [2025-01-23 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313842', 'tblTempUsageDetail_20' ) start [2025-01-23 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313842', 'tblTempUsageDetail_20' ) end [2025-01-23 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313842', 'tblTempVendorCDR_20' ) start [2025-01-23 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313842', 'tblTempVendorCDR_20' ) end [2025-01-23 17:25:23] Production.INFO: ProcessCDR(1,14313842,1,1,2) [2025-01-23 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313842', 'tblTempUsageDetail_20' ) start [2025-01-23 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313842', 'tblTempUsageDetail_20' ) end [2025-01-23 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:25:28] Production.INFO: ==21215== Releasing lock... [2025-01-23 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:25:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:26:27] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:26:27 [end_date_ymd] => 2025-01-23 17:26:27 [RateCDR] => 1 ) [2025-01-23 17:26:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:26:27' and `end` < '2025-01-23 17:26:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:26:44] Production.INFO: count ==5156 [2025-01-23 17:28:08] Production.ERROR: pbx CDR StartTime 2025-01-23 14:26:27 - End Time 2025-01-23 17:26:27 [2025-01-23 17:28:08] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:28:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313847', 'tblTempUsageDetail_20' ) start [2025-01-23 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313847', 'tblTempUsageDetail_20' ) end [2025-01-23 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313847', 'tblTempVendorCDR_20' ) start [2025-01-23 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313847', 'tblTempVendorCDR_20' ) end [2025-01-23 17:28:19] Production.INFO: ProcessCDR(1,14313847,1,1,2) [2025-01-23 17:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:29:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:29:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313847', 'tblTempUsageDetail_20' ) start [2025-01-23 17:29:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313847', 'tblTempUsageDetail_20' ) end [2025-01-23 17:29:16] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:29:16] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:29:21] Production.INFO: ==21331== Releasing lock... [2025-01-23 17:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:29:21] Production.INFO: 66.75 MB #Memory Used# [2025-01-23 17:30:24] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:30:24 [end_date_ymd] => 2025-01-23 17:30:24 [RateCDR] => 1 ) [2025-01-23 17:30:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:30:24' and `end` < '2025-01-23 17:30:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:30:46] Production.INFO: count ==5085 [2025-01-23 17:31:26] Production.ERROR: pbx CDR StartTime 2025-01-23 14:30:24 - End Time 2025-01-23 17:30:24 [2025-01-23 17:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313862', 'tblTempUsageDetail_20' ) start [2025-01-23 17:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313862', 'tblTempUsageDetail_20' ) end [2025-01-23 17:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313862', 'tblTempVendorCDR_20' ) start [2025-01-23 17:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313862', 'tblTempVendorCDR_20' ) end [2025-01-23 17:31:32] Production.INFO: ProcessCDR(1,14313862,1,1,2) [2025-01-23 17:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:31:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:31:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:32:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:32:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313862', 'tblTempUsageDetail_20' ) start [2025-01-23 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313862', 'tblTempUsageDetail_20' ) end [2025-01-23 17:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:32:29] Production.INFO: ==21608== Releasing lock... [2025-01-23 17:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:32:29] Production.INFO: 66 MB #Memory Used# [2025-01-23 17:33:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:33:18 [end_date_ymd] => 2025-01-23 17:33:18 [RateCDR] => 1 ) [2025-01-23 17:33:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:33:18' and `end` < '2025-01-23 17:33:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:33:35] Production.INFO: count ==5139 [2025-01-23 17:34:14] Production.ERROR: pbx CDR StartTime 2025-01-23 14:33:18 - End Time 2025-01-23 17:33:18 [2025-01-23 17:34:14] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:34:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313873', 'tblTempUsageDetail_20' ) start [2025-01-23 17:34:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313873', 'tblTempUsageDetail_20' ) end [2025-01-23 17:34:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313873', 'tblTempVendorCDR_20' ) start [2025-01-23 17:34:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313873', 'tblTempVendorCDR_20' ) end [2025-01-23 17:34:14] Production.INFO: ProcessCDR(1,14313873,1,1,2) [2025-01-23 17:34:14] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313873', 'tblTempUsageDetail_20' ) start [2025-01-23 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313873', 'tblTempUsageDetail_20' ) end [2025-01-23 17:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:34:21] Production.INFO: ==21810== Releasing lock... [2025-01-23 17:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:34:21] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:35:06 [end_date_ymd] => 2025-01-23 17:35:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:35:06' and `end` < '2025-01-23 17: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-23 17:35:30] Production.INFO: count ==5150 [2025-01-23 17:35:32] Production.ERROR: pbx CDR StartTime 2025-01-23 14:35:06 - End Time 2025-01-23 17:35:06 [2025-01-23 17:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313881', 'tblTempUsageDetail_20' ) start [2025-01-23 17:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313881', 'tblTempUsageDetail_20' ) end [2025-01-23 17:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313881', 'tblTempVendorCDR_20' ) start [2025-01-23 17:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313881', 'tblTempVendorCDR_20' ) end [2025-01-23 17:35:32] Production.INFO: ProcessCDR(1,14313881,1,1,2) [2025-01-23 17:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313881', 'tblTempUsageDetail_20' ) start [2025-01-23 17:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313881', 'tblTempUsageDetail_20' ) end [2025-01-23 17:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:35:37] Production.INFO: ==21952== Releasing lock... [2025-01-23 17:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:35:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-23 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:36:06 [end_date_ymd] => 2025-01-23 17:36:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:36:06' and `end` < '2025-01-23 17: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-23 17:36:24] Production.INFO: count ==5121 [2025-01-23 17:36:26] Production.ERROR: pbx CDR StartTime 2025-01-23 14:36:06 - End Time 2025-01-23 17:36:06 [2025-01-23 17:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313886', 'tblTempUsageDetail_20' ) start [2025-01-23 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313886', 'tblTempUsageDetail_20' ) end [2025-01-23 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313886', 'tblTempVendorCDR_20' ) start [2025-01-23 17:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313886', 'tblTempVendorCDR_20' ) end [2025-01-23 17:36:26] Production.INFO: ProcessCDR(1,14313886,1,1,2) [2025-01-23 17:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313886', 'tblTempUsageDetail_20' ) start [2025-01-23 17:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313886', 'tblTempUsageDetail_20' ) end [2025-01-23 17:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:36:29] Production.INFO: ==22025== Releasing lock... [2025-01-23 17:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:36:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:37:05 [end_date_ymd] => 2025-01-23 17:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:37:05' and `end` < '2025-01-23 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-23 17:37:19] Production.INFO: count ==5107 [2025-01-23 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-23 14:37:05 - End Time 2025-01-23 17:37:05 [2025-01-23 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313891', 'tblTempUsageDetail_20' ) start [2025-01-23 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313891', 'tblTempUsageDetail_20' ) end [2025-01-23 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313891', 'tblTempVendorCDR_20' ) start [2025-01-23 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313891', 'tblTempVendorCDR_20' ) end [2025-01-23 17:37:21] Production.INFO: ProcessCDR(1,14313891,1,1,2) [2025-01-23 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313891', 'tblTempUsageDetail_20' ) start [2025-01-23 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313891', 'tblTempUsageDetail_20' ) end [2025-01-23 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:37:26] Production.INFO: ==22097== Releasing lock... [2025-01-23 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:37:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:38:06 [end_date_ymd] => 2025-01-23 17:38:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:38:06' and `end` < '2025-01-23 17: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-23 17:38:20] Production.INFO: count ==5102 [2025-01-23 17:38:22] Production.ERROR: pbx CDR StartTime 2025-01-23 14:38:06 - End Time 2025-01-23 17:38:06 [2025-01-23 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313896', 'tblTempUsageDetail_20' ) start [2025-01-23 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313896', 'tblTempUsageDetail_20' ) end [2025-01-23 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313896', 'tblTempVendorCDR_20' ) start [2025-01-23 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313896', 'tblTempVendorCDR_20' ) end [2025-01-23 17:38:22] Production.INFO: ProcessCDR(1,14313896,1,1,2) [2025-01-23 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313896', 'tblTempUsageDetail_20' ) start [2025-01-23 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313896', 'tblTempUsageDetail_20' ) end [2025-01-23 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:38:27] Production.INFO: ==22169== Releasing lock... [2025-01-23 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:38:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:39:05 [end_date_ymd] => 2025-01-23 17:39:05 [RateCDR] => 1 ) [2025-01-23 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:39:05' and `end` < '2025-01-23 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:39:23] Production.INFO: count ==5100 [2025-01-23 17:39:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:39:05 - End Time 2025-01-23 17:39:05 [2025-01-23 17:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313901', 'tblTempUsageDetail_20' ) start [2025-01-23 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313901', 'tblTempUsageDetail_20' ) end [2025-01-23 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313901', 'tblTempVendorCDR_20' ) start [2025-01-23 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313901', 'tblTempVendorCDR_20' ) end [2025-01-23 17:39:25] Production.INFO: ProcessCDR(1,14313901,1,1,2) [2025-01-23 17:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313901', 'tblTempUsageDetail_20' ) start [2025-01-23 17:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313901', 'tblTempUsageDetail_20' ) end [2025-01-23 17:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:39:29] Production.INFO: ==22245== Releasing lock... [2025-01-23 17:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:39:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-23 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:40:07 [end_date_ymd] => 2025-01-23 17:40:07 [RateCDR] => 1 ) [2025-01-23 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:40:07' and `end` < '2025-01-23 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:40:26] Production.INFO: count ==5090 [2025-01-23 17:40:28] Production.ERROR: pbx CDR StartTime 2025-01-23 14:40:07 - End Time 2025-01-23 17:40:07 [2025-01-23 17:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313906', 'tblTempUsageDetail_20' ) start [2025-01-23 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313906', 'tblTempUsageDetail_20' ) end [2025-01-23 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313906', 'tblTempVendorCDR_20' ) start [2025-01-23 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313906', 'tblTempVendorCDR_20' ) end [2025-01-23 17:40:28] Production.INFO: ProcessCDR(1,14313906,1,1,2) [2025-01-23 17:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313906', 'tblTempUsageDetail_20' ) start [2025-01-23 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313906', 'tblTempUsageDetail_20' ) end [2025-01-23 17:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:40:33] Production.INFO: ==22324== Releasing lock... [2025-01-23 17:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:40:33] Production.INFO: 66 MB #Memory Used# [2025-01-23 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:41:05 [end_date_ymd] => 2025-01-23 17:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:41:05' and `end` < '2025-01-23 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-23 17:41:20] Production.INFO: count ==5054 [2025-01-23 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-23 14:41:05 - End Time 2025-01-23 17:41:05 [2025-01-23 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313912', 'tblTempUsageDetail_20' ) start [2025-01-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313912', 'tblTempUsageDetail_20' ) end [2025-01-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313912', 'tblTempVendorCDR_20' ) start [2025-01-23 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313912', 'tblTempVendorCDR_20' ) end [2025-01-23 17:41:22] Production.INFO: ProcessCDR(1,14313912,1,1,2) [2025-01-23 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313912', 'tblTempUsageDetail_20' ) start [2025-01-23 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313912', 'tblTempUsageDetail_20' ) end [2025-01-23 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:41:27] Production.INFO: ==22440== Releasing lock... [2025-01-23 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:41:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:42:06 [end_date_ymd] => 2025-01-23 17:42:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:42:06' and `end` < '2025-01-23 17: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-23 17:42:23] Production.INFO: count ==5057 [2025-01-23 17:42:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:42:06 - End Time 2025-01-23 17:42:06 [2025-01-23 17:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313917', 'tblTempUsageDetail_20' ) start [2025-01-23 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313917', 'tblTempUsageDetail_20' ) end [2025-01-23 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313917', 'tblTempVendorCDR_20' ) start [2025-01-23 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313917', 'tblTempVendorCDR_20' ) end [2025-01-23 17:42:24] Production.INFO: ProcessCDR(1,14313917,1,1,2) [2025-01-23 17:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313917', 'tblTempUsageDetail_20' ) start [2025-01-23 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313917', 'tblTempUsageDetail_20' ) end [2025-01-23 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:42:28] Production.INFO: ==22514== Releasing lock... [2025-01-23 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:42:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:43:05 [end_date_ymd] => 2025-01-23 17:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:43:05' and `end` < '2025-01-23 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-23 17:43:21] Production.INFO: count ==5040 [2025-01-23 17:43:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:43:05 - End Time 2025-01-23 17:43:05 [2025-01-23 17:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313922', 'tblTempUsageDetail_20' ) start [2025-01-23 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313922', 'tblTempUsageDetail_20' ) end [2025-01-23 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313922', 'tblTempVendorCDR_20' ) start [2025-01-23 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313922', 'tblTempVendorCDR_20' ) end [2025-01-23 17:43:23] Production.INFO: ProcessCDR(1,14313922,1,1,2) [2025-01-23 17:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313922', 'tblTempUsageDetail_20' ) start [2025-01-23 17:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313922', 'tblTempUsageDetail_20' ) end [2025-01-23 17:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:43:28] Production.INFO: ==22587== Releasing lock... [2025-01-23 17:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:43:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:44:06 [end_date_ymd] => 2025-01-23 17:44:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:44:06' and `end` < '2025-01-23 17: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-23 17:44:22] Production.INFO: count ==5032 [2025-01-23 17:44:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:44:06 - End Time 2025-01-23 17:44:06 [2025-01-23 17:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313927', 'tblTempUsageDetail_20' ) start [2025-01-23 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313927', 'tblTempUsageDetail_20' ) end [2025-01-23 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313927', 'tblTempVendorCDR_20' ) start [2025-01-23 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313927', 'tblTempVendorCDR_20' ) end [2025-01-23 17:44:24] Production.INFO: ProcessCDR(1,14313927,1,1,2) [2025-01-23 17:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313927', 'tblTempUsageDetail_20' ) start [2025-01-23 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313927', 'tblTempUsageDetail_20' ) end [2025-01-23 17:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:44:30] Production.INFO: ==22663== Releasing lock... [2025-01-23 17:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:44:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:45:05 [end_date_ymd] => 2025-01-23 17:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:45:05' and `end` < '2025-01-23 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-23 17:45:21] Production.INFO: count ==5028 [2025-01-23 17:45:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:45:05 - End Time 2025-01-23 17:45:05 [2025-01-23 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313932', 'tblTempUsageDetail_20' ) start [2025-01-23 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313932', 'tblTempUsageDetail_20' ) end [2025-01-23 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313932', 'tblTempVendorCDR_20' ) start [2025-01-23 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313932', 'tblTempVendorCDR_20' ) end [2025-01-23 17:45:23] Production.INFO: ProcessCDR(1,14313932,1,1,2) [2025-01-23 17:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313932', 'tblTempUsageDetail_20' ) start [2025-01-23 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313932', 'tblTempUsageDetail_20' ) end [2025-01-23 17:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:45:28] Production.INFO: ==22744== Releasing lock... [2025-01-23 17:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:45:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-23 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:46:06 [end_date_ymd] => 2025-01-23 17:46:06 [RateCDR] => 1 ) [2025-01-23 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:46:06' and `end` < '2025-01-23 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:46:20] Production.INFO: count ==5004 [2025-01-23 17:46:22] Production.ERROR: pbx CDR StartTime 2025-01-23 14:46:06 - End Time 2025-01-23 17:46:06 [2025-01-23 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313937', 'tblTempUsageDetail_20' ) start [2025-01-23 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313937', 'tblTempUsageDetail_20' ) end [2025-01-23 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313937', 'tblTempVendorCDR_20' ) start [2025-01-23 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313937', 'tblTempVendorCDR_20' ) end [2025-01-23 17:46:22] Production.INFO: ProcessCDR(1,14313937,1,1,2) [2025-01-23 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313937', 'tblTempUsageDetail_20' ) start [2025-01-23 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313937', 'tblTempUsageDetail_20' ) end [2025-01-23 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:46:27] Production.INFO: ==22823== Releasing lock... [2025-01-23 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:46:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:47:06 [end_date_ymd] => 2025-01-23 17:47:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:47:06' and `end` < '2025-01-23 17: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-23 17:47:23] Production.INFO: count ==5004 [2025-01-23 17:47:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:47:06 - End Time 2025-01-23 17:47:06 [2025-01-23 17:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313942', 'tblTempUsageDetail_20' ) start [2025-01-23 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313942', 'tblTempUsageDetail_20' ) end [2025-01-23 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313942', 'tblTempVendorCDR_20' ) start [2025-01-23 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313942', 'tblTempVendorCDR_20' ) end [2025-01-23 17:47:25] Production.INFO: ProcessCDR(1,14313942,1,1,2) [2025-01-23 17:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313942', 'tblTempUsageDetail_20' ) start [2025-01-23 17:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313942', 'tblTempUsageDetail_20' ) end [2025-01-23 17:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:47:30] Production.INFO: ==22901== Releasing lock... [2025-01-23 17:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:47:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:48:06 [end_date_ymd] => 2025-01-23 17:48:06 [RateCDR] => 1 ) [2025-01-23 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:48:06' and `end` < '2025-01-23 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:48:23] Production.INFO: count ==5009 [2025-01-23 17:48:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:48:06 - End Time 2025-01-23 17:48:06 [2025-01-23 17:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313947', 'tblTempUsageDetail_20' ) start [2025-01-23 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313947', 'tblTempUsageDetail_20' ) end [2025-01-23 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313947', 'tblTempVendorCDR_20' ) start [2025-01-23 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313947', 'tblTempVendorCDR_20' ) end [2025-01-23 17:48:25] Production.INFO: ProcessCDR(1,14313947,1,1,2) [2025-01-23 17:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313947', 'tblTempUsageDetail_20' ) start [2025-01-23 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313947', 'tblTempUsageDetail_20' ) end [2025-01-23 17:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:48:30] Production.INFO: ==22974== Releasing lock... [2025-01-23 17:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:48:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:49:05 [end_date_ymd] => 2025-01-23 17:49:05 [RateCDR] => 1 ) [2025-01-23 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:49:05' and `end` < '2025-01-23 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:49:29] Production.INFO: count ==5009 [2025-01-23 17:49:31] Production.ERROR: pbx CDR StartTime 2025-01-23 14:49:05 - End Time 2025-01-23 17:49:05 [2025-01-23 17:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313952', 'tblTempUsageDetail_20' ) start [2025-01-23 17:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313952', 'tblTempUsageDetail_20' ) end [2025-01-23 17:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313952', 'tblTempVendorCDR_20' ) start [2025-01-23 17:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313952', 'tblTempVendorCDR_20' ) end [2025-01-23 17:49:31] Production.INFO: ProcessCDR(1,14313952,1,1,2) [2025-01-23 17:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313952', 'tblTempUsageDetail_20' ) start [2025-01-23 17:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313952', 'tblTempUsageDetail_20' ) end [2025-01-23 17:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:49:36] Production.INFO: ==23053== Releasing lock... [2025-01-23 17:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:49:36] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:50:07 [end_date_ymd] => 2025-01-23 17:50:07 [RateCDR] => 1 ) [2025-01-23 17:50: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-23 14:50:07' and `end` < '2025-01-23 17:50: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-23 17:50:28] Production.INFO: count ==5012 [2025-01-23 17:50:30] Production.ERROR: pbx CDR StartTime 2025-01-23 14:50:07 - End Time 2025-01-23 17:50:07 [2025-01-23 17:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313958', 'tblTempUsageDetail_20' ) start [2025-01-23 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313958', 'tblTempUsageDetail_20' ) end [2025-01-23 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313958', 'tblTempVendorCDR_20' ) start [2025-01-23 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313958', 'tblTempVendorCDR_20' ) end [2025-01-23 17:50:30] Production.INFO: ProcessCDR(1,14313958,1,1,2) [2025-01-23 17:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313958', 'tblTempUsageDetail_20' ) start [2025-01-23 17:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313958', 'tblTempUsageDetail_20' ) end [2025-01-23 17:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:50:35] Production.INFO: ==23132== Releasing lock... [2025-01-23 17:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:50:35] Production.INFO: 65.5 MB #Memory Used# [2025-01-23 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:51:05 [end_date_ymd] => 2025-01-23 17:51:05 [RateCDR] => 1 ) [2025-01-23 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:51:05' and `end` < '2025-01-23 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:51:23] Production.INFO: count ==4953 [2025-01-23 17:51:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:51:05 - End Time 2025-01-23 17:51:05 [2025-01-23 17:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313963', 'tblTempUsageDetail_20' ) start [2025-01-23 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313963', 'tblTempUsageDetail_20' ) end [2025-01-23 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313963', 'tblTempVendorCDR_20' ) start [2025-01-23 17:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313963', 'tblTempVendorCDR_20' ) end [2025-01-23 17:51:25] Production.INFO: ProcessCDR(1,14313963,1,1,2) [2025-01-23 17:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313963', 'tblTempUsageDetail_20' ) start [2025-01-23 17:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313963', 'tblTempUsageDetail_20' ) end [2025-01-23 17:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:51:30] Production.INFO: ==23209== Releasing lock... [2025-01-23 17:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:51:30] Production.INFO: 65 MB #Memory Used# [2025-01-23 17:52:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:52:07 [end_date_ymd] => 2025-01-23 17:52:07 [RateCDR] => 1 ) [2025-01-23 17:52: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-23 14:52:07' and `end` < '2025-01-23 17:52: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-23 17:52:22] Production.INFO: count ==4947 [2025-01-23 17:52:23] Production.ERROR: pbx CDR StartTime 2025-01-23 14:52:07 - End Time 2025-01-23 17:52:07 [2025-01-23 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313968', 'tblTempUsageDetail_20' ) start [2025-01-23 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313968', 'tblTempUsageDetail_20' ) end [2025-01-23 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313968', 'tblTempVendorCDR_20' ) start [2025-01-23 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313968', 'tblTempVendorCDR_20' ) end [2025-01-23 17:52:23] Production.INFO: ProcessCDR(1,14313968,1,1,2) [2025-01-23 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313968', 'tblTempUsageDetail_20' ) start [2025-01-23 17:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313968', 'tblTempUsageDetail_20' ) end [2025-01-23 17:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:52:29] Production.INFO: ==23286== Releasing lock... [2025-01-23 17:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:52:29] Production.INFO: 65 MB #Memory Used# [2025-01-23 17:53:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:53:07 [end_date_ymd] => 2025-01-23 17:53:07 [RateCDR] => 1 ) [2025-01-23 17:53: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-23 14:53:07' and `end` < '2025-01-23 17:53: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-23 17:53:22] Production.INFO: count ==4949 [2025-01-23 17:53:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:53:07 - End Time 2025-01-23 17:53:07 [2025-01-23 17:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313973', 'tblTempUsageDetail_20' ) start [2025-01-23 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313973', 'tblTempUsageDetail_20' ) end [2025-01-23 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313973', 'tblTempVendorCDR_20' ) start [2025-01-23 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313973', 'tblTempVendorCDR_20' ) end [2025-01-23 17:53:24] Production.INFO: ProcessCDR(1,14313973,1,1,2) [2025-01-23 17:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313973', 'tblTempUsageDetail_20' ) start [2025-01-23 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313973', 'tblTempUsageDetail_20' ) end [2025-01-23 17:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:53:29] Production.INFO: ==23359== Releasing lock... [2025-01-23 17:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:53:29] Production.INFO: 65 MB #Memory Used# [2025-01-23 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:54:05 [end_date_ymd] => 2025-01-23 17:54:05 [RateCDR] => 1 ) [2025-01-23 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 14:54:05' and `end` < '2025-01-23 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 17:54:22] Production.INFO: count ==4947 [2025-01-23 17:54:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:54:05 - End Time 2025-01-23 17:54:05 [2025-01-23 17:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313978', 'tblTempUsageDetail_20' ) start [2025-01-23 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313978', 'tblTempUsageDetail_20' ) end [2025-01-23 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313978', 'tblTempVendorCDR_20' ) start [2025-01-23 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313978', 'tblTempVendorCDR_20' ) end [2025-01-23 17:54:24] Production.INFO: ProcessCDR(1,14313978,1,1,2) [2025-01-23 17:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313978', 'tblTempUsageDetail_20' ) start [2025-01-23 17:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313978', 'tblTempUsageDetail_20' ) end [2025-01-23 17:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:54:29] Production.INFO: ==23439== Releasing lock... [2025-01-23 17:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:54:29] Production.INFO: 65 MB #Memory Used# [2025-01-23 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:55:05 [end_date_ymd] => 2025-01-23 17:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:55:05' and `end` < '2025-01-23 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-23 17:55:23] Production.INFO: count ==4957 [2025-01-23 17:55:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:55:05 - End Time 2025-01-23 17:55:05 [2025-01-23 17:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313983', 'tblTempUsageDetail_20' ) start [2025-01-23 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313983', 'tblTempUsageDetail_20' ) end [2025-01-23 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313983', 'tblTempVendorCDR_20' ) start [2025-01-23 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313983', 'tblTempVendorCDR_20' ) end [2025-01-23 17:55:25] Production.INFO: ProcessCDR(1,14313983,1,1,2) [2025-01-23 17:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313983', 'tblTempUsageDetail_20' ) start [2025-01-23 17:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313983', 'tblTempUsageDetail_20' ) end [2025-01-23 17:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:55:29] Production.INFO: ==23524== Releasing lock... [2025-01-23 17:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:55:29] Production.INFO: 65 MB #Memory Used# [2025-01-23 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:56:06 [end_date_ymd] => 2025-01-23 17:56:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:56:06' and `end` < '2025-01-23 17: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-23 17:56:19] Production.INFO: count ==4961 [2025-01-23 17:56:21] Production.ERROR: pbx CDR StartTime 2025-01-23 14:56:06 - End Time 2025-01-23 17:56:06 [2025-01-23 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313988', 'tblTempUsageDetail_20' ) start [2025-01-23 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313988', 'tblTempUsageDetail_20' ) end [2025-01-23 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313988', 'tblTempVendorCDR_20' ) start [2025-01-23 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313988', 'tblTempVendorCDR_20' ) end [2025-01-23 17:56:21] Production.INFO: ProcessCDR(1,14313988,1,1,2) [2025-01-23 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313988', 'tblTempUsageDetail_20' ) start [2025-01-23 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313988', 'tblTempUsageDetail_20' ) end [2025-01-23 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:56:25] Production.INFO: ==23613== Releasing lock... [2025-01-23 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:56:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-23 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:57:05 [end_date_ymd] => 2025-01-23 17:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:57:05' and `end` < '2025-01-23 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-23 17:57:22] Production.INFO: count ==4963 [2025-01-23 17:57:24] Production.ERROR: pbx CDR StartTime 2025-01-23 14:57:05 - End Time 2025-01-23 17:57:05 [2025-01-23 17:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313993', 'tblTempUsageDetail_20' ) start [2025-01-23 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313993', 'tblTempUsageDetail_20' ) end [2025-01-23 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313993', 'tblTempVendorCDR_20' ) start [2025-01-23 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313993', 'tblTempVendorCDR_20' ) end [2025-01-23 17:57:24] Production.INFO: ProcessCDR(1,14313993,1,1,2) [2025-01-23 17:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313993', 'tblTempUsageDetail_20' ) start [2025-01-23 17:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313993', 'tblTempUsageDetail_20' ) end [2025-01-23 17:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:57:29] Production.INFO: ==23726== Releasing lock... [2025-01-23 17:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:57:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-23 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:58:06 [end_date_ymd] => 2025-01-23 17:58:06 [RateCDR] => 1 ) [2025-01-23 17: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-23 14:58:06' and `end` < '2025-01-23 17: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-23 17:58:24] Production.INFO: count ==4980 [2025-01-23 17:58:25] Production.ERROR: pbx CDR StartTime 2025-01-23 14:58:06 - End Time 2025-01-23 17:58:06 [2025-01-23 17:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313998', 'tblTempUsageDetail_20' ) start [2025-01-23 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14313998', 'tblTempUsageDetail_20' ) end [2025-01-23 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313998', 'tblTempVendorCDR_20' ) start [2025-01-23 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14313998', 'tblTempVendorCDR_20' ) end [2025-01-23 17:58:25] Production.INFO: ProcessCDR(1,14313998,1,1,2) [2025-01-23 17:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14313998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14313998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14313998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14313998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313998', 'tblTempUsageDetail_20' ) start [2025-01-23 17:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14313998', 'tblTempUsageDetail_20' ) end [2025-01-23 17:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:58:31] Production.INFO: ==23804== Releasing lock... [2025-01-23 17:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:58:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-23 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 14:59:05 [end_date_ymd] => 2025-01-23 17:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 14:59:05' and `end` < '2025-01-23 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-23 17:59:20] Production.INFO: count ==4968 [2025-01-23 17:59:22] Production.ERROR: pbx CDR StartTime 2025-01-23 14:59:05 - End Time 2025-01-23 17:59:05 [2025-01-23 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314003', 'tblTempUsageDetail_20' ) start [2025-01-23 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314003', 'tblTempUsageDetail_20' ) end [2025-01-23 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314003', 'tblTempVendorCDR_20' ) start [2025-01-23 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314003', 'tblTempVendorCDR_20' ) end [2025-01-23 17:59:22] Production.INFO: ProcessCDR(1,14314003,1,1,2) [2025-01-23 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314003', 'tblTempUsageDetail_20' ) start [2025-01-23 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314003', 'tblTempUsageDetail_20' ) end [2025-01-23 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 17:59:27] Production.INFO: ==23882== Releasing lock... [2025-01-23 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 17:59:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-23 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:00:06 [end_date_ymd] => 2025-01-23 18:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 15:00:06' and `end` < '2025-01-23 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-23 18:00:20] Production.INFO: count ==4949 [2025-01-23 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:00:06 - End Time 2025-01-23 18:00:06 [2025-01-23 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314009', 'tblTempUsageDetail_20' ) start [2025-01-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314009', 'tblTempUsageDetail_20' ) end [2025-01-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314009', 'tblTempVendorCDR_20' ) start [2025-01-23 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314009', 'tblTempVendorCDR_20' ) end [2025-01-23 18:00:22] Production.INFO: ProcessCDR(1,14314009,1,1,2) [2025-01-23 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314009', 'tblTempUsageDetail_20' ) start [2025-01-23 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314009', 'tblTempUsageDetail_20' ) end [2025-01-23 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:00:27] Production.INFO: ==23960== Releasing lock... [2025-01-23 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:00:27] Production.INFO: 65 MB #Memory Used# [2025-01-23 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:01:05 [end_date_ymd] => 2025-01-23 18:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:01:05' and `end` < '2025-01-23 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-23 18:01:18] Production.INFO: count ==4888 [2025-01-23 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:01:05 - End Time 2025-01-23 18:01:05 [2025-01-23 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314014', 'tblTempUsageDetail_20' ) start [2025-01-23 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314014', 'tblTempUsageDetail_20' ) end [2025-01-23 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314014', 'tblTempVendorCDR_20' ) start [2025-01-23 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314014', 'tblTempVendorCDR_20' ) end [2025-01-23 18:01:20] Production.INFO: ProcessCDR(1,14314014,1,1,2) [2025-01-23 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314014', 'tblTempUsageDetail_20' ) start [2025-01-23 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314014', 'tblTempUsageDetail_20' ) end [2025-01-23 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:01:23] Production.INFO: ==24071== Releasing lock... [2025-01-23 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:01:23] Production.INFO: 64.5 MB #Memory Used# [2025-01-23 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:02:05 [end_date_ymd] => 2025-01-23 18:02:05 [RateCDR] => 1 ) [2025-01-23 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:02:05' and `end` < '2025-01-23 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:02:24] Production.INFO: count ==4865 [2025-01-23 18:02:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:02:05 - End Time 2025-01-23 18:02:05 [2025-01-23 18:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314019', 'tblTempUsageDetail_20' ) start [2025-01-23 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314019', 'tblTempUsageDetail_20' ) end [2025-01-23 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314019', 'tblTempVendorCDR_20' ) start [2025-01-23 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314019', 'tblTempVendorCDR_20' ) end [2025-01-23 18:02:26] Production.INFO: ProcessCDR(1,14314019,1,1,2) [2025-01-23 18:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314019', 'tblTempUsageDetail_20' ) start [2025-01-23 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314019', 'tblTempUsageDetail_20' ) end [2025-01-23 18:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:02:29] Production.INFO: ==24166== Releasing lock... [2025-01-23 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:02:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-23 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:03:05 [end_date_ymd] => 2025-01-23 18:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:03:05' and `end` < '2025-01-23 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-23 18:03:22] Production.INFO: count ==4856 [2025-01-23 18:03:24] Production.ERROR: pbx CDR StartTime 2025-01-23 15:03:05 - End Time 2025-01-23 18:03:05 [2025-01-23 18:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314024', 'tblTempUsageDetail_20' ) start [2025-01-23 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314024', 'tblTempUsageDetail_20' ) end [2025-01-23 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314024', 'tblTempVendorCDR_20' ) start [2025-01-23 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314024', 'tblTempVendorCDR_20' ) end [2025-01-23 18:03:24] Production.INFO: ProcessCDR(1,14314024,1,1,2) [2025-01-23 18:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314024', 'tblTempUsageDetail_20' ) start [2025-01-23 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314024', 'tblTempUsageDetail_20' ) end [2025-01-23 18:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:03:29] Production.INFO: ==24262== Releasing lock... [2025-01-23 18:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:03:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:04:05 [end_date_ymd] => 2025-01-23 18:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:04:05' and `end` < '2025-01-23 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-23 18:04:20] Production.INFO: count ==4847 [2025-01-23 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:04:05 - End Time 2025-01-23 18:04:05 [2025-01-23 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314029', 'tblTempUsageDetail_20' ) start [2025-01-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314029', 'tblTempUsageDetail_20' ) end [2025-01-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314029', 'tblTempVendorCDR_20' ) start [2025-01-23 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314029', 'tblTempVendorCDR_20' ) end [2025-01-23 18:04:21] Production.INFO: ProcessCDR(1,14314029,1,1,2) [2025-01-23 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314029', 'tblTempUsageDetail_20' ) start [2025-01-23 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314029', 'tblTempUsageDetail_20' ) end [2025-01-23 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:04:25] Production.INFO: ==24358== Releasing lock... [2025-01-23 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:04:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:05:05 [end_date_ymd] => 2025-01-23 18:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:05:05' and `end` < '2025-01-23 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-23 18:05:19] Production.INFO: count ==4851 [2025-01-23 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:05:05 - End Time 2025-01-23 18:05:05 [2025-01-23 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314034', 'tblTempUsageDetail_20' ) start [2025-01-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314034', 'tblTempUsageDetail_20' ) end [2025-01-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314034', 'tblTempVendorCDR_20' ) start [2025-01-23 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314034', 'tblTempVendorCDR_20' ) end [2025-01-23 18:05:21] Production.INFO: ProcessCDR(1,14314034,1,1,2) [2025-01-23 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314034', 'tblTempUsageDetail_20' ) start [2025-01-23 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314034', 'tblTempUsageDetail_20' ) end [2025-01-23 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:05:26] Production.INFO: ==24457== Releasing lock... [2025-01-23 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:06:06 [end_date_ymd] => 2025-01-23 18:06:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:06:06' and `end` < '2025-01-23 18: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-23 18:06:19] Production.INFO: count ==4835 [2025-01-23 18:06:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:06:06 - End Time 2025-01-23 18:06:06 [2025-01-23 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314039', 'tblTempUsageDetail_20' ) start [2025-01-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314039', 'tblTempUsageDetail_20' ) end [2025-01-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314039', 'tblTempVendorCDR_20' ) start [2025-01-23 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314039', 'tblTempVendorCDR_20' ) end [2025-01-23 18:06:21] Production.INFO: ProcessCDR(1,14314039,1,1,2) [2025-01-23 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314039', 'tblTempUsageDetail_20' ) start [2025-01-23 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314039', 'tblTempUsageDetail_20' ) end [2025-01-23 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:06:25] Production.INFO: ==24558== Releasing lock... [2025-01-23 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:06:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:07:05 [end_date_ymd] => 2025-01-23 18:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:07:05' and `end` < '2025-01-23 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-23 18:07:18] Production.INFO: count ==4840 [2025-01-23 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:07:05 - End Time 2025-01-23 18:07:05 [2025-01-23 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314044', 'tblTempUsageDetail_20' ) start [2025-01-23 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314044', 'tblTempUsageDetail_20' ) end [2025-01-23 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314044', 'tblTempVendorCDR_20' ) start [2025-01-23 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314044', 'tblTempVendorCDR_20' ) end [2025-01-23 18:07:20] Production.INFO: ProcessCDR(1,14314044,1,1,2) [2025-01-23 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314044', 'tblTempUsageDetail_20' ) start [2025-01-23 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314044', 'tblTempUsageDetail_20' ) end [2025-01-23 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:07:26] Production.INFO: ==24655== Releasing lock... [2025-01-23 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:07:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:08:05 [end_date_ymd] => 2025-01-23 18:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:08:05' and `end` < '2025-01-23 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-23 18:08:20] Production.INFO: count ==4836 [2025-01-23 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:08:05 - End Time 2025-01-23 18:08:05 [2025-01-23 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314049', 'tblTempUsageDetail_20' ) start [2025-01-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314049', 'tblTempUsageDetail_20' ) end [2025-01-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314049', 'tblTempVendorCDR_20' ) start [2025-01-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314049', 'tblTempVendorCDR_20' ) end [2025-01-23 18:08:22] Production.INFO: ProcessCDR(1,14314049,1,1,2) [2025-01-23 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314049', 'tblTempUsageDetail_20' ) start [2025-01-23 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314049', 'tblTempUsageDetail_20' ) end [2025-01-23 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:08:27] Production.INFO: ==24752== Releasing lock... [2025-01-23 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:08:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:09:05 [end_date_ymd] => 2025-01-23 18:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:09:05' and `end` < '2025-01-23 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-23 18:09:18] Production.INFO: count ==4833 [2025-01-23 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:09:05 - End Time 2025-01-23 18:09:05 [2025-01-23 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314054', 'tblTempUsageDetail_20' ) start [2025-01-23 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314054', 'tblTempUsageDetail_20' ) end [2025-01-23 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314054', 'tblTempVendorCDR_20' ) start [2025-01-23 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314054', 'tblTempVendorCDR_20' ) end [2025-01-23 18:09:20] Production.INFO: ProcessCDR(1,14314054,1,1,2) [2025-01-23 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314054', 'tblTempUsageDetail_20' ) start [2025-01-23 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314054', 'tblTempUsageDetail_20' ) end [2025-01-23 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:09:25] Production.INFO: ==24851== Releasing lock... [2025-01-23 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:09:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-23 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:10:07 [end_date_ymd] => 2025-01-23 18:10:07 [RateCDR] => 1 ) [2025-01-23 18:10: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-23 15:10:07' and `end` < '2025-01-23 18:10: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-23 18:10:25] Production.INFO: count ==4817 [2025-01-23 18:10:27] Production.ERROR: pbx CDR StartTime 2025-01-23 15:10:07 - End Time 2025-01-23 18:10:07 [2025-01-23 18:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314060', 'tblTempUsageDetail_20' ) start [2025-01-23 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314060', 'tblTempUsageDetail_20' ) end [2025-01-23 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314060', 'tblTempVendorCDR_20' ) start [2025-01-23 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314060', 'tblTempVendorCDR_20' ) end [2025-01-23 18:10:27] Production.INFO: ProcessCDR(1,14314060,1,1,2) [2025-01-23 18:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314060', 'tblTempUsageDetail_20' ) start [2025-01-23 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314060', 'tblTempUsageDetail_20' ) end [2025-01-23 18:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:10:31] Production.INFO: ==24950== Releasing lock... [2025-01-23 18:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:10:31] Production.INFO: 64 MB #Memory Used# [2025-01-23 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:11:05 [end_date_ymd] => 2025-01-23 18:11:05 [RateCDR] => 1 ) [2025-01-23 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:11:05' and `end` < '2025-01-23 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:11:21] Production.INFO: count ==4773 [2025-01-23 18:11:23] Production.ERROR: pbx CDR StartTime 2025-01-23 15:11:05 - End Time 2025-01-23 18:11:05 [2025-01-23 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314065', 'tblTempUsageDetail_20' ) start [2025-01-23 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314065', 'tblTempUsageDetail_20' ) end [2025-01-23 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314065', 'tblTempVendorCDR_20' ) start [2025-01-23 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314065', 'tblTempVendorCDR_20' ) end [2025-01-23 18:11:23] Production.INFO: ProcessCDR(1,14314065,1,1,2) [2025-01-23 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314065', 'tblTempUsageDetail_20' ) start [2025-01-23 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314065', 'tblTempUsageDetail_20' ) end [2025-01-23 18:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:11:28] Production.INFO: ==25052== Releasing lock... [2025-01-23 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:11:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-23 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:12:06 [end_date_ymd] => 2025-01-23 18:12:06 [RateCDR] => 1 ) [2025-01-23 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-23 15:12:06' and `end` < '2025-01-23 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-23 18:12:21] Production.INFO: count ==4752 [2025-01-23 18:12:23] Production.ERROR: pbx CDR StartTime 2025-01-23 15:12:06 - End Time 2025-01-23 18:12:06 [2025-01-23 18:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314070', 'tblTempUsageDetail_20' ) start [2025-01-23 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314070', 'tblTempUsageDetail_20' ) end [2025-01-23 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314070', 'tblTempVendorCDR_20' ) start [2025-01-23 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314070', 'tblTempVendorCDR_20' ) end [2025-01-23 18:12:23] Production.INFO: ProcessCDR(1,14314070,1,1,2) [2025-01-23 18:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314070', 'tblTempUsageDetail_20' ) start [2025-01-23 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314070', 'tblTempUsageDetail_20' ) end [2025-01-23 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:12:27] Production.INFO: ==25189== Releasing lock... [2025-01-23 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:12:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-23 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:13:05 [end_date_ymd] => 2025-01-23 18:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:13:05' and `end` < '2025-01-23 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-23 18:13:19] Production.INFO: count ==4743 [2025-01-23 18:13:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:13:05 - End Time 2025-01-23 18:13:05 [2025-01-23 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314075', 'tblTempUsageDetail_20' ) start [2025-01-23 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314075', 'tblTempUsageDetail_20' ) end [2025-01-23 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314075', 'tblTempVendorCDR_20' ) start [2025-01-23 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314075', 'tblTempVendorCDR_20' ) end [2025-01-23 18:13:21] Production.INFO: ProcessCDR(1,14314075,1,1,2) [2025-01-23 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314075', 'tblTempUsageDetail_20' ) start [2025-01-23 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314075', 'tblTempUsageDetail_20' ) end [2025-01-23 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:13:26] Production.INFO: ==25289== Releasing lock... [2025-01-23 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:13:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-23 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:14:06 [end_date_ymd] => 2025-01-23 18:14:06 [RateCDR] => 1 ) [2025-01-23 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:14:06' and `end` < '2025-01-23 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:14:23] Production.INFO: count ==4733 [2025-01-23 18:14:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:14:06 - End Time 2025-01-23 18:14:06 [2025-01-23 18:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314080', 'tblTempUsageDetail_20' ) start [2025-01-23 18:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314080', 'tblTempUsageDetail_20' ) end [2025-01-23 18:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314080', 'tblTempVendorCDR_20' ) start [2025-01-23 18:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314080', 'tblTempVendorCDR_20' ) end [2025-01-23 18:14:25] Production.INFO: ProcessCDR(1,14314080,1,1,2) [2025-01-23 18:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314080', 'tblTempUsageDetail_20' ) start [2025-01-23 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314080', 'tblTempUsageDetail_20' ) end [2025-01-23 18:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:14:28] Production.INFO: ==25393== Releasing lock... [2025-01-23 18:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:14:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-23 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:15:05 [end_date_ymd] => 2025-01-23 18:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:15:05' and `end` < '2025-01-23 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-23 18:15:24] Production.INFO: count ==4729 [2025-01-23 18:15:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:15:05 - End Time 2025-01-23 18:15:05 [2025-01-23 18:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314085', 'tblTempUsageDetail_20' ) start [2025-01-23 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314085', 'tblTempUsageDetail_20' ) end [2025-01-23 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314085', 'tblTempVendorCDR_20' ) start [2025-01-23 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314085', 'tblTempVendorCDR_20' ) end [2025-01-23 18:15:26] Production.INFO: ProcessCDR(1,14314085,1,1,2) [2025-01-23 18:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314085', 'tblTempUsageDetail_20' ) start [2025-01-23 18:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314085', 'tblTempUsageDetail_20' ) end [2025-01-23 18:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:15:31] Production.INFO: ==25494== Releasing lock... [2025-01-23 18:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:15:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-23 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:16:06 [end_date_ymd] => 2025-01-23 18:16:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:16:06' and `end` < '2025-01-23 18: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-23 18:16:21] Production.INFO: count ==4703 [2025-01-23 18:16:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:16:06 - End Time 2025-01-23 18:16:06 [2025-01-23 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314090', 'tblTempUsageDetail_20' ) start [2025-01-23 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314090', 'tblTempUsageDetail_20' ) end [2025-01-23 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314090', 'tblTempVendorCDR_20' ) start [2025-01-23 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314090', 'tblTempVendorCDR_20' ) end [2025-01-23 18:16:23] Production.INFO: ProcessCDR(1,14314090,1,1,2) [2025-01-23 18:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314090', 'tblTempUsageDetail_20' ) start [2025-01-23 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314090', 'tblTempUsageDetail_20' ) end [2025-01-23 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:16:27] Production.INFO: ==25591== Releasing lock... [2025-01-23 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:16:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-23 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:17:05 [end_date_ymd] => 2025-01-23 18:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:17:05' and `end` < '2025-01-23 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-23 18:17:20] Production.INFO: count ==4688 [2025-01-23 18:17:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:17:05 - End Time 2025-01-23 18:17:05 [2025-01-23 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314095', 'tblTempUsageDetail_20' ) start [2025-01-23 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314095', 'tblTempUsageDetail_20' ) end [2025-01-23 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314095', 'tblTempVendorCDR_20' ) start [2025-01-23 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314095', 'tblTempVendorCDR_20' ) end [2025-01-23 18:17:22] Production.INFO: ProcessCDR(1,14314095,1,1,2) [2025-01-23 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314095', 'tblTempUsageDetail_20' ) start [2025-01-23 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314095', 'tblTempUsageDetail_20' ) end [2025-01-23 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:17:27] Production.INFO: ==25691== Releasing lock... [2025-01-23 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:17:27] Production.INFO: 63 MB #Memory Used# [2025-01-23 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:18:05 [end_date_ymd] => 2025-01-23 18:18:05 [RateCDR] => 1 ) [2025-01-23 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:18:05' and `end` < '2025-01-23 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:18:21] Production.INFO: count ==4680 [2025-01-23 18:18:23] Production.ERROR: pbx CDR StartTime 2025-01-23 15:18:05 - End Time 2025-01-23 18:18:05 [2025-01-23 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314100', 'tblTempUsageDetail_20' ) start [2025-01-23 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314100', 'tblTempUsageDetail_20' ) end [2025-01-23 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314100', 'tblTempVendorCDR_20' ) start [2025-01-23 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314100', 'tblTempVendorCDR_20' ) end [2025-01-23 18:18:23] Production.INFO: ProcessCDR(1,14314100,1,1,2) [2025-01-23 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314100', 'tblTempUsageDetail_20' ) start [2025-01-23 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314100', 'tblTempUsageDetail_20' ) end [2025-01-23 18:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:18:28] Production.INFO: ==25794== Releasing lock... [2025-01-23 18:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:18:28] Production.INFO: 63 MB #Memory Used# [2025-01-23 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:19:05 [end_date_ymd] => 2025-01-23 18:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:19:05' and `end` < '2025-01-23 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-23 18:19:18] Production.INFO: count ==4673 [2025-01-23 18:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:19:05 - End Time 2025-01-23 18:19:05 [2025-01-23 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314105', 'tblTempUsageDetail_20' ) start [2025-01-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314105', 'tblTempUsageDetail_20' ) end [2025-01-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314105', 'tblTempVendorCDR_20' ) start [2025-01-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314105', 'tblTempVendorCDR_20' ) end [2025-01-23 18:19:19] Production.INFO: ProcessCDR(1,14314105,1,1,2) [2025-01-23 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314105', 'tblTempUsageDetail_20' ) start [2025-01-23 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314105', 'tblTempUsageDetail_20' ) end [2025-01-23 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:19:23] Production.INFO: ==25887== Releasing lock... [2025-01-23 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:19:23] Production.INFO: 63 MB #Memory Used# [2025-01-23 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:20:07 [end_date_ymd] => 2025-01-23 18:20:07 [RateCDR] => 1 ) [2025-01-23 18:20: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-23 15:20:07' and `end` < '2025-01-23 18:20: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-23 18:20:20] Production.INFO: count ==4661 [2025-01-23 18:20:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:20:07 - End Time 2025-01-23 18:20:07 [2025-01-23 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314111', 'tblTempUsageDetail_20' ) start [2025-01-23 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314111', 'tblTempUsageDetail_20' ) end [2025-01-23 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314111', 'tblTempVendorCDR_20' ) start [2025-01-23 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314111', 'tblTempVendorCDR_20' ) end [2025-01-23 18:20:22] Production.INFO: ProcessCDR(1,14314111,1,1,2) [2025-01-23 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314111', 'tblTempUsageDetail_20' ) start [2025-01-23 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314111', 'tblTempUsageDetail_20' ) end [2025-01-23 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:20:25] Production.INFO: ==25993== Releasing lock... [2025-01-23 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:20:25] Production.INFO: 63 MB #Memory Used# [2025-01-23 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:21:06 [end_date_ymd] => 2025-01-23 18:21:06 [RateCDR] => 1 ) [2025-01-23 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:21:06' and `end` < '2025-01-23 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:21:19] Production.INFO: count ==4578 [2025-01-23 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:21:06 - End Time 2025-01-23 18:21:06 [2025-01-23 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314116', 'tblTempUsageDetail_20' ) start [2025-01-23 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314116', 'tblTempUsageDetail_20' ) end [2025-01-23 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314116', 'tblTempVendorCDR_20' ) start [2025-01-23 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314116', 'tblTempVendorCDR_20' ) end [2025-01-23 18:21:21] Production.INFO: ProcessCDR(1,14314116,1,1,2) [2025-01-23 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314116', 'tblTempUsageDetail_20' ) start [2025-01-23 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314116', 'tblTempUsageDetail_20' ) end [2025-01-23 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:21:24] Production.INFO: ==26088== Releasing lock... [2025-01-23 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:21:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-23 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:22:06 [end_date_ymd] => 2025-01-23 18:22:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:22:06' and `end` < '2025-01-23 18: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-23 18:22:19] Production.INFO: count ==4564 [2025-01-23 18:22:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:22:06 - End Time 2025-01-23 18:22:06 [2025-01-23 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314121', 'tblTempUsageDetail_20' ) start [2025-01-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314121', 'tblTempUsageDetail_20' ) end [2025-01-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314121', 'tblTempVendorCDR_20' ) start [2025-01-23 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314121', 'tblTempVendorCDR_20' ) end [2025-01-23 18:22:21] Production.INFO: ProcessCDR(1,14314121,1,1,2) [2025-01-23 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314121', 'tblTempUsageDetail_20' ) start [2025-01-23 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314121', 'tblTempUsageDetail_20' ) end [2025-01-23 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:22:24] Production.INFO: ==26190== Releasing lock... [2025-01-23 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:22:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-23 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:23:06 [end_date_ymd] => 2025-01-23 18:23:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:23:06' and `end` < '2025-01-23 18: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-23 18:23:21] Production.INFO: count ==4533 [2025-01-23 18:23:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:23:06 - End Time 2025-01-23 18:23:06 [2025-01-23 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314126', 'tblTempUsageDetail_20' ) start [2025-01-23 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314126', 'tblTempUsageDetail_20' ) end [2025-01-23 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314126', 'tblTempVendorCDR_20' ) start [2025-01-23 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314126', 'tblTempVendorCDR_20' ) end [2025-01-23 18:23:22] Production.INFO: ProcessCDR(1,14314126,1,1,2) [2025-01-23 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314126', 'tblTempUsageDetail_20' ) start [2025-01-23 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314126', 'tblTempUsageDetail_20' ) end [2025-01-23 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:23:25] Production.INFO: ==26291== Releasing lock... [2025-01-23 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:23:25] Production.INFO: 62 MB #Memory Used# [2025-01-23 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:24:06 [end_date_ymd] => 2025-01-23 18:24:06 [RateCDR] => 1 ) [2025-01-23 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:24:06' and `end` < '2025-01-23 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:24:20] Production.INFO: count ==4512 [2025-01-23 18:24:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:24:06 - End Time 2025-01-23 18:24:06 [2025-01-23 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314131', 'tblTempUsageDetail_20' ) start [2025-01-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314131', 'tblTempUsageDetail_20' ) end [2025-01-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314131', 'tblTempVendorCDR_20' ) start [2025-01-23 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314131', 'tblTempVendorCDR_20' ) end [2025-01-23 18:24:21] Production.INFO: ProcessCDR(1,14314131,1,1,2) [2025-01-23 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314131', 'tblTempUsageDetail_20' ) start [2025-01-23 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314131', 'tblTempUsageDetail_20' ) end [2025-01-23 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:24:25] Production.INFO: ==26388== Releasing lock... [2025-01-23 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:24:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-23 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:25:06 [end_date_ymd] => 2025-01-23 18:25:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:25:06' and `end` < '2025-01-23 18: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-23 18:25:19] Production.INFO: count ==4495 [2025-01-23 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:25:06 - End Time 2025-01-23 18:25:06 [2025-01-23 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314136', 'tblTempUsageDetail_20' ) start [2025-01-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314136', 'tblTempUsageDetail_20' ) end [2025-01-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314136', 'tblTempVendorCDR_20' ) start [2025-01-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314136', 'tblTempVendorCDR_20' ) end [2025-01-23 18:25:21] Production.INFO: ProcessCDR(1,14314136,1,1,2) [2025-01-23 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314136', 'tblTempUsageDetail_20' ) start [2025-01-23 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314136', 'tblTempUsageDetail_20' ) end [2025-01-23 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:25:24] Production.INFO: ==26480== Releasing lock... [2025-01-23 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:25:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-23 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:26:05 [end_date_ymd] => 2025-01-23 18:26:05 [RateCDR] => 1 ) [2025-01-23 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:26:05' and `end` < '2025-01-23 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:26:19] Production.INFO: count ==4482 [2025-01-23 18:26:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:26:05 - End Time 2025-01-23 18:26:05 [2025-01-23 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314141', 'tblTempUsageDetail_20' ) start [2025-01-23 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314141', 'tblTempUsageDetail_20' ) end [2025-01-23 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314141', 'tblTempVendorCDR_20' ) start [2025-01-23 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314141', 'tblTempVendorCDR_20' ) end [2025-01-23 18:26:21] Production.INFO: ProcessCDR(1,14314141,1,1,2) [2025-01-23 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314141', 'tblTempUsageDetail_20' ) start [2025-01-23 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314141', 'tblTempUsageDetail_20' ) end [2025-01-23 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:26:26] Production.INFO: ==26559== Releasing lock... [2025-01-23 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:26:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:27:05 [end_date_ymd] => 2025-01-23 18:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:27:05' and `end` < '2025-01-23 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-23 18:27:21] Production.INFO: count ==4472 [2025-01-23 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:27:05 - End Time 2025-01-23 18:27:05 [2025-01-23 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314146', 'tblTempUsageDetail_20' ) start [2025-01-23 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314146', 'tblTempUsageDetail_20' ) end [2025-01-23 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314146', 'tblTempVendorCDR_20' ) start [2025-01-23 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314146', 'tblTempVendorCDR_20' ) end [2025-01-23 18:27:22] Production.INFO: ProcessCDR(1,14314146,1,1,2) [2025-01-23 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314146', 'tblTempUsageDetail_20' ) start [2025-01-23 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314146', 'tblTempUsageDetail_20' ) end [2025-01-23 18:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:27:26] Production.INFO: ==26682== Releasing lock... [2025-01-23 18:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:27:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:28:06 [end_date_ymd] => 2025-01-23 18:28:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:28:06' and `end` < '2025-01-23 18: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-23 18:28:19] Production.INFO: count ==4470 [2025-01-23 18:28:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:28:06 - End Time 2025-01-23 18:28:06 [2025-01-23 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314151', 'tblTempUsageDetail_20' ) start [2025-01-23 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314151', 'tblTempUsageDetail_20' ) end [2025-01-23 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314151', 'tblTempVendorCDR_20' ) start [2025-01-23 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314151', 'tblTempVendorCDR_20' ) end [2025-01-23 18:28:21] Production.INFO: ProcessCDR(1,14314151,1,1,2) [2025-01-23 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314151', 'tblTempUsageDetail_20' ) start [2025-01-23 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314151', 'tblTempUsageDetail_20' ) end [2025-01-23 18:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:28:26] Production.INFO: ==26758== Releasing lock... [2025-01-23 18:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:28:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 18:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:29:06 [end_date_ymd] => 2025-01-23 18:29:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:29:06' and `end` < '2025-01-23 18: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-23 18:29:19] Production.INFO: count ==4472 [2025-01-23 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:29:06 - End Time 2025-01-23 18:29:06 [2025-01-23 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314156', 'tblTempUsageDetail_20' ) start [2025-01-23 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314156', 'tblTempUsageDetail_20' ) end [2025-01-23 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314156', 'tblTempVendorCDR_20' ) start [2025-01-23 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314156', 'tblTempVendorCDR_20' ) end [2025-01-23 18:29:20] Production.INFO: ProcessCDR(1,14314156,1,1,2) [2025-01-23 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314156', 'tblTempUsageDetail_20' ) start [2025-01-23 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314156', 'tblTempUsageDetail_20' ) end [2025-01-23 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:29:26] Production.INFO: ==26833== Releasing lock... [2025-01-23 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:29:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:30:06 [end_date_ymd] => 2025-01-23 18:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 15:30:06' and `end` < '2025-01-23 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-23 18:30:19] Production.INFO: count ==4469 [2025-01-23 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:30:06 - End Time 2025-01-23 18:30:06 [2025-01-23 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314162', 'tblTempUsageDetail_20' ) start [2025-01-23 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314162', 'tblTempUsageDetail_20' ) end [2025-01-23 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314162', 'tblTempVendorCDR_20' ) start [2025-01-23 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314162', 'tblTempVendorCDR_20' ) end [2025-01-23 18:30:21] Production.INFO: ProcessCDR(1,14314162,1,1,2) [2025-01-23 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314162', 'tblTempUsageDetail_20' ) start [2025-01-23 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314162', 'tblTempUsageDetail_20' ) end [2025-01-23 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:30:26] Production.INFO: ==26914== Releasing lock... [2025-01-23 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:30:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-23 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:31:06 [end_date_ymd] => 2025-01-23 18:31:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:31:06' and `end` < '2025-01-23 18: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-23 18:31:21] Production.INFO: count ==4398 [2025-01-23 18:31:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:31:06 - End Time 2025-01-23 18:31:06 [2025-01-23 18:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314167', 'tblTempUsageDetail_20' ) start [2025-01-23 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314167', 'tblTempUsageDetail_20' ) end [2025-01-23 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314167', 'tblTempVendorCDR_20' ) start [2025-01-23 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314167', 'tblTempVendorCDR_20' ) end [2025-01-23 18:31:22] Production.INFO: ProcessCDR(1,14314167,1,1,2) [2025-01-23 18:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314167', 'tblTempUsageDetail_20' ) start [2025-01-23 18:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314167', 'tblTempUsageDetail_20' ) end [2025-01-23 18:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:31:28] Production.INFO: ==26991== Releasing lock... [2025-01-23 18:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:31:28] Production.INFO: 61 MB #Memory Used# [2025-01-23 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:32:05 [end_date_ymd] => 2025-01-23 18:32:05 [RateCDR] => 1 ) [2025-01-23 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:32:05' and `end` < '2025-01-23 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:32:19] Production.INFO: count ==4375 [2025-01-23 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:32:05 - End Time 2025-01-23 18:32:05 [2025-01-23 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314172', 'tblTempUsageDetail_20' ) start [2025-01-23 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314172', 'tblTempUsageDetail_20' ) end [2025-01-23 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314172', 'tblTempVendorCDR_20' ) start [2025-01-23 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314172', 'tblTempVendorCDR_20' ) end [2025-01-23 18:32:21] Production.INFO: ProcessCDR(1,14314172,1,1,2) [2025-01-23 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314172', 'tblTempUsageDetail_20' ) start [2025-01-23 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314172', 'tblTempUsageDetail_20' ) end [2025-01-23 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:32:24] Production.INFO: ==27070== Releasing lock... [2025-01-23 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:32:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-23 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:33:06 [end_date_ymd] => 2025-01-23 18:33:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:33:06' and `end` < '2025-01-23 18: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-23 18:33:24] Production.INFO: count ==4345 [2025-01-23 18:33:26] Production.ERROR: pbx CDR StartTime 2025-01-23 15:33:06 - End Time 2025-01-23 18:33:06 [2025-01-23 18:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314177', 'tblTempUsageDetail_20' ) start [2025-01-23 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314177', 'tblTempUsageDetail_20' ) end [2025-01-23 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314177', 'tblTempVendorCDR_20' ) start [2025-01-23 18:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314177', 'tblTempVendorCDR_20' ) end [2025-01-23 18:33:26] Production.INFO: ProcessCDR(1,14314177,1,1,2) [2025-01-23 18:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314177', 'tblTempUsageDetail_20' ) start [2025-01-23 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314177', 'tblTempUsageDetail_20' ) end [2025-01-23 18:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:33:29] Production.INFO: ==27146== Releasing lock... [2025-01-23 18:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:33:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-23 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:34:06 [end_date_ymd] => 2025-01-23 18:34:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:34:06' and `end` < '2025-01-23 18: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-23 18:34:24] Production.INFO: count ==4320 [2025-01-23 18:34:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:34:06 - End Time 2025-01-23 18:34:06 [2025-01-23 18:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314182', 'tblTempUsageDetail_20' ) start [2025-01-23 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314182', 'tblTempUsageDetail_20' ) end [2025-01-23 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314182', 'tblTempVendorCDR_20' ) start [2025-01-23 18:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314182', 'tblTempVendorCDR_20' ) end [2025-01-23 18:34:26] Production.INFO: ProcessCDR(1,14314182,1,1,2) [2025-01-23 18:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314182', 'tblTempUsageDetail_20' ) start [2025-01-23 18:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314182', 'tblTempUsageDetail_20' ) end [2025-01-23 18:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:34:31] Production.INFO: ==27224== Releasing lock... [2025-01-23 18:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:34:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-23 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:35:06 [end_date_ymd] => 2025-01-23 18:35:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:35:06' and `end` < '2025-01-23 18: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-23 18:35:24] Production.INFO: count ==4286 [2025-01-23 18:35:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:35:06 - End Time 2025-01-23 18:35:06 [2025-01-23 18:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314187', 'tblTempUsageDetail_20' ) start [2025-01-23 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314187', 'tblTempUsageDetail_20' ) end [2025-01-23 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314187', 'tblTempVendorCDR_20' ) start [2025-01-23 18:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314187', 'tblTempVendorCDR_20' ) end [2025-01-23 18:35:25] Production.INFO: ProcessCDR(1,14314187,1,1,2) [2025-01-23 18:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314187', 'tblTempUsageDetail_20' ) start [2025-01-23 18:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314187', 'tblTempUsageDetail_20' ) end [2025-01-23 18:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:35:28] Production.INFO: ==27301== Releasing lock... [2025-01-23 18:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:35:28] Production.INFO: 60 MB #Memory Used# [2025-01-23 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:36:05 [end_date_ymd] => 2025-01-23 18:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:36:05' and `end` < '2025-01-23 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-23 18:36:20] Production.INFO: count ==4270 [2025-01-23 18:36:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:36:05 - End Time 2025-01-23 18:36:05 [2025-01-23 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314192', 'tblTempUsageDetail_20' ) start [2025-01-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314192', 'tblTempUsageDetail_20' ) end [2025-01-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314192', 'tblTempVendorCDR_20' ) start [2025-01-23 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314192', 'tblTempVendorCDR_20' ) end [2025-01-23 18:36:21] Production.INFO: ProcessCDR(1,14314192,1,1,2) [2025-01-23 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314192', 'tblTempUsageDetail_20' ) start [2025-01-23 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314192', 'tblTempUsageDetail_20' ) end [2025-01-23 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:36:24] Production.INFO: ==27374== Releasing lock... [2025-01-23 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:36:25] Production.INFO: 60 MB #Memory Used# [2025-01-23 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:37:06 [end_date_ymd] => 2025-01-23 18:37:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:37:06' and `end` < '2025-01-23 18: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-23 18:37:25] Production.INFO: count ==4241 [2025-01-23 18:37:26] Production.ERROR: pbx CDR StartTime 2025-01-23 15:37:06 - End Time 2025-01-23 18:37:06 [2025-01-23 18:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314197', 'tblTempUsageDetail_20' ) start [2025-01-23 18:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314197', 'tblTempUsageDetail_20' ) end [2025-01-23 18:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314197', 'tblTempVendorCDR_20' ) start [2025-01-23 18:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314197', 'tblTempVendorCDR_20' ) end [2025-01-23 18:37:26] Production.INFO: ProcessCDR(1,14314197,1,1,2) [2025-01-23 18:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314197', 'tblTempUsageDetail_20' ) start [2025-01-23 18:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314197', 'tblTempUsageDetail_20' ) end [2025-01-23 18:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:37:29] Production.INFO: ==27456== Releasing lock... [2025-01-23 18:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:37:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-23 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:38:05 [end_date_ymd] => 2025-01-23 18:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:38:05' and `end` < '2025-01-23 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-23 18:38:20] Production.INFO: count ==4229 [2025-01-23 18:38:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:38:05 - End Time 2025-01-23 18:38:05 [2025-01-23 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314202', 'tblTempUsageDetail_20' ) start [2025-01-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314202', 'tblTempUsageDetail_20' ) end [2025-01-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314202', 'tblTempVendorCDR_20' ) start [2025-01-23 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314202', 'tblTempVendorCDR_20' ) end [2025-01-23 18:38:21] Production.INFO: ProcessCDR(1,14314202,1,1,2) [2025-01-23 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314202', 'tblTempUsageDetail_20' ) start [2025-01-23 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314202', 'tblTempUsageDetail_20' ) end [2025-01-23 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:38:25] Production.INFO: ==27534== Releasing lock... [2025-01-23 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:38:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-23 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:39:06 [end_date_ymd] => 2025-01-23 18:39:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:39:06' and `end` < '2025-01-23 18: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-23 18:39:19] Production.INFO: count ==4213 [2025-01-23 18:39:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:39:06 - End Time 2025-01-23 18:39:06 [2025-01-23 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314207', 'tblTempUsageDetail_20' ) start [2025-01-23 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314207', 'tblTempUsageDetail_20' ) end [2025-01-23 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314207', 'tblTempVendorCDR_20' ) start [2025-01-23 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314207', 'tblTempVendorCDR_20' ) end [2025-01-23 18:39:20] Production.INFO: ProcessCDR(1,14314207,1,1,2) [2025-01-23 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314207', 'tblTempUsageDetail_20' ) start [2025-01-23 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314207', 'tblTempUsageDetail_20' ) end [2025-01-23 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:39:24] Production.INFO: ==27615== Releasing lock... [2025-01-23 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:39:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-23 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:40:06 [end_date_ymd] => 2025-01-23 18:40:06 [RateCDR] => 1 ) [2025-01-23 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:40:06' and `end` < '2025-01-23 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:40:19] Production.INFO: count ==4187 [2025-01-23 18:40:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:40:06 - End Time 2025-01-23 18:40:06 [2025-01-23 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314213', 'tblTempUsageDetail_20' ) start [2025-01-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314213', 'tblTempUsageDetail_20' ) end [2025-01-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314213', 'tblTempVendorCDR_20' ) start [2025-01-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314213', 'tblTempVendorCDR_20' ) end [2025-01-23 18:40:21] Production.INFO: ProcessCDR(1,14314213,1,1,2) [2025-01-23 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314213', 'tblTempUsageDetail_20' ) start [2025-01-23 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314213', 'tblTempUsageDetail_20' ) end [2025-01-23 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:40:24] Production.INFO: ==27692== Releasing lock... [2025-01-23 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:40:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-23 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:41:05 [end_date_ymd] => 2025-01-23 18:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:41:05' and `end` < '2025-01-23 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-23 18:41:18] Production.INFO: count ==4105 [2025-01-23 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:41:05 - End Time 2025-01-23 18:41:05 [2025-01-23 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314218', 'tblTempUsageDetail_20' ) start [2025-01-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314218', 'tblTempUsageDetail_20' ) end [2025-01-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314218', 'tblTempVendorCDR_20' ) start [2025-01-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314218', 'tblTempVendorCDR_20' ) end [2025-01-23 18:41:19] Production.INFO: ProcessCDR(1,14314218,1,1,2) [2025-01-23 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314218', 'tblTempUsageDetail_20' ) start [2025-01-23 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314218', 'tblTempUsageDetail_20' ) end [2025-01-23 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:41:23] Production.INFO: ==27774== Releasing lock... [2025-01-23 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:41:23] Production.INFO: 59 MB #Memory Used# [2025-01-23 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:42:06 [end_date_ymd] => 2025-01-23 18:42:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:42:06' and `end` < '2025-01-23 18: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-23 18:42:23] Production.INFO: count ==4095 [2025-01-23 18:42:24] Production.ERROR: pbx CDR StartTime 2025-01-23 15:42:06 - End Time 2025-01-23 18:42:06 [2025-01-23 18:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314223', 'tblTempUsageDetail_20' ) start [2025-01-23 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314223', 'tblTempUsageDetail_20' ) end [2025-01-23 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314223', 'tblTempVendorCDR_20' ) start [2025-01-23 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314223', 'tblTempVendorCDR_20' ) end [2025-01-23 18:42:24] Production.INFO: ProcessCDR(1,14314223,1,1,2) [2025-01-23 18:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314223', 'tblTempUsageDetail_20' ) start [2025-01-23 18:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314223', 'tblTempUsageDetail_20' ) end [2025-01-23 18:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:42:30] Production.INFO: ==27858== Releasing lock... [2025-01-23 18:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:42:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-23 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:43:05 [end_date_ymd] => 2025-01-23 18:43:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:43:05' and `end` < '2025-01-23 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-23 18:43:24] Production.INFO: count ==4086 [2025-01-23 18:43:25] Production.ERROR: pbx CDR StartTime 2025-01-23 15:43:05 - End Time 2025-01-23 18:43:05 [2025-01-23 18:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314228', 'tblTempUsageDetail_20' ) start [2025-01-23 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314228', 'tblTempUsageDetail_20' ) end [2025-01-23 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314228', 'tblTempVendorCDR_20' ) start [2025-01-23 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314228', 'tblTempVendorCDR_20' ) end [2025-01-23 18:43:25] Production.INFO: ProcessCDR(1,14314228,1,1,2) [2025-01-23 18:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314228', 'tblTempUsageDetail_20' ) start [2025-01-23 18:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314228', 'tblTempUsageDetail_20' ) end [2025-01-23 18:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:43:30] Production.INFO: ==27976== Releasing lock... [2025-01-23 18:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:43:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-23 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:44:06 [end_date_ymd] => 2025-01-23 18:44:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:44:06' and `end` < '2025-01-23 18: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-23 18:44:20] Production.INFO: count ==4077 [2025-01-23 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:44:06 - End Time 2025-01-23 18:44:06 [2025-01-23 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314233', 'tblTempUsageDetail_20' ) start [2025-01-23 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314233', 'tblTempUsageDetail_20' ) end [2025-01-23 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314233', 'tblTempVendorCDR_20' ) start [2025-01-23 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314233', 'tblTempVendorCDR_20' ) end [2025-01-23 18:44:21] Production.INFO: ProcessCDR(1,14314233,1,1,2) [2025-01-23 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314233', 'tblTempUsageDetail_20' ) start [2025-01-23 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314233', 'tblTempUsageDetail_20' ) end [2025-01-23 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:44:26] Production.INFO: ==28055== Releasing lock... [2025-01-23 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:44:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-23 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:45:05 [end_date_ymd] => 2025-01-23 18:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:45:05' and `end` < '2025-01-23 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-23 18:45:18] Production.INFO: count ==4068 [2025-01-23 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:45:05 - End Time 2025-01-23 18:45:05 [2025-01-23 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314238', 'tblTempUsageDetail_20' ) start [2025-01-23 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314238', 'tblTempUsageDetail_20' ) end [2025-01-23 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314238', 'tblTempVendorCDR_20' ) start [2025-01-23 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314238', 'tblTempVendorCDR_20' ) end [2025-01-23 18:45:20] Production.INFO: ProcessCDR(1,14314238,1,1,2) [2025-01-23 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314238', 'tblTempUsageDetail_20' ) start [2025-01-23 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314238', 'tblTempUsageDetail_20' ) end [2025-01-23 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:45:24] Production.INFO: ==28138== Releasing lock... [2025-01-23 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:45:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-23 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:46:06 [end_date_ymd] => 2025-01-23 18:46:06 [RateCDR] => 1 ) [2025-01-23 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:46:06' and `end` < '2025-01-23 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:46:20] Production.INFO: count ==4047 [2025-01-23 18:46:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:46:06 - End Time 2025-01-23 18:46:06 [2025-01-23 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314243', 'tblTempUsageDetail_20' ) start [2025-01-23 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314243', 'tblTempUsageDetail_20' ) end [2025-01-23 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314243', 'tblTempVendorCDR_20' ) start [2025-01-23 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314243', 'tblTempVendorCDR_20' ) end [2025-01-23 18:46:21] Production.INFO: ProcessCDR(1,14314243,1,1,2) [2025-01-23 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314243', 'tblTempUsageDetail_20' ) start [2025-01-23 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314243', 'tblTempUsageDetail_20' ) end [2025-01-23 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:46:26] Production.INFO: ==28217== Releasing lock... [2025-01-23 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:46:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-23 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:47:05 [end_date_ymd] => 2025-01-23 18:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:47:05' and `end` < '2025-01-23 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-23 18:47:22] Production.INFO: count ==4032 [2025-01-23 18:47:23] Production.ERROR: pbx CDR StartTime 2025-01-23 15:47:05 - End Time 2025-01-23 18:47:05 [2025-01-23 18:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314248', 'tblTempUsageDetail_20' ) start [2025-01-23 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314248', 'tblTempUsageDetail_20' ) end [2025-01-23 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314248', 'tblTempVendorCDR_20' ) start [2025-01-23 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314248', 'tblTempVendorCDR_20' ) end [2025-01-23 18:47:23] Production.INFO: ProcessCDR(1,14314248,1,1,2) [2025-01-23 18:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314248', 'tblTempUsageDetail_20' ) start [2025-01-23 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314248', 'tblTempUsageDetail_20' ) end [2025-01-23 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:47:26] Production.INFO: ==28291== Releasing lock... [2025-01-23 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:47:26] Production.INFO: 58 MB #Memory Used# [2025-01-23 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:48:06 [end_date_ymd] => 2025-01-23 18:48:06 [RateCDR] => 1 ) [2025-01-23 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:48:06' and `end` < '2025-01-23 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:48:20] Production.INFO: count ==4020 [2025-01-23 18:48:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:48:06 - End Time 2025-01-23 18:48:06 [2025-01-23 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314253', 'tblTempUsageDetail_20' ) start [2025-01-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314253', 'tblTempUsageDetail_20' ) end [2025-01-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314253', 'tblTempVendorCDR_20' ) start [2025-01-23 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314253', 'tblTempVendorCDR_20' ) end [2025-01-23 18:48:21] Production.INFO: ProcessCDR(1,14314253,1,1,2) [2025-01-23 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314253', 'tblTempUsageDetail_20' ) start [2025-01-23 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314253', 'tblTempUsageDetail_20' ) end [2025-01-23 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:48:25] Production.INFO: ==28369== Releasing lock... [2025-01-23 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:48:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-23 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:49:05 [end_date_ymd] => 2025-01-23 18:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:49:05' and `end` < '2025-01-23 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-23 18:49:18] Production.INFO: count ==4001 [2025-01-23 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:49:05 - End Time 2025-01-23 18:49:05 [2025-01-23 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314258', 'tblTempUsageDetail_20' ) start [2025-01-23 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314258', 'tblTempUsageDetail_20' ) end [2025-01-23 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314258', 'tblTempVendorCDR_20' ) start [2025-01-23 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314258', 'tblTempVendorCDR_20' ) end [2025-01-23 18:49:19] Production.INFO: ProcessCDR(1,14314258,1,1,2) [2025-01-23 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314258', 'tblTempUsageDetail_20' ) start [2025-01-23 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314258', 'tblTempUsageDetail_20' ) end [2025-01-23 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:49:22] Production.INFO: ==28444== Releasing lock... [2025-01-23 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:49:22] Production.INFO: 58 MB #Memory Used# [2025-01-23 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:50:06 [end_date_ymd] => 2025-01-23 18:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 15:50:06' and `end` < '2025-01-23 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-23 18:50:20] Production.INFO: count ==3991 [2025-01-23 18:50:22] Production.ERROR: pbx CDR StartTime 2025-01-23 15:50:06 - End Time 2025-01-23 18:50:06 [2025-01-23 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314263', 'tblTempUsageDetail_20' ) start [2025-01-23 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314263', 'tblTempUsageDetail_20' ) end [2025-01-23 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314263', 'tblTempVendorCDR_20' ) start [2025-01-23 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314263', 'tblTempVendorCDR_20' ) end [2025-01-23 18:50:22] Production.INFO: ProcessCDR(1,14314263,1,1,2) [2025-01-23 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314263', 'tblTempUsageDetail_20' ) start [2025-01-23 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314263', 'tblTempUsageDetail_20' ) end [2025-01-23 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:50:25] Production.INFO: ==28526== Releasing lock... [2025-01-23 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:50:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-23 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:51:06 [end_date_ymd] => 2025-01-23 18:51:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:51:06' and `end` < '2025-01-23 18: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-23 18:51:19] Production.INFO: count ==3944 [2025-01-23 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:51:06 - End Time 2025-01-23 18:51:06 [2025-01-23 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314269', 'tblTempUsageDetail_20' ) start [2025-01-23 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314269', 'tblTempUsageDetail_20' ) end [2025-01-23 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314269', 'tblTempVendorCDR_20' ) start [2025-01-23 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314269', 'tblTempVendorCDR_20' ) end [2025-01-23 18:51:21] Production.INFO: ProcessCDR(1,14314269,1,1,2) [2025-01-23 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314269', 'tblTempUsageDetail_20' ) start [2025-01-23 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314269', 'tblTempUsageDetail_20' ) end [2025-01-23 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:51:25] Production.INFO: ==28608== Releasing lock... [2025-01-23 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:51:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:52:06 [end_date_ymd] => 2025-01-23 18:52:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:52:06' and `end` < '2025-01-23 18: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-23 18:52:22] Production.INFO: count ==3934 [2025-01-23 18:52:24] Production.ERROR: pbx CDR StartTime 2025-01-23 15:52:06 - End Time 2025-01-23 18:52:06 [2025-01-23 18:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314274', 'tblTempUsageDetail_20' ) start [2025-01-23 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314274', 'tblTempUsageDetail_20' ) end [2025-01-23 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314274', 'tblTempVendorCDR_20' ) start [2025-01-23 18:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314274', 'tblTempVendorCDR_20' ) end [2025-01-23 18:52:24] Production.INFO: ProcessCDR(1,14314274,1,1,2) [2025-01-23 18:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314274', 'tblTempUsageDetail_20' ) start [2025-01-23 18:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314274', 'tblTempUsageDetail_20' ) end [2025-01-23 18:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:52:27] Production.INFO: ==28682== Releasing lock... [2025-01-23 18:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:52:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-23 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:53:05 [end_date_ymd] => 2025-01-23 18:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:53:05' and `end` < '2025-01-23 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-23 18:53:18] Production.INFO: count ==3917 [2025-01-23 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:53:05 - End Time 2025-01-23 18:53:05 [2025-01-23 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314279', 'tblTempUsageDetail_20' ) start [2025-01-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314279', 'tblTempUsageDetail_20' ) end [2025-01-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314279', 'tblTempVendorCDR_20' ) start [2025-01-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314279', 'tblTempVendorCDR_20' ) end [2025-01-23 18:53:19] Production.INFO: ProcessCDR(1,14314279,1,1,2) [2025-01-23 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314279', 'tblTempUsageDetail_20' ) start [2025-01-23 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314279', 'tblTempUsageDetail_20' ) end [2025-01-23 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:53:23] Production.INFO: ==28757== Releasing lock... [2025-01-23 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:53:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-23 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:54:06 [end_date_ymd] => 2025-01-23 18:54:06 [RateCDR] => 1 ) [2025-01-23 18: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-23 15:54:06' and `end` < '2025-01-23 18: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-23 18:54:19] Production.INFO: count ==3902 [2025-01-23 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:54:06 - End Time 2025-01-23 18:54:06 [2025-01-23 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314284', 'tblTempUsageDetail_20' ) start [2025-01-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314284', 'tblTempUsageDetail_20' ) end [2025-01-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314284', 'tblTempVendorCDR_20' ) start [2025-01-23 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314284', 'tblTempVendorCDR_20' ) end [2025-01-23 18:54:20] Production.INFO: ProcessCDR(1,14314284,1,1,2) [2025-01-23 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314284', 'tblTempUsageDetail_20' ) start [2025-01-23 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314284', 'tblTempUsageDetail_20' ) end [2025-01-23 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:54:23] Production.INFO: ==28839== Releasing lock... [2025-01-23 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:54:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-23 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:55:05 [end_date_ymd] => 2025-01-23 18:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:55:05' and `end` < '2025-01-23 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-23 18:55:19] Production.INFO: count ==3910 [2025-01-23 18:55:20] Production.ERROR: pbx CDR StartTime 2025-01-23 15:55:05 - End Time 2025-01-23 18:55:05 [2025-01-23 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314289', 'tblTempUsageDetail_20' ) start [2025-01-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314289', 'tblTempUsageDetail_20' ) end [2025-01-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314289', 'tblTempVendorCDR_20' ) start [2025-01-23 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314289', 'tblTempVendorCDR_20' ) end [2025-01-23 18:55:20] Production.INFO: ProcessCDR(1,14314289,1,1,2) [2025-01-23 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314289', 'tblTempUsageDetail_20' ) start [2025-01-23 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314289', 'tblTempUsageDetail_20' ) end [2025-01-23 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:55:24] Production.INFO: ==28916== Releasing lock... [2025-01-23 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:55:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-23 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:56:06 [end_date_ymd] => 2025-01-23 18:56:06 [RateCDR] => 1 ) [2025-01-23 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:56:06' and `end` < '2025-01-23 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:56:20] Production.INFO: count ==3875 [2025-01-23 18:56:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:56:06 - End Time 2025-01-23 18:56:06 [2025-01-23 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314294', 'tblTempUsageDetail_20' ) start [2025-01-23 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314294', 'tblTempUsageDetail_20' ) end [2025-01-23 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314294', 'tblTempVendorCDR_20' ) start [2025-01-23 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314294', 'tblTempVendorCDR_20' ) end [2025-01-23 18:56:21] Production.INFO: ProcessCDR(1,14314294,1,1,2) [2025-01-23 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314294', 'tblTempUsageDetail_20' ) start [2025-01-23 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314294', 'tblTempUsageDetail_20' ) end [2025-01-23 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:56:25] Production.INFO: ==28991== Releasing lock... [2025-01-23 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:56:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-23 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:57:05 [end_date_ymd] => 2025-01-23 18:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:57:05' and `end` < '2025-01-23 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-23 18:57:20] Production.INFO: count ==3864 [2025-01-23 18:57:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:57:05 - End Time 2025-01-23 18:57:05 [2025-01-23 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314299', 'tblTempUsageDetail_20' ) start [2025-01-23 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314299', 'tblTempUsageDetail_20' ) end [2025-01-23 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314299', 'tblTempVendorCDR_20' ) start [2025-01-23 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314299', 'tblTempVendorCDR_20' ) end [2025-01-23 18:57:21] Production.INFO: ProcessCDR(1,14314299,1,1,2) [2025-01-23 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314299', 'tblTempUsageDetail_20' ) start [2025-01-23 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314299', 'tblTempUsageDetail_20' ) end [2025-01-23 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:57:25] Production.INFO: ==29071== Releasing lock... [2025-01-23 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:57:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:58:05 [end_date_ymd] => 2025-01-23 18:58:05 [RateCDR] => 1 ) [2025-01-23 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 15:58:05' and `end` < '2025-01-23 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 18:58:18] Production.INFO: count ==3845 [2025-01-23 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-23 15:58:05 - End Time 2025-01-23 18:58:05 [2025-01-23 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314304', 'tblTempUsageDetail_20' ) start [2025-01-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314304', 'tblTempUsageDetail_20' ) end [2025-01-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314304', 'tblTempVendorCDR_20' ) start [2025-01-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314304', 'tblTempVendorCDR_20' ) end [2025-01-23 18:58:19] Production.INFO: ProcessCDR(1,14314304,1,1,2) [2025-01-23 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314304', 'tblTempUsageDetail_20' ) start [2025-01-23 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314304', 'tblTempUsageDetail_20' ) end [2025-01-23 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:58:23] Production.INFO: ==29186== Releasing lock... [2025-01-23 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:58:23] Production.INFO: 57 MB #Memory Used# [2025-01-23 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 15:59:05 [end_date_ymd] => 2025-01-23 18:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 15:59:05' and `end` < '2025-01-23 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-23 18:59:20] Production.INFO: count ==3843 [2025-01-23 18:59:21] Production.ERROR: pbx CDR StartTime 2025-01-23 15:59:05 - End Time 2025-01-23 18:59:05 [2025-01-23 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314309', 'tblTempUsageDetail_20' ) start [2025-01-23 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314309', 'tblTempUsageDetail_20' ) end [2025-01-23 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314309', 'tblTempVendorCDR_20' ) start [2025-01-23 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314309', 'tblTempVendorCDR_20' ) end [2025-01-23 18:59:22] Production.INFO: ProcessCDR(1,14314309,1,1,2) [2025-01-23 18:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 18:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314309', 'tblTempUsageDetail_20' ) start [2025-01-23 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314309', 'tblTempUsageDetail_20' ) end [2025-01-23 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 18:59:26] Production.INFO: ==29261== Releasing lock... [2025-01-23 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 18:59:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:00:06 [end_date_ymd] => 2025-01-23 19:00:06 [RateCDR] => 1 ) [2025-01-23 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:00:06' and `end` < '2025-01-23 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:00:20] Production.INFO: count ==3833 [2025-01-23 19:00:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:00:06 - End Time 2025-01-23 19:00:06 [2025-01-23 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314315', 'tblTempUsageDetail_20' ) start [2025-01-23 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314315', 'tblTempUsageDetail_20' ) end [2025-01-23 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314315', 'tblTempVendorCDR_20' ) start [2025-01-23 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314315', 'tblTempVendorCDR_20' ) end [2025-01-23 19:00:21] Production.INFO: ProcessCDR(1,14314315,1,1,2) [2025-01-23 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314315', 'tblTempUsageDetail_20' ) start [2025-01-23 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314315', 'tblTempUsageDetail_20' ) end [2025-01-23 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:00:26] Production.INFO: ==29341== Releasing lock... [2025-01-23 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:00:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-23 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:01:05 [end_date_ymd] => 2025-01-23 19:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:01:05' and `end` < '2025-01-23 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-23 19:01:18] Production.INFO: count ==3712 [2025-01-23 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:01:05 - End Time 2025-01-23 19:01:05 [2025-01-23 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314320', 'tblTempUsageDetail_20' ) start [2025-01-23 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314320', 'tblTempUsageDetail_20' ) end [2025-01-23 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314320', 'tblTempVendorCDR_20' ) start [2025-01-23 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314320', 'tblTempVendorCDR_20' ) end [2025-01-23 19:01:19] Production.INFO: ProcessCDR(1,14314320,1,1,2) [2025-01-23 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314320', 'tblTempUsageDetail_20' ) start [2025-01-23 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314320', 'tblTempUsageDetail_20' ) end [2025-01-23 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:01:23] Production.INFO: ==29513== Releasing lock... [2025-01-23 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:01:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-23 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:02:06 [end_date_ymd] => 2025-01-23 19:02:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:02:06' and `end` < '2025-01-23 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-23 19:02:20] Production.INFO: count ==3694 [2025-01-23 19:02:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:02:06 - End Time 2025-01-23 19:02:06 [2025-01-23 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314325', 'tblTempUsageDetail_20' ) start [2025-01-23 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314325', 'tblTempUsageDetail_20' ) end [2025-01-23 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314325', 'tblTempVendorCDR_20' ) start [2025-01-23 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314325', 'tblTempVendorCDR_20' ) end [2025-01-23 19:02:21] Production.INFO: ProcessCDR(1,14314325,1,1,2) [2025-01-23 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314325', 'tblTempUsageDetail_20' ) start [2025-01-23 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314325', 'tblTempUsageDetail_20' ) end [2025-01-23 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:02:24] Production.INFO: ==29588== Releasing lock... [2025-01-23 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:02:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-23 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:03:05 [end_date_ymd] => 2025-01-23 19:03:05 [RateCDR] => 1 ) [2025-01-23 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:03:05' and `end` < '2025-01-23 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:03:19] Production.INFO: count ==3683 [2025-01-23 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:03:05 - End Time 2025-01-23 19:03:05 [2025-01-23 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314330', 'tblTempUsageDetail_20' ) start [2025-01-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314330', 'tblTempUsageDetail_20' ) end [2025-01-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314330', 'tblTempVendorCDR_20' ) start [2025-01-23 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314330', 'tblTempVendorCDR_20' ) end [2025-01-23 19:03:20] Production.INFO: ProcessCDR(1,14314330,1,1,2) [2025-01-23 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314330', 'tblTempUsageDetail_20' ) start [2025-01-23 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314330', 'tblTempUsageDetail_20' ) end [2025-01-23 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:03:23] Production.INFO: ==29663== Releasing lock... [2025-01-23 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:03:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-23 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:04:06 [end_date_ymd] => 2025-01-23 19:04:06 [RateCDR] => 1 ) [2025-01-23 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:04:06' and `end` < '2025-01-23 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:04:20] Production.INFO: count ==3657 [2025-01-23 19:04:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:04:06 - End Time 2025-01-23 19:04:06 [2025-01-23 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314335', 'tblTempUsageDetail_20' ) start [2025-01-23 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314335', 'tblTempUsageDetail_20' ) end [2025-01-23 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314335', 'tblTempVendorCDR_20' ) start [2025-01-23 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314335', 'tblTempVendorCDR_20' ) end [2025-01-23 19:04:21] Production.INFO: ProcessCDR(1,14314335,1,1,2) [2025-01-23 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314335', 'tblTempUsageDetail_20' ) start [2025-01-23 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314335', 'tblTempUsageDetail_20' ) end [2025-01-23 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:04:24] Production.INFO: ==29746== Releasing lock... [2025-01-23 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:04:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-23 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:05:06 [end_date_ymd] => 2025-01-23 19:05:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:05:06' and `end` < '2025-01-23 19: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-23 19:05:19] Production.INFO: count ==3637 [2025-01-23 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:05:06 - End Time 2025-01-23 19:05:06 [2025-01-23 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314340', 'tblTempUsageDetail_20' ) start [2025-01-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314340', 'tblTempUsageDetail_20' ) end [2025-01-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314340', 'tblTempVendorCDR_20' ) start [2025-01-23 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314340', 'tblTempVendorCDR_20' ) end [2025-01-23 19:05:20] Production.INFO: ProcessCDR(1,14314340,1,1,2) [2025-01-23 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314340', 'tblTempUsageDetail_20' ) start [2025-01-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314340', 'tblTempUsageDetail_20' ) end [2025-01-23 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:05:23] Production.INFO: ==29896== Releasing lock... [2025-01-23 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:05:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-23 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:06:05 [end_date_ymd] => 2025-01-23 19:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:06:05' and `end` < '2025-01-23 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-23 19:06:18] Production.INFO: count ==3602 [2025-01-23 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:06:05 - End Time 2025-01-23 19:06:05 [2025-01-23 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314345', 'tblTempUsageDetail_20' ) start [2025-01-23 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314345', 'tblTempUsageDetail_20' ) end [2025-01-23 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314345', 'tblTempVendorCDR_20' ) start [2025-01-23 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314345', 'tblTempVendorCDR_20' ) end [2025-01-23 19:06:19] Production.INFO: ProcessCDR(1,14314345,1,1,2) [2025-01-23 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314345', 'tblTempUsageDetail_20' ) start [2025-01-23 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314345', 'tblTempUsageDetail_20' ) end [2025-01-23 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:06:24] Production.INFO: ==29977== Releasing lock... [2025-01-23 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:06:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-23 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:07:05 [end_date_ymd] => 2025-01-23 19:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:07:05' and `end` < '2025-01-23 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-23 19:07:18] Production.INFO: count ==3588 [2025-01-23 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:07:05 - End Time 2025-01-23 19:07:05 [2025-01-23 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314350', 'tblTempUsageDetail_20' ) start [2025-01-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314350', 'tblTempUsageDetail_20' ) end [2025-01-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314350', 'tblTempVendorCDR_20' ) start [2025-01-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314350', 'tblTempVendorCDR_20' ) end [2025-01-23 19:07:19] Production.INFO: ProcessCDR(1,14314350,1,1,2) [2025-01-23 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314350', 'tblTempUsageDetail_20' ) start [2025-01-23 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314350', 'tblTempUsageDetail_20' ) end [2025-01-23 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:07:22] Production.INFO: ==30051== Releasing lock... [2025-01-23 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:07:22] Production.INFO: 54.75 MB #Memory Used# [2025-01-23 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:08:05 [end_date_ymd] => 2025-01-23 19:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:08:05' and `end` < '2025-01-23 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-23 19:08:18] Production.INFO: count ==3559 [2025-01-23 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:08:05 - End Time 2025-01-23 19:08:05 [2025-01-23 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314355', 'tblTempUsageDetail_20' ) start [2025-01-23 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314355', 'tblTempUsageDetail_20' ) end [2025-01-23 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314355', 'tblTempVendorCDR_20' ) start [2025-01-23 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314355', 'tblTempVendorCDR_20' ) end [2025-01-23 19:08:19] Production.INFO: ProcessCDR(1,14314355,1,1,2) [2025-01-23 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314355', 'tblTempUsageDetail_20' ) start [2025-01-23 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314355', 'tblTempUsageDetail_20' ) end [2025-01-23 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:08:22] Production.INFO: ==30210== Releasing lock... [2025-01-23 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:08:22] Production.INFO: 54.75 MB #Memory Used# [2025-01-23 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:09:05 [end_date_ymd] => 2025-01-23 19:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:09:05' and `end` < '2025-01-23 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-23 19:09:19] Production.INFO: count ==3546 [2025-01-23 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:09:05 - End Time 2025-01-23 19:09:05 [2025-01-23 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314360', 'tblTempUsageDetail_20' ) start [2025-01-23 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314360', 'tblTempUsageDetail_20' ) end [2025-01-23 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314360', 'tblTempVendorCDR_20' ) start [2025-01-23 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314360', 'tblTempVendorCDR_20' ) end [2025-01-23 19:09:20] Production.INFO: ProcessCDR(1,14314360,1,1,2) [2025-01-23 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314360', 'tblTempUsageDetail_20' ) start [2025-01-23 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314360', 'tblTempUsageDetail_20' ) end [2025-01-23 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:09:23] Production.INFO: ==30281== Releasing lock... [2025-01-23 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:09:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-23 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:10:06 [end_date_ymd] => 2025-01-23 19:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:10:06' and `end` < '2025-01-23 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-23 19:10:19] Production.INFO: count ==3533 [2025-01-23 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:10:06 - End Time 2025-01-23 19:10:06 [2025-01-23 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314365', 'tblTempUsageDetail_20' ) start [2025-01-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314365', 'tblTempUsageDetail_20' ) end [2025-01-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314365', 'tblTempVendorCDR_20' ) start [2025-01-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314365', 'tblTempVendorCDR_20' ) end [2025-01-23 19:10:19] Production.INFO: ProcessCDR(1,14314365,1,1,2) [2025-01-23 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314365', 'tblTempUsageDetail_20' ) start [2025-01-23 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314365', 'tblTempUsageDetail_20' ) end [2025-01-23 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:10:23] Production.INFO: ==30358== Releasing lock... [2025-01-23 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:10:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-23 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:11:05 [end_date_ymd] => 2025-01-23 19:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:11:05' and `end` < '2025-01-23 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-23 19:11:19] Production.INFO: count ==3474 [2025-01-23 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:11:05 - End Time 2025-01-23 19:11:05 [2025-01-23 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314371', 'tblTempUsageDetail_20' ) start [2025-01-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314371', 'tblTempUsageDetail_20' ) end [2025-01-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314371', 'tblTempVendorCDR_20' ) start [2025-01-23 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314371', 'tblTempVendorCDR_20' ) end [2025-01-23 19:11:20] Production.INFO: ProcessCDR(1,14314371,1,1,2) [2025-01-23 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314371', 'tblTempUsageDetail_20' ) start [2025-01-23 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314371', 'tblTempUsageDetail_20' ) end [2025-01-23 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:11:23] Production.INFO: ==30441== Releasing lock... [2025-01-23 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:11:23] Production.INFO: 54 MB #Memory Used# [2025-01-23 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:12:04 [end_date_ymd] => 2025-01-23 19:12:04 [RateCDR] => 1 ) [2025-01-23 19:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:12:04' and `end` < '2025-01-23 19:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:12:17] Production.INFO: count ==3467 [2025-01-23 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:12:04 - End Time 2025-01-23 19:12:04 [2025-01-23 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314376', 'tblTempUsageDetail_20' ) start [2025-01-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314376', 'tblTempUsageDetail_20' ) end [2025-01-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314376', 'tblTempVendorCDR_20' ) start [2025-01-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314376', 'tblTempVendorCDR_20' ) end [2025-01-23 19:12:18] Production.INFO: ProcessCDR(1,14314376,1,1,2) [2025-01-23 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314376', 'tblTempUsageDetail_20' ) start [2025-01-23 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314376', 'tblTempUsageDetail_20' ) end [2025-01-23 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:12:21] Production.INFO: ==30598== Releasing lock... [2025-01-23 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:12:21] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:13:05 [end_date_ymd] => 2025-01-23 19:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:13:05' and `end` < '2025-01-23 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-23 19:13:20] Production.INFO: count ==3450 [2025-01-23 19:13:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:13:05 - End Time 2025-01-23 19:13:05 [2025-01-23 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314381', 'tblTempUsageDetail_20' ) start [2025-01-23 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314381', 'tblTempUsageDetail_20' ) end [2025-01-23 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314381', 'tblTempVendorCDR_20' ) start [2025-01-23 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314381', 'tblTempVendorCDR_20' ) end [2025-01-23 19:13:21] Production.INFO: ProcessCDR(1,14314381,1,1,2) [2025-01-23 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314381', 'tblTempUsageDetail_20' ) start [2025-01-23 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314381', 'tblTempUsageDetail_20' ) end [2025-01-23 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:13:24] Production.INFO: ==30678== Releasing lock... [2025-01-23 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:13:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:14:05 [end_date_ymd] => 2025-01-23 19:14:05 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:14:05' and `end` < '2025-01-23 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-23 19:14:21] Production.INFO: count ==3448 [2025-01-23 19:14:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:14:05 - End Time 2025-01-23 19:14:05 [2025-01-23 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314386', 'tblTempUsageDetail_20' ) start [2025-01-23 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314386', 'tblTempUsageDetail_20' ) end [2025-01-23 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314386', 'tblTempVendorCDR_20' ) start [2025-01-23 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314386', 'tblTempVendorCDR_20' ) end [2025-01-23 19:14:21] Production.INFO: ProcessCDR(1,14314386,1,1,2) [2025-01-23 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314386', 'tblTempUsageDetail_20' ) start [2025-01-23 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314386', 'tblTempUsageDetail_20' ) end [2025-01-23 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:14:25] Production.INFO: ==30790== Releasing lock... [2025-01-23 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:14:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:15:06 [end_date_ymd] => 2025-01-23 19:15:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:15:06' and `end` < '2025-01-23 19: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-23 19:15:26] Production.INFO: count ==3429 [2025-01-23 19:15:27] Production.ERROR: pbx CDR StartTime 2025-01-23 16:15:06 - End Time 2025-01-23 19:15:06 [2025-01-23 19:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314391', 'tblTempUsageDetail_20' ) start [2025-01-23 19:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314391', 'tblTempUsageDetail_20' ) end [2025-01-23 19:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314391', 'tblTempVendorCDR_20' ) start [2025-01-23 19:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314391', 'tblTempVendorCDR_20' ) end [2025-01-23 19:15:27] Production.INFO: ProcessCDR(1,14314391,1,1,2) [2025-01-23 19:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314391', 'tblTempUsageDetail_20' ) start [2025-01-23 19:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314391', 'tblTempUsageDetail_20' ) end [2025-01-23 19:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:15:32] Production.INFO: ==30947== Releasing lock... [2025-01-23 19:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:15:32] Production.INFO: 54 MB #Memory Used# [2025-01-23 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:16:06 [end_date_ymd] => 2025-01-23 19:16:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:16:06' and `end` < '2025-01-23 19: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-23 19:16:20] Production.INFO: count ==3417 [2025-01-23 19:16:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:16:06 - End Time 2025-01-23 19:16:06 [2025-01-23 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314396', 'tblTempUsageDetail_20' ) start [2025-01-23 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314396', 'tblTempUsageDetail_20' ) end [2025-01-23 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314396', 'tblTempVendorCDR_20' ) start [2025-01-23 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314396', 'tblTempVendorCDR_20' ) end [2025-01-23 19:16:21] Production.INFO: ProcessCDR(1,14314396,1,1,2) [2025-01-23 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314396', 'tblTempUsageDetail_20' ) start [2025-01-23 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314396', 'tblTempUsageDetail_20' ) end [2025-01-23 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:16:25] Production.INFO: ==31026== Releasing lock... [2025-01-23 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:16:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:17:05 [end_date_ymd] => 2025-01-23 19:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:17:05' and `end` < '2025-01-23 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-23 19:17:18] Production.INFO: count ==3411 [2025-01-23 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:17:05 - End Time 2025-01-23 19:17:05 [2025-01-23 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314401', 'tblTempUsageDetail_20' ) start [2025-01-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314401', 'tblTempUsageDetail_20' ) end [2025-01-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314401', 'tblTempVendorCDR_20' ) start [2025-01-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314401', 'tblTempVendorCDR_20' ) end [2025-01-23 19:17:19] Production.INFO: ProcessCDR(1,14314401,1,1,2) [2025-01-23 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314401', 'tblTempUsageDetail_20' ) start [2025-01-23 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314401', 'tblTempUsageDetail_20' ) end [2025-01-23 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:17:22] Production.INFO: ==31102== Releasing lock... [2025-01-23 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:17:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:18:05 [end_date_ymd] => 2025-01-23 19:18:05 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:18:05' and `end` < '2025-01-23 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-23 19:18:22] Production.INFO: count ==3413 [2025-01-23 19:18:23] Production.ERROR: pbx CDR StartTime 2025-01-23 16:18:05 - End Time 2025-01-23 19:18:05 [2025-01-23 19:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314406', 'tblTempUsageDetail_20' ) start [2025-01-23 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314406', 'tblTempUsageDetail_20' ) end [2025-01-23 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314406', 'tblTempVendorCDR_20' ) start [2025-01-23 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314406', 'tblTempVendorCDR_20' ) end [2025-01-23 19:18:23] Production.INFO: ProcessCDR(1,14314406,1,1,2) [2025-01-23 19:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314406', 'tblTempUsageDetail_20' ) start [2025-01-23 19:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314406', 'tblTempUsageDetail_20' ) end [2025-01-23 19:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:18:27] Production.INFO: ==31180== Releasing lock... [2025-01-23 19:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:18:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-23 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:19:05 [end_date_ymd] => 2025-01-23 19:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:19:05' and `end` < '2025-01-23 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-23 19:19:20] Production.INFO: count ==3393 [2025-01-23 19:19:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:19:05 - End Time 2025-01-23 19:19:05 [2025-01-23 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314411', 'tblTempUsageDetail_20' ) start [2025-01-23 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314411', 'tblTempUsageDetail_20' ) end [2025-01-23 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314411', 'tblTempVendorCDR_20' ) start [2025-01-23 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314411', 'tblTempVendorCDR_20' ) end [2025-01-23 19:19:21] Production.INFO: ProcessCDR(1,14314411,1,1,2) [2025-01-23 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314411', 'tblTempUsageDetail_20' ) start [2025-01-23 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314411', 'tblTempUsageDetail_20' ) end [2025-01-23 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:19:25] Production.INFO: ==31256== Releasing lock... [2025-01-23 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:19:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-23 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:20:06 [end_date_ymd] => 2025-01-23 19:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:20:06' and `end` < '2025-01-23 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-23 19:20:19] Production.INFO: count ==3386 [2025-01-23 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:20:06 - End Time 2025-01-23 19:20:06 [2025-01-23 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314417', 'tblTempUsageDetail_20' ) start [2025-01-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314417', 'tblTempUsageDetail_20' ) end [2025-01-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314417', 'tblTempVendorCDR_20' ) start [2025-01-23 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314417', 'tblTempVendorCDR_20' ) end [2025-01-23 19:20:20] Production.INFO: ProcessCDR(1,14314417,1,1,2) [2025-01-23 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314417', 'tblTempUsageDetail_20' ) start [2025-01-23 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314417', 'tblTempUsageDetail_20' ) end [2025-01-23 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:20:24] Production.INFO: ==31342== Releasing lock... [2025-01-23 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:20:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-23 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:21:05 [end_date_ymd] => 2025-01-23 19:21:05 [RateCDR] => 1 ) [2025-01-23 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:21:05' and `end` < '2025-01-23 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:21:19] Production.INFO: count ==3315 [2025-01-23 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:21:05 - End Time 2025-01-23 19:21:05 [2025-01-23 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314422', 'tblTempUsageDetail_20' ) start [2025-01-23 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314422', 'tblTempUsageDetail_20' ) end [2025-01-23 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314422', 'tblTempVendorCDR_20' ) start [2025-01-23 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314422', 'tblTempVendorCDR_20' ) end [2025-01-23 19:21:20] Production.INFO: ProcessCDR(1,14314422,1,1,2) [2025-01-23 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314422', 'tblTempUsageDetail_20' ) start [2025-01-23 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314422', 'tblTempUsageDetail_20' ) end [2025-01-23 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:21:23] Production.INFO: ==31417== Releasing lock... [2025-01-23 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:21:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:22:04 [end_date_ymd] => 2025-01-23 19:22:04 [RateCDR] => 1 ) [2025-01-23 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:22:04' and `end` < '2025-01-23 19:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:22:18] Production.INFO: count ==3302 [2025-01-23 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:22:04 - End Time 2025-01-23 19:22:04 [2025-01-23 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314427', 'tblTempUsageDetail_20' ) start [2025-01-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314427', 'tblTempUsageDetail_20' ) end [2025-01-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314427', 'tblTempVendorCDR_20' ) start [2025-01-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314427', 'tblTempVendorCDR_20' ) end [2025-01-23 19:22:19] Production.INFO: ProcessCDR(1,14314427,1,1,2) [2025-01-23 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314427', 'tblTempUsageDetail_20' ) start [2025-01-23 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314427', 'tblTempUsageDetail_20' ) end [2025-01-23 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:22:22] Production.INFO: ==31496== Releasing lock... [2025-01-23 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:22:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:23:05 [end_date_ymd] => 2025-01-23 19:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:23:05' and `end` < '2025-01-23 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-23 19:23:21] Production.INFO: count ==3296 [2025-01-23 19:23:22] Production.ERROR: pbx CDR StartTime 2025-01-23 16:23:05 - End Time 2025-01-23 19:23:05 [2025-01-23 19:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314432', 'tblTempUsageDetail_20' ) start [2025-01-23 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314432', 'tblTempUsageDetail_20' ) end [2025-01-23 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314432', 'tblTempVendorCDR_20' ) start [2025-01-23 19:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314432', 'tblTempVendorCDR_20' ) end [2025-01-23 19:23:22] Production.INFO: ProcessCDR(1,14314432,1,1,2) [2025-01-23 19:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314432', 'tblTempUsageDetail_20' ) start [2025-01-23 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314432', 'tblTempUsageDetail_20' ) end [2025-01-23 19:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:23:26] Production.INFO: ==31581== Releasing lock... [2025-01-23 19:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:23:26] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:24:06 [end_date_ymd] => 2025-01-23 19:24:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:24:06' and `end` < '2025-01-23 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-23 19:24:23] Production.INFO: count ==3285 [2025-01-23 19:24:23] Production.ERROR: pbx CDR StartTime 2025-01-23 16:24:06 - End Time 2025-01-23 19:24:06 [2025-01-23 19:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314437', 'tblTempUsageDetail_20' ) start [2025-01-23 19:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314437', 'tblTempUsageDetail_20' ) end [2025-01-23 19:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314437', 'tblTempVendorCDR_20' ) start [2025-01-23 19:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314437', 'tblTempVendorCDR_20' ) end [2025-01-23 19:24:23] Production.INFO: ProcessCDR(1,14314437,1,1,2) [2025-01-23 19:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314437', 'tblTempUsageDetail_20' ) start [2025-01-23 19:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314437', 'tblTempUsageDetail_20' ) end [2025-01-23 19:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:24:28] Production.INFO: ==31654== Releasing lock... [2025-01-23 19:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:24:28] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:25:05 [end_date_ymd] => 2025-01-23 19:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:25:05' and `end` < '2025-01-23 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-23 19:25:18] Production.INFO: count ==3269 [2025-01-23 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:25:05 - End Time 2025-01-23 19:25:05 [2025-01-23 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314442', 'tblTempUsageDetail_20' ) start [2025-01-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314442', 'tblTempUsageDetail_20' ) end [2025-01-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314442', 'tblTempVendorCDR_20' ) start [2025-01-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314442', 'tblTempVendorCDR_20' ) end [2025-01-23 19:25:18] Production.INFO: ProcessCDR(1,14314442,1,1,2) [2025-01-23 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314442', 'tblTempUsageDetail_20' ) start [2025-01-23 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314442', 'tblTempUsageDetail_20' ) end [2025-01-23 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:25:21] Production.INFO: ==31727== Releasing lock... [2025-01-23 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:25:21] Production.INFO: 52.25 MB #Memory Used# [2025-01-23 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:26:06 [end_date_ymd] => 2025-01-23 19:26:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:26:06' and `end` < '2025-01-23 19: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-23 19:26:18] Production.INFO: count ==3257 [2025-01-23 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:26:06 - End Time 2025-01-23 19:26:06 [2025-01-23 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314447', 'tblTempUsageDetail_20' ) start [2025-01-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314447', 'tblTempUsageDetail_20' ) end [2025-01-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314447', 'tblTempVendorCDR_20' ) start [2025-01-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314447', 'tblTempVendorCDR_20' ) end [2025-01-23 19:26:19] Production.INFO: ProcessCDR(1,14314447,1,1,2) [2025-01-23 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314447', 'tblTempUsageDetail_20' ) start [2025-01-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314447', 'tblTempUsageDetail_20' ) end [2025-01-23 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:26:22] Production.INFO: ==31802== Releasing lock... [2025-01-23 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:26:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-23 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:27:05 [end_date_ymd] => 2025-01-23 19:27:05 [RateCDR] => 1 ) [2025-01-23 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:27:05' and `end` < '2025-01-23 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:27:17] Production.INFO: count ==3253 [2025-01-23 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:27:05 - End Time 2025-01-23 19:27:05 [2025-01-23 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314452', 'tblTempUsageDetail_20' ) start [2025-01-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314452', 'tblTempUsageDetail_20' ) end [2025-01-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314452', 'tblTempVendorCDR_20' ) start [2025-01-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314452', 'tblTempVendorCDR_20' ) end [2025-01-23 19:27:18] Production.INFO: ProcessCDR(1,14314452,1,1,2) [2025-01-23 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314452', 'tblTempUsageDetail_20' ) start [2025-01-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314452', 'tblTempUsageDetail_20' ) end [2025-01-23 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:27:23] Production.INFO: ==31874== Releasing lock... [2025-01-23 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:27:23] Production.INFO: 53 MB #Memory Used# [2025-01-23 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:28:06 [end_date_ymd] => 2025-01-23 19:28:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:28:06' and `end` < '2025-01-23 19: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-23 19:28:19] Production.INFO: count ==3247 [2025-01-23 19:28:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:28:06 - End Time 2025-01-23 19:28:06 [2025-01-23 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314457', 'tblTempUsageDetail_20' ) start [2025-01-23 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314457', 'tblTempUsageDetail_20' ) end [2025-01-23 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314457', 'tblTempVendorCDR_20' ) start [2025-01-23 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314457', 'tblTempVendorCDR_20' ) end [2025-01-23 19:28:20] Production.INFO: ProcessCDR(1,14314457,1,1,2) [2025-01-23 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314457', 'tblTempUsageDetail_20' ) start [2025-01-23 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314457', 'tblTempUsageDetail_20' ) end [2025-01-23 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:28:23] Production.INFO: ==31952== Releasing lock... [2025-01-23 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:28:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-23 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:29:05 [end_date_ymd] => 2025-01-23 19:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:29:05' and `end` < '2025-01-23 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-23 19:29:18] Production.INFO: count ==3244 [2025-01-23 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:29:05 - End Time 2025-01-23 19:29:05 [2025-01-23 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314462', 'tblTempUsageDetail_20' ) start [2025-01-23 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314462', 'tblTempUsageDetail_20' ) end [2025-01-23 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314462', 'tblTempVendorCDR_20' ) start [2025-01-23 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314462', 'tblTempVendorCDR_20' ) end [2025-01-23 19:29:18] Production.INFO: ProcessCDR(1,14314462,1,1,2) [2025-01-23 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314462', 'tblTempUsageDetail_20' ) start [2025-01-23 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314462', 'tblTempUsageDetail_20' ) end [2025-01-23 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:29:22] Production.INFO: ==32064== Releasing lock... [2025-01-23 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:29:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-23 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:30:06 [end_date_ymd] => 2025-01-23 19:30:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:30:06' and `end` < '2025-01-23 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-23 19:30:19] Production.INFO: count ==3229 [2025-01-23 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:30:06 - End Time 2025-01-23 19:30:06 [2025-01-23 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314468', 'tblTempUsageDetail_20' ) start [2025-01-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314468', 'tblTempUsageDetail_20' ) end [2025-01-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314468', 'tblTempVendorCDR_20' ) start [2025-01-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314468', 'tblTempVendorCDR_20' ) end [2025-01-23 19:30:20] Production.INFO: ProcessCDR(1,14314468,1,1,2) [2025-01-23 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314468', 'tblTempUsageDetail_20' ) start [2025-01-23 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314468', 'tblTempUsageDetail_20' ) end [2025-01-23 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:30:23] Production.INFO: ==32139== Releasing lock... [2025-01-23 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:30:23] Production.INFO: 52 MB #Memory Used# [2025-01-23 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:31:05 [end_date_ymd] => 2025-01-23 19:31:05 [RateCDR] => 1 ) [2025-01-23 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:31:05' and `end` < '2025-01-23 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:31:23] Production.INFO: count ==3150 [2025-01-23 19:31:24] Production.ERROR: pbx CDR StartTime 2025-01-23 16:31:05 - End Time 2025-01-23 19:31:05 [2025-01-23 19:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314473', 'tblTempUsageDetail_20' ) start [2025-01-23 19:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314473', 'tblTempUsageDetail_20' ) end [2025-01-23 19:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314473', 'tblTempVendorCDR_20' ) start [2025-01-23 19:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314473', 'tblTempVendorCDR_20' ) end [2025-01-23 19:31:24] Production.INFO: ProcessCDR(1,14314473,1,1,2) [2025-01-23 19:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314473', 'tblTempUsageDetail_20' ) start [2025-01-23 19:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314473', 'tblTempUsageDetail_20' ) end [2025-01-23 19:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:31:29] Production.INFO: ==32215== Releasing lock... [2025-01-23 19:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:31:29] Production.INFO: 51.5 MB #Memory Used# [2025-01-23 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:32:06 [end_date_ymd] => 2025-01-23 19:32:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:32:06' and `end` < '2025-01-23 19: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-23 19:32:19] Production.INFO: count ==3143 [2025-01-23 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:32:06 - End Time 2025-01-23 19:32:06 [2025-01-23 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314478', 'tblTempUsageDetail_20' ) start [2025-01-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314478', 'tblTempUsageDetail_20' ) end [2025-01-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314478', 'tblTempVendorCDR_20' ) start [2025-01-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314478', 'tblTempVendorCDR_20' ) end [2025-01-23 19:32:19] Production.INFO: ProcessCDR(1,14314478,1,1,2) [2025-01-23 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314478', 'tblTempUsageDetail_20' ) start [2025-01-23 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314478', 'tblTempUsageDetail_20' ) end [2025-01-23 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:32:22] Production.INFO: ==32287== Releasing lock... [2025-01-23 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:32:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-23 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:33:05 [end_date_ymd] => 2025-01-23 19:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:33:05' and `end` < '2025-01-23 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-23 19:33:18] Production.INFO: count ==3115 [2025-01-23 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:33:05 - End Time 2025-01-23 19:33:05 [2025-01-23 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314483', 'tblTempUsageDetail_20' ) start [2025-01-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314483', 'tblTempUsageDetail_20' ) end [2025-01-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314483', 'tblTempVendorCDR_20' ) start [2025-01-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314483', 'tblTempVendorCDR_20' ) end [2025-01-23 19:33:18] Production.INFO: ProcessCDR(1,14314483,1,1,2) [2025-01-23 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314483', 'tblTempUsageDetail_20' ) start [2025-01-23 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314483', 'tblTempUsageDetail_20' ) end [2025-01-23 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:33:22] Production.INFO: ==32365== Releasing lock... [2025-01-23 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:33:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-23 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:34:06 [end_date_ymd] => 2025-01-23 19:34:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:34:06' and `end` < '2025-01-23 19: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-23 19:34:20] Production.INFO: count ==3113 [2025-01-23 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:34:06 - End Time 2025-01-23 19:34:06 [2025-01-23 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314488', 'tblTempUsageDetail_20' ) start [2025-01-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314488', 'tblTempUsageDetail_20' ) end [2025-01-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314488', 'tblTempVendorCDR_20' ) start [2025-01-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314488', 'tblTempVendorCDR_20' ) end [2025-01-23 19:34:20] Production.INFO: ProcessCDR(1,14314488,1,1,2) [2025-01-23 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314488', 'tblTempUsageDetail_20' ) start [2025-01-23 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314488', 'tblTempUsageDetail_20' ) end [2025-01-23 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:34:24] Production.INFO: ==32437== Releasing lock... [2025-01-23 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:34:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-23 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:35:05 [end_date_ymd] => 2025-01-23 19:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:35:05' and `end` < '2025-01-23 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-23 19:35:19] Production.INFO: count ==3104 [2025-01-23 19:35:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:35:05 - End Time 2025-01-23 19:35:05 [2025-01-23 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314493', 'tblTempUsageDetail_20' ) start [2025-01-23 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314493', 'tblTempUsageDetail_20' ) end [2025-01-23 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314493', 'tblTempVendorCDR_20' ) start [2025-01-23 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314493', 'tblTempVendorCDR_20' ) end [2025-01-23 19:35:20] Production.INFO: ProcessCDR(1,14314493,1,1,2) [2025-01-23 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314493', 'tblTempUsageDetail_20' ) start [2025-01-23 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314493', 'tblTempUsageDetail_20' ) end [2025-01-23 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:35:23] Production.INFO: ==32511== Releasing lock... [2025-01-23 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:35:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-23 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:36:05 [end_date_ymd] => 2025-01-23 19:36:05 [RateCDR] => 1 ) [2025-01-23 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:36:05' and `end` < '2025-01-23 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:36:19] Production.INFO: count ==3089 [2025-01-23 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:36:05 - End Time 2025-01-23 19:36:05 [2025-01-23 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314498', 'tblTempUsageDetail_20' ) start [2025-01-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314498', 'tblTempUsageDetail_20' ) end [2025-01-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314498', 'tblTempVendorCDR_20' ) start [2025-01-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314498', 'tblTempVendorCDR_20' ) end [2025-01-23 19:36:19] Production.INFO: ProcessCDR(1,14314498,1,1,2) [2025-01-23 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314498', 'tblTempUsageDetail_20' ) start [2025-01-23 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314498', 'tblTempUsageDetail_20' ) end [2025-01-23 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:36:23] Production.INFO: ==32583== Releasing lock... [2025-01-23 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:36:23] Production.INFO: 51 MB #Memory Used# [2025-01-23 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:37:06 [end_date_ymd] => 2025-01-23 19:37:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:37:06' and `end` < '2025-01-23 19: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-23 19:37:19] Production.INFO: count ==3074 [2025-01-23 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:37:06 - End Time 2025-01-23 19:37:06 [2025-01-23 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314503', 'tblTempUsageDetail_20' ) start [2025-01-23 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314503', 'tblTempUsageDetail_20' ) end [2025-01-23 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314503', 'tblTempVendorCDR_20' ) start [2025-01-23 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314503', 'tblTempVendorCDR_20' ) end [2025-01-23 19:37:19] Production.INFO: ProcessCDR(1,14314503,1,1,2) [2025-01-23 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314503', 'tblTempUsageDetail_20' ) start [2025-01-23 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314503', 'tblTempUsageDetail_20' ) end [2025-01-23 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:37:22] Production.INFO: ==32655== Releasing lock... [2025-01-23 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:37:22] Production.INFO: 51 MB #Memory Used# [2025-01-23 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:38:05 [end_date_ymd] => 2025-01-23 19:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:38:05' and `end` < '2025-01-23 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-23 19:38:19] Production.INFO: count ==3066 [2025-01-23 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:38:05 - End Time 2025-01-23 19:38:05 [2025-01-23 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314508', 'tblTempUsageDetail_20' ) start [2025-01-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314508', 'tblTempUsageDetail_20' ) end [2025-01-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314508', 'tblTempVendorCDR_20' ) start [2025-01-23 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314508', 'tblTempVendorCDR_20' ) end [2025-01-23 19:38:20] Production.INFO: ProcessCDR(1,14314508,1,1,2) [2025-01-23 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314508', 'tblTempUsageDetail_20' ) start [2025-01-23 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314508', 'tblTempUsageDetail_20' ) end [2025-01-23 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:38:23] Production.INFO: ==32729== Releasing lock... [2025-01-23 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:38:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-23 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:39:05 [end_date_ymd] => 2025-01-23 19:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:39:05' and `end` < '2025-01-23 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-23 19:39:18] Production.INFO: count ==3062 [2025-01-23 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:39:05 - End Time 2025-01-23 19:39:05 [2025-01-23 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314513', 'tblTempUsageDetail_20' ) start [2025-01-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314513', 'tblTempUsageDetail_20' ) end [2025-01-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314513', 'tblTempVendorCDR_20' ) start [2025-01-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314513', 'tblTempVendorCDR_20' ) end [2025-01-23 19:39:19] Production.INFO: ProcessCDR(1,14314513,1,1,2) [2025-01-23 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314513', 'tblTempUsageDetail_20' ) start [2025-01-23 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314513', 'tblTempUsageDetail_20' ) end [2025-01-23 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:39:22] Production.INFO: ==353== Releasing lock... [2025-01-23 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:39:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-23 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:40:06 [end_date_ymd] => 2025-01-23 19:40:06 [RateCDR] => 1 ) [2025-01-23 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:40:06' and `end` < '2025-01-23 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:40:19] Production.INFO: count ==3066 [2025-01-23 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:40:06 - End Time 2025-01-23 19:40:06 [2025-01-23 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314519', 'tblTempUsageDetail_20' ) start [2025-01-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314519', 'tblTempUsageDetail_20' ) end [2025-01-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314519', 'tblTempVendorCDR_20' ) start [2025-01-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314519', 'tblTempVendorCDR_20' ) end [2025-01-23 19:40:20] Production.INFO: ProcessCDR(1,14314519,1,1,2) [2025-01-23 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314519', 'tblTempUsageDetail_20' ) start [2025-01-23 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314519', 'tblTempUsageDetail_20' ) end [2025-01-23 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:40:23] Production.INFO: ==428== Releasing lock... [2025-01-23 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:40:23] Production.INFO: 51 MB #Memory Used# [2025-01-23 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:41:05 [end_date_ymd] => 2025-01-23 19:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:41:05' and `end` < '2025-01-23 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-23 19:41:19] Production.INFO: count ==3019 [2025-01-23 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:41:05 - End Time 2025-01-23 19:41:05 [2025-01-23 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314524', 'tblTempUsageDetail_20' ) start [2025-01-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314524', 'tblTempUsageDetail_20' ) end [2025-01-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314524', 'tblTempVendorCDR_20' ) start [2025-01-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314524', 'tblTempVendorCDR_20' ) end [2025-01-23 19:41:19] Production.INFO: ProcessCDR(1,14314524,1,1,2) [2025-01-23 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314524', 'tblTempUsageDetail_20' ) start [2025-01-23 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314524', 'tblTempUsageDetail_20' ) end [2025-01-23 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:41:22] Production.INFO: ==510== Releasing lock... [2025-01-23 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:41:22] Production.INFO: 51 MB #Memory Used# [2025-01-23 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:42:05 [end_date_ymd] => 2025-01-23 19:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:42:05' and `end` < '2025-01-23 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-23 19:42:18] Production.INFO: count ==3004 [2025-01-23 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:42:05 - End Time 2025-01-23 19:42:05 [2025-01-23 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314529', 'tblTempUsageDetail_20' ) start [2025-01-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314529', 'tblTempUsageDetail_20' ) end [2025-01-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314529', 'tblTempVendorCDR_20' ) start [2025-01-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314529', 'tblTempVendorCDR_20' ) end [2025-01-23 19:42:18] Production.INFO: ProcessCDR(1,14314529,1,1,2) [2025-01-23 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314529', 'tblTempUsageDetail_20' ) start [2025-01-23 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314529', 'tblTempUsageDetail_20' ) end [2025-01-23 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:42:23] Production.INFO: ==584== Releasing lock... [2025-01-23 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:42:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-23 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:43:06 [end_date_ymd] => 2025-01-23 19:43:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:43:06' and `end` < '2025-01-23 19: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-23 19:43:19] Production.INFO: count ==2995 [2025-01-23 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:43:06 - End Time 2025-01-23 19:43:06 [2025-01-23 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314534', 'tblTempUsageDetail_20' ) start [2025-01-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314534', 'tblTempUsageDetail_20' ) end [2025-01-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314534', 'tblTempVendorCDR_20' ) start [2025-01-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314534', 'tblTempVendorCDR_20' ) end [2025-01-23 19:43:19] Production.INFO: ProcessCDR(1,14314534,1,1,2) [2025-01-23 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314534', 'tblTempUsageDetail_20' ) start [2025-01-23 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314534', 'tblTempUsageDetail_20' ) end [2025-01-23 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:43:23] Production.INFO: ==690== Releasing lock... [2025-01-23 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:43:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-23 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:44:05 [end_date_ymd] => 2025-01-23 19:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:44:05' and `end` < '2025-01-23 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-23 19:44:18] Production.INFO: count ==2989 [2025-01-23 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:44:05 - End Time 2025-01-23 19:44:05 [2025-01-23 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314539', 'tblTempUsageDetail_20' ) start [2025-01-23 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314539', 'tblTempUsageDetail_20' ) end [2025-01-23 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314539', 'tblTempVendorCDR_20' ) start [2025-01-23 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314539', 'tblTempVendorCDR_20' ) end [2025-01-23 19:44:19] Production.INFO: ProcessCDR(1,14314539,1,1,2) [2025-01-23 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314539', 'tblTempUsageDetail_20' ) start [2025-01-23 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314539', 'tblTempUsageDetail_20' ) end [2025-01-23 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:44:24] Production.INFO: ==778== Releasing lock... [2025-01-23 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:44:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-23 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:45:05 [end_date_ymd] => 2025-01-23 19:45:05 [RateCDR] => 1 ) [2025-01-23 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:45:05' and `end` < '2025-01-23 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:45:18] Production.INFO: count ==2994 [2025-01-23 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:45:05 - End Time 2025-01-23 19:45:05 [2025-01-23 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314544', 'tblTempUsageDetail_20' ) start [2025-01-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314544', 'tblTempUsageDetail_20' ) end [2025-01-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314544', 'tblTempVendorCDR_20' ) start [2025-01-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314544', 'tblTempVendorCDR_20' ) end [2025-01-23 19:45:19] Production.INFO: ProcessCDR(1,14314544,1,1,2) [2025-01-23 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314544', 'tblTempUsageDetail_20' ) start [2025-01-23 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314544', 'tblTempUsageDetail_20' ) end [2025-01-23 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:45:24] Production.INFO: ==890== Releasing lock... [2025-01-23 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:45:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-23 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:46:05 [end_date_ymd] => 2025-01-23 19:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:46:05' and `end` < '2025-01-23 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-23 19:46:19] Production.INFO: count ==2982 [2025-01-23 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:46:05 - End Time 2025-01-23 19:46:05 [2025-01-23 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314549', 'tblTempUsageDetail_20' ) start [2025-01-23 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314549', 'tblTempUsageDetail_20' ) end [2025-01-23 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314549', 'tblTempVendorCDR_20' ) start [2025-01-23 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314549', 'tblTempVendorCDR_20' ) end [2025-01-23 19:46:20] Production.INFO: ProcessCDR(1,14314549,1,1,2) [2025-01-23 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314549', 'tblTempUsageDetail_20' ) start [2025-01-23 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314549', 'tblTempUsageDetail_20' ) end [2025-01-23 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:46:23] Production.INFO: ==962== Releasing lock... [2025-01-23 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:46:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-23 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:47:06 [end_date_ymd] => 2025-01-23 19:47:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:47:06' and `end` < '2025-01-23 19: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-23 19:47:18] Production.INFO: count ==2972 [2025-01-23 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:47:06 - End Time 2025-01-23 19:47:06 [2025-01-23 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314554', 'tblTempUsageDetail_20' ) start [2025-01-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314554', 'tblTempUsageDetail_20' ) end [2025-01-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314554', 'tblTempVendorCDR_20' ) start [2025-01-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314554', 'tblTempVendorCDR_20' ) end [2025-01-23 19:47:19] Production.INFO: ProcessCDR(1,14314554,1,1,2) [2025-01-23 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314554', 'tblTempUsageDetail_20' ) start [2025-01-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314554', 'tblTempUsageDetail_20' ) end [2025-01-23 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:47:22] Production.INFO: ==1037== Releasing lock... [2025-01-23 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:47:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:48:05 [end_date_ymd] => 2025-01-23 19:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:48:05' and `end` < '2025-01-23 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-23 19:48:17] Production.INFO: count ==2964 [2025-01-23 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:48:05 - End Time 2025-01-23 19:48:05 [2025-01-23 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314559', 'tblTempUsageDetail_20' ) start [2025-01-23 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314559', 'tblTempUsageDetail_20' ) end [2025-01-23 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314559', 'tblTempVendorCDR_20' ) start [2025-01-23 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314559', 'tblTempVendorCDR_20' ) end [2025-01-23 19:48:18] Production.INFO: ProcessCDR(1,14314559,1,1,2) [2025-01-23 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314559', 'tblTempUsageDetail_20' ) start [2025-01-23 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314559', 'tblTempUsageDetail_20' ) end [2025-01-23 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:48:21] Production.INFO: ==1107== Releasing lock... [2025-01-23 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:48:21] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:49:05 [end_date_ymd] => 2025-01-23 19:49:05 [RateCDR] => 1 ) [2025-01-23 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 16:49:05' and `end` < '2025-01-23 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 19:49:18] Production.INFO: count ==2962 [2025-01-23 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:49:05 - End Time 2025-01-23 19:49:05 [2025-01-23 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314564', 'tblTempUsageDetail_20' ) start [2025-01-23 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314564', 'tblTempUsageDetail_20' ) end [2025-01-23 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314564', 'tblTempVendorCDR_20' ) start [2025-01-23 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314564', 'tblTempVendorCDR_20' ) end [2025-01-23 19:49:19] Production.INFO: ProcessCDR(1,14314564,1,1,2) [2025-01-23 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314564', 'tblTempUsageDetail_20' ) start [2025-01-23 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314564', 'tblTempUsageDetail_20' ) end [2025-01-23 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:49:22] Production.INFO: ==1189== Releasing lock... [2025-01-23 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:49:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:50:06 [end_date_ymd] => 2025-01-23 19:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 16:50:06' and `end` < '2025-01-23 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-23 19:50:19] Production.INFO: count ==2956 [2025-01-23 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:50:06 - End Time 2025-01-23 19:50:06 [2025-01-23 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314570', 'tblTempUsageDetail_20' ) start [2025-01-23 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314570', 'tblTempUsageDetail_20' ) end [2025-01-23 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314570', 'tblTempVendorCDR_20' ) start [2025-01-23 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314570', 'tblTempVendorCDR_20' ) end [2025-01-23 19:50:19] Production.INFO: ProcessCDR(1,14314570,1,1,2) [2025-01-23 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314570', 'tblTempUsageDetail_20' ) start [2025-01-23 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314570', 'tblTempUsageDetail_20' ) end [2025-01-23 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:50:22] Production.INFO: ==1275== Releasing lock... [2025-01-23 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:50:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-23 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:51:05 [end_date_ymd] => 2025-01-23 19:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:51:05' and `end` < '2025-01-23 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-23 19:51:20] Production.INFO: count ==2895 [2025-01-23 19:51:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:51:05 - End Time 2025-01-23 19:51:05 [2025-01-23 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314575', 'tblTempUsageDetail_20' ) start [2025-01-23 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314575', 'tblTempUsageDetail_20' ) end [2025-01-23 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314575', 'tblTempVendorCDR_20' ) start [2025-01-23 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314575', 'tblTempVendorCDR_20' ) end [2025-01-23 19:51:20] Production.INFO: ProcessCDR(1,14314575,1,1,2) [2025-01-23 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314575', 'tblTempUsageDetail_20' ) start [2025-01-23 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314575', 'tblTempUsageDetail_20' ) end [2025-01-23 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:51:24] Production.INFO: ==1353== Releasing lock... [2025-01-23 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:51:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-23 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:52:05 [end_date_ymd] => 2025-01-23 19:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:52:05' and `end` < '2025-01-23 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-23 19:52:18] Production.INFO: count ==2889 [2025-01-23 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:52:05 - End Time 2025-01-23 19:52:05 [2025-01-23 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314580', 'tblTempUsageDetail_20' ) start [2025-01-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314580', 'tblTempUsageDetail_20' ) end [2025-01-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314580', 'tblTempVendorCDR_20' ) start [2025-01-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314580', 'tblTempVendorCDR_20' ) end [2025-01-23 19:52:19] Production.INFO: ProcessCDR(1,14314580,1,1,2) [2025-01-23 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314580', 'tblTempUsageDetail_20' ) start [2025-01-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314580', 'tblTempUsageDetail_20' ) end [2025-01-23 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:52:22] Production.INFO: ==1425== Releasing lock... [2025-01-23 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:52:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-23 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:53:05 [end_date_ymd] => 2025-01-23 19:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:53:05' and `end` < '2025-01-23 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-23 19:53:19] Production.INFO: count ==2876 [2025-01-23 19:53:20] Production.ERROR: pbx CDR StartTime 2025-01-23 16:53:05 - End Time 2025-01-23 19:53:05 [2025-01-23 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314585', 'tblTempUsageDetail_20' ) start [2025-01-23 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314585', 'tblTempUsageDetail_20' ) end [2025-01-23 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314585', 'tblTempVendorCDR_20' ) start [2025-01-23 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314585', 'tblTempVendorCDR_20' ) end [2025-01-23 19:53:20] Production.INFO: ProcessCDR(1,14314585,1,1,2) [2025-01-23 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314585', 'tblTempUsageDetail_20' ) start [2025-01-23 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314585', 'tblTempUsageDetail_20' ) end [2025-01-23 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:53:23] Production.INFO: ==1498== Releasing lock... [2025-01-23 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:53:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-23 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:54:04 [end_date_ymd] => 2025-01-23 19:54:04 [RateCDR] => 1 ) [2025-01-23 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-23 16:54:04' and `end` < '2025-01-23 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-23 19:54:23] Production.INFO: count ==2875 [2025-01-23 19:54:23] Production.ERROR: pbx CDR StartTime 2025-01-23 16:54:04 - End Time 2025-01-23 19:54:04 [2025-01-23 19:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314590', 'tblTempUsageDetail_20' ) start [2025-01-23 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314590', 'tblTempUsageDetail_20' ) end [2025-01-23 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314590', 'tblTempVendorCDR_20' ) start [2025-01-23 19:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314590', 'tblTempVendorCDR_20' ) end [2025-01-23 19:54:23] Production.INFO: ProcessCDR(1,14314590,1,1,2) [2025-01-23 19:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314590', 'tblTempUsageDetail_20' ) start [2025-01-23 19:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314590', 'tblTempUsageDetail_20' ) end [2025-01-23 19:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:54:28] Production.INFO: ==1608== Releasing lock... [2025-01-23 19:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:54:28] Production.INFO: 49.25 MB #Memory Used# [2025-01-23 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:55:06 [end_date_ymd] => 2025-01-23 19:55:06 [RateCDR] => 1 ) [2025-01-23 19: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-23 16:55:06' and `end` < '2025-01-23 19: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-23 19:55:23] Production.INFO: count ==2863 [2025-01-23 19:55:24] Production.ERROR: pbx CDR StartTime 2025-01-23 16:55:06 - End Time 2025-01-23 19:55:06 [2025-01-23 19:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314595', 'tblTempUsageDetail_20' ) start [2025-01-23 19:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314595', 'tblTempUsageDetail_20' ) end [2025-01-23 19:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314595', 'tblTempVendorCDR_20' ) start [2025-01-23 19:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314595', 'tblTempVendorCDR_20' ) end [2025-01-23 19:55:24] Production.INFO: ProcessCDR(1,14314595,1,1,2) [2025-01-23 19:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314595', 'tblTempUsageDetail_20' ) start [2025-01-23 19:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314595', 'tblTempUsageDetail_20' ) end [2025-01-23 19:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:55:27] Production.INFO: ==1681== Releasing lock... [2025-01-23 19:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:55:27] Production.INFO: 49 MB #Memory Used# [2025-01-23 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:56:05 [end_date_ymd] => 2025-01-23 19:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:56:05' and `end` < '2025-01-23 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-23 19:56:18] Production.INFO: count ==2855 [2025-01-23 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:56:05 - End Time 2025-01-23 19:56:05 [2025-01-23 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314600', 'tblTempUsageDetail_20' ) start [2025-01-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314600', 'tblTempUsageDetail_20' ) end [2025-01-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314600', 'tblTempVendorCDR_20' ) start [2025-01-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314600', 'tblTempVendorCDR_20' ) end [2025-01-23 19:56:18] Production.INFO: ProcessCDR(1,14314600,1,1,2) [2025-01-23 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314600', 'tblTempUsageDetail_20' ) start [2025-01-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314600', 'tblTempUsageDetail_20' ) end [2025-01-23 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:56:23] Production.INFO: ==1753== Releasing lock... [2025-01-23 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:56:23] Production.INFO: 49 MB #Memory Used# [2025-01-23 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:57:05 [end_date_ymd] => 2025-01-23 19:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:57:05' and `end` < '2025-01-23 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-23 19:57:18] Production.INFO: count ==2858 [2025-01-23 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-23 16:57:05 - End Time 2025-01-23 19:57:05 [2025-01-23 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314605', 'tblTempUsageDetail_20' ) start [2025-01-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314605', 'tblTempUsageDetail_20' ) end [2025-01-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314605', 'tblTempVendorCDR_20' ) start [2025-01-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314605', 'tblTempVendorCDR_20' ) end [2025-01-23 19:57:19] Production.INFO: ProcessCDR(1,14314605,1,1,2) [2025-01-23 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314605', 'tblTempUsageDetail_20' ) start [2025-01-23 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314605', 'tblTempUsageDetail_20' ) end [2025-01-23 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:57:23] Production.INFO: ==1831== Releasing lock... [2025-01-23 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:57:23] Production.INFO: 49 MB #Memory Used# [2025-01-23 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:58:05 [end_date_ymd] => 2025-01-23 19:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:58:05' and `end` < '2025-01-23 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-23 19:58:20] Production.INFO: count ==2854 [2025-01-23 19:58:21] Production.ERROR: pbx CDR StartTime 2025-01-23 16:58:05 - End Time 2025-01-23 19:58:05 [2025-01-23 19:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314610', 'tblTempUsageDetail_20' ) start [2025-01-23 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314610', 'tblTempUsageDetail_20' ) end [2025-01-23 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314610', 'tblTempVendorCDR_20' ) start [2025-01-23 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314610', 'tblTempVendorCDR_20' ) end [2025-01-23 19:58:21] Production.INFO: ProcessCDR(1,14314610,1,1,2) [2025-01-23 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314610', 'tblTempUsageDetail_20' ) start [2025-01-23 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314610', 'tblTempUsageDetail_20' ) end [2025-01-23 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:58:24] Production.INFO: ==1903== Releasing lock... [2025-01-23 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:58:24] Production.INFO: 49 MB #Memory Used# [2025-01-23 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 16:59:05 [end_date_ymd] => 2025-01-23 19:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 16:59:05' and `end` < '2025-01-23 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-23 19:59:18] Production.INFO: count ==2844 [2025-01-23 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 16:59:05 - End Time 2025-01-23 19:59:05 [2025-01-23 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314615', 'tblTempUsageDetail_20' ) start [2025-01-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314615', 'tblTempUsageDetail_20' ) end [2025-01-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314615', 'tblTempVendorCDR_20' ) start [2025-01-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314615', 'tblTempVendorCDR_20' ) end [2025-01-23 19:59:18] Production.INFO: ProcessCDR(1,14314615,1,1,2) [2025-01-23 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314615', 'tblTempUsageDetail_20' ) start [2025-01-23 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314615', 'tblTempUsageDetail_20' ) end [2025-01-23 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 19:59:22] Production.INFO: ==1980== Releasing lock... [2025-01-23 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 19:59:22] Production.INFO: 49 MB #Memory Used# [2025-01-23 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:00:07 [end_date_ymd] => 2025-01-23 20:00:07 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:00:07' and `end` < '2025-01-23 20: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-23 20:00:21] Production.INFO: count ==2841 [2025-01-23 20:00:21] Production.ERROR: pbx CDR StartTime 2025-01-23 17:00:07 - End Time 2025-01-23 20:00:07 [2025-01-23 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314621', 'tblTempUsageDetail_20' ) start [2025-01-23 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314621', 'tblTempUsageDetail_20' ) end [2025-01-23 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314621', 'tblTempVendorCDR_20' ) start [2025-01-23 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314621', 'tblTempVendorCDR_20' ) end [2025-01-23 20:00:21] Production.INFO: ProcessCDR(1,14314621,1,1,2) [2025-01-23 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314621', 'tblTempUsageDetail_20' ) start [2025-01-23 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314621', 'tblTempUsageDetail_20' ) end [2025-01-23 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:00:26] Production.INFO: ==2097== Releasing lock... [2025-01-23 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:00:26] Production.INFO: 49 MB #Memory Used# [2025-01-23 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:01:05 [end_date_ymd] => 2025-01-23 20:01:05 [RateCDR] => 1 ) [2025-01-23 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:01:05' and `end` < '2025-01-23 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:01:18] Production.INFO: count ==2740 [2025-01-23 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:01:05 - End Time 2025-01-23 20:01:05 [2025-01-23 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314626', 'tblTempUsageDetail_20' ) start [2025-01-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314626', 'tblTempUsageDetail_20' ) end [2025-01-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314626', 'tblTempVendorCDR_20' ) start [2025-01-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314626', 'tblTempVendorCDR_20' ) end [2025-01-23 20:01:18] Production.INFO: ProcessCDR(1,14314626,1,1,2) [2025-01-23 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314626', 'tblTempUsageDetail_20' ) start [2025-01-23 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314626', 'tblTempUsageDetail_20' ) end [2025-01-23 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:01:22] Production.INFO: ==2224== Releasing lock... [2025-01-23 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:01:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-23 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:02:05 [end_date_ymd] => 2025-01-23 20:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:02:05' and `end` < '2025-01-23 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-23 20:02:19] Production.INFO: count ==2736 [2025-01-23 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:02:05 - End Time 2025-01-23 20:02:05 [2025-01-23 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314631', 'tblTempUsageDetail_20' ) start [2025-01-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314631', 'tblTempUsageDetail_20' ) end [2025-01-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314631', 'tblTempVendorCDR_20' ) start [2025-01-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314631', 'tblTempVendorCDR_20' ) end [2025-01-23 20:02:19] Production.INFO: ProcessCDR(1,14314631,1,1,2) [2025-01-23 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314631', 'tblTempUsageDetail_20' ) start [2025-01-23 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314631', 'tblTempUsageDetail_20' ) end [2025-01-23 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:02:24] Production.INFO: ==2299== Releasing lock... [2025-01-23 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:02:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-23 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:03:05 [end_date_ymd] => 2025-01-23 20:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:03:05' and `end` < '2025-01-23 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-23 20:03:19] Production.INFO: count ==2732 [2025-01-23 20:03:20] Production.ERROR: pbx CDR StartTime 2025-01-23 17:03:05 - End Time 2025-01-23 20:03:05 [2025-01-23 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314636', 'tblTempUsageDetail_20' ) start [2025-01-23 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314636', 'tblTempUsageDetail_20' ) end [2025-01-23 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314636', 'tblTempVendorCDR_20' ) start [2025-01-23 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314636', 'tblTempVendorCDR_20' ) end [2025-01-23 20:03:20] Production.INFO: ProcessCDR(1,14314636,1,1,2) [2025-01-23 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314636', 'tblTempUsageDetail_20' ) start [2025-01-23 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314636', 'tblTempUsageDetail_20' ) end [2025-01-23 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:03:23] Production.INFO: ==2373== Releasing lock... [2025-01-23 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:03:23] Production.INFO: 48 MB #Memory Used# [2025-01-23 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:04:06 [end_date_ymd] => 2025-01-23 20:04:06 [RateCDR] => 1 ) [2025-01-23 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:04:06' and `end` < '2025-01-23 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:04:20] Production.INFO: count ==2739 [2025-01-23 20:04:21] Production.ERROR: pbx CDR StartTime 2025-01-23 17:04:06 - End Time 2025-01-23 20:04:06 [2025-01-23 20:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314641', 'tblTempUsageDetail_20' ) start [2025-01-23 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314641', 'tblTempUsageDetail_20' ) end [2025-01-23 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314641', 'tblTempVendorCDR_20' ) start [2025-01-23 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314641', 'tblTempVendorCDR_20' ) end [2025-01-23 20:04:21] Production.INFO: ProcessCDR(1,14314641,1,1,2) [2025-01-23 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314641', 'tblTempUsageDetail_20' ) start [2025-01-23 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314641', 'tblTempUsageDetail_20' ) end [2025-01-23 20:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:04:26] Production.INFO: ==2445== Releasing lock... [2025-01-23 20:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:04:26] Production.INFO: 48.25 MB #Memory Used# [2025-01-23 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:05:05 [end_date_ymd] => 2025-01-23 20:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:05:05' and `end` < '2025-01-23 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:05:18] Production.INFO: count ==2713 [2025-01-23 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:05:05 - End Time 2025-01-23 20:05:05 [2025-01-23 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314646', 'tblTempUsageDetail_20' ) start [2025-01-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314646', 'tblTempUsageDetail_20' ) end [2025-01-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314646', 'tblTempVendorCDR_20' ) start [2025-01-23 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314646', 'tblTempVendorCDR_20' ) end [2025-01-23 20:05:19] Production.INFO: ProcessCDR(1,14314646,1,1,2) [2025-01-23 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314646', 'tblTempUsageDetail_20' ) start [2025-01-23 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314646', 'tblTempUsageDetail_20' ) end [2025-01-23 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:05:24] Production.INFO: ==2519== Releasing lock... [2025-01-23 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:05:24] Production.INFO: 48 MB #Memory Used# [2025-01-23 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:06:05 [end_date_ymd] => 2025-01-23 20:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:06:05' and `end` < '2025-01-23 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-23 20:06:20] Production.INFO: count ==2710 [2025-01-23 20:06:21] Production.ERROR: pbx CDR StartTime 2025-01-23 17:06:05 - End Time 2025-01-23 20:06:05 [2025-01-23 20:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314651', 'tblTempUsageDetail_20' ) start [2025-01-23 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314651', 'tblTempUsageDetail_20' ) end [2025-01-23 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314651', 'tblTempVendorCDR_20' ) start [2025-01-23 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314651', 'tblTempVendorCDR_20' ) end [2025-01-23 20:06:21] Production.INFO: ProcessCDR(1,14314651,1,1,2) [2025-01-23 20:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314651', 'tblTempUsageDetail_20' ) start [2025-01-23 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314651', 'tblTempUsageDetail_20' ) end [2025-01-23 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:06:24] Production.INFO: ==2592== Releasing lock... [2025-01-23 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:06:24] Production.INFO: 48 MB #Memory Used# [2025-01-23 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:07:05 [end_date_ymd] => 2025-01-23 20:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:07:05' and `end` < '2025-01-23 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-23 20:07:19] Production.INFO: count ==2696 [2025-01-23 20:07:20] Production.ERROR: pbx CDR StartTime 2025-01-23 17:07:05 - End Time 2025-01-23 20:07:05 [2025-01-23 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314656', 'tblTempUsageDetail_20' ) start [2025-01-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314656', 'tblTempUsageDetail_20' ) end [2025-01-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314656', 'tblTempVendorCDR_20' ) start [2025-01-23 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314656', 'tblTempVendorCDR_20' ) end [2025-01-23 20:07:20] Production.INFO: ProcessCDR(1,14314656,1,1,2) [2025-01-23 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314656', 'tblTempUsageDetail_20' ) start [2025-01-23 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314656', 'tblTempUsageDetail_20' ) end [2025-01-23 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:07:23] Production.INFO: ==2663== Releasing lock... [2025-01-23 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:07:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:08:06 [end_date_ymd] => 2025-01-23 20:08:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:08:06' and `end` < '2025-01-23 20: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-23 20:08:18] Production.INFO: count ==2697 [2025-01-23 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:08:06 - End Time 2025-01-23 20:08:06 [2025-01-23 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314661', 'tblTempUsageDetail_20' ) start [2025-01-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314661', 'tblTempUsageDetail_20' ) end [2025-01-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314661', 'tblTempVendorCDR_20' ) start [2025-01-23 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314661', 'tblTempVendorCDR_20' ) end [2025-01-23 20:08:19] Production.INFO: ProcessCDR(1,14314661,1,1,2) [2025-01-23 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314661', 'tblTempUsageDetail_20' ) start [2025-01-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314661', 'tblTempUsageDetail_20' ) end [2025-01-23 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:08:22] Production.INFO: ==2735== Releasing lock... [2025-01-23 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:08:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:09:05 [end_date_ymd] => 2025-01-23 20:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:09:05' and `end` < '2025-01-23 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-23 20:09:18] Production.INFO: count ==2696 [2025-01-23 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:09:05 - End Time 2025-01-23 20:09:05 [2025-01-23 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314666', 'tblTempUsageDetail_20' ) start [2025-01-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314666', 'tblTempUsageDetail_20' ) end [2025-01-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314666', 'tblTempVendorCDR_20' ) start [2025-01-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314666', 'tblTempVendorCDR_20' ) end [2025-01-23 20:09:19] Production.INFO: ProcessCDR(1,14314666,1,1,2) [2025-01-23 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314666', 'tblTempUsageDetail_20' ) start [2025-01-23 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314666', 'tblTempUsageDetail_20' ) end [2025-01-23 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:09:23] Production.INFO: ==2811== Releasing lock... [2025-01-23 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:09:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:10:07 [end_date_ymd] => 2025-01-23 20:10:07 [RateCDR] => 1 ) [2025-01-23 20:10: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-23 17:10:07' and `end` < '2025-01-23 20:10: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-23 20:10:20] Production.INFO: count ==2698 [2025-01-23 20:10:20] Production.ERROR: pbx CDR StartTime 2025-01-23 17:10:07 - End Time 2025-01-23 20:10:07 [2025-01-23 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314671', 'tblTempUsageDetail_20' ) start [2025-01-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314671', 'tblTempUsageDetail_20' ) end [2025-01-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314671', 'tblTempVendorCDR_20' ) start [2025-01-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314671', 'tblTempVendorCDR_20' ) end [2025-01-23 20:10:20] Production.INFO: ProcessCDR(1,14314671,1,1,2) [2025-01-23 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314671', 'tblTempUsageDetail_20' ) start [2025-01-23 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314671', 'tblTempUsageDetail_20' ) end [2025-01-23 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:10:26] Production.INFO: ==2883== Releasing lock... [2025-01-23 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:10:26] Production.INFO: 47.75 MB #Memory Used# [2025-01-23 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:11:05 [end_date_ymd] => 2025-01-23 20:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:11:05' and `end` < '2025-01-23 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-23 20:11:23] Production.INFO: count ==2630 [2025-01-23 20:11:24] Production.ERROR: pbx CDR StartTime 2025-01-23 17:11:05 - End Time 2025-01-23 20:11:05 [2025-01-23 20:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314677', 'tblTempUsageDetail_20' ) start [2025-01-23 20:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314677', 'tblTempUsageDetail_20' ) end [2025-01-23 20:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314677', 'tblTempVendorCDR_20' ) start [2025-01-23 20:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314677', 'tblTempVendorCDR_20' ) end [2025-01-23 20:11:24] Production.INFO: ProcessCDR(1,14314677,1,1,2) [2025-01-23 20:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314677', 'tblTempUsageDetail_20' ) start [2025-01-23 20:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314677', 'tblTempUsageDetail_20' ) end [2025-01-23 20:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:11:27] Production.INFO: ==2962== Releasing lock... [2025-01-23 20:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:11:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:12:06 [end_date_ymd] => 2025-01-23 20:12:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:12:06' and `end` < '2025-01-23 20: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-23 20:12:19] Production.INFO: count ==2623 [2025-01-23 20:12:20] Production.ERROR: pbx CDR StartTime 2025-01-23 17:12:06 - End Time 2025-01-23 20:12:06 [2025-01-23 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314682', 'tblTempUsageDetail_20' ) start [2025-01-23 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314682', 'tblTempUsageDetail_20' ) end [2025-01-23 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314682', 'tblTempVendorCDR_20' ) start [2025-01-23 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314682', 'tblTempVendorCDR_20' ) end [2025-01-23 20:12:20] Production.INFO: ProcessCDR(1,14314682,1,1,2) [2025-01-23 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314682', 'tblTempUsageDetail_20' ) start [2025-01-23 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314682', 'tblTempUsageDetail_20' ) end [2025-01-23 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:12:23] Production.INFO: ==3034== Releasing lock... [2025-01-23 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:12:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:13:05 [end_date_ymd] => 2025-01-23 20:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:13:05' and `end` < '2025-01-23 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-23 20:13:18] Production.INFO: count ==2616 [2025-01-23 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:13:05 - End Time 2025-01-23 20:13:05 [2025-01-23 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314687', 'tblTempUsageDetail_20' ) start [2025-01-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314687', 'tblTempUsageDetail_20' ) end [2025-01-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314687', 'tblTempVendorCDR_20' ) start [2025-01-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314687', 'tblTempVendorCDR_20' ) end [2025-01-23 20:13:19] Production.INFO: ProcessCDR(1,14314687,1,1,2) [2025-01-23 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314687', 'tblTempUsageDetail_20' ) start [2025-01-23 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314687', 'tblTempUsageDetail_20' ) end [2025-01-23 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:13:23] Production.INFO: ==3110== Releasing lock... [2025-01-23 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:13:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:14:05 [end_date_ymd] => 2025-01-23 20:14:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:14:05' and `end` < '2025-01-23 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-23 20:14:18] Production.INFO: count ==2607 [2025-01-23 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:14:05 - End Time 2025-01-23 20:14:05 [2025-01-23 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314692', 'tblTempUsageDetail_20' ) start [2025-01-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314692', 'tblTempUsageDetail_20' ) end [2025-01-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314692', 'tblTempVendorCDR_20' ) start [2025-01-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314692', 'tblTempVendorCDR_20' ) end [2025-01-23 20:14:19] Production.INFO: ProcessCDR(1,14314692,1,1,2) [2025-01-23 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314692', 'tblTempUsageDetail_20' ) start [2025-01-23 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314692', 'tblTempUsageDetail_20' ) end [2025-01-23 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:14:22] Production.INFO: ==3182== Releasing lock... [2025-01-23 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:14:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-23 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:15:05 [end_date_ymd] => 2025-01-23 20:15:05 [RateCDR] => 1 ) [2025-01-23 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:15:05' and `end` < '2025-01-23 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:15:18] Production.INFO: count ==2592 [2025-01-23 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:15:05 - End Time 2025-01-23 20:15:05 [2025-01-23 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314697', 'tblTempUsageDetail_20' ) start [2025-01-23 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314697', 'tblTempUsageDetail_20' ) end [2025-01-23 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314697', 'tblTempVendorCDR_20' ) start [2025-01-23 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314697', 'tblTempVendorCDR_20' ) end [2025-01-23 20:15:18] Production.INFO: ProcessCDR(1,14314697,1,1,2) [2025-01-23 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314697', 'tblTempUsageDetail_20' ) start [2025-01-23 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314697', 'tblTempUsageDetail_20' ) end [2025-01-23 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:15:21] Production.INFO: ==3264== Releasing lock... [2025-01-23 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:15:21] Production.INFO: 47 MB #Memory Used# [2025-01-23 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:16:05 [end_date_ymd] => 2025-01-23 20:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:16:05' and `end` < '2025-01-23 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-23 20:16:18] Production.INFO: count ==2589 [2025-01-23 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:16:05 - End Time 2025-01-23 20:16:05 [2025-01-23 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314702', 'tblTempUsageDetail_20' ) start [2025-01-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314702', 'tblTempUsageDetail_20' ) end [2025-01-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314702', 'tblTempVendorCDR_20' ) start [2025-01-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314702', 'tblTempVendorCDR_20' ) end [2025-01-23 20:16:18] Production.INFO: ProcessCDR(1,14314702,1,1,2) [2025-01-23 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314702', 'tblTempUsageDetail_20' ) start [2025-01-23 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314702', 'tblTempUsageDetail_20' ) end [2025-01-23 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:16:21] Production.INFO: ==3375== Releasing lock... [2025-01-23 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:16:21] Production.INFO: 47 MB #Memory Used# [2025-01-23 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:17:05 [end_date_ymd] => 2025-01-23 20:17:05 [RateCDR] => 1 ) [2025-01-23 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:17:05' and `end` < '2025-01-23 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:17:18] Production.INFO: count ==2585 [2025-01-23 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:17:05 - End Time 2025-01-23 20:17:05 [2025-01-23 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314707', 'tblTempUsageDetail_20' ) start [2025-01-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314707', 'tblTempUsageDetail_20' ) end [2025-01-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314707', 'tblTempVendorCDR_20' ) start [2025-01-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314707', 'tblTempVendorCDR_20' ) end [2025-01-23 20:17:18] Production.INFO: ProcessCDR(1,14314707,1,1,2) [2025-01-23 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314707', 'tblTempUsageDetail_20' ) start [2025-01-23 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314707', 'tblTempUsageDetail_20' ) end [2025-01-23 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:17:21] Production.INFO: ==3446== Releasing lock... [2025-01-23 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:17:21] Production.INFO: 47 MB #Memory Used# [2025-01-23 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:18:05 [end_date_ymd] => 2025-01-23 20:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:18:05' and `end` < '2025-01-23 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-23 20:18:18] Production.INFO: count ==2579 [2025-01-23 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:18:05 - End Time 2025-01-23 20:18:05 [2025-01-23 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314712', 'tblTempUsageDetail_20' ) start [2025-01-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314712', 'tblTempUsageDetail_20' ) end [2025-01-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314712', 'tblTempVendorCDR_20' ) start [2025-01-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314712', 'tblTempVendorCDR_20' ) end [2025-01-23 20:18:19] Production.INFO: ProcessCDR(1,14314712,1,1,2) [2025-01-23 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314712', 'tblTempUsageDetail_20' ) start [2025-01-23 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314712', 'tblTempUsageDetail_20' ) end [2025-01-23 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:18:23] Production.INFO: ==3532== Releasing lock... [2025-01-23 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:18:23] Production.INFO: 47 MB #Memory Used# [2025-01-23 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:19:06 [end_date_ymd] => 2025-01-23 20:19:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:19:06' and `end` < '2025-01-23 20: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-23 20:19:18] Production.INFO: count ==2575 [2025-01-23 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:19:06 - End Time 2025-01-23 20:19:06 [2025-01-23 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314717', 'tblTempUsageDetail_20' ) start [2025-01-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314717', 'tblTempUsageDetail_20' ) end [2025-01-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314717', 'tblTempVendorCDR_20' ) start [2025-01-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314717', 'tblTempVendorCDR_20' ) end [2025-01-23 20:19:19] Production.INFO: ProcessCDR(1,14314717,1,1,2) [2025-01-23 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314717', 'tblTempUsageDetail_20' ) start [2025-01-23 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314717', 'tblTempUsageDetail_20' ) end [2025-01-23 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:19:22] Production.INFO: ==3605== Releasing lock... [2025-01-23 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:19:22] Production.INFO: 47 MB #Memory Used# [2025-01-23 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:20:06 [end_date_ymd] => 2025-01-23 20:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 17:20:06' and `end` < '2025-01-23 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-23 20:20:19] Production.INFO: count ==2571 [2025-01-23 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:20:06 - End Time 2025-01-23 20:20:06 [2025-01-23 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314723', 'tblTempUsageDetail_20' ) start [2025-01-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314723', 'tblTempUsageDetail_20' ) end [2025-01-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314723', 'tblTempVendorCDR_20' ) start [2025-01-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314723', 'tblTempVendorCDR_20' ) end [2025-01-23 20:20:19] Production.INFO: ProcessCDR(1,14314723,1,1,2) [2025-01-23 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314723', 'tblTempUsageDetail_20' ) start [2025-01-23 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314723', 'tblTempUsageDetail_20' ) end [2025-01-23 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:20:22] Production.INFO: ==3682== Releasing lock... [2025-01-23 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:20:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-23 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:21:06 [end_date_ymd] => 2025-01-23 20:21:06 [RateCDR] => 1 ) [2025-01-23 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:21:06' and `end` < '2025-01-23 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:21:18] Production.INFO: count ==2479 [2025-01-23 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:21:06 - End Time 2025-01-23 20:21:06 [2025-01-23 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314728', 'tblTempUsageDetail_20' ) start [2025-01-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314728', 'tblTempUsageDetail_20' ) end [2025-01-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314728', 'tblTempVendorCDR_20' ) start [2025-01-23 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314728', 'tblTempVendorCDR_20' ) end [2025-01-23 20:21:19] Production.INFO: ProcessCDR(1,14314728,1,1,2) [2025-01-23 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314728', 'tblTempUsageDetail_20' ) start [2025-01-23 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314728', 'tblTempUsageDetail_20' ) end [2025-01-23 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:21:22] Production.INFO: ==3761== Releasing lock... [2025-01-23 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:21:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-23 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:22:06 [end_date_ymd] => 2025-01-23 20:22:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:22:06' and `end` < '2025-01-23 20: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-23 20:22:18] Production.INFO: count ==2476 [2025-01-23 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:22:06 - End Time 2025-01-23 20:22:06 [2025-01-23 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314733', 'tblTempUsageDetail_20' ) start [2025-01-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314733', 'tblTempUsageDetail_20' ) end [2025-01-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314733', 'tblTempVendorCDR_20' ) start [2025-01-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314733', 'tblTempVendorCDR_20' ) end [2025-01-23 20:22:19] Production.INFO: ProcessCDR(1,14314733,1,1,2) [2025-01-23 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314733', 'tblTempUsageDetail_20' ) start [2025-01-23 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314733', 'tblTempUsageDetail_20' ) end [2025-01-23 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:22:24] Production.INFO: ==3836== Releasing lock... [2025-01-23 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:22:24] Production.INFO: 46.25 MB #Memory Used# [2025-01-23 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:23:05 [end_date_ymd] => 2025-01-23 20:23:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:23:05' and `end` < '2025-01-23 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-23 20:23:18] Production.INFO: count ==2467 [2025-01-23 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:23:05 - End Time 2025-01-23 20:23:05 [2025-01-23 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314738', 'tblTempUsageDetail_20' ) start [2025-01-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314738', 'tblTempUsageDetail_20' ) end [2025-01-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314738', 'tblTempVendorCDR_20' ) start [2025-01-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314738', 'tblTempVendorCDR_20' ) end [2025-01-23 20:23:18] Production.INFO: ProcessCDR(1,14314738,1,1,2) [2025-01-23 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314738', 'tblTempUsageDetail_20' ) start [2025-01-23 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314738', 'tblTempUsageDetail_20' ) end [2025-01-23 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:23:22] Production.INFO: ==3907== Releasing lock... [2025-01-23 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:23:22] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:24:06 [end_date_ymd] => 2025-01-23 20:24:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:24:06' and `end` < '2025-01-23 20: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-23 20:24:18] Production.INFO: count ==2462 [2025-01-23 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:24:06 - End Time 2025-01-23 20:24:06 [2025-01-23 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314743', 'tblTempUsageDetail_20' ) start [2025-01-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314743', 'tblTempUsageDetail_20' ) end [2025-01-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314743', 'tblTempVendorCDR_20' ) start [2025-01-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314743', 'tblTempVendorCDR_20' ) end [2025-01-23 20:24:19] Production.INFO: ProcessCDR(1,14314743,1,1,2) [2025-01-23 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314743', 'tblTempUsageDetail_20' ) start [2025-01-23 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314743', 'tblTempUsageDetail_20' ) end [2025-01-23 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:24:22] Production.INFO: ==3980== Releasing lock... [2025-01-23 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:24:22] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:25:05 [end_date_ymd] => 2025-01-23 20:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:25:05' and `end` < '2025-01-23 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-23 20:25:17] Production.INFO: count ==2456 [2025-01-23 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:25:05 - End Time 2025-01-23 20:25:05 [2025-01-23 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314748', 'tblTempUsageDetail_20' ) start [2025-01-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314748', 'tblTempUsageDetail_20' ) end [2025-01-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314748', 'tblTempVendorCDR_20' ) start [2025-01-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314748', 'tblTempVendorCDR_20' ) end [2025-01-23 20:25:18] Production.INFO: ProcessCDR(1,14314748,1,1,2) [2025-01-23 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314748', 'tblTempUsageDetail_20' ) start [2025-01-23 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314748', 'tblTempUsageDetail_20' ) end [2025-01-23 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:25:21] Production.INFO: ==4057== Releasing lock... [2025-01-23 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:25:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-23 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:26:06 [end_date_ymd] => 2025-01-23 20:26:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:26:06' and `end` < '2025-01-23 20: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-23 20:26:18] Production.INFO: count ==2449 [2025-01-23 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:26:06 - End Time 2025-01-23 20:26:06 [2025-01-23 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314753', 'tblTempUsageDetail_20' ) start [2025-01-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314753', 'tblTempUsageDetail_20' ) end [2025-01-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314753', 'tblTempVendorCDR_20' ) start [2025-01-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314753', 'tblTempVendorCDR_20' ) end [2025-01-23 20:26:19] Production.INFO: ProcessCDR(1,14314753,1,1,2) [2025-01-23 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314753', 'tblTempUsageDetail_20' ) start [2025-01-23 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314753', 'tblTempUsageDetail_20' ) end [2025-01-23 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:26:23] Production.INFO: ==4134== Releasing lock... [2025-01-23 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:26:23] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:27:05 [end_date_ymd] => 2025-01-23 20:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:27:05' and `end` < '2025-01-23 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-23 20:27:18] Production.INFO: count ==2444 [2025-01-23 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:27:05 - End Time 2025-01-23 20:27:05 [2025-01-23 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314758', 'tblTempUsageDetail_20' ) start [2025-01-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314758', 'tblTempUsageDetail_20' ) end [2025-01-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314758', 'tblTempVendorCDR_20' ) start [2025-01-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314758', 'tblTempVendorCDR_20' ) end [2025-01-23 20:27:18] Production.INFO: ProcessCDR(1,14314758,1,1,2) [2025-01-23 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314758', 'tblTempUsageDetail_20' ) start [2025-01-23 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314758', 'tblTempUsageDetail_20' ) end [2025-01-23 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:27:22] Production.INFO: ==4212== Releasing lock... [2025-01-23 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:27:22] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:28:05 [end_date_ymd] => 2025-01-23 20:28:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:28:05' and `end` < '2025-01-23 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-23 20:28:18] Production.INFO: count ==2445 [2025-01-23 20:28:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:28:05 - End Time 2025-01-23 20:28:05 [2025-01-23 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314763', 'tblTempUsageDetail_20' ) start [2025-01-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314763', 'tblTempUsageDetail_20' ) end [2025-01-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314763', 'tblTempVendorCDR_20' ) start [2025-01-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314763', 'tblTempVendorCDR_20' ) end [2025-01-23 20:28:19] Production.INFO: ProcessCDR(1,14314763,1,1,2) [2025-01-23 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314763', 'tblTempUsageDetail_20' ) start [2025-01-23 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314763', 'tblTempUsageDetail_20' ) end [2025-01-23 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:28:24] Production.INFO: ==4288== Releasing lock... [2025-01-23 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:28:24] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:29:05 [end_date_ymd] => 2025-01-23 20:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:29:05' and `end` < '2025-01-23 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-23 20:29:17] Production.INFO: count ==2448 [2025-01-23 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:29:05 - End Time 2025-01-23 20:29:05 [2025-01-23 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314768', 'tblTempUsageDetail_20' ) start [2025-01-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314768', 'tblTempUsageDetail_20' ) end [2025-01-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314768', 'tblTempVendorCDR_20' ) start [2025-01-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314768', 'tblTempVendorCDR_20' ) end [2025-01-23 20:29:18] Production.INFO: ProcessCDR(1,14314768,1,1,2) [2025-01-23 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314768', 'tblTempUsageDetail_20' ) start [2025-01-23 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314768', 'tblTempUsageDetail_20' ) end [2025-01-23 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:29:21] Production.INFO: ==4366== Releasing lock... [2025-01-23 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:29:21] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:30:06 [end_date_ymd] => 2025-01-23 20:30:06 [RateCDR] => 1 ) [2025-01-23 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:30:06' and `end` < '2025-01-23 20: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-23 20:30:19] Production.INFO: count ==2439 [2025-01-23 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:30:06 - End Time 2025-01-23 20:30:06 [2025-01-23 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314773', 'tblTempUsageDetail_20' ) start [2025-01-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314773', 'tblTempUsageDetail_20' ) end [2025-01-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314773', 'tblTempVendorCDR_20' ) start [2025-01-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314773', 'tblTempVendorCDR_20' ) end [2025-01-23 20:30:19] Production.INFO: ProcessCDR(1,14314773,1,1,2) [2025-01-23 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314773', 'tblTempUsageDetail_20' ) start [2025-01-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314773', 'tblTempUsageDetail_20' ) end [2025-01-23 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:30:24] Production.INFO: ==4450== Releasing lock... [2025-01-23 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:30:24] Production.INFO: 46 MB #Memory Used# [2025-01-23 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:31:05 [end_date_ymd] => 2025-01-23 20:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:31:05' and `end` < '2025-01-23 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-23 20:31:18] Production.INFO: count ==2328 [2025-01-23 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:31:05 - End Time 2025-01-23 20:31:05 [2025-01-23 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314779', 'tblTempUsageDetail_20' ) start [2025-01-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314779', 'tblTempUsageDetail_20' ) end [2025-01-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314779', 'tblTempVendorCDR_20' ) start [2025-01-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314779', 'tblTempVendorCDR_20' ) end [2025-01-23 20:31:18] Production.INFO: ProcessCDR(1,14314779,1,1,2) [2025-01-23 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314779', 'tblTempUsageDetail_20' ) start [2025-01-23 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314779', 'tblTempUsageDetail_20' ) end [2025-01-23 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:31:21] Production.INFO: ==4568== Releasing lock... [2025-01-23 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:31:21] Production.INFO: 45 MB #Memory Used# [2025-01-23 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:32:05 [end_date_ymd] => 2025-01-23 20:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:32:05' and `end` < '2025-01-23 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-23 20:32:18] Production.INFO: count ==2321 [2025-01-23 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:32:05 - End Time 2025-01-23 20:32:05 [2025-01-23 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314784', 'tblTempUsageDetail_20' ) start [2025-01-23 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314784', 'tblTempUsageDetail_20' ) end [2025-01-23 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314784', 'tblTempVendorCDR_20' ) start [2025-01-23 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314784', 'tblTempVendorCDR_20' ) end [2025-01-23 20:32:19] Production.INFO: ProcessCDR(1,14314784,1,1,2) [2025-01-23 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314784', 'tblTempUsageDetail_20' ) start [2025-01-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314784', 'tblTempUsageDetail_20' ) end [2025-01-23 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:32:22] Production.INFO: ==4654== Releasing lock... [2025-01-23 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:32:22] Production.INFO: 45 MB #Memory Used# [2025-01-23 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:33:05 [end_date_ymd] => 2025-01-23 20:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:33:05' and `end` < '2025-01-23 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-23 20:33:17] Production.INFO: count ==2311 [2025-01-23 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:33:05 - End Time 2025-01-23 20:33:05 [2025-01-23 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314789', 'tblTempUsageDetail_20' ) start [2025-01-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314789', 'tblTempUsageDetail_20' ) end [2025-01-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314789', 'tblTempVendorCDR_20' ) start [2025-01-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314789', 'tblTempVendorCDR_20' ) end [2025-01-23 20:33:18] Production.INFO: ProcessCDR(1,14314789,1,1,2) [2025-01-23 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314789', 'tblTempUsageDetail_20' ) start [2025-01-23 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314789', 'tblTempUsageDetail_20' ) end [2025-01-23 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:33:21] Production.INFO: ==4731== Releasing lock... [2025-01-23 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:33:21] Production.INFO: 45 MB #Memory Used# [2025-01-23 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:34:05 [end_date_ymd] => 2025-01-23 20:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:34:05' and `end` < '2025-01-23 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-23 20:34:18] Production.INFO: count ==2301 [2025-01-23 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:34:05 - End Time 2025-01-23 20:34:05 [2025-01-23 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314794', 'tblTempUsageDetail_20' ) start [2025-01-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314794', 'tblTempUsageDetail_20' ) end [2025-01-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314794', 'tblTempVendorCDR_20' ) start [2025-01-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314794', 'tblTempVendorCDR_20' ) end [2025-01-23 20:34:18] Production.INFO: ProcessCDR(1,14314794,1,1,2) [2025-01-23 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314794', 'tblTempUsageDetail_20' ) start [2025-01-23 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314794', 'tblTempUsageDetail_20' ) end [2025-01-23 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:34:21] Production.INFO: ==4810== Releasing lock... [2025-01-23 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:34:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-23 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:35:06 [end_date_ymd] => 2025-01-23 20:35:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:35:06' and `end` < '2025-01-23 20: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-23 20:35:19] Production.INFO: count ==2277 [2025-01-23 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:35:06 - End Time 2025-01-23 20:35:06 [2025-01-23 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314799', 'tblTempUsageDetail_20' ) start [2025-01-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314799', 'tblTempUsageDetail_20' ) end [2025-01-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314799', 'tblTempVendorCDR_20' ) start [2025-01-23 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314799', 'tblTempVendorCDR_20' ) end [2025-01-23 20:35:19] Production.INFO: ProcessCDR(1,14314799,1,1,2) [2025-01-23 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314799', 'tblTempUsageDetail_20' ) start [2025-01-23 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314799', 'tblTempUsageDetail_20' ) end [2025-01-23 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:35:22] Production.INFO: ==4890== Releasing lock... [2025-01-23 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:35:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-23 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:36:05 [end_date_ymd] => 2025-01-23 20:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:36:05' and `end` < '2025-01-23 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-23 20:36:18] Production.INFO: count ==2270 [2025-01-23 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:36:05 - End Time 2025-01-23 20:36:05 [2025-01-23 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314804', 'tblTempUsageDetail_20' ) start [2025-01-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314804', 'tblTempUsageDetail_20' ) end [2025-01-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314804', 'tblTempVendorCDR_20' ) start [2025-01-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314804', 'tblTempVendorCDR_20' ) end [2025-01-23 20:36:18] Production.INFO: ProcessCDR(1,14314804,1,1,2) [2025-01-23 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314804', 'tblTempUsageDetail_20' ) start [2025-01-23 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314804', 'tblTempUsageDetail_20' ) end [2025-01-23 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:36:21] Production.INFO: ==4966== Releasing lock... [2025-01-23 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:36:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:37:05 [end_date_ymd] => 2025-01-23 20:37:05 [RateCDR] => 1 ) [2025-01-23 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:37:05' and `end` < '2025-01-23 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:37:18] Production.INFO: count ==2262 [2025-01-23 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:37:05 - End Time 2025-01-23 20:37:05 [2025-01-23 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314809', 'tblTempUsageDetail_20' ) start [2025-01-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314809', 'tblTempUsageDetail_20' ) end [2025-01-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314809', 'tblTempVendorCDR_20' ) start [2025-01-23 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314809', 'tblTempVendorCDR_20' ) end [2025-01-23 20:37:19] Production.INFO: ProcessCDR(1,14314809,1,1,2) [2025-01-23 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314809', 'tblTempUsageDetail_20' ) start [2025-01-23 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314809', 'tblTempUsageDetail_20' ) end [2025-01-23 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:37:22] Production.INFO: ==5041== Releasing lock... [2025-01-23 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:37:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:38:05 [end_date_ymd] => 2025-01-23 20:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:38:05' and `end` < '2025-01-23 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-23 20:38:18] Production.INFO: count ==2255 [2025-01-23 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:38:05 - End Time 2025-01-23 20:38:05 [2025-01-23 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314814', 'tblTempUsageDetail_20' ) start [2025-01-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314814', 'tblTempUsageDetail_20' ) end [2025-01-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314814', 'tblTempVendorCDR_20' ) start [2025-01-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314814', 'tblTempVendorCDR_20' ) end [2025-01-23 20:38:19] Production.INFO: ProcessCDR(1,14314814,1,1,2) [2025-01-23 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314814', 'tblTempUsageDetail_20' ) start [2025-01-23 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314814', 'tblTempUsageDetail_20' ) end [2025-01-23 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:38:23] Production.INFO: ==5124== Releasing lock... [2025-01-23 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:38:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:39:05 [end_date_ymd] => 2025-01-23 20:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:39:05' and `end` < '2025-01-23 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-23 20:39:18] Production.INFO: count ==2247 [2025-01-23 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:39:05 - End Time 2025-01-23 20:39:05 [2025-01-23 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314819', 'tblTempUsageDetail_20' ) start [2025-01-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314819', 'tblTempUsageDetail_20' ) end [2025-01-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314819', 'tblTempVendorCDR_20' ) start [2025-01-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314819', 'tblTempVendorCDR_20' ) end [2025-01-23 20:39:19] Production.INFO: ProcessCDR(1,14314819,1,1,2) [2025-01-23 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314819', 'tblTempUsageDetail_20' ) start [2025-01-23 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314819', 'tblTempUsageDetail_20' ) end [2025-01-23 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:39:23] Production.INFO: ==5197== Releasing lock... [2025-01-23 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:39:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:40:06 [end_date_ymd] => 2025-01-23 20:40:06 [RateCDR] => 1 ) [2025-01-23 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-23 17:40:06' and `end` < '2025-01-23 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-23 20:40:19] Production.INFO: count ==2248 [2025-01-23 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:40:06 - End Time 2025-01-23 20:40:06 [2025-01-23 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314825', 'tblTempUsageDetail_20' ) start [2025-01-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314825', 'tblTempUsageDetail_20' ) end [2025-01-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314825', 'tblTempVendorCDR_20' ) start [2025-01-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314825', 'tblTempVendorCDR_20' ) end [2025-01-23 20:40:19] Production.INFO: ProcessCDR(1,14314825,1,1,2) [2025-01-23 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314825', 'tblTempUsageDetail_20' ) start [2025-01-23 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314825', 'tblTempUsageDetail_20' ) end [2025-01-23 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:40:24] Production.INFO: ==5279== Releasing lock... [2025-01-23 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:40:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-23 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:41:05 [end_date_ymd] => 2025-01-23 20:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:41:05' and `end` < '2025-01-23 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-23 20:41:20] Production.INFO: count ==2154 [2025-01-23 20:41:21] Production.ERROR: pbx CDR StartTime 2025-01-23 17:41:05 - End Time 2025-01-23 20:41:05 [2025-01-23 20:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314830', 'tblTempUsageDetail_20' ) start [2025-01-23 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314830', 'tblTempUsageDetail_20' ) end [2025-01-23 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314830', 'tblTempVendorCDR_20' ) start [2025-01-23 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314830', 'tblTempVendorCDR_20' ) end [2025-01-23 20:41:21] Production.INFO: ProcessCDR(1,14314830,1,1,2) [2025-01-23 20:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314830', 'tblTempUsageDetail_20' ) start [2025-01-23 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314830', 'tblTempUsageDetail_20' ) end [2025-01-23 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:41:24] Production.INFO: ==5360== Releasing lock... [2025-01-23 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:41:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-23 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:42:05 [end_date_ymd] => 2025-01-23 20:42:05 [RateCDR] => 1 ) [2025-01-23 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:42:05' and `end` < '2025-01-23 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:42:18] Production.INFO: count ==2141 [2025-01-23 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:42:05 - End Time 2025-01-23 20:42:05 [2025-01-23 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314835', 'tblTempUsageDetail_20' ) start [2025-01-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314835', 'tblTempUsageDetail_20' ) end [2025-01-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314835', 'tblTempVendorCDR_20' ) start [2025-01-23 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314835', 'tblTempVendorCDR_20' ) end [2025-01-23 20:42:19] Production.INFO: ProcessCDR(1,14314835,1,1,2) [2025-01-23 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314835', 'tblTempUsageDetail_20' ) start [2025-01-23 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314835', 'tblTempUsageDetail_20' ) end [2025-01-23 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:42:22] Production.INFO: ==5434== Releasing lock... [2025-01-23 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:42:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-23 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:43:05 [end_date_ymd] => 2025-01-23 20:43:05 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:43:05' and `end` < '2025-01-23 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-23 20:43:18] Production.INFO: count ==2139 [2025-01-23 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:43:05 - End Time 2025-01-23 20:43:05 [2025-01-23 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314840', 'tblTempUsageDetail_20' ) start [2025-01-23 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314840', 'tblTempUsageDetail_20' ) end [2025-01-23 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314840', 'tblTempVendorCDR_20' ) start [2025-01-23 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314840', 'tblTempVendorCDR_20' ) end [2025-01-23 20:43:19] Production.INFO: ProcessCDR(1,14314840,1,1,2) [2025-01-23 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314840', 'tblTempUsageDetail_20' ) start [2025-01-23 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314840', 'tblTempUsageDetail_20' ) end [2025-01-23 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:43:22] Production.INFO: ==5575== Releasing lock... [2025-01-23 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:43:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-23 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:44:05 [end_date_ymd] => 2025-01-23 20:44:05 [RateCDR] => 1 ) [2025-01-23 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:44:05' and `end` < '2025-01-23 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:44:17] Production.INFO: count ==2138 [2025-01-23 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:44:05 - End Time 2025-01-23 20:44:05 [2025-01-23 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314845', 'tblTempUsageDetail_20' ) start [2025-01-23 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314845', 'tblTempUsageDetail_20' ) end [2025-01-23 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314845', 'tblTempVendorCDR_20' ) start [2025-01-23 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314845', 'tblTempVendorCDR_20' ) end [2025-01-23 20:44:18] Production.INFO: ProcessCDR(1,14314845,1,1,2) [2025-01-23 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314845', 'tblTempUsageDetail_20' ) start [2025-01-23 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314845', 'tblTempUsageDetail_20' ) end [2025-01-23 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:44:21] Production.INFO: ==5648== Releasing lock... [2025-01-23 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:44:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-23 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:45:06 [end_date_ymd] => 2025-01-23 20:45:06 [RateCDR] => 1 ) [2025-01-23 20: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-23 17:45:06' and `end` < '2025-01-23 20: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-23 20:45:18] Production.INFO: count ==2131 [2025-01-23 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:45:06 - End Time 2025-01-23 20:45:06 [2025-01-23 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314847', 'tblTempUsageDetail_20' ) start [2025-01-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314847', 'tblTempUsageDetail_20' ) end [2025-01-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314847', 'tblTempVendorCDR_20' ) start [2025-01-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314847', 'tblTempVendorCDR_20' ) end [2025-01-23 20:45:18] Production.INFO: ProcessCDR(1,14314847,1,1,2) [2025-01-23 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314847', 'tblTempUsageDetail_20' ) start [2025-01-23 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314847', 'tblTempUsageDetail_20' ) end [2025-01-23 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:45:23] Production.INFO: ==5721== Releasing lock... [2025-01-23 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:45:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:46:05 [end_date_ymd] => 2025-01-23 20:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:46:05' and `end` < '2025-01-23 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-23 20:46:18] Production.INFO: count ==2125 [2025-01-23 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:46:05 - End Time 2025-01-23 20:46:05 [2025-01-23 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314855', 'tblTempUsageDetail_20' ) start [2025-01-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314855', 'tblTempUsageDetail_20' ) end [2025-01-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314855', 'tblTempVendorCDR_20' ) start [2025-01-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314855', 'tblTempVendorCDR_20' ) end [2025-01-23 20:46:18] Production.INFO: ProcessCDR(1,14314855,1,1,2) [2025-01-23 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314855', 'tblTempUsageDetail_20' ) start [2025-01-23 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314855', 'tblTempUsageDetail_20' ) end [2025-01-23 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:46:21] Production.INFO: ==5840== Releasing lock... [2025-01-23 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:46:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:47:05 [end_date_ymd] => 2025-01-23 20:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:47:05' and `end` < '2025-01-23 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-23 20:47:18] Production.INFO: count ==2117 [2025-01-23 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:47:05 - End Time 2025-01-23 20:47:05 [2025-01-23 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314860', 'tblTempUsageDetail_20' ) start [2025-01-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314860', 'tblTempUsageDetail_20' ) end [2025-01-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314860', 'tblTempVendorCDR_20' ) start [2025-01-23 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314860', 'tblTempVendorCDR_20' ) end [2025-01-23 20:47:19] Production.INFO: ProcessCDR(1,14314860,1,1,2) [2025-01-23 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314860', 'tblTempUsageDetail_20' ) start [2025-01-23 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314860', 'tblTempUsageDetail_20' ) end [2025-01-23 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:47:22] Production.INFO: ==5914== Releasing lock... [2025-01-23 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:47:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:48:05 [end_date_ymd] => 2025-01-23 20:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:48:05' and `end` < '2025-01-23 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-23 20:48:19] Production.INFO: count ==2110 [2025-01-23 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:48:05 - End Time 2025-01-23 20:48:05 [2025-01-23 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314865', 'tblTempUsageDetail_20' ) start [2025-01-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314865', 'tblTempUsageDetail_20' ) end [2025-01-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314865', 'tblTempVendorCDR_20' ) start [2025-01-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314865', 'tblTempVendorCDR_20' ) end [2025-01-23 20:48:19] Production.INFO: ProcessCDR(1,14314865,1,1,2) [2025-01-23 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314865', 'tblTempUsageDetail_20' ) start [2025-01-23 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314865', 'tblTempUsageDetail_20' ) end [2025-01-23 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:48:24] Production.INFO: ==5988== Releasing lock... [2025-01-23 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:48:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-23 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:49:05 [end_date_ymd] => 2025-01-23 20:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:49:05' and `end` < '2025-01-23 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-23 20:49:18] Production.INFO: count ==2102 [2025-01-23 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:49:05 - End Time 2025-01-23 20:49:05 [2025-01-23 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314870', 'tblTempUsageDetail_20' ) start [2025-01-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314870', 'tblTempUsageDetail_20' ) end [2025-01-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314870', 'tblTempVendorCDR_20' ) start [2025-01-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314870', 'tblTempVendorCDR_20' ) end [2025-01-23 20:49:18] Production.INFO: ProcessCDR(1,14314870,1,1,2) [2025-01-23 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314870', 'tblTempUsageDetail_20' ) start [2025-01-23 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314870', 'tblTempUsageDetail_20' ) end [2025-01-23 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:49:22] Production.INFO: ==6059== Releasing lock... [2025-01-23 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-23 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:50:06 [end_date_ymd] => 2025-01-23 20:50:06 [RateCDR] => 1 ) [2025-01-23 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 17:50:06' and `end` < '2025-01-23 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 20:50:19] Production.INFO: count ==2103 [2025-01-23 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:50:06 - End Time 2025-01-23 20:50:06 [2025-01-23 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314876', 'tblTempUsageDetail_20' ) start [2025-01-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314876', 'tblTempUsageDetail_20' ) end [2025-01-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314876', 'tblTempVendorCDR_20' ) start [2025-01-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314876', 'tblTempVendorCDR_20' ) end [2025-01-23 20:50:19] Production.INFO: ProcessCDR(1,14314876,1,1,2) [2025-01-23 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314876', 'tblTempUsageDetail_20' ) start [2025-01-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314876', 'tblTempUsageDetail_20' ) end [2025-01-23 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:50:22] Production.INFO: ==6134== Releasing lock... [2025-01-23 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:50:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-23 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:51:05 [end_date_ymd] => 2025-01-23 20:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:51:05' and `end` < '2025-01-23 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-23 20:51:19] Production.INFO: count ==2093 [2025-01-23 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:51:05 - End Time 2025-01-23 20:51:05 [2025-01-23 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314881', 'tblTempUsageDetail_20' ) start [2025-01-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314881', 'tblTempUsageDetail_20' ) end [2025-01-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314881', 'tblTempVendorCDR_20' ) start [2025-01-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314881', 'tblTempVendorCDR_20' ) end [2025-01-23 20:51:19] Production.INFO: ProcessCDR(1,14314881,1,1,2) [2025-01-23 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314881', 'tblTempUsageDetail_20' ) start [2025-01-23 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314881', 'tblTempUsageDetail_20' ) end [2025-01-23 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:51:24] Production.INFO: ==6211== Releasing lock... [2025-01-23 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:51:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-23 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:52:05 [end_date_ymd] => 2025-01-23 20:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:52:05' and `end` < '2025-01-23 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-23 20:52:18] Production.INFO: count ==2072 [2025-01-23 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:52:05 - End Time 2025-01-23 20:52:05 [2025-01-23 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314886', 'tblTempUsageDetail_20' ) start [2025-01-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314886', 'tblTempUsageDetail_20' ) end [2025-01-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314886', 'tblTempVendorCDR_20' ) start [2025-01-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314886', 'tblTempVendorCDR_20' ) end [2025-01-23 20:52:18] Production.INFO: ProcessCDR(1,14314886,1,1,2) [2025-01-23 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314886', 'tblTempUsageDetail_20' ) start [2025-01-23 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314886', 'tblTempUsageDetail_20' ) end [2025-01-23 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:52:22] Production.INFO: ==6288== Releasing lock... [2025-01-23 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:52:22] Production.INFO: 43 MB #Memory Used# [2025-01-23 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:53:05 [end_date_ymd] => 2025-01-23 20:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:53:05' and `end` < '2025-01-23 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-23 20:53:18] Production.INFO: count ==2066 [2025-01-23 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-23 17:53:05 - End Time 2025-01-23 20:53:05 [2025-01-23 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314891', 'tblTempUsageDetail_20' ) start [2025-01-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314891', 'tblTempUsageDetail_20' ) end [2025-01-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314891', 'tblTempVendorCDR_20' ) start [2025-01-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314891', 'tblTempVendorCDR_20' ) end [2025-01-23 20:53:19] Production.INFO: ProcessCDR(1,14314891,1,1,2) [2025-01-23 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314891', 'tblTempUsageDetail_20' ) start [2025-01-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314891', 'tblTempUsageDetail_20' ) end [2025-01-23 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:53:22] Production.INFO: ==6359== Releasing lock... [2025-01-23 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:53:22] Production.INFO: 43 MB #Memory Used# [2025-01-23 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:54:05 [end_date_ymd] => 2025-01-23 20:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:54:05' and `end` < '2025-01-23 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-23 20:54:17] Production.INFO: count ==2058 [2025-01-23 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:54:05 - End Time 2025-01-23 20:54:05 [2025-01-23 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314896', 'tblTempUsageDetail_20' ) start [2025-01-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314896', 'tblTempUsageDetail_20' ) end [2025-01-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314896', 'tblTempVendorCDR_20' ) start [2025-01-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314896', 'tblTempVendorCDR_20' ) end [2025-01-23 20:54:18] Production.INFO: ProcessCDR(1,14314896,1,1,2) [2025-01-23 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314896', 'tblTempUsageDetail_20' ) start [2025-01-23 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314896', 'tblTempUsageDetail_20' ) end [2025-01-23 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:54:21] Production.INFO: ==6431== Releasing lock... [2025-01-23 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:54:21] Production.INFO: 43 MB #Memory Used# [2025-01-23 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:55:05 [end_date_ymd] => 2025-01-23 20:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:55:05' and `end` < '2025-01-23 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-23 20:55:18] Production.INFO: count ==2029 [2025-01-23 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:55:05 - End Time 2025-01-23 20:55:05 [2025-01-23 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314901', 'tblTempUsageDetail_20' ) start [2025-01-23 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314901', 'tblTempUsageDetail_20' ) end [2025-01-23 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314901', 'tblTempVendorCDR_20' ) start [2025-01-23 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314901', 'tblTempVendorCDR_20' ) end [2025-01-23 20:55:18] Production.INFO: ProcessCDR(1,14314901,1,1,2) [2025-01-23 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314901', 'tblTempUsageDetail_20' ) start [2025-01-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314901', 'tblTempUsageDetail_20' ) end [2025-01-23 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:55:22] Production.INFO: ==6538== Releasing lock... [2025-01-23 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:55:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-23 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:56:05 [end_date_ymd] => 2025-01-23 20:56:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:56:05' and `end` < '2025-01-23 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-23 20:56:17] Production.INFO: count ==2024 [2025-01-23 20:56:17] Production.ERROR: pbx CDR StartTime 2025-01-23 17:56:05 - End Time 2025-01-23 20:56:05 [2025-01-23 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314906', 'tblTempUsageDetail_20' ) start [2025-01-23 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314906', 'tblTempUsageDetail_20' ) end [2025-01-23 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314906', 'tblTempVendorCDR_20' ) start [2025-01-23 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314906', 'tblTempVendorCDR_20' ) end [2025-01-23 20:56:17] Production.INFO: ProcessCDR(1,14314906,1,1,2) [2025-01-23 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314906', 'tblTempUsageDetail_20' ) start [2025-01-23 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314906', 'tblTempUsageDetail_20' ) end [2025-01-23 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:56:23] Production.INFO: ==6611== Releasing lock... [2025-01-23 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:56:23] Production.INFO: 43 MB #Memory Used# [2025-01-23 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:57:05 [end_date_ymd] => 2025-01-23 20:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:57:05' and `end` < '2025-01-23 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-23 20:57:18] Production.INFO: count ==2020 [2025-01-23 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:57:05 - End Time 2025-01-23 20:57:05 [2025-01-23 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314911', 'tblTempUsageDetail_20' ) start [2025-01-23 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314911', 'tblTempUsageDetail_20' ) end [2025-01-23 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314911', 'tblTempVendorCDR_20' ) start [2025-01-23 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314911', 'tblTempVendorCDR_20' ) end [2025-01-23 20:57:18] Production.INFO: ProcessCDR(1,14314911,1,1,2) [2025-01-23 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314911', 'tblTempUsageDetail_20' ) start [2025-01-23 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314911', 'tblTempUsageDetail_20' ) end [2025-01-23 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:57:24] Production.INFO: ==6713== Releasing lock... [2025-01-23 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:57:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-23 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:58:05 [end_date_ymd] => 2025-01-23 20:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:58:05' and `end` < '2025-01-23 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-23 20:58:18] Production.INFO: count ==2006 [2025-01-23 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:58:05 - End Time 2025-01-23 20:58:05 [2025-01-23 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314916', 'tblTempUsageDetail_20' ) start [2025-01-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314916', 'tblTempUsageDetail_20' ) end [2025-01-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314916', 'tblTempVendorCDR_20' ) start [2025-01-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314916', 'tblTempVendorCDR_20' ) end [2025-01-23 20:58:18] Production.INFO: ProcessCDR(1,14314916,1,1,2) [2025-01-23 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314916', 'tblTempUsageDetail_20' ) start [2025-01-23 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314916', 'tblTempUsageDetail_20' ) end [2025-01-23 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:58:21] Production.INFO: ==6818== Releasing lock... [2025-01-23 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:58:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-23 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 17:59:05 [end_date_ymd] => 2025-01-23 20:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 17:59:05' and `end` < '2025-01-23 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-23 20:59:18] Production.INFO: count ==2002 [2025-01-23 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 17:59:05 - End Time 2025-01-23 20:59:05 [2025-01-23 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314921', 'tblTempUsageDetail_20' ) start [2025-01-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314921', 'tblTempUsageDetail_20' ) end [2025-01-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314921', 'tblTempVendorCDR_20' ) start [2025-01-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314921', 'tblTempVendorCDR_20' ) end [2025-01-23 20:59:18] Production.INFO: ProcessCDR(1,14314921,1,1,2) [2025-01-23 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314921', 'tblTempUsageDetail_20' ) start [2025-01-23 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314921', 'tblTempUsageDetail_20' ) end [2025-01-23 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 20:59:23] Production.INFO: ==6892== Releasing lock... [2025-01-23 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 20:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-23 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:00:07 [end_date_ymd] => 2025-01-23 21:00:07 [RateCDR] => 1 ) [2025-01-23 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:00:07' and `end` < '2025-01-23 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:00:19] Production.INFO: count ==2002 [2025-01-23 21:00:20] Production.ERROR: pbx CDR StartTime 2025-01-23 18:00:07 - End Time 2025-01-23 21:00:07 [2025-01-23 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314927', 'tblTempUsageDetail_20' ) start [2025-01-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314927', 'tblTempUsageDetail_20' ) end [2025-01-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314927', 'tblTempVendorCDR_20' ) start [2025-01-23 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314927', 'tblTempVendorCDR_20' ) end [2025-01-23 21:00:20] Production.INFO: ProcessCDR(1,14314927,1,1,2) [2025-01-23 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314927', 'tblTempUsageDetail_20' ) start [2025-01-23 21:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314927', 'tblTempUsageDetail_20' ) end [2025-01-23 21:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:00:28] Production.INFO: ==6973== Releasing lock... [2025-01-23 21:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:00:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-23 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:01:05 [end_date_ymd] => 2025-01-23 21:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:01:05' and `end` < '2025-01-23 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-23 21:01:17] Production.INFO: count ==1954 [2025-01-23 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:01:05 - End Time 2025-01-23 21:01:05 [2025-01-23 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314932', 'tblTempUsageDetail_20' ) start [2025-01-23 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314932', 'tblTempUsageDetail_20' ) end [2025-01-23 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314932', 'tblTempVendorCDR_20' ) start [2025-01-23 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314932', 'tblTempVendorCDR_20' ) end [2025-01-23 21:01:18] Production.INFO: ProcessCDR(1,14314932,1,1,2) [2025-01-23 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314932', 'tblTempUsageDetail_20' ) start [2025-01-23 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314932', 'tblTempUsageDetail_20' ) end [2025-01-23 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:01:21] Production.INFO: ==7061== Releasing lock... [2025-01-23 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:01:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:02:05 [end_date_ymd] => 2025-01-23 21:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:02:05' and `end` < '2025-01-23 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-23 21:02:18] Production.INFO: count ==1954 [2025-01-23 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:02:05 - End Time 2025-01-23 21:02:05 [2025-01-23 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314937', 'tblTempUsageDetail_20' ) start [2025-01-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314937', 'tblTempUsageDetail_20' ) end [2025-01-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314937', 'tblTempVendorCDR_20' ) start [2025-01-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314937', 'tblTempVendorCDR_20' ) end [2025-01-23 21:02:18] Production.INFO: ProcessCDR(1,14314937,1,1,2) [2025-01-23 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314937', 'tblTempUsageDetail_20' ) start [2025-01-23 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314937', 'tblTempUsageDetail_20' ) end [2025-01-23 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:02:24] Production.INFO: ==7209== Releasing lock... [2025-01-23 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:02:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:03:05 [end_date_ymd] => 2025-01-23 21:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:03:05' and `end` < '2025-01-23 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-23 21:03:18] Production.INFO: count ==1955 [2025-01-23 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:03:05 - End Time 2025-01-23 21:03:05 [2025-01-23 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314942', 'tblTempUsageDetail_20' ) start [2025-01-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314942', 'tblTempUsageDetail_20' ) end [2025-01-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314942', 'tblTempVendorCDR_20' ) start [2025-01-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314942', 'tblTempVendorCDR_20' ) end [2025-01-23 21:03:18] Production.INFO: ProcessCDR(1,14314942,1,1,2) [2025-01-23 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314942', 'tblTempUsageDetail_20' ) start [2025-01-23 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314942', 'tblTempUsageDetail_20' ) end [2025-01-23 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:03:22] Production.INFO: ==7281== Releasing lock... [2025-01-23 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:04:06 [end_date_ymd] => 2025-01-23 21:04:06 [RateCDR] => 1 ) [2025-01-23 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:04:06' and `end` < '2025-01-23 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:04:19] Production.INFO: count ==1952 [2025-01-23 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:04:06 - End Time 2025-01-23 21:04:06 [2025-01-23 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314947', 'tblTempUsageDetail_20' ) start [2025-01-23 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314947', 'tblTempUsageDetail_20' ) end [2025-01-23 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314947', 'tblTempVendorCDR_20' ) start [2025-01-23 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314947', 'tblTempVendorCDR_20' ) end [2025-01-23 21:04:19] Production.INFO: ProcessCDR(1,14314947,1,1,2) [2025-01-23 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314947', 'tblTempUsageDetail_20' ) start [2025-01-23 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314947', 'tblTempUsageDetail_20' ) end [2025-01-23 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:04:23] Production.INFO: ==7392== Releasing lock... [2025-01-23 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:04:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:05:05 [end_date_ymd] => 2025-01-23 21:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:05:05' and `end` < '2025-01-23 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-23 21:05:20] Production.INFO: count ==1942 [2025-01-23 21:05:20] Production.ERROR: pbx CDR StartTime 2025-01-23 18:05:05 - End Time 2025-01-23 21:05:05 [2025-01-23 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314952', 'tblTempUsageDetail_20' ) start [2025-01-23 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314952', 'tblTempUsageDetail_20' ) end [2025-01-23 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314952', 'tblTempVendorCDR_20' ) start [2025-01-23 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314952', 'tblTempVendorCDR_20' ) end [2025-01-23 21:05:20] Production.INFO: ProcessCDR(1,14314952,1,1,2) [2025-01-23 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314952', 'tblTempUsageDetail_20' ) start [2025-01-23 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314952', 'tblTempUsageDetail_20' ) end [2025-01-23 21:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:05:25] Production.INFO: ==7461== Releasing lock... [2025-01-23 21:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:05:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-23 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:06:05 [end_date_ymd] => 2025-01-23 21:06:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:06:05' and `end` < '2025-01-23 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-23 21:06:18] Production.INFO: count ==1935 [2025-01-23 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:06:05 - End Time 2025-01-23 21:06:05 [2025-01-23 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314957', 'tblTempUsageDetail_20' ) start [2025-01-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314957', 'tblTempUsageDetail_20' ) end [2025-01-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314957', 'tblTempVendorCDR_20' ) start [2025-01-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314957', 'tblTempVendorCDR_20' ) end [2025-01-23 21:06:18] Production.INFO: ProcessCDR(1,14314957,1,1,2) [2025-01-23 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314957', 'tblTempUsageDetail_20' ) start [2025-01-23 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314957', 'tblTempUsageDetail_20' ) end [2025-01-23 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:06:22] Production.INFO: ==7531== Releasing lock... [2025-01-23 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:06:22] Production.INFO: 42 MB #Memory Used# [2025-01-23 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:07:04 [end_date_ymd] => 2025-01-23 21:07:04 [RateCDR] => 1 ) [2025-01-23 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-23 18:07:04' and `end` < '2025-01-23 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-23 21:07:17] Production.INFO: count ==1925 [2025-01-23 21:07:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:07:04 - End Time 2025-01-23 21:07:04 [2025-01-23 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314962', 'tblTempUsageDetail_20' ) start [2025-01-23 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314962', 'tblTempUsageDetail_20' ) end [2025-01-23 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314962', 'tblTempVendorCDR_20' ) start [2025-01-23 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314962', 'tblTempVendorCDR_20' ) end [2025-01-23 21:07:17] Production.INFO: ProcessCDR(1,14314962,1,1,2) [2025-01-23 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314962', 'tblTempUsageDetail_20' ) start [2025-01-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314962', 'tblTempUsageDetail_20' ) end [2025-01-23 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:07:22] Production.INFO: ==7632== Releasing lock... [2025-01-23 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:07:22] Production.INFO: 42 MB #Memory Used# [2025-01-23 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:08:05 [end_date_ymd] => 2025-01-23 21:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:08:05' and `end` < '2025-01-23 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-23 21:08:18] Production.INFO: count ==1920 [2025-01-23 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:08:05 - End Time 2025-01-23 21:08:05 [2025-01-23 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314967', 'tblTempUsageDetail_20' ) start [2025-01-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314967', 'tblTempUsageDetail_20' ) end [2025-01-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314967', 'tblTempVendorCDR_20' ) start [2025-01-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314967', 'tblTempVendorCDR_20' ) end [2025-01-23 21:08:18] Production.INFO: ProcessCDR(1,14314967,1,1,2) [2025-01-23 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314967', 'tblTempUsageDetail_20' ) start [2025-01-23 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314967', 'tblTempUsageDetail_20' ) end [2025-01-23 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:08:23] Production.INFO: ==7736== Releasing lock... [2025-01-23 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:08:23] Production.INFO: 42 MB #Memory Used# [2025-01-23 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:09:05 [end_date_ymd] => 2025-01-23 21:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:09:05' and `end` < '2025-01-23 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-23 21:09:17] Production.INFO: count ==1915 [2025-01-23 21:09:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:09:05 - End Time 2025-01-23 21:09:05 [2025-01-23 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314972', 'tblTempUsageDetail_20' ) start [2025-01-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314972', 'tblTempUsageDetail_20' ) end [2025-01-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314972', 'tblTempVendorCDR_20' ) start [2025-01-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314972', 'tblTempVendorCDR_20' ) end [2025-01-23 21:09:17] Production.INFO: ProcessCDR(1,14314972,1,1,2) [2025-01-23 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314972', 'tblTempUsageDetail_20' ) start [2025-01-23 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314972', 'tblTempUsageDetail_20' ) end [2025-01-23 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:09:21] Production.INFO: ==7840== Releasing lock... [2025-01-23 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:09:21] Production.INFO: 42 MB #Memory Used# [2025-01-23 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:10:07 [end_date_ymd] => 2025-01-23 21:10:07 [RateCDR] => 1 ) [2025-01-23 21:10: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-23 18:10:07' and `end` < '2025-01-23 21:10: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-23 21:10:19] Production.INFO: count ==1912 [2025-01-23 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:10:07 - End Time 2025-01-23 21:10:07 [2025-01-23 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314978', 'tblTempUsageDetail_20' ) start [2025-01-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314978', 'tblTempUsageDetail_20' ) end [2025-01-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314978', 'tblTempVendorCDR_20' ) start [2025-01-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314978', 'tblTempVendorCDR_20' ) end [2025-01-23 21:10:20] Production.INFO: ProcessCDR(1,14314978,1,1,2) [2025-01-23 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314978', 'tblTempUsageDetail_20' ) start [2025-01-23 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314978', 'tblTempUsageDetail_20' ) end [2025-01-23 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:10:24] Production.INFO: ==7951== Releasing lock... [2025-01-23 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:10:24] Production.INFO: 42 MB #Memory Used# [2025-01-23 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:11:04 [end_date_ymd] => 2025-01-23 21:11:04 [RateCDR] => 1 ) [2025-01-23 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-23 18:11:04' and `end` < '2025-01-23 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:11:17] Production.INFO: count ==1869 [2025-01-23 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:11:04 - End Time 2025-01-23 21:11:04 [2025-01-23 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314983', 'tblTempUsageDetail_20' ) start [2025-01-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314983', 'tblTempUsageDetail_20' ) end [2025-01-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314983', 'tblTempVendorCDR_20' ) start [2025-01-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314983', 'tblTempVendorCDR_20' ) end [2025-01-23 21:11:18] Production.INFO: ProcessCDR(1,14314983,1,1,2) [2025-01-23 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314983', 'tblTempUsageDetail_20' ) start [2025-01-23 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314983', 'tblTempUsageDetail_20' ) end [2025-01-23 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:11:21] Production.INFO: ==8055== Releasing lock... [2025-01-23 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:11:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:12:05 [end_date_ymd] => 2025-01-23 21:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:12:05' and `end` < '2025-01-23 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-23 21:12:18] Production.INFO: count ==1868 [2025-01-23 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:12:05 - End Time 2025-01-23 21:12:05 [2025-01-23 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314988', 'tblTempUsageDetail_20' ) start [2025-01-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314988', 'tblTempUsageDetail_20' ) end [2025-01-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314988', 'tblTempVendorCDR_20' ) start [2025-01-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314988', 'tblTempVendorCDR_20' ) end [2025-01-23 21:12:18] Production.INFO: ProcessCDR(1,14314988,1,1,2) [2025-01-23 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314988', 'tblTempUsageDetail_20' ) start [2025-01-23 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314988', 'tblTempUsageDetail_20' ) end [2025-01-23 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:12:21] Production.INFO: ==8161== Releasing lock... [2025-01-23 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:12:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:13:06 [end_date_ymd] => 2025-01-23 21:13:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:13:06' and `end` < '2025-01-23 21: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-23 21:13:21] Production.INFO: count ==1876 [2025-01-23 21:13:21] Production.ERROR: pbx CDR StartTime 2025-01-23 18:13:06 - End Time 2025-01-23 21:13:06 [2025-01-23 21:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314993', 'tblTempUsageDetail_20' ) start [2025-01-23 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314993', 'tblTempUsageDetail_20' ) end [2025-01-23 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314993', 'tblTempVendorCDR_20' ) start [2025-01-23 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314993', 'tblTempVendorCDR_20' ) end [2025-01-23 21:13:21] Production.INFO: ProcessCDR(1,14314993,1,1,2) [2025-01-23 21:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314993', 'tblTempUsageDetail_20' ) start [2025-01-23 21:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314993', 'tblTempUsageDetail_20' ) end [2025-01-23 21:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:13:26] Production.INFO: ==8232== Releasing lock... [2025-01-23 21:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:13:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-23 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:14:06 [end_date_ymd] => 2025-01-23 21:14:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:14:06' and `end` < '2025-01-23 21: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-23 21:14:18] Production.INFO: count ==1874 [2025-01-23 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:14:06 - End Time 2025-01-23 21:14:06 [2025-01-23 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314998', 'tblTempUsageDetail_20' ) start [2025-01-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14314998', 'tblTempUsageDetail_20' ) end [2025-01-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314998', 'tblTempVendorCDR_20' ) start [2025-01-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14314998', 'tblTempVendorCDR_20' ) end [2025-01-23 21:14:19] Production.INFO: ProcessCDR(1,14314998,1,1,2) [2025-01-23 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14314998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14314998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14314998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14314998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314998', 'tblTempUsageDetail_20' ) start [2025-01-23 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14314998', 'tblTempUsageDetail_20' ) end [2025-01-23 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:14:23] Production.INFO: ==8305== Releasing lock... [2025-01-23 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:14:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:15:05 [end_date_ymd] => 2025-01-23 21:15:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:15:05' and `end` < '2025-01-23 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-23 21:15:18] Production.INFO: count ==1868 [2025-01-23 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:15:05 - End Time 2025-01-23 21:15:05 [2025-01-23 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315003', 'tblTempUsageDetail_20' ) start [2025-01-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315003', 'tblTempUsageDetail_20' ) end [2025-01-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315003', 'tblTempVendorCDR_20' ) start [2025-01-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315003', 'tblTempVendorCDR_20' ) end [2025-01-23 21:15:18] Production.INFO: ProcessCDR(1,14315003,1,1,2) [2025-01-23 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315003', 'tblTempUsageDetail_20' ) start [2025-01-23 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315003', 'tblTempUsageDetail_20' ) end [2025-01-23 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:15:22] Production.INFO: ==8379== Releasing lock... [2025-01-23 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:15:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:16:05 [end_date_ymd] => 2025-01-23 21:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:16:05' and `end` < '2025-01-23 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-23 21:16:17] Production.INFO: count ==1863 [2025-01-23 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:16:05 - End Time 2025-01-23 21:16:05 [2025-01-23 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315008', 'tblTempUsageDetail_20' ) start [2025-01-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315008', 'tblTempUsageDetail_20' ) end [2025-01-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315008', 'tblTempVendorCDR_20' ) start [2025-01-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315008', 'tblTempVendorCDR_20' ) end [2025-01-23 21:16:18] Production.INFO: ProcessCDR(1,14315008,1,1,2) [2025-01-23 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315008', 'tblTempUsageDetail_20' ) start [2025-01-23 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315008', 'tblTempUsageDetail_20' ) end [2025-01-23 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:16:21] Production.INFO: ==8450== Releasing lock... [2025-01-23 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:16:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:17:05 [end_date_ymd] => 2025-01-23 21:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:17:05' and `end` < '2025-01-23 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-23 21:17:19] Production.INFO: count ==1864 [2025-01-23 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:17:05 - End Time 2025-01-23 21:17:05 [2025-01-23 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315013', 'tblTempUsageDetail_20' ) start [2025-01-23 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315013', 'tblTempUsageDetail_20' ) end [2025-01-23 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315013', 'tblTempVendorCDR_20' ) start [2025-01-23 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315013', 'tblTempVendorCDR_20' ) end [2025-01-23 21:17:19] Production.INFO: ProcessCDR(1,14315013,1,1,2) [2025-01-23 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315013', 'tblTempUsageDetail_20' ) start [2025-01-23 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315013', 'tblTempUsageDetail_20' ) end [2025-01-23 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:17:24] Production.INFO: ==8570== Releasing lock... [2025-01-23 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:17:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:18:05 [end_date_ymd] => 2025-01-23 21:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:18:05' and `end` < '2025-01-23 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-23 21:18:18] Production.INFO: count ==1863 [2025-01-23 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:18:05 - End Time 2025-01-23 21:18:05 [2025-01-23 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315018', 'tblTempUsageDetail_20' ) start [2025-01-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315018', 'tblTempUsageDetail_20' ) end [2025-01-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315018', 'tblTempVendorCDR_20' ) start [2025-01-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315018', 'tblTempVendorCDR_20' ) end [2025-01-23 21:18:18] Production.INFO: ProcessCDR(1,14315018,1,1,2) [2025-01-23 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315018', 'tblTempUsageDetail_20' ) start [2025-01-23 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315018', 'tblTempUsageDetail_20' ) end [2025-01-23 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:18:23] Production.INFO: ==8643== Releasing lock... [2025-01-23 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:18:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:19:06 [end_date_ymd] => 2025-01-23 21:19:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:19:06' and `end` < '2025-01-23 21: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-23 21:19:18] Production.INFO: count ==1864 [2025-01-23 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:19:06 - End Time 2025-01-23 21:19:06 [2025-01-23 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315023', 'tblTempUsageDetail_20' ) start [2025-01-23 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315023', 'tblTempUsageDetail_20' ) end [2025-01-23 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315023', 'tblTempVendorCDR_20' ) start [2025-01-23 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315023', 'tblTempVendorCDR_20' ) end [2025-01-23 21:19:19] Production.INFO: ProcessCDR(1,14315023,1,1,2) [2025-01-23 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315023', 'tblTempUsageDetail_20' ) start [2025-01-23 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315023', 'tblTempUsageDetail_20' ) end [2025-01-23 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:19:23] Production.INFO: ==8720== Releasing lock... [2025-01-23 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:19:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:20:06 [end_date_ymd] => 2025-01-23 21:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 18:20:06' and `end` < '2025-01-23 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-23 21:20:19] Production.INFO: count ==1864 [2025-01-23 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:20:06 - End Time 2025-01-23 21:20:06 [2025-01-23 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315029', 'tblTempUsageDetail_20' ) start [2025-01-23 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315029', 'tblTempUsageDetail_20' ) end [2025-01-23 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315029', 'tblTempVendorCDR_20' ) start [2025-01-23 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315029', 'tblTempVendorCDR_20' ) end [2025-01-23 21:20:19] Production.INFO: ProcessCDR(1,14315029,1,1,2) [2025-01-23 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315029', 'tblTempUsageDetail_20' ) start [2025-01-23 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315029', 'tblTempUsageDetail_20' ) end [2025-01-23 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:20:22] Production.INFO: ==8790== Releasing lock... [2025-01-23 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:20:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-23 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:21:06 [end_date_ymd] => 2025-01-23 21:21:06 [RateCDR] => 1 ) [2025-01-23 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:21:06' and `end` < '2025-01-23 21:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:21:18] Production.INFO: count ==1829 [2025-01-23 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:21:06 - End Time 2025-01-23 21:21:06 [2025-01-23 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315034', 'tblTempUsageDetail_20' ) start [2025-01-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315034', 'tblTempUsageDetail_20' ) end [2025-01-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315034', 'tblTempVendorCDR_20' ) start [2025-01-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315034', 'tblTempVendorCDR_20' ) end [2025-01-23 21:21:18] Production.INFO: ProcessCDR(1,14315034,1,1,2) [2025-01-23 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315034', 'tblTempUsageDetail_20' ) start [2025-01-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315034', 'tblTempUsageDetail_20' ) end [2025-01-23 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:21:22] Production.INFO: ==8868== Releasing lock... [2025-01-23 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:22:05 [end_date_ymd] => 2025-01-23 21:22:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:22:05' and `end` < '2025-01-23 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-23 21:22:17] Production.INFO: count ==1829 [2025-01-23 21:22:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:22:05 - End Time 2025-01-23 21:22:05 [2025-01-23 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315039', 'tblTempUsageDetail_20' ) start [2025-01-23 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315039', 'tblTempUsageDetail_20' ) end [2025-01-23 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315039', 'tblTempVendorCDR_20' ) start [2025-01-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315039', 'tblTempVendorCDR_20' ) end [2025-01-23 21:22:18] Production.INFO: ProcessCDR(1,14315039,1,1,2) [2025-01-23 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315039', 'tblTempUsageDetail_20' ) start [2025-01-23 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315039', 'tblTempUsageDetail_20' ) end [2025-01-23 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:22:21] Production.INFO: ==8939== Releasing lock... [2025-01-23 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:22:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:23:05 [end_date_ymd] => 2025-01-23 21:23:05 [RateCDR] => 1 ) [2025-01-23 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:23:05' and `end` < '2025-01-23 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:23:18] Production.INFO: count ==1829 [2025-01-23 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:23:05 - End Time 2025-01-23 21:23:05 [2025-01-23 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315044', 'tblTempUsageDetail_20' ) start [2025-01-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315044', 'tblTempUsageDetail_20' ) end [2025-01-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315044', 'tblTempVendorCDR_20' ) start [2025-01-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315044', 'tblTempVendorCDR_20' ) end [2025-01-23 21:23:18] Production.INFO: ProcessCDR(1,14315044,1,1,2) [2025-01-23 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315044', 'tblTempUsageDetail_20' ) start [2025-01-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315044', 'tblTempUsageDetail_20' ) end [2025-01-23 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:23:21] Production.INFO: ==9010== Releasing lock... [2025-01-23 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:23:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:24:06 [end_date_ymd] => 2025-01-23 21:24:06 [RateCDR] => 1 ) [2025-01-23 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-23 18:24:06' and `end` < '2025-01-23 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-23 21:24:19] Production.INFO: count ==1824 [2025-01-23 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:24:06 - End Time 2025-01-23 21:24:06 [2025-01-23 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315049', 'tblTempUsageDetail_20' ) start [2025-01-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315049', 'tblTempUsageDetail_20' ) end [2025-01-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315049', 'tblTempVendorCDR_20' ) start [2025-01-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315049', 'tblTempVendorCDR_20' ) end [2025-01-23 21:24:19] Production.INFO: ProcessCDR(1,14315049,1,1,2) [2025-01-23 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315049', 'tblTempUsageDetail_20' ) start [2025-01-23 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315049', 'tblTempUsageDetail_20' ) end [2025-01-23 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:24:22] Production.INFO: ==9082== Releasing lock... [2025-01-23 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:24:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:25:05 [end_date_ymd] => 2025-01-23 21:25:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:25:05' and `end` < '2025-01-23 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-23 21:25:19] Production.INFO: count ==1826 [2025-01-23 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:25:05 - End Time 2025-01-23 21:25:05 [2025-01-23 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315054', 'tblTempUsageDetail_20' ) start [2025-01-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315054', 'tblTempUsageDetail_20' ) end [2025-01-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315054', 'tblTempVendorCDR_20' ) start [2025-01-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315054', 'tblTempVendorCDR_20' ) end [2025-01-23 21:25:19] Production.INFO: ProcessCDR(1,14315054,1,1,2) [2025-01-23 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315054', 'tblTempUsageDetail_20' ) start [2025-01-23 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315054', 'tblTempUsageDetail_20' ) end [2025-01-23 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:25:22] Production.INFO: ==9155== Releasing lock... [2025-01-23 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:25:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:26:05 [end_date_ymd] => 2025-01-23 21:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:26:05' and `end` < '2025-01-23 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-23 21:26:18] Production.INFO: count ==1823 [2025-01-23 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:26:05 - End Time 2025-01-23 21:26:05 [2025-01-23 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315059', 'tblTempUsageDetail_20' ) start [2025-01-23 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315059', 'tblTempUsageDetail_20' ) end [2025-01-23 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315059', 'tblTempVendorCDR_20' ) start [2025-01-23 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315059', 'tblTempVendorCDR_20' ) end [2025-01-23 21:26:19] Production.INFO: ProcessCDR(1,14315059,1,1,2) [2025-01-23 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315059', 'tblTempUsageDetail_20' ) start [2025-01-23 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315059', 'tblTempUsageDetail_20' ) end [2025-01-23 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:26:22] Production.INFO: ==9228== Releasing lock... [2025-01-23 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:26:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:27:05 [end_date_ymd] => 2025-01-23 21:27:05 [RateCDR] => 1 ) [2025-01-23 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:27:05' and `end` < '2025-01-23 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:27:18] Production.INFO: count ==1817 [2025-01-23 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:27:05 - End Time 2025-01-23 21:27:05 [2025-01-23 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315064', 'tblTempUsageDetail_20' ) start [2025-01-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315064', 'tblTempUsageDetail_20' ) end [2025-01-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315064', 'tblTempVendorCDR_20' ) start [2025-01-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315064', 'tblTempVendorCDR_20' ) end [2025-01-23 21:27:18] Production.INFO: ProcessCDR(1,14315064,1,1,2) [2025-01-23 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315064', 'tblTempUsageDetail_20' ) start [2025-01-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315064', 'tblTempUsageDetail_20' ) end [2025-01-23 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:27:21] Production.INFO: ==9297== Releasing lock... [2025-01-23 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:27:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:28:05 [end_date_ymd] => 2025-01-23 21:28:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:28:05' and `end` < '2025-01-23 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-23 21:28:17] Production.INFO: count ==1812 [2025-01-23 21:28:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:28:05 - End Time 2025-01-23 21:28:05 [2025-01-23 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315069', 'tblTempUsageDetail_20' ) start [2025-01-23 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315069', 'tblTempUsageDetail_20' ) end [2025-01-23 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315069', 'tblTempVendorCDR_20' ) start [2025-01-23 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315069', 'tblTempVendorCDR_20' ) end [2025-01-23 21:28:17] Production.INFO: ProcessCDR(1,14315069,1,1,2) [2025-01-23 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315069', 'tblTempUsageDetail_20' ) start [2025-01-23 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315069', 'tblTempUsageDetail_20' ) end [2025-01-23 21:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:28:20] Production.INFO: ==9367== Releasing lock... [2025-01-23 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:28:20] Production.INFO: 41.25 MB #Memory Used# [2025-01-23 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:29:05 [end_date_ymd] => 2025-01-23 21:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:29:05' and `end` < '2025-01-23 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-23 21:29:18] Production.INFO: count ==1800 [2025-01-23 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:29:05 - End Time 2025-01-23 21:29:05 [2025-01-23 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315074', 'tblTempUsageDetail_20' ) start [2025-01-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315074', 'tblTempUsageDetail_20' ) end [2025-01-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315074', 'tblTempVendorCDR_20' ) start [2025-01-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315074', 'tblTempVendorCDR_20' ) end [2025-01-23 21:29:18] Production.INFO: ProcessCDR(1,14315074,1,1,2) [2025-01-23 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315074', 'tblTempUsageDetail_20' ) start [2025-01-23 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315074', 'tblTempUsageDetail_20' ) end [2025-01-23 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:29:23] Production.INFO: ==9443== Releasing lock... [2025-01-23 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:29:23] Production.INFO: 41 MB #Memory Used# [2025-01-23 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:30:06 [end_date_ymd] => 2025-01-23 21:30:06 [RateCDR] => 1 ) [2025-01-23 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:30:06' and `end` < '2025-01-23 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:30:19] Production.INFO: count ==1788 [2025-01-23 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:30:06 - End Time 2025-01-23 21:30:06 [2025-01-23 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315080', 'tblTempUsageDetail_20' ) start [2025-01-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315080', 'tblTempUsageDetail_20' ) end [2025-01-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315080', 'tblTempVendorCDR_20' ) start [2025-01-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315080', 'tblTempVendorCDR_20' ) end [2025-01-23 21:30:19] Production.INFO: ProcessCDR(1,14315080,1,1,2) [2025-01-23 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315080', 'tblTempUsageDetail_20' ) start [2025-01-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315080', 'tblTempUsageDetail_20' ) end [2025-01-23 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:30:22] Production.INFO: ==9519== Releasing lock... [2025-01-23 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:30:22] Production.INFO: 41 MB #Memory Used# [2025-01-23 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:31:05 [end_date_ymd] => 2025-01-23 21:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:31:05' and `end` < '2025-01-23 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-23 21:31:17] Production.INFO: count ==1731 [2025-01-23 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:31:05 - End Time 2025-01-23 21:31:05 [2025-01-23 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315085', 'tblTempUsageDetail_20' ) start [2025-01-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315085', 'tblTempUsageDetail_20' ) end [2025-01-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315085', 'tblTempVendorCDR_20' ) start [2025-01-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315085', 'tblTempVendorCDR_20' ) end [2025-01-23 21:31:18] Production.INFO: ProcessCDR(1,14315085,1,1,2) [2025-01-23 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315085', 'tblTempUsageDetail_20' ) start [2025-01-23 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315085', 'tblTempUsageDetail_20' ) end [2025-01-23 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:31:23] Production.INFO: ==9596== Releasing lock... [2025-01-23 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:31:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:32:06 [end_date_ymd] => 2025-01-23 21:32:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:32:06' and `end` < '2025-01-23 21: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-23 21:32:19] Production.INFO: count ==1731 [2025-01-23 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:32:06 - End Time 2025-01-23 21:32:06 [2025-01-23 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315090', 'tblTempUsageDetail_20' ) start [2025-01-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315090', 'tblTempUsageDetail_20' ) end [2025-01-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315090', 'tblTempVendorCDR_20' ) start [2025-01-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315090', 'tblTempVendorCDR_20' ) end [2025-01-23 21:32:19] Production.INFO: ProcessCDR(1,14315090,1,1,2) [2025-01-23 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315090', 'tblTempUsageDetail_20' ) start [2025-01-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315090', 'tblTempUsageDetail_20' ) end [2025-01-23 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:32:22] Production.INFO: ==9671== Releasing lock... [2025-01-23 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:33:05 [end_date_ymd] => 2025-01-23 21:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:33:05' and `end` < '2025-01-23 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-23 21:33:18] Production.INFO: count ==1729 [2025-01-23 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:33:05 - End Time 2025-01-23 21:33:05 [2025-01-23 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315095', 'tblTempUsageDetail_20' ) start [2025-01-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315095', 'tblTempUsageDetail_20' ) end [2025-01-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315095', 'tblTempVendorCDR_20' ) start [2025-01-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315095', 'tblTempVendorCDR_20' ) end [2025-01-23 21:33:18] Production.INFO: ProcessCDR(1,14315095,1,1,2) [2025-01-23 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315095', 'tblTempUsageDetail_20' ) start [2025-01-23 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315095', 'tblTempUsageDetail_20' ) end [2025-01-23 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:33:21] Production.INFO: ==9791== Releasing lock... [2025-01-23 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:33:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:34:05 [end_date_ymd] => 2025-01-23 21:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:34:05' and `end` < '2025-01-23 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-23 21:34:18] Production.INFO: count ==1727 [2025-01-23 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:34:05 - End Time 2025-01-23 21:34:05 [2025-01-23 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315100', 'tblTempUsageDetail_20' ) start [2025-01-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315100', 'tblTempUsageDetail_20' ) end [2025-01-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315100', 'tblTempVendorCDR_20' ) start [2025-01-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315100', 'tblTempVendorCDR_20' ) end [2025-01-23 21:34:18] Production.INFO: ProcessCDR(1,14315100,1,1,2) [2025-01-23 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315100', 'tblTempUsageDetail_20' ) start [2025-01-23 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315100', 'tblTempUsageDetail_20' ) end [2025-01-23 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:34:23] Production.INFO: ==9864== Releasing lock... [2025-01-23 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:34:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:35:05 [end_date_ymd] => 2025-01-23 21:35:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:35:05' and `end` < '2025-01-23 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-23 21:35:18] Production.INFO: count ==1727 [2025-01-23 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:35:05 - End Time 2025-01-23 21:35:05 [2025-01-23 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315105', 'tblTempUsageDetail_20' ) start [2025-01-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315105', 'tblTempUsageDetail_20' ) end [2025-01-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315105', 'tblTempVendorCDR_20' ) start [2025-01-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315105', 'tblTempVendorCDR_20' ) end [2025-01-23 21:35:18] Production.INFO: ProcessCDR(1,14315105,1,1,2) [2025-01-23 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315105', 'tblTempUsageDetail_20' ) start [2025-01-23 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315105', 'tblTempUsageDetail_20' ) end [2025-01-23 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:35:21] Production.INFO: ==9939== Releasing lock... [2025-01-23 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:35:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:36:05 [end_date_ymd] => 2025-01-23 21:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:36:05' and `end` < '2025-01-23 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-23 21:36:19] Production.INFO: count ==1726 [2025-01-23 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:36:05 - End Time 2025-01-23 21:36:05 [2025-01-23 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315110', 'tblTempUsageDetail_20' ) start [2025-01-23 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315110', 'tblTempUsageDetail_20' ) end [2025-01-23 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315110', 'tblTempVendorCDR_20' ) start [2025-01-23 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315110', 'tblTempVendorCDR_20' ) end [2025-01-23 21:36:19] Production.INFO: ProcessCDR(1,14315110,1,1,2) [2025-01-23 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315110', 'tblTempUsageDetail_20' ) start [2025-01-23 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315110', 'tblTempUsageDetail_20' ) end [2025-01-23 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:36:22] Production.INFO: ==10008== Releasing lock... [2025-01-23 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:37:05 [end_date_ymd] => 2025-01-23 21:37:05 [RateCDR] => 1 ) [2025-01-23 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:37:05' and `end` < '2025-01-23 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:37:18] Production.INFO: count ==1729 [2025-01-23 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:37:05 - End Time 2025-01-23 21:37:05 [2025-01-23 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315115', 'tblTempUsageDetail_20' ) start [2025-01-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315115', 'tblTempUsageDetail_20' ) end [2025-01-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315115', 'tblTempVendorCDR_20' ) start [2025-01-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315115', 'tblTempVendorCDR_20' ) end [2025-01-23 21:37:19] Production.INFO: ProcessCDR(1,14315115,1,1,2) [2025-01-23 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315115', 'tblTempUsageDetail_20' ) start [2025-01-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315115', 'tblTempUsageDetail_20' ) end [2025-01-23 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:37:22] Production.INFO: ==10080== Releasing lock... [2025-01-23 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:37:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:38:05 [end_date_ymd] => 2025-01-23 21:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:38:05' and `end` < '2025-01-23 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-23 21:38:18] Production.INFO: count ==1727 [2025-01-23 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:38:05 - End Time 2025-01-23 21:38:05 [2025-01-23 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315120', 'tblTempUsageDetail_20' ) start [2025-01-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315120', 'tblTempUsageDetail_20' ) end [2025-01-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315120', 'tblTempVendorCDR_20' ) start [2025-01-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315120', 'tblTempVendorCDR_20' ) end [2025-01-23 21:38:18] Production.INFO: ProcessCDR(1,14315120,1,1,2) [2025-01-23 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315120', 'tblTempUsageDetail_20' ) start [2025-01-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315120', 'tblTempUsageDetail_20' ) end [2025-01-23 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:38:21] Production.INFO: ==10155== Releasing lock... [2025-01-23 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:38:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:39:05 [end_date_ymd] => 2025-01-23 21:39:05 [RateCDR] => 1 ) [2025-01-23 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:39:05' and `end` < '2025-01-23 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:39:18] Production.INFO: count ==1728 [2025-01-23 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:39:05 - End Time 2025-01-23 21:39:05 [2025-01-23 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315125', 'tblTempUsageDetail_20' ) start [2025-01-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315125', 'tblTempUsageDetail_20' ) end [2025-01-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315125', 'tblTempVendorCDR_20' ) start [2025-01-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315125', 'tblTempVendorCDR_20' ) end [2025-01-23 21:39:18] Production.INFO: ProcessCDR(1,14315125,1,1,2) [2025-01-23 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315125', 'tblTempUsageDetail_20' ) start [2025-01-23 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315125', 'tblTempUsageDetail_20' ) end [2025-01-23 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:39:23] Production.INFO: ==10234== Releasing lock... [2025-01-23 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:40:06 [end_date_ymd] => 2025-01-23 21:40:06 [RateCDR] => 1 ) [2025-01-23 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:40:06' and `end` < '2025-01-23 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:40:19] Production.INFO: count ==1729 [2025-01-23 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:40:06 - End Time 2025-01-23 21:40:06 [2025-01-23 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315130', 'tblTempUsageDetail_20' ) start [2025-01-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315130', 'tblTempUsageDetail_20' ) end [2025-01-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315130', 'tblTempVendorCDR_20' ) start [2025-01-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315130', 'tblTempVendorCDR_20' ) end [2025-01-23 21:40:19] Production.INFO: ProcessCDR(1,14315130,1,1,2) [2025-01-23 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315130', 'tblTempUsageDetail_20' ) start [2025-01-23 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315130', 'tblTempUsageDetail_20' ) end [2025-01-23 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:40:22] Production.INFO: ==10313== Releasing lock... [2025-01-23 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:40:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-23 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:41:05 [end_date_ymd] => 2025-01-23 21:41:05 [RateCDR] => 1 ) [2025-01-23 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:41:05' and `end` < '2025-01-23 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:41:18] Production.INFO: count ==1679 [2025-01-23 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:41:05 - End Time 2025-01-23 21:41:05 [2025-01-23 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315136', 'tblTempUsageDetail_20' ) start [2025-01-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315136', 'tblTempUsageDetail_20' ) end [2025-01-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315136', 'tblTempVendorCDR_20' ) start [2025-01-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315136', 'tblTempVendorCDR_20' ) end [2025-01-23 21:41:18] Production.INFO: ProcessCDR(1,14315136,1,1,2) [2025-01-23 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315136', 'tblTempUsageDetail_20' ) start [2025-01-23 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315136', 'tblTempUsageDetail_20' ) end [2025-01-23 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:41:21] Production.INFO: ==10390== Releasing lock... [2025-01-23 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:41:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:42:05 [end_date_ymd] => 2025-01-23 21:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:42:05' and `end` < '2025-01-23 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-23 21:42:19] Production.INFO: count ==1675 [2025-01-23 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:42:05 - End Time 2025-01-23 21:42:05 [2025-01-23 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315141', 'tblTempUsageDetail_20' ) start [2025-01-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315141', 'tblTempUsageDetail_20' ) end [2025-01-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315141', 'tblTempVendorCDR_20' ) start [2025-01-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315141', 'tblTempVendorCDR_20' ) end [2025-01-23 21:42:19] Production.INFO: ProcessCDR(1,14315141,1,1,2) [2025-01-23 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315141', 'tblTempUsageDetail_20' ) start [2025-01-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315141', 'tblTempUsageDetail_20' ) end [2025-01-23 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:42:22] Production.INFO: ==10467== Releasing lock... [2025-01-23 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:42:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:43:05 [end_date_ymd] => 2025-01-23 21:43:05 [RateCDR] => 1 ) [2025-01-23 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:43:05' and `end` < '2025-01-23 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:43:17] Production.INFO: count ==1672 [2025-01-23 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:43:05 - End Time 2025-01-23 21:43:05 [2025-01-23 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315146', 'tblTempUsageDetail_20' ) start [2025-01-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315146', 'tblTempUsageDetail_20' ) end [2025-01-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315146', 'tblTempVendorCDR_20' ) start [2025-01-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315146', 'tblTempVendorCDR_20' ) end [2025-01-23 21:43:18] Production.INFO: ProcessCDR(1,14315146,1,1,2) [2025-01-23 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315146', 'tblTempUsageDetail_20' ) start [2025-01-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315146', 'tblTempUsageDetail_20' ) end [2025-01-23 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:43:21] Production.INFO: ==10541== Releasing lock... [2025-01-23 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:43:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:44:06 [end_date_ymd] => 2025-01-23 21:44:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:44:06' and `end` < '2025-01-23 21: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-23 21:44:19] Production.INFO: count ==1668 [2025-01-23 21:44:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:44:06 - End Time 2025-01-23 21:44:06 [2025-01-23 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315151', 'tblTempUsageDetail_20' ) start [2025-01-23 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315151', 'tblTempUsageDetail_20' ) end [2025-01-23 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315151', 'tblTempVendorCDR_20' ) start [2025-01-23 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315151', 'tblTempVendorCDR_20' ) end [2025-01-23 21:44:19] Production.INFO: ProcessCDR(1,14315151,1,1,2) [2025-01-23 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315151', 'tblTempUsageDetail_20' ) start [2025-01-23 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315151', 'tblTempUsageDetail_20' ) end [2025-01-23 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:44:22] Production.INFO: ==10617== Releasing lock... [2025-01-23 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:44:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:45:04 [end_date_ymd] => 2025-01-23 21:45:04 [RateCDR] => 1 ) [2025-01-23 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:45:04' and `end` < '2025-01-23 21:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:45:17] Production.INFO: count ==1670 [2025-01-23 21:45:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:45:04 - End Time 2025-01-23 21:45:04 [2025-01-23 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315156', 'tblTempUsageDetail_20' ) start [2025-01-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315156', 'tblTempUsageDetail_20' ) end [2025-01-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315156', 'tblTempVendorCDR_20' ) start [2025-01-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315156', 'tblTempVendorCDR_20' ) end [2025-01-23 21:45:17] Production.INFO: ProcessCDR(1,14315156,1,1,2) [2025-01-23 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315156', 'tblTempUsageDetail_20' ) start [2025-01-23 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315156', 'tblTempUsageDetail_20' ) end [2025-01-23 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:45:22] Production.INFO: ==10693== Releasing lock... [2025-01-23 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:45:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:46:05 [end_date_ymd] => 2025-01-23 21:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:46:05' and `end` < '2025-01-23 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-23 21:46:19] Production.INFO: count ==1668 [2025-01-23 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:46:05 - End Time 2025-01-23 21:46:05 [2025-01-23 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315161', 'tblTempUsageDetail_20' ) start [2025-01-23 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315161', 'tblTempUsageDetail_20' ) end [2025-01-23 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315161', 'tblTempVendorCDR_20' ) start [2025-01-23 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315161', 'tblTempVendorCDR_20' ) end [2025-01-23 21:46:19] Production.INFO: ProcessCDR(1,14315161,1,1,2) [2025-01-23 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315161', 'tblTempUsageDetail_20' ) start [2025-01-23 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315161', 'tblTempUsageDetail_20' ) end [2025-01-23 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:46:22] Production.INFO: ==10772== Releasing lock... [2025-01-23 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:46:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:47:05 [end_date_ymd] => 2025-01-23 21:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:47:05' and `end` < '2025-01-23 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-23 21:47:17] Production.INFO: count ==1668 [2025-01-23 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:47:05 - End Time 2025-01-23 21:47:05 [2025-01-23 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315166', 'tblTempUsageDetail_20' ) start [2025-01-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315166', 'tblTempUsageDetail_20' ) end [2025-01-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315166', 'tblTempVendorCDR_20' ) start [2025-01-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315166', 'tblTempVendorCDR_20' ) end [2025-01-23 21:47:18] Production.INFO: ProcessCDR(1,14315166,1,1,2) [2025-01-23 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315166', 'tblTempUsageDetail_20' ) start [2025-01-23 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315166', 'tblTempUsageDetail_20' ) end [2025-01-23 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:47:22] Production.INFO: ==10851== Releasing lock... [2025-01-23 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:47:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:48:05 [end_date_ymd] => 2025-01-23 21:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:48:05' and `end` < '2025-01-23 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-23 21:48:18] Production.INFO: count ==1670 [2025-01-23 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:48:05 - End Time 2025-01-23 21:48:05 [2025-01-23 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315171', 'tblTempUsageDetail_20' ) start [2025-01-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315171', 'tblTempUsageDetail_20' ) end [2025-01-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315171', 'tblTempVendorCDR_20' ) start [2025-01-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315171', 'tblTempVendorCDR_20' ) end [2025-01-23 21:48:18] Production.INFO: ProcessCDR(1,14315171,1,1,2) [2025-01-23 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315171', 'tblTempUsageDetail_20' ) start [2025-01-23 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315171', 'tblTempUsageDetail_20' ) end [2025-01-23 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:48:22] Production.INFO: ==10974== Releasing lock... [2025-01-23 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:48:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:49:05 [end_date_ymd] => 2025-01-23 21:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:49:05' and `end` < '2025-01-23 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-23 21:49:17] Production.INFO: count ==1669 [2025-01-23 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:49:05 - End Time 2025-01-23 21:49:05 [2025-01-23 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315176', 'tblTempUsageDetail_20' ) start [2025-01-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315176', 'tblTempUsageDetail_20' ) end [2025-01-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315176', 'tblTempVendorCDR_20' ) start [2025-01-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315176', 'tblTempVendorCDR_20' ) end [2025-01-23 21:49:18] Production.INFO: ProcessCDR(1,14315176,1,1,2) [2025-01-23 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315176', 'tblTempUsageDetail_20' ) start [2025-01-23 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315176', 'tblTempUsageDetail_20' ) end [2025-01-23 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:49:21] Production.INFO: ==11050== Releasing lock... [2025-01-23 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:49:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:50:05 [end_date_ymd] => 2025-01-23 21:50:05 [RateCDR] => 1 ) [2025-01-23 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:50:05' and `end` < '2025-01-23 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:50:18] Production.INFO: count ==1672 [2025-01-23 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:50:05 - End Time 2025-01-23 21:50:05 [2025-01-23 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315182', 'tblTempUsageDetail_20' ) start [2025-01-23 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315182', 'tblTempUsageDetail_20' ) end [2025-01-23 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315182', 'tblTempVendorCDR_20' ) start [2025-01-23 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315182', 'tblTempVendorCDR_20' ) end [2025-01-23 21:50:18] Production.INFO: ProcessCDR(1,14315182,1,1,2) [2025-01-23 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315182', 'tblTempUsageDetail_20' ) start [2025-01-23 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315182', 'tblTempUsageDetail_20' ) end [2025-01-23 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:50:22] Production.INFO: ==11127== Releasing lock... [2025-01-23 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:50:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:51:05 [end_date_ymd] => 2025-01-23 21:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:51:05' and `end` < '2025-01-23 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-23 21:51:17] Production.INFO: count ==1664 [2025-01-23 21:51:17] Production.ERROR: pbx CDR StartTime 2025-01-23 18:51:05 - End Time 2025-01-23 21:51:05 [2025-01-23 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315187', 'tblTempUsageDetail_20' ) start [2025-01-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315187', 'tblTempUsageDetail_20' ) end [2025-01-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315187', 'tblTempVendorCDR_20' ) start [2025-01-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315187', 'tblTempVendorCDR_20' ) end [2025-01-23 21:51:17] Production.INFO: ProcessCDR(1,14315187,1,1,2) [2025-01-23 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315187', 'tblTempUsageDetail_20' ) start [2025-01-23 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315187', 'tblTempUsageDetail_20' ) end [2025-01-23 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:51:21] Production.INFO: ==11204== Releasing lock... [2025-01-23 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:51:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:52:05 [end_date_ymd] => 2025-01-23 21:52:05 [RateCDR] => 1 ) [2025-01-23 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:52:05' and `end` < '2025-01-23 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-23 21:52:18] Production.INFO: count ==1661 [2025-01-23 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:52:05 - End Time 2025-01-23 21:52:05 [2025-01-23 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315192', 'tblTempUsageDetail_20' ) start [2025-01-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315192', 'tblTempUsageDetail_20' ) end [2025-01-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315192', 'tblTempVendorCDR_20' ) start [2025-01-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315192', 'tblTempVendorCDR_20' ) end [2025-01-23 21:52:18] Production.INFO: ProcessCDR(1,14315192,1,1,2) [2025-01-23 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315192', 'tblTempUsageDetail_20' ) start [2025-01-23 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315192', 'tblTempUsageDetail_20' ) end [2025-01-23 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:52:21] Production.INFO: ==11289== Releasing lock... [2025-01-23 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:52:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:53:04 [end_date_ymd] => 2025-01-23 21:53:04 [RateCDR] => 1 ) [2025-01-23 21:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 18:53:04' and `end` < '2025-01-23 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 21:53:17] Production.INFO: count ==1663 [2025-01-23 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:53:04 - End Time 2025-01-23 21:53:04 [2025-01-23 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315197', 'tblTempUsageDetail_20' ) start [2025-01-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315197', 'tblTempUsageDetail_20' ) end [2025-01-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315197', 'tblTempVendorCDR_20' ) start [2025-01-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315197', 'tblTempVendorCDR_20' ) end [2025-01-23 21:53:18] Production.INFO: ProcessCDR(1,14315197,1,1,2) [2025-01-23 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315197', 'tblTempUsageDetail_20' ) start [2025-01-23 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315197', 'tblTempUsageDetail_20' ) end [2025-01-23 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:53:22] Production.INFO: ==11362== Releasing lock... [2025-01-23 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:53:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:54:05 [end_date_ymd] => 2025-01-23 21:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:54:05' and `end` < '2025-01-23 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-23 21:54:18] Production.INFO: count ==1665 [2025-01-23 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:54:05 - End Time 2025-01-23 21:54:05 [2025-01-23 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315202', 'tblTempUsageDetail_20' ) start [2025-01-23 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315202', 'tblTempUsageDetail_20' ) end [2025-01-23 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315202', 'tblTempVendorCDR_20' ) start [2025-01-23 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315202', 'tblTempVendorCDR_20' ) end [2025-01-23 21:54:18] Production.INFO: ProcessCDR(1,14315202,1,1,2) [2025-01-23 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315202', 'tblTempUsageDetail_20' ) start [2025-01-23 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315202', 'tblTempUsageDetail_20' ) end [2025-01-23 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:54:21] Production.INFO: ==11440== Releasing lock... [2025-01-23 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:54:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:55:05 [end_date_ymd] => 2025-01-23 21:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:55:05' and `end` < '2025-01-23 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-23 21:55:22] Production.INFO: count ==1643 [2025-01-23 21:55:22] Production.ERROR: pbx CDR StartTime 2025-01-23 18:55:05 - End Time 2025-01-23 21:55:05 [2025-01-23 21:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315207', 'tblTempUsageDetail_20' ) start [2025-01-23 21:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315207', 'tblTempUsageDetail_20' ) end [2025-01-23 21:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315207', 'tblTempVendorCDR_20' ) start [2025-01-23 21:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315207', 'tblTempVendorCDR_20' ) end [2025-01-23 21:55:23] Production.INFO: ProcessCDR(1,14315207,1,1,2) [2025-01-23 21:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315207', 'tblTempUsageDetail_20' ) start [2025-01-23 21:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315207', 'tblTempUsageDetail_20' ) end [2025-01-23 21:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:55:26] Production.INFO: ==11513== Releasing lock... [2025-01-23 21:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:55:26] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:56:06 [end_date_ymd] => 2025-01-23 21:56:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:56:06' and `end` < '2025-01-23 21: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-23 21:56:19] Production.INFO: count ==1641 [2025-01-23 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:56:06 - End Time 2025-01-23 21:56:06 [2025-01-23 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315212', 'tblTempUsageDetail_20' ) start [2025-01-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315212', 'tblTempUsageDetail_20' ) end [2025-01-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315212', 'tblTempVendorCDR_20' ) start [2025-01-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315212', 'tblTempVendorCDR_20' ) end [2025-01-23 21:56:19] Production.INFO: ProcessCDR(1,14315212,1,1,2) [2025-01-23 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315212', 'tblTempUsageDetail_20' ) start [2025-01-23 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315212', 'tblTempUsageDetail_20' ) end [2025-01-23 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:56:22] Production.INFO: ==11595== Releasing lock... [2025-01-23 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:56:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:57:06 [end_date_ymd] => 2025-01-23 21:57:06 [RateCDR] => 1 ) [2025-01-23 21: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-23 18:57:06' and `end` < '2025-01-23 21: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-23 21:57:19] Production.INFO: count ==1636 [2025-01-23 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-23 18:57:06 - End Time 2025-01-23 21:57:06 [2025-01-23 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315217', 'tblTempUsageDetail_20' ) start [2025-01-23 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315217', 'tblTempUsageDetail_20' ) end [2025-01-23 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315217', 'tblTempVendorCDR_20' ) start [2025-01-23 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315217', 'tblTempVendorCDR_20' ) end [2025-01-23 21:57:19] Production.INFO: ProcessCDR(1,14315217,1,1,2) [2025-01-23 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315217', 'tblTempUsageDetail_20' ) start [2025-01-23 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315217', 'tblTempUsageDetail_20' ) end [2025-01-23 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:57:22] Production.INFO: ==11723== Releasing lock... [2025-01-23 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:57:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-23 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:58:05 [end_date_ymd] => 2025-01-23 21:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:58:05' and `end` < '2025-01-23 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-23 21:58:18] Production.INFO: count ==1635 [2025-01-23 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:58:05 - End Time 2025-01-23 21:58:05 [2025-01-23 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315222', 'tblTempUsageDetail_20' ) start [2025-01-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315222', 'tblTempUsageDetail_20' ) end [2025-01-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315222', 'tblTempVendorCDR_20' ) start [2025-01-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315222', 'tblTempVendorCDR_20' ) end [2025-01-23 21:58:18] Production.INFO: ProcessCDR(1,14315222,1,1,2) [2025-01-23 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315222', 'tblTempUsageDetail_20' ) start [2025-01-23 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315222', 'tblTempUsageDetail_20' ) end [2025-01-23 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:58:22] Production.INFO: ==11842== Releasing lock... [2025-01-23 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:58:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-23 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 18:59:05 [end_date_ymd] => 2025-01-23 21:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 18:59:05' and `end` < '2025-01-23 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-23 21:59:18] Production.INFO: count ==1628 [2025-01-23 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 18:59:05 - End Time 2025-01-23 21:59:05 [2025-01-23 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315227', 'tblTempUsageDetail_20' ) start [2025-01-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315227', 'tblTempUsageDetail_20' ) end [2025-01-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315227', 'tblTempVendorCDR_20' ) start [2025-01-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315227', 'tblTempVendorCDR_20' ) end [2025-01-23 21:59:18] Production.INFO: ProcessCDR(1,14315227,1,1,2) [2025-01-23 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315227', 'tblTempUsageDetail_20' ) start [2025-01-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315227', 'tblTempUsageDetail_20' ) end [2025-01-23 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 21:59:21] Production.INFO: ==11956== Releasing lock... [2025-01-23 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 21:59:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:00:06 [end_date_ymd] => 2025-01-23 22:00:06 [RateCDR] => 1 ) [2025-01-23 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:00:06' and `end` < '2025-01-23 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:00:18] Production.INFO: count ==1626 [2025-01-23 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:00:06 - End Time 2025-01-23 22:00:06 [2025-01-23 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315233', 'tblTempUsageDetail_20' ) start [2025-01-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315233', 'tblTempUsageDetail_20' ) end [2025-01-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315233', 'tblTempVendorCDR_20' ) start [2025-01-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315233', 'tblTempVendorCDR_20' ) end [2025-01-23 22:00:19] Production.INFO: ProcessCDR(1,14315233,1,1,2) [2025-01-23 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315233', 'tblTempUsageDetail_20' ) start [2025-01-23 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315233', 'tblTempUsageDetail_20' ) end [2025-01-23 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:00:22] Production.INFO: ==12069== Releasing lock... [2025-01-23 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-23 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:01:05 [end_date_ymd] => 2025-01-23 22:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:01:05' and `end` < '2025-01-23 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-23 22:01:18] Production.INFO: count ==1601 [2025-01-23 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:01:05 - End Time 2025-01-23 22:01:05 [2025-01-23 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315238', 'tblTempUsageDetail_20' ) start [2025-01-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315238', 'tblTempUsageDetail_20' ) end [2025-01-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315238', 'tblTempVendorCDR_20' ) start [2025-01-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315238', 'tblTempVendorCDR_20' ) end [2025-01-23 22:01:18] Production.INFO: ProcessCDR(1,14315238,1,1,2) [2025-01-23 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315238', 'tblTempUsageDetail_20' ) start [2025-01-23 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315238', 'tblTempUsageDetail_20' ) end [2025-01-23 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:01:21] Production.INFO: ==12155== Releasing lock... [2025-01-23 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:01:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:02:05 [end_date_ymd] => 2025-01-23 22:02:05 [RateCDR] => 1 ) [2025-01-23 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:02:05' and `end` < '2025-01-23 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:02:17] Production.INFO: count ==1597 [2025-01-23 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:02:05 - End Time 2025-01-23 22:02:05 [2025-01-23 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315243', 'tblTempUsageDetail_20' ) start [2025-01-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315243', 'tblTempUsageDetail_20' ) end [2025-01-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315243', 'tblTempVendorCDR_20' ) start [2025-01-23 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315243', 'tblTempVendorCDR_20' ) end [2025-01-23 22:02:18] Production.INFO: ProcessCDR(1,14315243,1,1,2) [2025-01-23 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315243', 'tblTempUsageDetail_20' ) start [2025-01-23 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315243', 'tblTempUsageDetail_20' ) end [2025-01-23 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:02:21] Production.INFO: ==12229== Releasing lock... [2025-01-23 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:02:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:03:05 [end_date_ymd] => 2025-01-23 22:03:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:03:05' and `end` < '2025-01-23 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-23 22:03:18] Production.INFO: count ==1597 [2025-01-23 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:03:05 - End Time 2025-01-23 22:03:05 [2025-01-23 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315248', 'tblTempUsageDetail_20' ) start [2025-01-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315248', 'tblTempUsageDetail_20' ) end [2025-01-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315248', 'tblTempVendorCDR_20' ) start [2025-01-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315248', 'tblTempVendorCDR_20' ) end [2025-01-23 22:03:18] Production.INFO: ProcessCDR(1,14315248,1,1,2) [2025-01-23 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315248', 'tblTempUsageDetail_20' ) start [2025-01-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315248', 'tblTempUsageDetail_20' ) end [2025-01-23 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:03:21] Production.INFO: ==12313== Releasing lock... [2025-01-23 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:03:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:04:05 [end_date_ymd] => 2025-01-23 22:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:04:05' and `end` < '2025-01-23 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-23 22:04:18] Production.INFO: count ==1598 [2025-01-23 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:04:05 - End Time 2025-01-23 22:04:05 [2025-01-23 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315253', 'tblTempUsageDetail_20' ) start [2025-01-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315253', 'tblTempUsageDetail_20' ) end [2025-01-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315253', 'tblTempVendorCDR_20' ) start [2025-01-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315253', 'tblTempVendorCDR_20' ) end [2025-01-23 22:04:18] Production.INFO: ProcessCDR(1,14315253,1,1,2) [2025-01-23 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315253', 'tblTempUsageDetail_20' ) start [2025-01-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315253', 'tblTempUsageDetail_20' ) end [2025-01-23 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:04:21] Production.INFO: ==12426== Releasing lock... [2025-01-23 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:04:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:05:05 [end_date_ymd] => 2025-01-23 22:05:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:05:05' and `end` < '2025-01-23 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-23 22:05:18] Production.INFO: count ==1600 [2025-01-23 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:05:05 - End Time 2025-01-23 22:05:05 [2025-01-23 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315258', 'tblTempUsageDetail_20' ) start [2025-01-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315258', 'tblTempUsageDetail_20' ) end [2025-01-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315258', 'tblTempVendorCDR_20' ) start [2025-01-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315258', 'tblTempVendorCDR_20' ) end [2025-01-23 22:05:18] Production.INFO: ProcessCDR(1,14315258,1,1,2) [2025-01-23 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315258', 'tblTempUsageDetail_20' ) start [2025-01-23 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315258', 'tblTempUsageDetail_20' ) end [2025-01-23 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:05:23] Production.INFO: ==12506== Releasing lock... [2025-01-23 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:06:05 [end_date_ymd] => 2025-01-23 22:06:05 [RateCDR] => 1 ) [2025-01-23 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:06:05' and `end` < '2025-01-23 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:06:17] Production.INFO: count ==1594 [2025-01-23 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:06:05 - End Time 2025-01-23 22:06:05 [2025-01-23 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315263', 'tblTempUsageDetail_20' ) start [2025-01-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315263', 'tblTempUsageDetail_20' ) end [2025-01-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315263', 'tblTempVendorCDR_20' ) start [2025-01-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315263', 'tblTempVendorCDR_20' ) end [2025-01-23 22:06:18] Production.INFO: ProcessCDR(1,14315263,1,1,2) [2025-01-23 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315263', 'tblTempUsageDetail_20' ) start [2025-01-23 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315263', 'tblTempUsageDetail_20' ) end [2025-01-23 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:06:21] Production.INFO: ==12581== Releasing lock... [2025-01-23 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:06:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-23 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:07:05 [end_date_ymd] => 2025-01-23 22:07:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:07:05' and `end` < '2025-01-23 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-23 22:07:18] Production.INFO: count ==1604 [2025-01-23 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:07:05 - End Time 2025-01-23 22:07:05 [2025-01-23 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315268', 'tblTempUsageDetail_20' ) start [2025-01-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315268', 'tblTempUsageDetail_20' ) end [2025-01-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315268', 'tblTempVendorCDR_20' ) start [2025-01-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315268', 'tblTempVendorCDR_20' ) end [2025-01-23 22:07:18] Production.INFO: ProcessCDR(1,14315268,1,1,2) [2025-01-23 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315268', 'tblTempUsageDetail_20' ) start [2025-01-23 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315268', 'tblTempUsageDetail_20' ) end [2025-01-23 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:07:22] Production.INFO: ==12659== Releasing lock... [2025-01-23 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:07:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:08:05 [end_date_ymd] => 2025-01-23 22:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:08:05' and `end` < '2025-01-23 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-23 22:08:22] Production.INFO: count ==1603 [2025-01-23 22:08:22] Production.ERROR: pbx CDR StartTime 2025-01-23 19:08:05 - End Time 2025-01-23 22:08:05 [2025-01-23 22:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315273', 'tblTempUsageDetail_20' ) start [2025-01-23 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315273', 'tblTempUsageDetail_20' ) end [2025-01-23 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315273', 'tblTempVendorCDR_20' ) start [2025-01-23 22:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315273', 'tblTempVendorCDR_20' ) end [2025-01-23 22:08:22] Production.INFO: ProcessCDR(1,14315273,1,1,2) [2025-01-23 22:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315273', 'tblTempUsageDetail_20' ) start [2025-01-23 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315273', 'tblTempUsageDetail_20' ) end [2025-01-23 22:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:08:25] Production.INFO: ==12736== Releasing lock... [2025-01-23 22:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:08:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:09:05 [end_date_ymd] => 2025-01-23 22:09:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:09:05' and `end` < '2025-01-23 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-23 22:09:19] Production.INFO: count ==1599 [2025-01-23 22:09:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:09:05 - End Time 2025-01-23 22:09:05 [2025-01-23 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315278', 'tblTempUsageDetail_20' ) start [2025-01-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315278', 'tblTempUsageDetail_20' ) end [2025-01-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315278', 'tblTempVendorCDR_20' ) start [2025-01-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315278', 'tblTempVendorCDR_20' ) end [2025-01-23 22:09:19] Production.INFO: ProcessCDR(1,14315278,1,1,2) [2025-01-23 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315278', 'tblTempUsageDetail_20' ) start [2025-01-23 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315278', 'tblTempUsageDetail_20' ) end [2025-01-23 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:09:22] Production.INFO: ==12813== Releasing lock... [2025-01-23 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:10:04 [end_date_ymd] => 2025-01-23 22:10:04 [RateCDR] => 1 ) [2025-01-23 22:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:10:04' and `end` < '2025-01-23 22:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:10:17] Production.INFO: count ==1604 [2025-01-23 22:10:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:10:04 - End Time 2025-01-23 22:10:04 [2025-01-23 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315283', 'tblTempUsageDetail_20' ) start [2025-01-23 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315283', 'tblTempUsageDetail_20' ) end [2025-01-23 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315283', 'tblTempVendorCDR_20' ) start [2025-01-23 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315283', 'tblTempVendorCDR_20' ) end [2025-01-23 22:10:17] Production.INFO: ProcessCDR(1,14315283,1,1,2) [2025-01-23 22:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315283', 'tblTempUsageDetail_20' ) start [2025-01-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315283', 'tblTempUsageDetail_20' ) end [2025-01-23 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:10:22] Production.INFO: ==12928== Releasing lock... [2025-01-23 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:10:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:11:05 [end_date_ymd] => 2025-01-23 22:11:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:11:05' and `end` < '2025-01-23 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-23 22:11:18] Production.INFO: count ==1554 [2025-01-23 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:11:05 - End Time 2025-01-23 22:11:05 [2025-01-23 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315289', 'tblTempUsageDetail_20' ) start [2025-01-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315289', 'tblTempUsageDetail_20' ) end [2025-01-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315289', 'tblTempVendorCDR_20' ) start [2025-01-23 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315289', 'tblTempVendorCDR_20' ) end [2025-01-23 22:11:18] Production.INFO: ProcessCDR(1,14315289,1,1,2) [2025-01-23 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315289', 'tblTempUsageDetail_20' ) start [2025-01-23 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315289', 'tblTempUsageDetail_20' ) end [2025-01-23 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:11:23] Production.INFO: ==13003== Releasing lock... [2025-01-23 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:11:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:12:06 [end_date_ymd] => 2025-01-23 22:12:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:12:06' and `end` < '2025-01-23 22: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-23 22:12:19] Production.INFO: count ==1553 [2025-01-23 22:12:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:12:06 - End Time 2025-01-23 22:12:06 [2025-01-23 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315294', 'tblTempUsageDetail_20' ) start [2025-01-23 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315294', 'tblTempUsageDetail_20' ) end [2025-01-23 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315294', 'tblTempVendorCDR_20' ) start [2025-01-23 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315294', 'tblTempVendorCDR_20' ) end [2025-01-23 22:12:19] Production.INFO: ProcessCDR(1,14315294,1,1,2) [2025-01-23 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315294', 'tblTempUsageDetail_20' ) start [2025-01-23 22:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315294', 'tblTempUsageDetail_20' ) end [2025-01-23 22:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:12:25] Production.INFO: ==13080== Releasing lock... [2025-01-23 22:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:12:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:13:06 [end_date_ymd] => 2025-01-23 22:13:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:13:06' and `end` < '2025-01-23 22: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-23 22:13:19] Production.INFO: count ==1553 [2025-01-23 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:13:06 - End Time 2025-01-23 22:13:06 [2025-01-23 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315299', 'tblTempUsageDetail_20' ) start [2025-01-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315299', 'tblTempUsageDetail_20' ) end [2025-01-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315299', 'tblTempVendorCDR_20' ) start [2025-01-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315299', 'tblTempVendorCDR_20' ) end [2025-01-23 22:13:19] Production.INFO: ProcessCDR(1,14315299,1,1,2) [2025-01-23 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315299', 'tblTempUsageDetail_20' ) start [2025-01-23 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315299', 'tblTempUsageDetail_20' ) end [2025-01-23 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:13:22] Production.INFO: ==13158== Releasing lock... [2025-01-23 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:14:06 [end_date_ymd] => 2025-01-23 22:14:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:14:06' and `end` < '2025-01-23 22: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-23 22:14:19] Production.INFO: count ==1550 [2025-01-23 22:14:20] Production.ERROR: pbx CDR StartTime 2025-01-23 19:14:06 - End Time 2025-01-23 22:14:06 [2025-01-23 22:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315304', 'tblTempUsageDetail_20' ) start [2025-01-23 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315304', 'tblTempUsageDetail_20' ) end [2025-01-23 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315304', 'tblTempVendorCDR_20' ) start [2025-01-23 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315304', 'tblTempVendorCDR_20' ) end [2025-01-23 22:14:20] Production.INFO: ProcessCDR(1,14315304,1,1,2) [2025-01-23 22:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315304', 'tblTempUsageDetail_20' ) start [2025-01-23 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315304', 'tblTempUsageDetail_20' ) end [2025-01-23 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:14:23] Production.INFO: ==13257== Releasing lock... [2025-01-23 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:14:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:15:06 [end_date_ymd] => 2025-01-23 22:15:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:15:06' and `end` < '2025-01-23 22: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-23 22:15:19] Production.INFO: count ==1549 [2025-01-23 22:15:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:15:06 - End Time 2025-01-23 22:15:06 [2025-01-23 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315309', 'tblTempUsageDetail_20' ) start [2025-01-23 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315309', 'tblTempUsageDetail_20' ) end [2025-01-23 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315309', 'tblTempVendorCDR_20' ) start [2025-01-23 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315309', 'tblTempVendorCDR_20' ) end [2025-01-23 22:15:19] Production.INFO: ProcessCDR(1,14315309,1,1,2) [2025-01-23 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315309', 'tblTempUsageDetail_20' ) start [2025-01-23 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315309', 'tblTempUsageDetail_20' ) end [2025-01-23 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:15:23] Production.INFO: ==13333== Releasing lock... [2025-01-23 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:15:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:16:05 [end_date_ymd] => 2025-01-23 22:16:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:16:05' and `end` < '2025-01-23 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-23 22:16:19] Production.INFO: count ==1548 [2025-01-23 22:16:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:16:05 - End Time 2025-01-23 22:16:05 [2025-01-23 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315314', 'tblTempUsageDetail_20' ) start [2025-01-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315314', 'tblTempUsageDetail_20' ) end [2025-01-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315314', 'tblTempVendorCDR_20' ) start [2025-01-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315314', 'tblTempVendorCDR_20' ) end [2025-01-23 22:16:19] Production.INFO: ProcessCDR(1,14315314,1,1,2) [2025-01-23 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315314', 'tblTempUsageDetail_20' ) start [2025-01-23 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315314', 'tblTempUsageDetail_20' ) end [2025-01-23 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:16:23] Production.INFO: ==13408== Releasing lock... [2025-01-23 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:16:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:17:05 [end_date_ymd] => 2025-01-23 22:17:05 [RateCDR] => 1 ) [2025-01-23 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:17:05' and `end` < '2025-01-23 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:17:18] Production.INFO: count ==1547 [2025-01-23 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:17:05 - End Time 2025-01-23 22:17:05 [2025-01-23 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315319', 'tblTempUsageDetail_20' ) start [2025-01-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315319', 'tblTempUsageDetail_20' ) end [2025-01-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315319', 'tblTempVendorCDR_20' ) start [2025-01-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315319', 'tblTempVendorCDR_20' ) end [2025-01-23 22:17:18] Production.INFO: ProcessCDR(1,14315319,1,1,2) [2025-01-23 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315319', 'tblTempUsageDetail_20' ) start [2025-01-23 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315319', 'tblTempUsageDetail_20' ) end [2025-01-23 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:17:21] Production.INFO: ==13482== Releasing lock... [2025-01-23 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:17:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:18:05 [end_date_ymd] => 2025-01-23 22:18:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:18:05' and `end` < '2025-01-23 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-23 22:18:18] Production.INFO: count ==1541 [2025-01-23 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:18:05 - End Time 2025-01-23 22:18:05 [2025-01-23 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315324', 'tblTempUsageDetail_20' ) start [2025-01-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315324', 'tblTempUsageDetail_20' ) end [2025-01-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315324', 'tblTempVendorCDR_20' ) start [2025-01-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315324', 'tblTempVendorCDR_20' ) end [2025-01-23 22:18:18] Production.INFO: ProcessCDR(1,14315324,1,1,2) [2025-01-23 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315324', 'tblTempUsageDetail_20' ) start [2025-01-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315324', 'tblTempUsageDetail_20' ) end [2025-01-23 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:18:21] Production.INFO: ==13559== Releasing lock... [2025-01-23 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:18:21] Production.INFO: 39 MB #Memory Used# [2025-01-23 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:19:05 [end_date_ymd] => 2025-01-23 22:19:05 [RateCDR] => 1 ) [2025-01-23 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:19:05' and `end` < '2025-01-23 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:19:17] Production.INFO: count ==1543 [2025-01-23 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:19:05 - End Time 2025-01-23 22:19:05 [2025-01-23 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315329', 'tblTempUsageDetail_20' ) start [2025-01-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315329', 'tblTempUsageDetail_20' ) end [2025-01-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315329', 'tblTempVendorCDR_20' ) start [2025-01-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315329', 'tblTempVendorCDR_20' ) end [2025-01-23 22:19:18] Production.INFO: ProcessCDR(1,14315329,1,1,2) [2025-01-23 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315329', 'tblTempUsageDetail_20' ) start [2025-01-23 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315329', 'tblTempUsageDetail_20' ) end [2025-01-23 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:19:21] Production.INFO: ==13681== Releasing lock... [2025-01-23 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:19:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:20:07 [end_date_ymd] => 2025-01-23 22:20:07 [RateCDR] => 1 ) [2025-01-23 22:20: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-23 19:20:07' and `end` < '2025-01-23 22:20: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-23 22:20:19] Production.INFO: count ==1542 [2025-01-23 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:20:07 - End Time 2025-01-23 22:20:07 [2025-01-23 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315335', 'tblTempUsageDetail_20' ) start [2025-01-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315335', 'tblTempUsageDetail_20' ) end [2025-01-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315335', 'tblTempVendorCDR_20' ) start [2025-01-23 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315335', 'tblTempVendorCDR_20' ) end [2025-01-23 22:20:19] Production.INFO: ProcessCDR(1,14315335,1,1,2) [2025-01-23 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315335', 'tblTempUsageDetail_20' ) start [2025-01-23 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315335', 'tblTempUsageDetail_20' ) end [2025-01-23 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:20:23] Production.INFO: ==13759== Releasing lock... [2025-01-23 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:20:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:21:05 [end_date_ymd] => 2025-01-23 22:21:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:21:05' and `end` < '2025-01-23 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-23 22:21:18] Production.INFO: count ==1493 [2025-01-23 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:21:05 - End Time 2025-01-23 22:21:05 [2025-01-23 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315340', 'tblTempUsageDetail_20' ) start [2025-01-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315340', 'tblTempUsageDetail_20' ) end [2025-01-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315340', 'tblTempVendorCDR_20' ) start [2025-01-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315340', 'tblTempVendorCDR_20' ) end [2025-01-23 22:21:18] Production.INFO: ProcessCDR(1,14315340,1,1,2) [2025-01-23 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315340', 'tblTempUsageDetail_20' ) start [2025-01-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315340', 'tblTempUsageDetail_20' ) end [2025-01-23 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:21:21] Production.INFO: ==13835== Releasing lock... [2025-01-23 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:22:05 [end_date_ymd] => 2025-01-23 22:22:05 [RateCDR] => 1 ) [2025-01-23 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:22:05' and `end` < '2025-01-23 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:22:17] Production.INFO: count ==1487 [2025-01-23 22:22:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:22:05 - End Time 2025-01-23 22:22:05 [2025-01-23 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315345', 'tblTempUsageDetail_20' ) start [2025-01-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315345', 'tblTempUsageDetail_20' ) end [2025-01-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315345', 'tblTempVendorCDR_20' ) start [2025-01-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315345', 'tblTempVendorCDR_20' ) end [2025-01-23 22:22:17] Production.INFO: ProcessCDR(1,14315345,1,1,2) [2025-01-23 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315345', 'tblTempUsageDetail_20' ) start [2025-01-23 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315345', 'tblTempUsageDetail_20' ) end [2025-01-23 22:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:22:20] Production.INFO: ==13908== Releasing lock... [2025-01-23 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:22:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:23:04 [end_date_ymd] => 2025-01-23 22:23:04 [RateCDR] => 1 ) [2025-01-23 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:23:04' and `end` < '2025-01-23 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:23:17] Production.INFO: count ==1482 [2025-01-23 22:23:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:23:04 - End Time 2025-01-23 22:23:04 [2025-01-23 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315350', 'tblTempUsageDetail_20' ) start [2025-01-23 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315350', 'tblTempUsageDetail_20' ) end [2025-01-23 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315350', 'tblTempVendorCDR_20' ) start [2025-01-23 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315350', 'tblTempVendorCDR_20' ) end [2025-01-23 22:23:17] Production.INFO: ProcessCDR(1,14315350,1,1,2) [2025-01-23 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315350', 'tblTempUsageDetail_20' ) start [2025-01-23 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315350', 'tblTempUsageDetail_20' ) end [2025-01-23 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:23:20] Production.INFO: ==13986== Releasing lock... [2025-01-23 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:23:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:24:05 [end_date_ymd] => 2025-01-23 22:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:24:05' and `end` < '2025-01-23 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-23 22:24:19] Production.INFO: count ==1478 [2025-01-23 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:24:05 - End Time 2025-01-23 22:24:05 [2025-01-23 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315355', 'tblTempUsageDetail_20' ) start [2025-01-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315355', 'tblTempUsageDetail_20' ) end [2025-01-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315355', 'tblTempVendorCDR_20' ) start [2025-01-23 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315355', 'tblTempVendorCDR_20' ) end [2025-01-23 22:24:19] Production.INFO: ProcessCDR(1,14315355,1,1,2) [2025-01-23 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315355', 'tblTempUsageDetail_20' ) start [2025-01-23 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315355', 'tblTempUsageDetail_20' ) end [2025-01-23 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:24:22] Production.INFO: ==14058== Releasing lock... [2025-01-23 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:25:06 [end_date_ymd] => 2025-01-23 22:25:06 [RateCDR] => 1 ) [2025-01-23 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:25:06' and `end` < '2025-01-23 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:25:19] Production.INFO: count ==1476 [2025-01-23 22:25:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:25:06 - End Time 2025-01-23 22:25:06 [2025-01-23 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315360', 'tblTempUsageDetail_20' ) start [2025-01-23 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315360', 'tblTempUsageDetail_20' ) end [2025-01-23 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315360', 'tblTempVendorCDR_20' ) start [2025-01-23 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315360', 'tblTempVendorCDR_20' ) end [2025-01-23 22:25:19] Production.INFO: ProcessCDR(1,14315360,1,1,2) [2025-01-23 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315360', 'tblTempUsageDetail_20' ) start [2025-01-23 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315360', 'tblTempUsageDetail_20' ) end [2025-01-23 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:25:22] Production.INFO: ==14137== Releasing lock... [2025-01-23 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:26:05 [end_date_ymd] => 2025-01-23 22:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:26:05' and `end` < '2025-01-23 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-23 22:26:18] Production.INFO: count ==1475 [2025-01-23 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:26:05 - End Time 2025-01-23 22:26:05 [2025-01-23 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315365', 'tblTempUsageDetail_20' ) start [2025-01-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315365', 'tblTempUsageDetail_20' ) end [2025-01-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315365', 'tblTempVendorCDR_20' ) start [2025-01-23 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315365', 'tblTempVendorCDR_20' ) end [2025-01-23 22:26:19] Production.INFO: ProcessCDR(1,14315365,1,1,2) [2025-01-23 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315365', 'tblTempUsageDetail_20' ) start [2025-01-23 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315365', 'tblTempUsageDetail_20' ) end [2025-01-23 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:26:23] Production.INFO: ==14211== Releasing lock... [2025-01-23 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:26:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:27:05 [end_date_ymd] => 2025-01-23 22:27:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:27:05' and `end` < '2025-01-23 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-23 22:27:18] Production.INFO: count ==1468 [2025-01-23 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:27:05 - End Time 2025-01-23 22:27:05 [2025-01-23 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315370', 'tblTempUsageDetail_20' ) start [2025-01-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315370', 'tblTempUsageDetail_20' ) end [2025-01-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315370', 'tblTempVendorCDR_20' ) start [2025-01-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315370', 'tblTempVendorCDR_20' ) end [2025-01-23 22:27:18] Production.INFO: ProcessCDR(1,14315370,1,1,2) [2025-01-23 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315370', 'tblTempUsageDetail_20' ) start [2025-01-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315370', 'tblTempUsageDetail_20' ) end [2025-01-23 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:27:21] Production.INFO: ==14287== Releasing lock... [2025-01-23 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:28:05 [end_date_ymd] => 2025-01-23 22:28:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:28:05' and `end` < '2025-01-23 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-23 22:28:18] Production.INFO: count ==1470 [2025-01-23 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:28:05 - End Time 2025-01-23 22:28:05 [2025-01-23 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315375', 'tblTempUsageDetail_20' ) start [2025-01-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315375', 'tblTempUsageDetail_20' ) end [2025-01-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315375', 'tblTempVendorCDR_20' ) start [2025-01-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315375', 'tblTempVendorCDR_20' ) end [2025-01-23 22:28:18] Production.INFO: ProcessCDR(1,14315375,1,1,2) [2025-01-23 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315375', 'tblTempUsageDetail_20' ) start [2025-01-23 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315375', 'tblTempUsageDetail_20' ) end [2025-01-23 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:28:21] Production.INFO: ==14358== Releasing lock... [2025-01-23 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:29:06 [end_date_ymd] => 2025-01-23 22:29:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:29:06' and `end` < '2025-01-23 22: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-23 22:29:18] Production.INFO: count ==1470 [2025-01-23 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:29:06 - End Time 2025-01-23 22:29:06 [2025-01-23 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315380', 'tblTempUsageDetail_20' ) start [2025-01-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315380', 'tblTempUsageDetail_20' ) end [2025-01-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315380', 'tblTempVendorCDR_20' ) start [2025-01-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315380', 'tblTempVendorCDR_20' ) end [2025-01-23 22:29:18] Production.INFO: ProcessCDR(1,14315380,1,1,2) [2025-01-23 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315380', 'tblTempUsageDetail_20' ) start [2025-01-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315380', 'tblTempUsageDetail_20' ) end [2025-01-23 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:29:21] Production.INFO: ==14431== Releasing lock... [2025-01-23 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:30:06 [end_date_ymd] => 2025-01-23 22:30:06 [RateCDR] => 1 ) [2025-01-23 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:30:06' and `end` < '2025-01-23 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:30:18] Production.INFO: count ==1466 [2025-01-23 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:30:06 - End Time 2025-01-23 22:30:06 [2025-01-23 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315386', 'tblTempUsageDetail_20' ) start [2025-01-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315386', 'tblTempUsageDetail_20' ) end [2025-01-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315386', 'tblTempVendorCDR_20' ) start [2025-01-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315386', 'tblTempVendorCDR_20' ) end [2025-01-23 22:30:18] Production.INFO: ProcessCDR(1,14315386,1,1,2) [2025-01-23 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315386', 'tblTempUsageDetail_20' ) start [2025-01-23 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315386', 'tblTempUsageDetail_20' ) end [2025-01-23 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:30:23] Production.INFO: ==14506== Releasing lock... [2025-01-23 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:30:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:31:06 [end_date_ymd] => 2025-01-23 22:31:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:31:06' and `end` < '2025-01-23 22: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-23 22:31:18] Production.INFO: count ==1430 [2025-01-23 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:31:06 - End Time 2025-01-23 22:31:06 [2025-01-23 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315391', 'tblTempUsageDetail_20' ) start [2025-01-23 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315391', 'tblTempUsageDetail_20' ) end [2025-01-23 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315391', 'tblTempVendorCDR_20' ) start [2025-01-23 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315391', 'tblTempVendorCDR_20' ) end [2025-01-23 22:31:19] Production.INFO: ProcessCDR(1,14315391,1,1,2) [2025-01-23 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315391', 'tblTempUsageDetail_20' ) start [2025-01-23 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315391', 'tblTempUsageDetail_20' ) end [2025-01-23 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:31:22] Production.INFO: ==14582== Releasing lock... [2025-01-23 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:32:06 [end_date_ymd] => 2025-01-23 22:32:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:32:06' and `end` < '2025-01-23 22: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-23 22:32:18] Production.INFO: count ==1428 [2025-01-23 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:32:06 - End Time 2025-01-23 22:32:06 [2025-01-23 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315396', 'tblTempUsageDetail_20' ) start [2025-01-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315396', 'tblTempUsageDetail_20' ) end [2025-01-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315396', 'tblTempVendorCDR_20' ) start [2025-01-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315396', 'tblTempVendorCDR_20' ) end [2025-01-23 22:32:18] Production.INFO: ProcessCDR(1,14315396,1,1,2) [2025-01-23 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315396', 'tblTempUsageDetail_20' ) start [2025-01-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315396', 'tblTempUsageDetail_20' ) end [2025-01-23 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:32:21] Production.INFO: ==14656== Releasing lock... [2025-01-23 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:32:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:33:05 [end_date_ymd] => 2025-01-23 22:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:33:05' and `end` < '2025-01-23 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-23 22:33:17] Production.INFO: count ==1426 [2025-01-23 22:33:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:33:05 - End Time 2025-01-23 22:33:05 [2025-01-23 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315401', 'tblTempUsageDetail_20' ) start [2025-01-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315401', 'tblTempUsageDetail_20' ) end [2025-01-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315401', 'tblTempVendorCDR_20' ) start [2025-01-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315401', 'tblTempVendorCDR_20' ) end [2025-01-23 22:33:18] Production.INFO: ProcessCDR(1,14315401,1,1,2) [2025-01-23 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315401', 'tblTempUsageDetail_20' ) start [2025-01-23 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315401', 'tblTempUsageDetail_20' ) end [2025-01-23 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:33:21] Production.INFO: ==14724== Releasing lock... [2025-01-23 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:34:05 [end_date_ymd] => 2025-01-23 22:34:05 [RateCDR] => 1 ) [2025-01-23 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:34:05' and `end` < '2025-01-23 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:34:18] Production.INFO: count ==1427 [2025-01-23 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:34:05 - End Time 2025-01-23 22:34:05 [2025-01-23 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315406', 'tblTempUsageDetail_20' ) start [2025-01-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315406', 'tblTempUsageDetail_20' ) end [2025-01-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315406', 'tblTempVendorCDR_20' ) start [2025-01-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315406', 'tblTempVendorCDR_20' ) end [2025-01-23 22:34:18] Production.INFO: ProcessCDR(1,14315406,1,1,2) [2025-01-23 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315406', 'tblTempUsageDetail_20' ) start [2025-01-23 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315406', 'tblTempUsageDetail_20' ) end [2025-01-23 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:34:21] Production.INFO: ==14846== Releasing lock... [2025-01-23 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:34:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:35:04 [end_date_ymd] => 2025-01-23 22:35:04 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:35:04' and `end` < '2025-01-23 22: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-23 22:35:17] Production.INFO: count ==1426 [2025-01-23 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:35:04 - End Time 2025-01-23 22:35:04 [2025-01-23 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315411', 'tblTempUsageDetail_20' ) start [2025-01-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315411', 'tblTempUsageDetail_20' ) end [2025-01-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315411', 'tblTempVendorCDR_20' ) start [2025-01-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315411', 'tblTempVendorCDR_20' ) end [2025-01-23 22:35:17] Production.INFO: ProcessCDR(1,14315411,1,1,2) [2025-01-23 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315411', 'tblTempUsageDetail_20' ) start [2025-01-23 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315411', 'tblTempUsageDetail_20' ) end [2025-01-23 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:35:20] Production.INFO: ==14918== Releasing lock... [2025-01-23 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:35:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:36:05 [end_date_ymd] => 2025-01-23 22:36:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:36:05' and `end` < '2025-01-23 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-23 22:36:18] Production.INFO: count ==1427 [2025-01-23 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:36:05 - End Time 2025-01-23 22:36:05 [2025-01-23 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315416', 'tblTempUsageDetail_20' ) start [2025-01-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315416', 'tblTempUsageDetail_20' ) end [2025-01-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315416', 'tblTempVendorCDR_20' ) start [2025-01-23 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315416', 'tblTempVendorCDR_20' ) end [2025-01-23 22:36:18] Production.INFO: ProcessCDR(1,14315416,1,1,2) [2025-01-23 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315416', 'tblTempUsageDetail_20' ) start [2025-01-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315416', 'tblTempUsageDetail_20' ) end [2025-01-23 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:36:21] Production.INFO: ==14991== Releasing lock... [2025-01-23 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:36:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:37:06 [end_date_ymd] => 2025-01-23 22:37:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:37:06' and `end` < '2025-01-23 22: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-23 22:37:19] Production.INFO: count ==1424 [2025-01-23 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:37:06 - End Time 2025-01-23 22:37:06 [2025-01-23 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315421', 'tblTempUsageDetail_20' ) start [2025-01-23 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315421', 'tblTempUsageDetail_20' ) end [2025-01-23 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315421', 'tblTempVendorCDR_20' ) start [2025-01-23 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315421', 'tblTempVendorCDR_20' ) end [2025-01-23 22:37:19] Production.INFO: ProcessCDR(1,14315421,1,1,2) [2025-01-23 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315421', 'tblTempUsageDetail_20' ) start [2025-01-23 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315421', 'tblTempUsageDetail_20' ) end [2025-01-23 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:37:22] Production.INFO: ==15066== Releasing lock... [2025-01-23 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:37:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:38:05 [end_date_ymd] => 2025-01-23 22:38:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:38:05' and `end` < '2025-01-23 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-23 22:38:18] Production.INFO: count ==1422 [2025-01-23 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:38:05 - End Time 2025-01-23 22:38:05 [2025-01-23 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315426', 'tblTempUsageDetail_20' ) start [2025-01-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315426', 'tblTempUsageDetail_20' ) end [2025-01-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315426', 'tblTempVendorCDR_20' ) start [2025-01-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315426', 'tblTempVendorCDR_20' ) end [2025-01-23 22:38:18] Production.INFO: ProcessCDR(1,14315426,1,1,2) [2025-01-23 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315426', 'tblTempUsageDetail_20' ) start [2025-01-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315426', 'tblTempUsageDetail_20' ) end [2025-01-23 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:38:21] Production.INFO: ==15140== Releasing lock... [2025-01-23 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:38:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:39:05 [end_date_ymd] => 2025-01-23 22:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:39:05' and `end` < '2025-01-23 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-23 22:39:18] Production.INFO: count ==1418 [2025-01-23 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:39:05 - End Time 2025-01-23 22:39:05 [2025-01-23 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315431', 'tblTempUsageDetail_20' ) start [2025-01-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315431', 'tblTempUsageDetail_20' ) end [2025-01-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315431', 'tblTempVendorCDR_20' ) start [2025-01-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315431', 'tblTempVendorCDR_20' ) end [2025-01-23 22:39:18] Production.INFO: ProcessCDR(1,14315431,1,1,2) [2025-01-23 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315431', 'tblTempUsageDetail_20' ) start [2025-01-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315431', 'tblTempUsageDetail_20' ) end [2025-01-23 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:39:21] Production.INFO: ==15215== Releasing lock... [2025-01-23 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:40:06 [end_date_ymd] => 2025-01-23 22:40:06 [RateCDR] => 1 ) [2025-01-23 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-23 19:40:06' and `end` < '2025-01-23 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-23 22:40:19] Production.INFO: count ==1409 [2025-01-23 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:40:06 - End Time 2025-01-23 22:40:06 [2025-01-23 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315437', 'tblTempUsageDetail_20' ) start [2025-01-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315437', 'tblTempUsageDetail_20' ) end [2025-01-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315437', 'tblTempVendorCDR_20' ) start [2025-01-23 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315437', 'tblTempVendorCDR_20' ) end [2025-01-23 22:40:19] Production.INFO: ProcessCDR(1,14315437,1,1,2) [2025-01-23 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315437', 'tblTempUsageDetail_20' ) start [2025-01-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315437', 'tblTempUsageDetail_20' ) end [2025-01-23 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:40:22] Production.INFO: ==15290== Releasing lock... [2025-01-23 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:41:05 [end_date_ymd] => 2025-01-23 22:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:41:05' and `end` < '2025-01-23 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-23 22:41:18] Production.INFO: count ==1355 [2025-01-23 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:41:05 - End Time 2025-01-23 22:41:05 [2025-01-23 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315442', 'tblTempUsageDetail_20' ) start [2025-01-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315442', 'tblTempUsageDetail_20' ) end [2025-01-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315442', 'tblTempVendorCDR_20' ) start [2025-01-23 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315442', 'tblTempVendorCDR_20' ) end [2025-01-23 22:41:18] Production.INFO: ProcessCDR(1,14315442,1,1,2) [2025-01-23 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315442', 'tblTempUsageDetail_20' ) start [2025-01-23 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315442', 'tblTempUsageDetail_20' ) end [2025-01-23 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:41:22] Production.INFO: ==15363== Releasing lock... [2025-01-23 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:41:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:42:05 [end_date_ymd] => 2025-01-23 22:42:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:42:05' and `end` < '2025-01-23 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-23 22:42:18] Production.INFO: count ==1354 [2025-01-23 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:42:05 - End Time 2025-01-23 22:42:05 [2025-01-23 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315447', 'tblTempUsageDetail_20' ) start [2025-01-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315447', 'tblTempUsageDetail_20' ) end [2025-01-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315447', 'tblTempVendorCDR_20' ) start [2025-01-23 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315447', 'tblTempVendorCDR_20' ) end [2025-01-23 22:42:18] Production.INFO: ProcessCDR(1,14315447,1,1,2) [2025-01-23 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315447', 'tblTempUsageDetail_20' ) start [2025-01-23 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315447', 'tblTempUsageDetail_20' ) end [2025-01-23 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:42:21] Production.INFO: ==15433== Releasing lock... [2025-01-23 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:42:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:43:06 [end_date_ymd] => 2025-01-23 22:43:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:43:06' and `end` < '2025-01-23 22: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-23 22:43:18] Production.INFO: count ==1351 [2025-01-23 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:43:06 - End Time 2025-01-23 22:43:06 [2025-01-23 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315452', 'tblTempUsageDetail_20' ) start [2025-01-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315452', 'tblTempUsageDetail_20' ) end [2025-01-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315452', 'tblTempVendorCDR_20' ) start [2025-01-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315452', 'tblTempVendorCDR_20' ) end [2025-01-23 22:43:18] Production.INFO: ProcessCDR(1,14315452,1,1,2) [2025-01-23 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315452', 'tblTempUsageDetail_20' ) start [2025-01-23 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315452', 'tblTempUsageDetail_20' ) end [2025-01-23 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:43:22] Production.INFO: ==15506== Releasing lock... [2025-01-23 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:43:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:44:05 [end_date_ymd] => 2025-01-23 22:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:44:05' and `end` < '2025-01-23 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-23 22:44:18] Production.INFO: count ==1349 [2025-01-23 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:44:05 - End Time 2025-01-23 22:44:05 [2025-01-23 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315457', 'tblTempUsageDetail_20' ) start [2025-01-23 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315457', 'tblTempUsageDetail_20' ) end [2025-01-23 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315457', 'tblTempVendorCDR_20' ) start [2025-01-23 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315457', 'tblTempVendorCDR_20' ) end [2025-01-23 22:44:18] Production.INFO: ProcessCDR(1,14315457,1,1,2) [2025-01-23 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315457', 'tblTempUsageDetail_20' ) start [2025-01-23 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315457', 'tblTempUsageDetail_20' ) end [2025-01-23 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:44:21] Production.INFO: ==15579== Releasing lock... [2025-01-23 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:44:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:45:05 [end_date_ymd] => 2025-01-23 22:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:45:05' and `end` < '2025-01-23 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-23 22:45:18] Production.INFO: count ==1341 [2025-01-23 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:45:05 - End Time 2025-01-23 22:45:05 [2025-01-23 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315462', 'tblTempUsageDetail_20' ) start [2025-01-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315462', 'tblTempUsageDetail_20' ) end [2025-01-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315462', 'tblTempVendorCDR_20' ) start [2025-01-23 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315462', 'tblTempVendorCDR_20' ) end [2025-01-23 22:45:18] Production.INFO: ProcessCDR(1,14315462,1,1,2) [2025-01-23 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315462', 'tblTempUsageDetail_20' ) start [2025-01-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315462', 'tblTempUsageDetail_20' ) end [2025-01-23 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:45:21] Production.INFO: ==15653== Releasing lock... [2025-01-23 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-23 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:46:05 [end_date_ymd] => 2025-01-23 22:46:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:46:05' and `end` < '2025-01-23 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-23 22:46:17] Production.INFO: count ==1342 [2025-01-23 22:46:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:46:05 - End Time 2025-01-23 22:46:05 [2025-01-23 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315467', 'tblTempUsageDetail_20' ) start [2025-01-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315467', 'tblTempUsageDetail_20' ) end [2025-01-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315467', 'tblTempVendorCDR_20' ) start [2025-01-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315467', 'tblTempVendorCDR_20' ) end [2025-01-23 22:46:17] Production.INFO: ProcessCDR(1,14315467,1,1,2) [2025-01-23 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315467', 'tblTempUsageDetail_20' ) start [2025-01-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315467', 'tblTempUsageDetail_20' ) end [2025-01-23 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:46:22] Production.INFO: ==15721== Releasing lock... [2025-01-23 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:46:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:47:05 [end_date_ymd] => 2025-01-23 22:47:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:47:05' and `end` < '2025-01-23 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-23 22:47:18] Production.INFO: count ==1341 [2025-01-23 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:47:05 - End Time 2025-01-23 22:47:05 [2025-01-23 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315472', 'tblTempUsageDetail_20' ) start [2025-01-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315472', 'tblTempUsageDetail_20' ) end [2025-01-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315472', 'tblTempVendorCDR_20' ) start [2025-01-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315472', 'tblTempVendorCDR_20' ) end [2025-01-23 22:47:18] Production.INFO: ProcessCDR(1,14315472,1,1,2) [2025-01-23 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315472', 'tblTempUsageDetail_20' ) start [2025-01-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315472', 'tblTempUsageDetail_20' ) end [2025-01-23 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:47:21] Production.INFO: ==15795== Releasing lock... [2025-01-23 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:48:05 [end_date_ymd] => 2025-01-23 22:48:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:48:05' and `end` < '2025-01-23 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-23 22:48:17] Production.INFO: count ==1343 [2025-01-23 22:48:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:48:05 - End Time 2025-01-23 22:48:05 [2025-01-23 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315477', 'tblTempUsageDetail_20' ) start [2025-01-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315477', 'tblTempUsageDetail_20' ) end [2025-01-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315477', 'tblTempVendorCDR_20' ) start [2025-01-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315477', 'tblTempVendorCDR_20' ) end [2025-01-23 22:48:17] Production.INFO: ProcessCDR(1,14315477,1,1,2) [2025-01-23 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315477', 'tblTempUsageDetail_20' ) start [2025-01-23 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315477', 'tblTempUsageDetail_20' ) end [2025-01-23 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:48:22] Production.INFO: ==15866== Releasing lock... [2025-01-23 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:49:05 [end_date_ymd] => 2025-01-23 22:49:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:49:05' and `end` < '2025-01-23 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-23 22:49:18] Production.INFO: count ==1374 [2025-01-23 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:49:05 - End Time 2025-01-23 22:49:05 [2025-01-23 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315482', 'tblTempUsageDetail_20' ) start [2025-01-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315482', 'tblTempUsageDetail_20' ) end [2025-01-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315482', 'tblTempVendorCDR_20' ) start [2025-01-23 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315482', 'tblTempVendorCDR_20' ) end [2025-01-23 22:49:18] Production.INFO: ProcessCDR(1,14315482,1,1,2) [2025-01-23 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315482', 'tblTempUsageDetail_20' ) start [2025-01-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315482', 'tblTempUsageDetail_20' ) end [2025-01-23 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:49:21] Production.INFO: ==15948== Releasing lock... [2025-01-23 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:49:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:50:05 [end_date_ymd] => 2025-01-23 22:50:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:50:05' and `end` < '2025-01-23 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-23 22:50:18] Production.INFO: count ==1412 [2025-01-23 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:50:05 - End Time 2025-01-23 22:50:05 [2025-01-23 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315487', 'tblTempUsageDetail_20' ) start [2025-01-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315487', 'tblTempUsageDetail_20' ) end [2025-01-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315487', 'tblTempVendorCDR_20' ) start [2025-01-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315487', 'tblTempVendorCDR_20' ) end [2025-01-23 22:50:18] Production.INFO: ProcessCDR(1,14315487,1,1,2) [2025-01-23 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315487', 'tblTempUsageDetail_20' ) start [2025-01-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315487', 'tblTempUsageDetail_20' ) end [2025-01-23 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:50:21] Production.INFO: ==16061== Releasing lock... [2025-01-23 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:50:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:51:05 [end_date_ymd] => 2025-01-23 22:51:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:51:05' and `end` < '2025-01-23 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-23 22:51:18] Production.INFO: count ==1407 [2025-01-23 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:51:05 - End Time 2025-01-23 22:51:05 [2025-01-23 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315493', 'tblTempUsageDetail_20' ) start [2025-01-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315493', 'tblTempUsageDetail_20' ) end [2025-01-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315493', 'tblTempVendorCDR_20' ) start [2025-01-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315493', 'tblTempVendorCDR_20' ) end [2025-01-23 22:51:18] Production.INFO: ProcessCDR(1,14315493,1,1,2) [2025-01-23 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315493', 'tblTempUsageDetail_20' ) start [2025-01-23 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315493', 'tblTempUsageDetail_20' ) end [2025-01-23 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:51:22] Production.INFO: ==16136== Releasing lock... [2025-01-23 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:52:05 [end_date_ymd] => 2025-01-23 22:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:52:05' and `end` < '2025-01-23 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-23 22:52:17] Production.INFO: count ==1440 [2025-01-23 22:52:17] Production.ERROR: pbx CDR StartTime 2025-01-23 19:52:05 - End Time 2025-01-23 22:52:05 [2025-01-23 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315498', 'tblTempUsageDetail_20' ) start [2025-01-23 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315498', 'tblTempUsageDetail_20' ) end [2025-01-23 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315498', 'tblTempVendorCDR_20' ) start [2025-01-23 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315498', 'tblTempVendorCDR_20' ) end [2025-01-23 22:52:17] Production.INFO: ProcessCDR(1,14315498,1,1,2) [2025-01-23 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315498', 'tblTempUsageDetail_20' ) start [2025-01-23 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315498', 'tblTempUsageDetail_20' ) end [2025-01-23 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:52:21] Production.INFO: ==16208== Releasing lock... [2025-01-23 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:52:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:53:05 [end_date_ymd] => 2025-01-23 22:53:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:53:05' and `end` < '2025-01-23 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-23 22:53:18] Production.INFO: count ==1476 [2025-01-23 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:53:05 - End Time 2025-01-23 22:53:05 [2025-01-23 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315503', 'tblTempUsageDetail_20' ) start [2025-01-23 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315503', 'tblTempUsageDetail_20' ) end [2025-01-23 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315503', 'tblTempVendorCDR_20' ) start [2025-01-23 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315503', 'tblTempVendorCDR_20' ) end [2025-01-23 22:53:18] Production.INFO: ProcessCDR(1,14315503,1,1,2) [2025-01-23 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315503', 'tblTempUsageDetail_20' ) start [2025-01-23 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315503', 'tblTempUsageDetail_20' ) end [2025-01-23 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:53:21] Production.INFO: ==16283== Releasing lock... [2025-01-23 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:53:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:54:05 [end_date_ymd] => 2025-01-23 22:54:05 [RateCDR] => 1 ) [2025-01-23 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:54:05' and `end` < '2025-01-23 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 22:54:18] Production.INFO: count ==1497 [2025-01-23 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:54:05 - End Time 2025-01-23 22:54:05 [2025-01-23 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315508', 'tblTempUsageDetail_20' ) start [2025-01-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315508', 'tblTempUsageDetail_20' ) end [2025-01-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315508', 'tblTempVendorCDR_20' ) start [2025-01-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315508', 'tblTempVendorCDR_20' ) end [2025-01-23 22:54:18] Production.INFO: ProcessCDR(1,14315508,1,1,2) [2025-01-23 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315508', 'tblTempUsageDetail_20' ) start [2025-01-23 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315508', 'tblTempUsageDetail_20' ) end [2025-01-23 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:54:23] Production.INFO: ==16358== Releasing lock... [2025-01-23 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:54:23] Production.INFO: 39 MB #Memory Used# [2025-01-23 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:55:05 [end_date_ymd] => 2025-01-23 22:55:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:55:05' and `end` < '2025-01-23 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-23 22:55:18] Production.INFO: count ==1536 [2025-01-23 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:55:05 - End Time 2025-01-23 22:55:05 [2025-01-23 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315513', 'tblTempUsageDetail_20' ) start [2025-01-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315513', 'tblTempUsageDetail_20' ) end [2025-01-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315513', 'tblTempVendorCDR_20' ) start [2025-01-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315513', 'tblTempVendorCDR_20' ) end [2025-01-23 22:55:18] Production.INFO: ProcessCDR(1,14315513,1,1,2) [2025-01-23 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315513', 'tblTempUsageDetail_20' ) start [2025-01-23 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315513', 'tblTempUsageDetail_20' ) end [2025-01-23 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:55:21] Production.INFO: ==16433== Releasing lock... [2025-01-23 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:55:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:56:06 [end_date_ymd] => 2025-01-23 22:56:06 [RateCDR] => 1 ) [2025-01-23 22: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-23 19:56:06' and `end` < '2025-01-23 22: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-23 22:56:19] Production.INFO: count ==1546 [2025-01-23 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:56:06 - End Time 2025-01-23 22:56:06 [2025-01-23 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315518', 'tblTempUsageDetail_20' ) start [2025-01-23 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315518', 'tblTempUsageDetail_20' ) end [2025-01-23 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315518', 'tblTempVendorCDR_20' ) start [2025-01-23 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315518', 'tblTempVendorCDR_20' ) end [2025-01-23 22:56:19] Production.INFO: ProcessCDR(1,14315518,1,1,2) [2025-01-23 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315518', 'tblTempUsageDetail_20' ) start [2025-01-23 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315518', 'tblTempUsageDetail_20' ) end [2025-01-23 22:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:56:24] Production.INFO: ==16516== Releasing lock... [2025-01-23 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:56:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:57:05 [end_date_ymd] => 2025-01-23 22:57:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:57:05' and `end` < '2025-01-23 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-23 22:57:18] Production.INFO: count ==1556 [2025-01-23 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:57:05 - End Time 2025-01-23 22:57:05 [2025-01-23 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315523', 'tblTempUsageDetail_20' ) start [2025-01-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315523', 'tblTempUsageDetail_20' ) end [2025-01-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315523', 'tblTempVendorCDR_20' ) start [2025-01-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315523', 'tblTempVendorCDR_20' ) end [2025-01-23 22:57:18] Production.INFO: ProcessCDR(1,14315523,1,1,2) [2025-01-23 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315523', 'tblTempUsageDetail_20' ) start [2025-01-23 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315523', 'tblTempUsageDetail_20' ) end [2025-01-23 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:57:21] Production.INFO: ==16587== Releasing lock... [2025-01-23 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:57:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:58:05 [end_date_ymd] => 2025-01-23 22:58:05 [RateCDR] => 1 ) [2025-01-23 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 19:58:05' and `end` < '2025-01-23 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-23 22:58:19] Production.INFO: count ==1595 [2025-01-23 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-23 19:58:05 - End Time 2025-01-23 22:58:05 [2025-01-23 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315528', 'tblTempUsageDetail_20' ) start [2025-01-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315528', 'tblTempUsageDetail_20' ) end [2025-01-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315528', 'tblTempVendorCDR_20' ) start [2025-01-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315528', 'tblTempVendorCDR_20' ) end [2025-01-23 22:58:19] Production.INFO: ProcessCDR(1,14315528,1,1,2) [2025-01-23 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315528', 'tblTempUsageDetail_20' ) start [2025-01-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315528', 'tblTempUsageDetail_20' ) end [2025-01-23 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:58:22] Production.INFO: ==16663== Releasing lock... [2025-01-23 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:58:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-23 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 19:59:05 [end_date_ymd] => 2025-01-23 22:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 19:59:05' and `end` < '2025-01-23 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-23 22:59:18] Production.INFO: count ==1593 [2025-01-23 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-23 19:59:05 - End Time 2025-01-23 22:59:05 [2025-01-23 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315533', 'tblTempUsageDetail_20' ) start [2025-01-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315533', 'tblTempUsageDetail_20' ) end [2025-01-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315533', 'tblTempVendorCDR_20' ) start [2025-01-23 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315533', 'tblTempVendorCDR_20' ) end [2025-01-23 22:59:18] Production.INFO: ProcessCDR(1,14315533,1,1,2) [2025-01-23 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315533', 'tblTempUsageDetail_20' ) start [2025-01-23 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315533', 'tblTempUsageDetail_20' ) end [2025-01-23 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 22:59:21] Production.INFO: ==16746== Releasing lock... [2025-01-23 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 22:59:21] Production.INFO: 40 MB #Memory Used# [2025-01-23 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:00:06 [end_date_ymd] => 2025-01-23 23:00:06 [RateCDR] => 1 ) [2025-01-23 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-23 20:00:06' and `end` < '2025-01-23 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-23 23:00:18] Production.INFO: count ==1587 [2025-01-23 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:00:06 - End Time 2025-01-23 23:00:06 [2025-01-23 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315538', 'tblTempUsageDetail_20' ) start [2025-01-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315538', 'tblTempUsageDetail_20' ) end [2025-01-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315538', 'tblTempVendorCDR_20' ) start [2025-01-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315538', 'tblTempVendorCDR_20' ) end [2025-01-23 23:00:19] Production.INFO: ProcessCDR(1,14315538,1,1,2) [2025-01-23 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315538', 'tblTempUsageDetail_20' ) start [2025-01-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315538', 'tblTempUsageDetail_20' ) end [2025-01-23 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:00:22] Production.INFO: ==16830== Releasing lock... [2025-01-23 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:00:22] Production.INFO: 40 MB #Memory Used# [2025-01-23 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:01:05 [end_date_ymd] => 2025-01-23 23:01:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:01:05' and `end` < '2025-01-23 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-23 23:01:17] Production.INFO: count ==1540 [2025-01-23 23:01:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:01:05 - End Time 2025-01-23 23:01:05 [2025-01-23 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315544', 'tblTempUsageDetail_20' ) start [2025-01-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315544', 'tblTempUsageDetail_20' ) end [2025-01-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315544', 'tblTempVendorCDR_20' ) start [2025-01-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315544', 'tblTempVendorCDR_20' ) end [2025-01-23 23:01:18] Production.INFO: ProcessCDR(1,14315544,1,1,2) [2025-01-23 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315544', 'tblTempUsageDetail_20' ) start [2025-01-23 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315544', 'tblTempUsageDetail_20' ) end [2025-01-23 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:01:21] Production.INFO: ==16920== Releasing lock... [2025-01-23 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:01:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:02:05 [end_date_ymd] => 2025-01-23 23:02:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:02:05' and `end` < '2025-01-23 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-23 23:02:17] Production.INFO: count ==1541 [2025-01-23 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:02:05 - End Time 2025-01-23 23:02:05 [2025-01-23 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315549', 'tblTempUsageDetail_20' ) start [2025-01-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315549', 'tblTempUsageDetail_20' ) end [2025-01-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315549', 'tblTempVendorCDR_20' ) start [2025-01-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315549', 'tblTempVendorCDR_20' ) end [2025-01-23 23:02:18] Production.INFO: ProcessCDR(1,14315549,1,1,2) [2025-01-23 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315549', 'tblTempUsageDetail_20' ) start [2025-01-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315549', 'tblTempUsageDetail_20' ) end [2025-01-23 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:02:21] Production.INFO: ==17082== Releasing lock... [2025-01-23 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:02:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:03:06 [end_date_ymd] => 2025-01-23 23:03:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:03:06' and `end` < '2025-01-23 23: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-23 23:03:18] Production.INFO: count ==1540 [2025-01-23 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:03:06 - End Time 2025-01-23 23:03:06 [2025-01-23 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315554', 'tblTempUsageDetail_20' ) start [2025-01-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315554', 'tblTempUsageDetail_20' ) end [2025-01-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315554', 'tblTempVendorCDR_20' ) start [2025-01-23 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315554', 'tblTempVendorCDR_20' ) end [2025-01-23 23:03:18] Production.INFO: ProcessCDR(1,14315554,1,1,2) [2025-01-23 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315554', 'tblTempUsageDetail_20' ) start [2025-01-23 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315554', 'tblTempUsageDetail_20' ) end [2025-01-23 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:03:22] Production.INFO: ==17158== Releasing lock... [2025-01-23 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:03:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:04:05 [end_date_ymd] => 2025-01-23 23:04:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:04:05' and `end` < '2025-01-23 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-23 23:04:18] Production.INFO: count ==1528 [2025-01-23 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:04:05 - End Time 2025-01-23 23:04:05 [2025-01-23 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315559', 'tblTempUsageDetail_20' ) start [2025-01-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315559', 'tblTempUsageDetail_20' ) end [2025-01-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315559', 'tblTempVendorCDR_20' ) start [2025-01-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315559', 'tblTempVendorCDR_20' ) end [2025-01-23 23:04:18] Production.INFO: ProcessCDR(1,14315559,1,1,2) [2025-01-23 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315559', 'tblTempUsageDetail_20' ) start [2025-01-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315559', 'tblTempUsageDetail_20' ) end [2025-01-23 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:04:21] Production.INFO: ==17245== Releasing lock... [2025-01-23 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:04:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:05:05 [end_date_ymd] => 2025-01-23 23:05:05 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:05:05' and `end` < '2025-01-23 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-23 23:05:18] Production.INFO: count ==1527 [2025-01-23 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:05:05 - End Time 2025-01-23 23:05:05 [2025-01-23 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315564', 'tblTempUsageDetail_20' ) start [2025-01-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315564', 'tblTempUsageDetail_20' ) end [2025-01-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315564', 'tblTempVendorCDR_20' ) start [2025-01-23 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315564', 'tblTempVendorCDR_20' ) end [2025-01-23 23:05:18] Production.INFO: ProcessCDR(1,14315564,1,1,2) [2025-01-23 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315564', 'tblTempUsageDetail_20' ) start [2025-01-23 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315564', 'tblTempUsageDetail_20' ) end [2025-01-23 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:05:21] Production.INFO: ==17446== Releasing lock... [2025-01-23 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:05:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:06:06 [end_date_ymd] => 2025-01-23 23:06:06 [RateCDR] => 1 ) [2025-01-23 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:06:06' and `end` < '2025-01-23 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:06:18] Production.INFO: count ==1527 [2025-01-23 23:06:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:06:06 - End Time 2025-01-23 23:06:06 [2025-01-23 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315569', 'tblTempUsageDetail_20' ) start [2025-01-23 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315569', 'tblTempUsageDetail_20' ) end [2025-01-23 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315569', 'tblTempVendorCDR_20' ) start [2025-01-23 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315569', 'tblTempVendorCDR_20' ) end [2025-01-23 23:06:19] Production.INFO: ProcessCDR(1,14315569,1,1,2) [2025-01-23 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315569', 'tblTempUsageDetail_20' ) start [2025-01-23 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315569', 'tblTempUsageDetail_20' ) end [2025-01-23 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:06:22] Production.INFO: ==17528== Releasing lock... [2025-01-23 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:06:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:07:06 [end_date_ymd] => 2025-01-23 23:07:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:07:06' and `end` < '2025-01-23 23: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-23 23:07:18] Production.INFO: count ==1526 [2025-01-23 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:07:06 - End Time 2025-01-23 23:07:06 [2025-01-23 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315574', 'tblTempUsageDetail_20' ) start [2025-01-23 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315574', 'tblTempUsageDetail_20' ) end [2025-01-23 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315574', 'tblTempVendorCDR_20' ) start [2025-01-23 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315574', 'tblTempVendorCDR_20' ) end [2025-01-23 23:07:19] Production.INFO: ProcessCDR(1,14315574,1,1,2) [2025-01-23 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315574', 'tblTempUsageDetail_20' ) start [2025-01-23 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315574', 'tblTempUsageDetail_20' ) end [2025-01-23 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:07:22] Production.INFO: ==17611== Releasing lock... [2025-01-23 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:07:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:08:05 [end_date_ymd] => 2025-01-23 23:08:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:08:05' and `end` < '2025-01-23 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-23 23:08:18] Production.INFO: count ==1525 [2025-01-23 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:08:05 - End Time 2025-01-23 23:08:05 [2025-01-23 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315579', 'tblTempUsageDetail_20' ) start [2025-01-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315579', 'tblTempUsageDetail_20' ) end [2025-01-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315579', 'tblTempVendorCDR_20' ) start [2025-01-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315579', 'tblTempVendorCDR_20' ) end [2025-01-23 23:08:18] Production.INFO: ProcessCDR(1,14315579,1,1,2) [2025-01-23 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315579', 'tblTempUsageDetail_20' ) start [2025-01-23 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315579', 'tblTempUsageDetail_20' ) end [2025-01-23 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:08:22] Production.INFO: ==17762== Releasing lock... [2025-01-23 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:09:04 [end_date_ymd] => 2025-01-23 23:09:04 [RateCDR] => 1 ) [2025-01-23 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:09:04' and `end` < '2025-01-23 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:09:17] Production.INFO: count ==1525 [2025-01-23 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:09:04 - End Time 2025-01-23 23:09:04 [2025-01-23 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315584', 'tblTempUsageDetail_20' ) start [2025-01-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315584', 'tblTempUsageDetail_20' ) end [2025-01-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315584', 'tblTempVendorCDR_20' ) start [2025-01-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315584', 'tblTempVendorCDR_20' ) end [2025-01-23 23:09:17] Production.INFO: ProcessCDR(1,14315584,1,1,2) [2025-01-23 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315584', 'tblTempUsageDetail_20' ) start [2025-01-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315584', 'tblTempUsageDetail_20' ) end [2025-01-23 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:09:20] Production.INFO: ==17871== Releasing lock... [2025-01-23 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:09:20] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:10:06 [end_date_ymd] => 2025-01-23 23:10:06 [RateCDR] => 1 ) [2025-01-23 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-23 20:10:06' and `end` < '2025-01-23 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-23 23:10:19] Production.INFO: count ==1514 [2025-01-23 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:10:06 - End Time 2025-01-23 23:10:06 [2025-01-23 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315590', 'tblTempUsageDetail_20' ) start [2025-01-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315590', 'tblTempUsageDetail_20' ) end [2025-01-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315590', 'tblTempVendorCDR_20' ) start [2025-01-23 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315590', 'tblTempVendorCDR_20' ) end [2025-01-23 23:10:19] Production.INFO: ProcessCDR(1,14315590,1,1,2) [2025-01-23 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315590', 'tblTempUsageDetail_20' ) start [2025-01-23 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315590', 'tblTempUsageDetail_20' ) end [2025-01-23 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:10:23] Production.INFO: ==17964== Releasing lock... [2025-01-23 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-23 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:11:05 [end_date_ymd] => 2025-01-23 23:11:05 [RateCDR] => 1 ) [2025-01-23 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:11:05' and `end` < '2025-01-23 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:11:18] Production.INFO: count ==1457 [2025-01-23 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:11:05 - End Time 2025-01-23 23:11:05 [2025-01-23 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315595', 'tblTempUsageDetail_20' ) start [2025-01-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315595', 'tblTempUsageDetail_20' ) end [2025-01-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315595', 'tblTempVendorCDR_20' ) start [2025-01-23 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315595', 'tblTempVendorCDR_20' ) end [2025-01-23 23:11:18] Production.INFO: ProcessCDR(1,14315595,1,1,2) [2025-01-23 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315595', 'tblTempUsageDetail_20' ) start [2025-01-23 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315595', 'tblTempUsageDetail_20' ) end [2025-01-23 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:11:21] Production.INFO: ==18060== Releasing lock... [2025-01-23 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:11:21] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:12:05 [end_date_ymd] => 2025-01-23 23:12:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:12:05' and `end` < '2025-01-23 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-23 23:12:18] Production.INFO: count ==1456 [2025-01-23 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:12:05 - End Time 2025-01-23 23:12:05 [2025-01-23 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315600', 'tblTempUsageDetail_20' ) start [2025-01-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315600', 'tblTempUsageDetail_20' ) end [2025-01-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315600', 'tblTempVendorCDR_20' ) start [2025-01-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315600', 'tblTempVendorCDR_20' ) end [2025-01-23 23:12:18] Production.INFO: ProcessCDR(1,14315600,1,1,2) [2025-01-23 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315600', 'tblTempUsageDetail_20' ) start [2025-01-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315600', 'tblTempUsageDetail_20' ) end [2025-01-23 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:12:21] Production.INFO: ==18228== Releasing lock... [2025-01-23 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:12:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:13:05 [end_date_ymd] => 2025-01-23 23:13:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:13:05' and `end` < '2025-01-23 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-23 23:13:18] Production.INFO: count ==1454 [2025-01-23 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:13:05 - End Time 2025-01-23 23:13:05 [2025-01-23 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315605', 'tblTempUsageDetail_20' ) start [2025-01-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315605', 'tblTempUsageDetail_20' ) end [2025-01-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315605', 'tblTempVendorCDR_20' ) start [2025-01-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315605', 'tblTempVendorCDR_20' ) end [2025-01-23 23:13:19] Production.INFO: ProcessCDR(1,14315605,1,1,2) [2025-01-23 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315605', 'tblTempUsageDetail_20' ) start [2025-01-23 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315605', 'tblTempUsageDetail_20' ) end [2025-01-23 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:13:22] Production.INFO: ==18318== Releasing lock... [2025-01-23 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:13:22] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:14:05 [end_date_ymd] => 2025-01-23 23:14:05 [RateCDR] => 1 ) [2025-01-23 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:14:05' and `end` < '2025-01-23 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:14:17] Production.INFO: count ==1454 [2025-01-23 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:14:05 - End Time 2025-01-23 23:14:05 [2025-01-23 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315610', 'tblTempUsageDetail_20' ) start [2025-01-23 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315610', 'tblTempUsageDetail_20' ) end [2025-01-23 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315610', 'tblTempVendorCDR_20' ) start [2025-01-23 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315610', 'tblTempVendorCDR_20' ) end [2025-01-23 23:14:18] Production.INFO: ProcessCDR(1,14315610,1,1,2) [2025-01-23 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315610', 'tblTempUsageDetail_20' ) start [2025-01-23 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315610', 'tblTempUsageDetail_20' ) end [2025-01-23 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:14:21] Production.INFO: ==18418== Releasing lock... [2025-01-23 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:14:21] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:15:04 [end_date_ymd] => 2025-01-23 23:15:04 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:15:04' and `end` < '2025-01-23 23: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-23 23:15:17] Production.INFO: count ==1454 [2025-01-23 23:15:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:15:04 - End Time 2025-01-23 23:15:04 [2025-01-23 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315615', 'tblTempUsageDetail_20' ) start [2025-01-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315615', 'tblTempUsageDetail_20' ) end [2025-01-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315615', 'tblTempVendorCDR_20' ) start [2025-01-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315615', 'tblTempVendorCDR_20' ) end [2025-01-23 23:15:17] Production.INFO: ProcessCDR(1,14315615,1,1,2) [2025-01-23 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315615', 'tblTempUsageDetail_20' ) start [2025-01-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315615', 'tblTempUsageDetail_20' ) end [2025-01-23 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:15:21] Production.INFO: ==18592== Releasing lock... [2025-01-23 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:15:21] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:16:05 [end_date_ymd] => 2025-01-23 23:16:05 [RateCDR] => 1 ) [2025-01-23 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:16:05' and `end` < '2025-01-23 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:16:19] Production.INFO: count ==1450 [2025-01-23 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:16:05 - End Time 2025-01-23 23:16:05 [2025-01-23 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315620', 'tblTempUsageDetail_20' ) start [2025-01-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315620', 'tblTempUsageDetail_20' ) end [2025-01-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315620', 'tblTempVendorCDR_20' ) start [2025-01-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315620', 'tblTempVendorCDR_20' ) end [2025-01-23 23:16:19] Production.INFO: ProcessCDR(1,14315620,1,1,2) [2025-01-23 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315620', 'tblTempUsageDetail_20' ) start [2025-01-23 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315620', 'tblTempUsageDetail_20' ) end [2025-01-23 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:16:22] Production.INFO: ==18688== Releasing lock... [2025-01-23 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:16:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:17:05 [end_date_ymd] => 2025-01-23 23:17:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:17:05' and `end` < '2025-01-23 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-23 23:17:18] Production.INFO: count ==1454 [2025-01-23 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:17:05 - End Time 2025-01-23 23:17:05 [2025-01-23 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315625', 'tblTempUsageDetail_20' ) start [2025-01-23 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315625', 'tblTempUsageDetail_20' ) end [2025-01-23 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315625', 'tblTempVendorCDR_20' ) start [2025-01-23 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315625', 'tblTempVendorCDR_20' ) end [2025-01-23 23:17:19] Production.INFO: ProcessCDR(1,14315625,1,1,2) [2025-01-23 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315625', 'tblTempUsageDetail_20' ) start [2025-01-23 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315625', 'tblTempUsageDetail_20' ) end [2025-01-23 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:17:22] Production.INFO: ==18783== Releasing lock... [2025-01-23 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:18:05 [end_date_ymd] => 2025-01-23 23:18:05 [RateCDR] => 1 ) [2025-01-23 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:18:05' and `end` < '2025-01-23 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:18:18] Production.INFO: count ==1454 [2025-01-23 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:18:05 - End Time 2025-01-23 23:18:05 [2025-01-23 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315630', 'tblTempUsageDetail_20' ) start [2025-01-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315630', 'tblTempUsageDetail_20' ) end [2025-01-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315630', 'tblTempVendorCDR_20' ) start [2025-01-23 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315630', 'tblTempVendorCDR_20' ) end [2025-01-23 23:18:19] Production.INFO: ProcessCDR(1,14315630,1,1,2) [2025-01-23 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315630', 'tblTempUsageDetail_20' ) start [2025-01-23 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315630', 'tblTempUsageDetail_20' ) end [2025-01-23 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:18:22] Production.INFO: ==18869== Releasing lock... [2025-01-23 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:18:22] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:19:05 [end_date_ymd] => 2025-01-23 23:19:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:19:05' and `end` < '2025-01-23 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-23 23:19:18] Production.INFO: count ==1453 [2025-01-23 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:19:05 - End Time 2025-01-23 23:19:05 [2025-01-23 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315635', 'tblTempUsageDetail_20' ) start [2025-01-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315635', 'tblTempUsageDetail_20' ) end [2025-01-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315635', 'tblTempVendorCDR_20' ) start [2025-01-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315635', 'tblTempVendorCDR_20' ) end [2025-01-23 23:19:18] Production.INFO: ProcessCDR(1,14315635,1,1,2) [2025-01-23 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315635', 'tblTempUsageDetail_20' ) start [2025-01-23 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315635', 'tblTempUsageDetail_20' ) end [2025-01-23 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:19:21] Production.INFO: ==18954== Releasing lock... [2025-01-23 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:19:21] Production.INFO: 39 MB #Memory Used# [2025-01-23 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:20:06 [end_date_ymd] => 2025-01-23 23:20:06 [RateCDR] => 1 ) [2025-01-23 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-23 20:20:06' and `end` < '2025-01-23 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-23 23:20:19] Production.INFO: count ==1456 [2025-01-23 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:20:06 - End Time 2025-01-23 23:20:06 [2025-01-23 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315641', 'tblTempUsageDetail_20' ) start [2025-01-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315641', 'tblTempUsageDetail_20' ) end [2025-01-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315641', 'tblTempVendorCDR_20' ) start [2025-01-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315641', 'tblTempVendorCDR_20' ) end [2025-01-23 23:20:19] Production.INFO: ProcessCDR(1,14315641,1,1,2) [2025-01-23 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315641', 'tblTempUsageDetail_20' ) start [2025-01-23 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315641', 'tblTempUsageDetail_20' ) end [2025-01-23 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:20:22] Production.INFO: ==19043== Releasing lock... [2025-01-23 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:21:04 [end_date_ymd] => 2025-01-23 23:21:04 [RateCDR] => 1 ) [2025-01-23 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:21:04' and `end` < '2025-01-23 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:21:17] Production.INFO: count ==1425 [2025-01-23 23:21:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:21:04 - End Time 2025-01-23 23:21:04 [2025-01-23 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315646', 'tblTempUsageDetail_20' ) start [2025-01-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315646', 'tblTempUsageDetail_20' ) end [2025-01-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315646', 'tblTempVendorCDR_20' ) start [2025-01-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315646', 'tblTempVendorCDR_20' ) end [2025-01-23 23:21:17] Production.INFO: ProcessCDR(1,14315646,1,1,2) [2025-01-23 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315646', 'tblTempUsageDetail_20' ) start [2025-01-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315646', 'tblTempUsageDetail_20' ) end [2025-01-23 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:21:20] Production.INFO: ==19168== Releasing lock... [2025-01-23 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:21:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:22:06 [end_date_ymd] => 2025-01-23 23:22:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:22:06' and `end` < '2025-01-23 23: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-23 23:22:18] Production.INFO: count ==1423 [2025-01-23 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:22:06 - End Time 2025-01-23 23:22:06 [2025-01-23 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315651', 'tblTempUsageDetail_20' ) start [2025-01-23 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315651', 'tblTempUsageDetail_20' ) end [2025-01-23 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315651', 'tblTempVendorCDR_20' ) start [2025-01-23 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315651', 'tblTempVendorCDR_20' ) end [2025-01-23 23:22:19] Production.INFO: ProcessCDR(1,14315651,1,1,2) [2025-01-23 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315651', 'tblTempUsageDetail_20' ) start [2025-01-23 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315651', 'tblTempUsageDetail_20' ) end [2025-01-23 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:22:22] Production.INFO: ==19260== Releasing lock... [2025-01-23 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:23:04 [end_date_ymd] => 2025-01-23 23:23:04 [RateCDR] => 1 ) [2025-01-23 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:23:04' and `end` < '2025-01-23 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:23:18] Production.INFO: count ==1423 [2025-01-23 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:23:04 - End Time 2025-01-23 23:23:04 [2025-01-23 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315656', 'tblTempUsageDetail_20' ) start [2025-01-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315656', 'tblTempUsageDetail_20' ) end [2025-01-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315656', 'tblTempVendorCDR_20' ) start [2025-01-23 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315656', 'tblTempVendorCDR_20' ) end [2025-01-23 23:23:18] Production.INFO: ProcessCDR(1,14315656,1,1,2) [2025-01-23 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315656', 'tblTempUsageDetail_20' ) start [2025-01-23 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315656', 'tblTempUsageDetail_20' ) end [2025-01-23 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:23:21] Production.INFO: ==19345== Releasing lock... [2025-01-23 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:24:05 [end_date_ymd] => 2025-01-23 23:24:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:24:05' and `end` < '2025-01-23 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-23 23:24:18] Production.INFO: count ==1425 [2025-01-23 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:24:05 - End Time 2025-01-23 23:24:05 [2025-01-23 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315661', 'tblTempUsageDetail_20' ) start [2025-01-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315661', 'tblTempUsageDetail_20' ) end [2025-01-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315661', 'tblTempVendorCDR_20' ) start [2025-01-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315661', 'tblTempVendorCDR_20' ) end [2025-01-23 23:24:18] Production.INFO: ProcessCDR(1,14315661,1,1,2) [2025-01-23 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315661', 'tblTempUsageDetail_20' ) start [2025-01-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315661', 'tblTempUsageDetail_20' ) end [2025-01-23 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:24:21] Production.INFO: ==19427== Releasing lock... [2025-01-23 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:24:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-23 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:25:04 [end_date_ymd] => 2025-01-23 23:25:04 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:25:04' and `end` < '2025-01-23 23: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-23 23:25:17] Production.INFO: count ==1424 [2025-01-23 23:25:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:25:04 - End Time 2025-01-23 23:25:04 [2025-01-23 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315666', 'tblTempUsageDetail_20' ) start [2025-01-23 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315666', 'tblTempUsageDetail_20' ) end [2025-01-23 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315666', 'tblTempVendorCDR_20' ) start [2025-01-23 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315666', 'tblTempVendorCDR_20' ) end [2025-01-23 23:25:17] Production.INFO: ProcessCDR(1,14315666,1,1,2) [2025-01-23 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315666', 'tblTempUsageDetail_20' ) start [2025-01-23 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315666', 'tblTempUsageDetail_20' ) end [2025-01-23 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:25:20] Production.INFO: ==19513== Releasing lock... [2025-01-23 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:25:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:26:05 [end_date_ymd] => 2025-01-23 23:26:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:26:05' and `end` < '2025-01-23 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-23 23:26:18] Production.INFO: count ==1422 [2025-01-23 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:26:05 - End Time 2025-01-23 23:26:05 [2025-01-23 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315671', 'tblTempUsageDetail_20' ) start [2025-01-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315671', 'tblTempUsageDetail_20' ) end [2025-01-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315671', 'tblTempVendorCDR_20' ) start [2025-01-23 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315671', 'tblTempVendorCDR_20' ) end [2025-01-23 23:26:18] Production.INFO: ProcessCDR(1,14315671,1,1,2) [2025-01-23 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315671', 'tblTempUsageDetail_20' ) start [2025-01-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315671', 'tblTempUsageDetail_20' ) end [2025-01-23 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:26:21] Production.INFO: ==19601== Releasing lock... [2025-01-23 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:26:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:27:06 [end_date_ymd] => 2025-01-23 23:27:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:27:06' and `end` < '2025-01-23 23: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-23 23:27:19] Production.INFO: count ==1415 [2025-01-23 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:27:06 - End Time 2025-01-23 23:27:06 [2025-01-23 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315676', 'tblTempUsageDetail_20' ) start [2025-01-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315676', 'tblTempUsageDetail_20' ) end [2025-01-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315676', 'tblTempVendorCDR_20' ) start [2025-01-23 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315676', 'tblTempVendorCDR_20' ) end [2025-01-23 23:27:19] Production.INFO: ProcessCDR(1,14315676,1,1,2) [2025-01-23 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315676', 'tblTempUsageDetail_20' ) start [2025-01-23 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315676', 'tblTempUsageDetail_20' ) end [2025-01-23 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:27:22] Production.INFO: ==19679== Releasing lock... [2025-01-23 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:27:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:28:05 [end_date_ymd] => 2025-01-23 23:28:05 [RateCDR] => 1 ) [2025-01-23 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:28:05' and `end` < '2025-01-23 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:28:18] Production.INFO: count ==1412 [2025-01-23 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:28:05 - End Time 2025-01-23 23:28:05 [2025-01-23 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315681', 'tblTempUsageDetail_20' ) start [2025-01-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315681', 'tblTempUsageDetail_20' ) end [2025-01-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315681', 'tblTempVendorCDR_20' ) start [2025-01-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315681', 'tblTempVendorCDR_20' ) end [2025-01-23 23:28:19] Production.INFO: ProcessCDR(1,14315681,1,1,2) [2025-01-23 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315681', 'tblTempUsageDetail_20' ) start [2025-01-23 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315681', 'tblTempUsageDetail_20' ) end [2025-01-23 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:28:22] Production.INFO: ==19765== Releasing lock... [2025-01-23 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:29:05 [end_date_ymd] => 2025-01-23 23:29:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:29:05' and `end` < '2025-01-23 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-23 23:29:18] Production.INFO: count ==1403 [2025-01-23 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:29:05 - End Time 2025-01-23 23:29:05 [2025-01-23 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315686', 'tblTempUsageDetail_20' ) start [2025-01-23 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315686', 'tblTempUsageDetail_20' ) end [2025-01-23 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315686', 'tblTempVendorCDR_20' ) start [2025-01-23 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315686', 'tblTempVendorCDR_20' ) end [2025-01-23 23:29:18] Production.INFO: ProcessCDR(1,14315686,1,1,2) [2025-01-23 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315686', 'tblTempUsageDetail_20' ) start [2025-01-23 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315686', 'tblTempUsageDetail_20' ) end [2025-01-23 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:29:21] Production.INFO: ==19855== Releasing lock... [2025-01-23 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:30:06 [end_date_ymd] => 2025-01-23 23:30:06 [RateCDR] => 1 ) [2025-01-23 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:30:06' and `end` < '2025-01-23 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:30:18] Production.INFO: count ==1395 [2025-01-23 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:30:06 - End Time 2025-01-23 23:30:06 [2025-01-23 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315692', 'tblTempUsageDetail_20' ) start [2025-01-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315692', 'tblTempUsageDetail_20' ) end [2025-01-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315692', 'tblTempVendorCDR_20' ) start [2025-01-23 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315692', 'tblTempVendorCDR_20' ) end [2025-01-23 23:30:19] Production.INFO: ProcessCDR(1,14315692,1,1,2) [2025-01-23 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315692', 'tblTempUsageDetail_20' ) start [2025-01-23 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315692', 'tblTempUsageDetail_20' ) end [2025-01-23 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:30:23] Production.INFO: ==19943== Releasing lock... [2025-01-23 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-23 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:31:05 [end_date_ymd] => 2025-01-23 23:31:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:31:05' and `end` < '2025-01-23 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-23 23:31:18] Production.INFO: count ==1355 [2025-01-23 23:31:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:31:05 - End Time 2025-01-23 23:31:05 [2025-01-23 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315697', 'tblTempUsageDetail_20' ) start [2025-01-23 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315697', 'tblTempUsageDetail_20' ) end [2025-01-23 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315697', 'tblTempVendorCDR_20' ) start [2025-01-23 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315697', 'tblTempVendorCDR_20' ) end [2025-01-23 23:31:19] Production.INFO: ProcessCDR(1,14315697,1,1,2) [2025-01-23 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315697', 'tblTempUsageDetail_20' ) start [2025-01-23 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315697', 'tblTempUsageDetail_20' ) end [2025-01-23 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:31:22] Production.INFO: ==20033== Releasing lock... [2025-01-23 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:32:05 [end_date_ymd] => 2025-01-23 23:32:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:32:05' and `end` < '2025-01-23 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-23 23:32:17] Production.INFO: count ==1354 [2025-01-23 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:32:05 - End Time 2025-01-23 23:32:05 [2025-01-23 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315702', 'tblTempUsageDetail_20' ) start [2025-01-23 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315702', 'tblTempUsageDetail_20' ) end [2025-01-23 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315702', 'tblTempVendorCDR_20' ) start [2025-01-23 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315702', 'tblTempVendorCDR_20' ) end [2025-01-23 23:32:18] Production.INFO: ProcessCDR(1,14315702,1,1,2) [2025-01-23 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315702', 'tblTempUsageDetail_20' ) start [2025-01-23 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315702', 'tblTempUsageDetail_20' ) end [2025-01-23 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:32:21] Production.INFO: ==20115== Releasing lock... [2025-01-23 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:32:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:33:05 [end_date_ymd] => 2025-01-23 23:33:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:33:05' and `end` < '2025-01-23 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-23 23:33:18] Production.INFO: count ==1352 [2025-01-23 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:33:05 - End Time 2025-01-23 23:33:05 [2025-01-23 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315707', 'tblTempUsageDetail_20' ) start [2025-01-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315707', 'tblTempUsageDetail_20' ) end [2025-01-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315707', 'tblTempVendorCDR_20' ) start [2025-01-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315707', 'tblTempVendorCDR_20' ) end [2025-01-23 23:33:18] Production.INFO: ProcessCDR(1,14315707,1,1,2) [2025-01-23 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315707', 'tblTempUsageDetail_20' ) start [2025-01-23 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315707', 'tblTempUsageDetail_20' ) end [2025-01-23 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:33:21] Production.INFO: ==20199== Releasing lock... [2025-01-23 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:33:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:34:05 [end_date_ymd] => 2025-01-23 23:34:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:34:05' and `end` < '2025-01-23 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-23 23:34:18] Production.INFO: count ==1352 [2025-01-23 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:34:05 - End Time 2025-01-23 23:34:05 [2025-01-23 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315712', 'tblTempUsageDetail_20' ) start [2025-01-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315712', 'tblTempUsageDetail_20' ) end [2025-01-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315712', 'tblTempVendorCDR_20' ) start [2025-01-23 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315712', 'tblTempVendorCDR_20' ) end [2025-01-23 23:34:18] Production.INFO: ProcessCDR(1,14315712,1,1,2) [2025-01-23 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315712', 'tblTempUsageDetail_20' ) start [2025-01-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315712', 'tblTempUsageDetail_20' ) end [2025-01-23 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:34:21] Production.INFO: ==20285== Releasing lock... [2025-01-23 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:34:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:35:06 [end_date_ymd] => 2025-01-23 23:35:06 [RateCDR] => 1 ) [2025-01-23 23:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:35:06' and `end` < '2025-01-23 23:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:35:19] Production.INFO: count ==1352 [2025-01-23 23:35:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:35:06 - End Time 2025-01-23 23:35:06 [2025-01-23 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315717', 'tblTempUsageDetail_20' ) start [2025-01-23 23:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315717', 'tblTempUsageDetail_20' ) end [2025-01-23 23:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315717', 'tblTempVendorCDR_20' ) start [2025-01-23 23:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315717', 'tblTempVendorCDR_20' ) end [2025-01-23 23:35:20] Production.INFO: ProcessCDR(1,14315717,1,1,2) [2025-01-23 23:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315717', 'tblTempUsageDetail_20' ) start [2025-01-23 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315717', 'tblTempUsageDetail_20' ) end [2025-01-23 23:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:35:23] Production.INFO: ==20377== Releasing lock... [2025-01-23 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:36:04 [end_date_ymd] => 2025-01-23 23:36:04 [RateCDR] => 1 ) [2025-01-23 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:36:04' and `end` < '2025-01-23 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:36:17] Production.INFO: count ==1352 [2025-01-23 23:36:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:36:04 - End Time 2025-01-23 23:36:04 [2025-01-23 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315722', 'tblTempUsageDetail_20' ) start [2025-01-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315722', 'tblTempUsageDetail_20' ) end [2025-01-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315722', 'tblTempVendorCDR_20' ) start [2025-01-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315722', 'tblTempVendorCDR_20' ) end [2025-01-23 23:36:17] Production.INFO: ProcessCDR(1,14315722,1,1,2) [2025-01-23 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315722', 'tblTempUsageDetail_20' ) start [2025-01-23 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315722', 'tblTempUsageDetail_20' ) end [2025-01-23 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:36:20] Production.INFO: ==20502== Releasing lock... [2025-01-23 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:36:20] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:37:05 [end_date_ymd] => 2025-01-23 23:37:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:37:05' and `end` < '2025-01-23 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-23 23:37:19] Production.INFO: count ==1350 [2025-01-23 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:37:05 - End Time 2025-01-23 23:37:05 [2025-01-23 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315727', 'tblTempUsageDetail_20' ) start [2025-01-23 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315727', 'tblTempUsageDetail_20' ) end [2025-01-23 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315727', 'tblTempVendorCDR_20' ) start [2025-01-23 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315727', 'tblTempVendorCDR_20' ) end [2025-01-23 23:37:19] Production.INFO: ProcessCDR(1,14315727,1,1,2) [2025-01-23 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315727', 'tblTempUsageDetail_20' ) start [2025-01-23 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315727', 'tblTempUsageDetail_20' ) end [2025-01-23 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:37:22] Production.INFO: ==20582== Releasing lock... [2025-01-23 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-23 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:38:05 [end_date_ymd] => 2025-01-23 23:38:05 [RateCDR] => 1 ) [2025-01-23 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:38:05' and `end` < '2025-01-23 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:38:19] Production.INFO: count ==1349 [2025-01-23 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:38:05 - End Time 2025-01-23 23:38:05 [2025-01-23 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315732', 'tblTempUsageDetail_20' ) start [2025-01-23 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315732', 'tblTempUsageDetail_20' ) end [2025-01-23 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315732', 'tblTempVendorCDR_20' ) start [2025-01-23 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315732', 'tblTempVendorCDR_20' ) end [2025-01-23 23:38:19] Production.INFO: ProcessCDR(1,14315732,1,1,2) [2025-01-23 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315732', 'tblTempUsageDetail_20' ) start [2025-01-23 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315732', 'tblTempUsageDetail_20' ) end [2025-01-23 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:38:22] Production.INFO: ==20666== Releasing lock... [2025-01-23 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:38:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:39:05 [end_date_ymd] => 2025-01-23 23:39:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:39:05' and `end` < '2025-01-23 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-23 23:39:18] Production.INFO: count ==1346 [2025-01-23 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:39:05 - End Time 2025-01-23 23:39:05 [2025-01-23 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315737', 'tblTempUsageDetail_20' ) start [2025-01-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315737', 'tblTempUsageDetail_20' ) end [2025-01-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315737', 'tblTempVendorCDR_20' ) start [2025-01-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315737', 'tblTempVendorCDR_20' ) end [2025-01-23 23:39:18] Production.INFO: ProcessCDR(1,14315737,1,1,2) [2025-01-23 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315737', 'tblTempUsageDetail_20' ) start [2025-01-23 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315737', 'tblTempUsageDetail_20' ) end [2025-01-23 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:39:21] Production.INFO: ==20739== Releasing lock... [2025-01-23 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:39:21] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:40:06 [end_date_ymd] => 2025-01-23 23:40:06 [RateCDR] => 1 ) [2025-01-23 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-23 20:40:06' and `end` < '2025-01-23 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-23 23:40:19] Production.INFO: count ==1343 [2025-01-23 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:40:06 - End Time 2025-01-23 23:40:06 [2025-01-23 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315743', 'tblTempUsageDetail_20' ) start [2025-01-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315743', 'tblTempUsageDetail_20' ) end [2025-01-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315743', 'tblTempVendorCDR_20' ) start [2025-01-23 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315743', 'tblTempVendorCDR_20' ) end [2025-01-23 23:40:19] Production.INFO: ProcessCDR(1,14315743,1,1,2) [2025-01-23 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315743', 'tblTempUsageDetail_20' ) start [2025-01-23 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315743', 'tblTempUsageDetail_20' ) end [2025-01-23 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:40:22] Production.INFO: ==20825== Releasing lock... [2025-01-23 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:41:05 [end_date_ymd] => 2025-01-23 23:41:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:41:05' and `end` < '2025-01-23 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-23 23:41:18] Production.INFO: count ==1330 [2025-01-23 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:41:05 - End Time 2025-01-23 23:41:05 [2025-01-23 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315748', 'tblTempUsageDetail_20' ) start [2025-01-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315748', 'tblTempUsageDetail_20' ) end [2025-01-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315748', 'tblTempVendorCDR_20' ) start [2025-01-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315748', 'tblTempVendorCDR_20' ) end [2025-01-23 23:41:18] Production.INFO: ProcessCDR(1,14315748,1,1,2) [2025-01-23 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315748', 'tblTempUsageDetail_20' ) start [2025-01-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315748', 'tblTempUsageDetail_20' ) end [2025-01-23 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:41:21] Production.INFO: ==20905== Releasing lock... [2025-01-23 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:41:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:42:05 [end_date_ymd] => 2025-01-23 23:42:05 [RateCDR] => 1 ) [2025-01-23 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:42:05' and `end` < '2025-01-23 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:42:17] Production.INFO: count ==1330 [2025-01-23 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:42:05 - End Time 2025-01-23 23:42:05 [2025-01-23 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315753', 'tblTempUsageDetail_20' ) start [2025-01-23 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315753', 'tblTempUsageDetail_20' ) end [2025-01-23 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315753', 'tblTempVendorCDR_20' ) start [2025-01-23 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315753', 'tblTempVendorCDR_20' ) end [2025-01-23 23:42:18] Production.INFO: ProcessCDR(1,14315753,1,1,2) [2025-01-23 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315753', 'tblTempUsageDetail_20' ) start [2025-01-23 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315753', 'tblTempUsageDetail_20' ) end [2025-01-23 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:42:21] Production.INFO: ==20982== Releasing lock... [2025-01-23 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:42:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:43:05 [end_date_ymd] => 2025-01-23 23:43:05 [RateCDR] => 1 ) [2025-01-23 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:43:05' and `end` < '2025-01-23 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:43:18] Production.INFO: count ==1327 [2025-01-23 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:43:05 - End Time 2025-01-23 23:43:05 [2025-01-23 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315758', 'tblTempUsageDetail_20' ) start [2025-01-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315758', 'tblTempUsageDetail_20' ) end [2025-01-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315758', 'tblTempVendorCDR_20' ) start [2025-01-23 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315758', 'tblTempVendorCDR_20' ) end [2025-01-23 23:43:18] Production.INFO: ProcessCDR(1,14315758,1,1,2) [2025-01-23 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315758', 'tblTempUsageDetail_20' ) start [2025-01-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315758', 'tblTempUsageDetail_20' ) end [2025-01-23 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:43:21] Production.INFO: ==21060== Releasing lock... [2025-01-23 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:44:05 [end_date_ymd] => 2025-01-23 23:44:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:44:05' and `end` < '2025-01-23 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-23 23:44:17] Production.INFO: count ==1323 [2025-01-23 23:44:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:44:05 - End Time 2025-01-23 23:44:05 [2025-01-23 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315763', 'tblTempUsageDetail_20' ) start [2025-01-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315763', 'tblTempUsageDetail_20' ) end [2025-01-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315763', 'tblTempVendorCDR_20' ) start [2025-01-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315763', 'tblTempVendorCDR_20' ) end [2025-01-23 23:44:18] Production.INFO: ProcessCDR(1,14315763,1,1,2) [2025-01-23 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315763', 'tblTempUsageDetail_20' ) start [2025-01-23 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315763', 'tblTempUsageDetail_20' ) end [2025-01-23 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:44:21] Production.INFO: ==21135== Releasing lock... [2025-01-23 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:44:21] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:45:05 [end_date_ymd] => 2025-01-23 23:45:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:45:05' and `end` < '2025-01-23 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-23 23:45:18] Production.INFO: count ==1322 [2025-01-23 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:45:05 - End Time 2025-01-23 23:45:05 [2025-01-23 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315768', 'tblTempUsageDetail_20' ) start [2025-01-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315768', 'tblTempUsageDetail_20' ) end [2025-01-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315768', 'tblTempVendorCDR_20' ) start [2025-01-23 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315768', 'tblTempVendorCDR_20' ) end [2025-01-23 23:45:18] Production.INFO: ProcessCDR(1,14315768,1,1,2) [2025-01-23 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315768', 'tblTempUsageDetail_20' ) start [2025-01-23 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315768', 'tblTempUsageDetail_20' ) end [2025-01-23 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:45:21] Production.INFO: ==21210== Releasing lock... [2025-01-23 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-23 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:46:06 [end_date_ymd] => 2025-01-23 23:46:06 [RateCDR] => 1 ) [2025-01-23 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:46:06' and `end` < '2025-01-23 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:46:18] Production.INFO: count ==1321 [2025-01-23 23:46:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:46:06 - End Time 2025-01-23 23:46:06 [2025-01-23 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315773', 'tblTempUsageDetail_20' ) start [2025-01-23 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315773', 'tblTempUsageDetail_20' ) end [2025-01-23 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315773', 'tblTempVendorCDR_20' ) start [2025-01-23 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315773', 'tblTempVendorCDR_20' ) end [2025-01-23 23:46:19] Production.INFO: ProcessCDR(1,14315773,1,1,2) [2025-01-23 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315773', 'tblTempUsageDetail_20' ) start [2025-01-23 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315773', 'tblTempUsageDetail_20' ) end [2025-01-23 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:46:22] Production.INFO: ==21292== Releasing lock... [2025-01-23 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:46:22] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:47:05 [end_date_ymd] => 2025-01-23 23:47:05 [RateCDR] => 1 ) [2025-01-23 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:47:05' and `end` < '2025-01-23 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:47:18] Production.INFO: count ==1322 [2025-01-23 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:47:05 - End Time 2025-01-23 23:47:05 [2025-01-23 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315778', 'tblTempUsageDetail_20' ) start [2025-01-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315778', 'tblTempUsageDetail_20' ) end [2025-01-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315778', 'tblTempVendorCDR_20' ) start [2025-01-23 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315778', 'tblTempVendorCDR_20' ) end [2025-01-23 23:47:18] Production.INFO: ProcessCDR(1,14315778,1,1,2) [2025-01-23 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315778', 'tblTempUsageDetail_20' ) start [2025-01-23 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315778', 'tblTempUsageDetail_20' ) end [2025-01-23 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:47:21] Production.INFO: ==21373== Releasing lock... [2025-01-23 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:47:21] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:48:06 [end_date_ymd] => 2025-01-23 23:48:06 [RateCDR] => 1 ) [2025-01-23 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:48:06' and `end` < '2025-01-23 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:48:18] Production.INFO: count ==1317 [2025-01-23 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:48:06 - End Time 2025-01-23 23:48:06 [2025-01-23 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315783', 'tblTempUsageDetail_20' ) start [2025-01-23 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315783', 'tblTempUsageDetail_20' ) end [2025-01-23 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315783', 'tblTempVendorCDR_20' ) start [2025-01-23 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315783', 'tblTempVendorCDR_20' ) end [2025-01-23 23:48:19] Production.INFO: ProcessCDR(1,14315783,1,1,2) [2025-01-23 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315783', 'tblTempUsageDetail_20' ) start [2025-01-23 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315783', 'tblTempUsageDetail_20' ) end [2025-01-23 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:48:22] Production.INFO: ==21449== Releasing lock... [2025-01-23 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:48:22] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:49:05 [end_date_ymd] => 2025-01-23 23:49:05 [RateCDR] => 1 ) [2025-01-23 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:49:05' and `end` < '2025-01-23 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:49:18] Production.INFO: count ==1317 [2025-01-23 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:49:05 - End Time 2025-01-23 23:49:05 [2025-01-23 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315788', 'tblTempUsageDetail_20' ) start [2025-01-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315788', 'tblTempUsageDetail_20' ) end [2025-01-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315788', 'tblTempVendorCDR_20' ) start [2025-01-23 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315788', 'tblTempVendorCDR_20' ) end [2025-01-23 23:49:18] Production.INFO: ProcessCDR(1,14315788,1,1,2) [2025-01-23 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315788', 'tblTempUsageDetail_20' ) start [2025-01-23 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315788', 'tblTempUsageDetail_20' ) end [2025-01-23 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:49:21] Production.INFO: ==21525== Releasing lock... [2025-01-23 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:49:21] Production.INFO: 38 MB #Memory Used# [2025-01-23 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:50:06 [end_date_ymd] => 2025-01-23 23:50:06 [RateCDR] => 1 ) [2025-01-23 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-23 20:50:06' and `end` < '2025-01-23 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-23 23:50:18] Production.INFO: count ==1306 [2025-01-23 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:50:06 - End Time 2025-01-23 23:50:06 [2025-01-23 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315794', 'tblTempUsageDetail_20' ) start [2025-01-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315794', 'tblTempUsageDetail_20' ) end [2025-01-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315794', 'tblTempVendorCDR_20' ) start [2025-01-23 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315794', 'tblTempVendorCDR_20' ) end [2025-01-23 23:50:19] Production.INFO: ProcessCDR(1,14315794,1,1,2) [2025-01-23 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315794', 'tblTempUsageDetail_20' ) start [2025-01-23 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315794', 'tblTempUsageDetail_20' ) end [2025-01-23 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:50:22] Production.INFO: ==21606== Releasing lock... [2025-01-23 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:50:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-23 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:51:05 [end_date_ymd] => 2025-01-23 23:51:05 [RateCDR] => 1 ) [2025-01-23 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:51:05' and `end` < '2025-01-23 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-23 23:51:19] Production.INFO: count ==1245 [2025-01-23 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:51:05 - End Time 2025-01-23 23:51:05 [2025-01-23 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315799', 'tblTempUsageDetail_20' ) start [2025-01-23 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315799', 'tblTempUsageDetail_20' ) end [2025-01-23 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315799', 'tblTempVendorCDR_20' ) start [2025-01-23 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315799', 'tblTempVendorCDR_20' ) end [2025-01-23 23:51:19] Production.INFO: ProcessCDR(1,14315799,1,1,2) [2025-01-23 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315799', 'tblTempUsageDetail_20' ) start [2025-01-23 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315799', 'tblTempUsageDetail_20' ) end [2025-01-23 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:51:22] Production.INFO: ==21686== Releasing lock... [2025-01-23 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:51:22] Production.INFO: 37 MB #Memory Used# [2025-01-23 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:52:05 [end_date_ymd] => 2025-01-23 23:52:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:52:05' and `end` < '2025-01-23 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-23 23:52:18] Production.INFO: count ==1244 [2025-01-23 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:52:05 - End Time 2025-01-23 23:52:05 [2025-01-23 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315804', 'tblTempUsageDetail_20' ) start [2025-01-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315804', 'tblTempUsageDetail_20' ) end [2025-01-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315804', 'tblTempVendorCDR_20' ) start [2025-01-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315804', 'tblTempVendorCDR_20' ) end [2025-01-23 23:52:18] Production.INFO: ProcessCDR(1,14315804,1,1,2) [2025-01-23 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315804', 'tblTempUsageDetail_20' ) start [2025-01-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315804', 'tblTempUsageDetail_20' ) end [2025-01-23 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:52:21] Production.INFO: ==21804== Releasing lock... [2025-01-23 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:53:04 [end_date_ymd] => 2025-01-23 23:53:04 [RateCDR] => 1 ) [2025-01-23 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-23 20:53:04' and `end` < '2025-01-23 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-23 23:53:17] Production.INFO: count ==1244 [2025-01-23 23:53:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:53:04 - End Time 2025-01-23 23:53:04 [2025-01-23 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315809', 'tblTempUsageDetail_20' ) start [2025-01-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315809', 'tblTempUsageDetail_20' ) end [2025-01-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315809', 'tblTempVendorCDR_20' ) start [2025-01-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315809', 'tblTempVendorCDR_20' ) end [2025-01-23 23:53:17] Production.INFO: ProcessCDR(1,14315809,1,1,2) [2025-01-23 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315809', 'tblTempUsageDetail_20' ) start [2025-01-23 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315809', 'tblTempUsageDetail_20' ) end [2025-01-23 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:53:20] Production.INFO: ==21890== Releasing lock... [2025-01-23 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:53:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:54:05 [end_date_ymd] => 2025-01-23 23:54:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:54:05' and `end` < '2025-01-23 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-23 23:54:19] Production.INFO: count ==1244 [2025-01-23 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:54:05 - End Time 2025-01-23 23:54:05 [2025-01-23 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315814', 'tblTempUsageDetail_20' ) start [2025-01-23 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315814', 'tblTempUsageDetail_20' ) end [2025-01-23 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315814', 'tblTempVendorCDR_20' ) start [2025-01-23 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315814', 'tblTempVendorCDR_20' ) end [2025-01-23 23:54:19] Production.INFO: ProcessCDR(1,14315814,1,1,2) [2025-01-23 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315814', 'tblTempUsageDetail_20' ) start [2025-01-23 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315814', 'tblTempUsageDetail_20' ) end [2025-01-23 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:54:22] Production.INFO: ==21972== Releasing lock... [2025-01-23 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:55:04 [end_date_ymd] => 2025-01-23 23:55:04 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:55:04' and `end` < '2025-01-23 23: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-23 23:55:17] Production.INFO: count ==1247 [2025-01-23 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-23 20:55:04 - End Time 2025-01-23 23:55:04 [2025-01-23 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315819', 'tblTempUsageDetail_20' ) start [2025-01-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315819', 'tblTempUsageDetail_20' ) end [2025-01-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315819', 'tblTempVendorCDR_20' ) start [2025-01-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315819', 'tblTempVendorCDR_20' ) end [2025-01-23 23:55:17] Production.INFO: ProcessCDR(1,14315819,1,1,2) [2025-01-23 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315819', 'tblTempUsageDetail_20' ) start [2025-01-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315819', 'tblTempUsageDetail_20' ) end [2025-01-23 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:55:20] Production.INFO: ==22056== Releasing lock... [2025-01-23 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:55:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:56:06 [end_date_ymd] => 2025-01-23 23:56:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:56:06' and `end` < '2025-01-23 23: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-23 23:56:19] Production.INFO: count ==1246 [2025-01-23 23:56:20] Production.ERROR: pbx CDR StartTime 2025-01-23 20:56:06 - End Time 2025-01-23 23:56:06 [2025-01-23 23:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315824', 'tblTempUsageDetail_20' ) start [2025-01-23 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315824', 'tblTempUsageDetail_20' ) end [2025-01-23 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315824', 'tblTempVendorCDR_20' ) start [2025-01-23 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315824', 'tblTempVendorCDR_20' ) end [2025-01-23 23:56:20] Production.INFO: ProcessCDR(1,14315824,1,1,2) [2025-01-23 23:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315824', 'tblTempUsageDetail_20' ) start [2025-01-23 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315824', 'tblTempUsageDetail_20' ) end [2025-01-23 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:56:23] Production.INFO: ==22132== Releasing lock... [2025-01-23 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:56:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-23 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:57:06 [end_date_ymd] => 2025-01-23 23:57:06 [RateCDR] => 1 ) [2025-01-23 23: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-23 20:57:06' and `end` < '2025-01-23 23: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-23 23:57:18] Production.INFO: count ==1246 [2025-01-23 23:57:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:57:06 - End Time 2025-01-23 23:57:06 [2025-01-23 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315829', 'tblTempUsageDetail_20' ) start [2025-01-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315829', 'tblTempUsageDetail_20' ) end [2025-01-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315829', 'tblTempVendorCDR_20' ) start [2025-01-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315829', 'tblTempVendorCDR_20' ) end [2025-01-23 23:57:19] Production.INFO: ProcessCDR(1,14315829,1,1,2) [2025-01-23 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315829', 'tblTempUsageDetail_20' ) start [2025-01-23 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315829', 'tblTempUsageDetail_20' ) end [2025-01-23 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:57:22] Production.INFO: ==22208== Releasing lock... [2025-01-23 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-23 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:58:05 [end_date_ymd] => 2025-01-23 23:58:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:58:05' and `end` < '2025-01-23 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-23 23:58:18] Production.INFO: count ==1245 [2025-01-23 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-23 20:58:05 - End Time 2025-01-23 23:58:05 [2025-01-23 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315834', 'tblTempUsageDetail_20' ) start [2025-01-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315834', 'tblTempUsageDetail_20' ) end [2025-01-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315834', 'tblTempVendorCDR_20' ) start [2025-01-23 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315834', 'tblTempVendorCDR_20' ) end [2025-01-23 23:58:18] Production.INFO: ProcessCDR(1,14315834,1,1,2) [2025-01-23 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315834', 'tblTempUsageDetail_20' ) start [2025-01-23 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315834', 'tblTempUsageDetail_20' ) end [2025-01-23 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:58:21] Production.INFO: ==22287== Releasing lock... [2025-01-23 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:58:21] Production.INFO: 37 MB #Memory Used# [2025-01-23 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-23 20:59:05 [end_date_ymd] => 2025-01-23 23:59:05 [RateCDR] => 1 ) [2025-01-23 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-23 20:59:05' and `end` < '2025-01-23 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-23 23:59:18] Production.INFO: count ==1245 [2025-01-23 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-23 20:59:05 - End Time 2025-01-23 23:59:05 [2025-01-23 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-23 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315839', 'tblTempUsageDetail_20' ) start [2025-01-23 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14315839', 'tblTempUsageDetail_20' ) end [2025-01-23 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315839', 'tblTempVendorCDR_20' ) start [2025-01-23 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14315839', 'tblTempVendorCDR_20' ) end [2025-01-23 23:59:19] Production.INFO: ProcessCDR(1,14315839,1,1,2) [2025-01-23 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14315839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14315839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-23 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14315839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14315839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-23 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315839', 'tblTempUsageDetail_20' ) start [2025-01-23 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14315839', 'tblTempUsageDetail_20' ) end [2025-01-23 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-23 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-23 23:59:22] Production.INFO: ==22365== Releasing lock... [2025-01-23 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-23 23:59:22] Production.INFO: 37 MB #Memory Used#